/* Post List */
#page-posts-list {
    background: url('/images/bg-post.jpg') fixed center no-repeat;
}

.feature-title {
    display: flex;
    flex-basis: 70%;
    align-items: center;
    justify-content: left;
}

.feature-link:hover img {
    transform: scale(1.05);
}

#page-posts-list .feature-article {
    margin-bottom: 1rem;
    border-radius: 5px;
}

#page-posts-list .post-aside h4 {
    padding: 1rem;
}

#page-posts-list .feature-link div.feature-image {
    overflow: hidden;
    flex-basis: 30%;
}

#page-posts-list .feature-link:hover {
    background-color: #f3fdf7;
    box-shadow: 9px 9px 0px rgba(17, 138, 17, 0.5);
    transform: translate(-10px, -5px);
}

#page-posts-list .feature-link:hover .feature-title {
    color: green !important;
}

#page-posts-list .feature-link:hover .feature-image img {
    transform: scale(1.05);
}

#page-posts-list .feature-link .feature-image img {
    transition: transform 0.2s ease-in-out;
    display: block;
    width: 100%;
}

#page-posts-list .feature-link div.feature-image img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: top;
    display: block;
}

#page-posts-list .feature-link {
    gap: 0.5rem;
    text-decoration: none;
    color: black;
    font-weight: 600;
    padding: 1rem;
    transition: all 0.25s;
    border: 1px solid rgba(133, 214, 133, 0.5);
}

#page-posts-list .pagination {
    gap: 0.75rem;
}

#page-posts-list .pagination .page-item.active span {
    background-color: green !important;
    border: 1px solid green !important;
    color: white !important;
}

#page-posts-list .pagination .page-item {
    width: 34px !important;
    height: 34px !important;
}

#page-posts-list .page-link {
    color: green !important;
    border: none;
}

#page-posts-list .posted-at {
    color: gray;
}

#page-posts-list .post-description {
    color: black;
}

#page-posts-list .posts-list {
    margin: auto;
    justify-content: space-between;
    display: flex;
    list-style: none;
    padding: 0;
}

@media screen and (max-width: 991px) {
    .container {
        max-width: 100% !important;
    }

    #page-posts-list .post-item {
        width: calc((100% / 2) - (0.5rem));
    }

    #page-posts-list .posts-list {
        gap: 1rem;
    }

    #page-posts-list .post-item a img {
        height: 30vw;
    }

    #page-posts-list .banner-category img {
        height: 100px;
    }

    #page-posts-list .category-title {
        font-size: 1.5rem;
        width: 90%;
    }
}

#page-posts-list .post-item a {
    text-decoration: none;
    display: block;
}

#page-posts-list .post-item a img {
    object-fit: cover;
    object-position: top center;
}

#page-posts-list .post-item {
    border: 1px solid rgba(133, 214, 133, 0.5);
    box-sizing: border-box;
    background-color: white;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

#page-posts-list .post-item-content {
    padding: 1rem;
}

#page-posts-list .post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: green;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    line-height: 1.5em;
}

#page-posts-list .post-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    line-height: 1.5em;
}

#page-posts-list .banner-category {
    position: relative;
}

@media screen and (min-width: 992px) {
    #page-posts-list .banner-category img {
        height: 200px;
    }

    #page-posts-list .post-item a img {
        height: 15.625rem;
    }

    #page-posts-list .post-item {
        width: calc((100% / 2) - (0.75rem));
    }

    #page-posts-list .posts-list {
        gap: 1.5rem;
    }

    #page-posts-list .category-title {
        font-size: 2.5rem;
    }

    #page-posts-list .post-item:hover {
        transform: translateY(-1.5rem);
    }
}

#page-posts-list .banner-category img {
    width: 100%;
    object-fit: cover;
}

#page-posts-list .category-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    text-shadow: 4px 4px 2px black !important;
}

#page-posts-list .count-category-list {
    list-style-type: none;
    padding: 1rem;
}

#page-posts-list .count-category-list li {
    border-left: 1px solid rgba(133, 214, 133, 0.5);
    border-right: 1px solid rgba(133, 214, 133, 0.5);
    border-bottom: 1px solid rgba(133, 214, 133, 0.5);
    padding: 1.5rem;
}

#page-posts-list .count-category-list li:first-child {
    border-top: 1px solid rgba(133, 214, 133, 0.5);
}

#page-posts-list .count-category-item {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: green;
}

#page-posts-list .count-category-number {
    border: 1px solid #dfdfdf;
    width: 3rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

#page-posts-list .count-category-title {
    position: relative;
    left: 0px;
    transition: all 0.5s ease;
}

#page-posts-list .count-category-item:hover .count-category-title {
    left: 20px;
    color: green;
    font-weight: 700;
}

#page-posts-list .count-category-item:hover .count-category-number {
    background: green;
    color: white;
    border: 1px solid white;
    font-weight: 700;
}

#page-posts-list .feature-link div img {
    height: 70px;
    object-fit: cover;
    object-position: top center;
}

/* Post detail */
#page-post-detail {
    background: url('/images/bg-post.jpg') fixed center no-repeat;
}

#page-post-detail .posted-at {
    color: gray;
}

#page-post-detail .post-title {
    color: green;
}

#page-post-detail .post-description {
    color: black;
}

#page-post-detail .posts-list {
    justify-content: center;
    gap: 1rem;
    display: flex;
    list-style: none;
}

#page-post-detail .post-item a {
    text-decoration: none;
}

#page-post-detail h2 {
    font-size: 1.25rem;
    background-color: green;
    color: white;
    width: fit-content;
    padding: 5px 10px;
    position: relative;
}

#page-post-detail h2:after {
    width: 30px;
    height: 100%;
}

#page-post-detail h2:after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 14px;
    height: 100%;
    background-color: inherit;
    clip-path: polygon(0 0, 0% 100%, 100% 50%);
}

#page-post-detail p img {
    max-width: 100%;
    height: auto;
}

#page-post-detail .post-item a img {
    border-radius: 20px;
}

#page-post-detail .post-item {
    border-radius: 20px;
    box-sizing: border-box;
    padding: 1rem;
    max-width: 45%;
    background-color: white;
}

#page-post-detail .post-item:hover {
    background: linear-gradient(to bottom right, white, rgb(162, 224, 162));
    opacity: 100%;
    transition: all 0.25s;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

#page-post-detail #post-suggest {
    padding: 3rem 2rem;
}

#page-post-detail .prev-post {
    position: relative;
}

#page-post-detail .prev-post::before {
    content: '<';
    font-family: 'Font Awesome 6 Free';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -10px;
}

#page-post-detail .prev-post a,
#page-post-detail .next-post a {
    width: fit-content;
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

#page-post-detail .prev-post a::after,
#page-post-detail .next-post a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: green;
    transition: all 0.3s ease;
}

#page-post-detail .prev-post:hover::before,
#page-post-detail .next-post:hover::before {
    color: green;
    font-weight: 700;
}

#page-post-detail .prev-post a:hover::after,
#page-post-detail .next-post a:hover::after {
    width: 100%;
    left: 0;
}

#page-post-detail .prev-post a:hover,
#page-post-detail .next-post a:hover {
    color: green;
    font-weight: 500;
}


#page-post-detail .next-post::before {
    content: '>';
    font-family: 'Font Awesome 6 Free';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -10px;
}

#page-post-detail .next-post {
    position: relative;
    text-align: right;
}

#page-post-detail .next-post a {
    margin-right: 0;
    margin-left: auto;
}

#page-post-detail .next-post a,
#page-post-detail .prev-post a {
    color: #707070;
    text-decoration: none;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

#page-post-detail .post-recommend .list-group-item:hover {
    cursor: pointer;
    color: white;
    background-color: green;
    transition: all 0.25s;
}

#page-post-detail .feature-image img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.2s ease-in-out;
}

#page-post-detail .list-group-item {
    border: 1px solid gray;
}

#page-post-detail .tag {
    font-size: 13px;
    padding: 5px 10px;
    background-color: #aeafae;
    border-radius: 50px;
    color: white;
    margin-right: 5px;
}

#page-post-detail .post-posted-at {
    font-size: 13px;
    color: #707070;
}

#page-post-detail .list-group-item:hover a {
    color: white;
}

#page-post-detail .no-post {
    padding: 95px !important;
}

#page-post-detail .post-recommend-title {
    padding: 1rem;
}

#page-post-detail .post-recommend {
    list-style-type: none;
}

#page-post-detail .post-recommend li {
    padding: 0;
}

#page-post-detail .feature-link {
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    color: black;
    border: 1px solid rgba(133, 214, 133, 0.5);
    padding: 1rem;
    transition: all 0.25s;
    border: 1px solid rgba(133, 214, 133, 0.5);
}

#page-post-detail .feature-image {
    width: 30%;
    overflow: hidden;
}

#page-post-detail .feature-title {
    width: 70%;
}

#page-post-detail .feature-link:hover #page-post-detail .post-recommend-item {
    color: green;
    background-color: #f3fdf7;
    box-shadow: 9px 9px 0px rgba(17, 138, 17, 0.5);
    transform: translate(-10px, -5px);
}

#page-post-detail .feature-link:hover {
    color: green;
    background-color: #f3fdf7;
    box-shadow: 9px 9px 0px rgba(17, 138, 17, 0.5);
    transform: translate(-10px, -5px);
}

#page-post-detail .feature-link:hover .feature-image img {
    transform: scale(1.05);
}