﻿/* ============================================================
   =====================  LIST PAGE (4 ITEMS)  =================
=============================================================== */

/*.post {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-item {
    width: calc(25% - 20px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    cursor: pointer;
}

    .post-item:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

.item-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-content {
    padding: 15px;
}

    .item-content h5 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .item-content p {
        color: #555;
        font-size: 0.95rem;
    }

    .item-content a {
        color: #007bff;
        font-weight: 600;
        text-decoration: none;
    }

        .item-content a:hover {
            text-decoration: underline;
        }*/

/* 3-line limit */
/*.limit-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}*/

/* ============================================================
   ======================= LIST CARD ==========================
=============================================================== */

/*.tintuc-container {
    max-width: 1200px;
}

.tintuc-title {
    font-weight: 800;
    font-size: 2rem;
    color: #333;
}

.tintuc-hr {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,#007bff,#00c6ff);
    margin: 0 auto 2rem;
    border-radius: 5px;
}

.tintuc-card,
.tintuckhac-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    cursor: pointer;
}

    .tintuc-card:hover,
    .tintuckhac-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.tintuc-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tintuc-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    height: 70px;
}

.tintuc-card-link {
    text-decoration: none;
    color: #222;
}

    .tintuc-card-link:hover {
        color: #007bff;
        text-decoration: underline;
    }

.tintuc-card-date {
    color: #888;
    font-size: 0.9rem;
}

.tintuc-card-summary,
.tintuckhac-card-summary {
    color: #555;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}*/

/* Pagination */
/*.pagination .page-link {
    border-radius: 6px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #007bff;
}

    .pagination .page-link:hover {
        background: #f0f8ff;
    }

.pagination .active .page-link {
    background: #007bff;
    color: #fff !important;
}

.pagination .disabled .page-link {
    color: #999;
}*/

/* ============================================================
   ======================== DETAIL PAGE ========================
=============================================================== */

/*#detail-container {
    width: 85%;
    margin: 10px auto 50px;
    display: flex;
    gap: 35px;
}

.detail-container {
    width: 60%;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

    .detail-container h3 {
        font-size: 1.9rem;
        font-weight: 800;
        margin-bottom: 15px;
    }

    .detail-container .meta {
        display: flex;
        gap: 20px;
        color: #777;
        margin-bottom: 25px;
    }

    .detail-container .content {
        font-size: 1.05rem;
        color: #333;
        line-height: 1.8;
    }

    .detail-container img {
        max-width: 100%;
        border-radius: 5px;
        display: block;
    }*/

/* Sidebar */
/*.bar-right {
    width: 30%;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

    .bar-right h4 {
        font-weight: 700;
        margin-bottom: 20px;
    }

.card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .card-container .item {
        display: flex;
        gap: 12px;
        align-items: center;
    }

        .card-container .item img {
            width: 90px;
            height: 65px;
            border-radius: 6px;
            object-fit: cover;
        }*/


/* Tablet */
/*@media (max-width: 992px) {

    .post-item {
        width: calc(50% - 20px);
    }

    .tintuc-img {
        height: 200px;
    }

    .tintuc-card-summary {
        -webkit-line-clamp: 4;
    }

    #detail-container {
        width: 95%;
        gap: 25px;
    }

    .detail-container {
        width: 65%;
    }

    .bar-right {
        width: 35%;
    }
}*/

/* Mobile */
/*@media (max-width: 768px) {

    #detail-container {
        flex-direction: column;
        width: 95%;
        margin-left: 2.5%;
    }

    .detail-container,
    .bar-right {
        width: 100%;
    }
    .post{
        width: 95% !important;
        margin-left: 2.5%;
    }
    .bar-right {
        position: static;
    }
    .tintuckhac-row .item{
        width: 100%;
    }
    .tintuc-container, .tintuckhac-container {
        width: 107% !important;
    }
    .post-item {
        width: 90%;
    }
    .post-container{
        width: 90%;
        margin-left:2.5%;
    }
}*/

/* Mobile nhỏ */
/*@media (max-width: 576px) {
    .post-item {
        width: 100%;
    }

    .tintuckhac-row .item {
        width: 100%;
    }
    .tintuc-container, .tintuckhac-container {
        width: 107% !important;
    }
    .detail-container,
    .bar-right {
        width: 100%;
    }

    .post {
        width: 95%;
        margin-left: 2.5%;
    }

    .bar-right {
        position: static;
    }

}*/
/* ===================== LIST PAGE ===================== */

.post {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-item {
    width: calc(25% - 20px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    cursor: pointer;
}

    .post-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.item-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-content {
    padding: 15px;
}

    .item-content h5 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .item-content p {
        color: #555;
        font-size: 0.95rem;
    }

    .item-content a {
        color: #007bff;
        font-weight: 600;
        text-decoration: none;
    }

        .item-content a:hover {
            text-decoration: underline;
        }

.limit-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#detail-container {
    width: 85%;
    margin: 10px auto 50px;
    display: flex;
    gap: 35px;
}

.detail-container {
    width: 100%;
    background: #fff;
/*    padding: 10p;*/
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

    .detail-container h3 {
        font-size: 1.9rem;
        font-weight: 800;
        margin-bottom: 15px;
    }

    .detail-container .meta {
        display: flex;
        gap: 20px;
        color: #777;
        margin-bottom: 25px;
    }

    .detail-container .content {
        font-size: 1.05rem;
        color: #333;
        line-height: 1.8;
    }

    .detail-container img {
        max-width: 100%;
        border-radius: 5px;
        display: block;
    }

/* Sidebar */
.bar-right {
    width: 30%;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}
    .bar-right h4 {
        font-weight: 700;
        margin-bottom: 20px;
    }

.card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .card-container .item {
        display: flex;
        gap: 12px;
        align-items: center;
    }

        .card-container .item img {
            width: 90px;
            height: 65px;
            border-radius: 6px;
            object-fit: cover;
        }


/* ===================== CARD ===================== */

.tintuc-container {
    max-width: 1200px;
    margin: auto;
}

.tintuc-title {
    font-weight: 800;
    font-size: 2rem;
    color: #333;
}

.tintuc-hr {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    margin: 0 auto 2rem;
    border-radius: 5px;
}

.tintuc-card, .tintuckhac-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    cursor: pointer;
}

    .tintuc-card:hover, .tintuckhac-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.tintuc-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tintuc-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    height: 70px;
}

.tintuc-card-link {
    text-decoration: none;
    color: #222;
}

    .tintuc-card-link:hover {
        color: #007bff;
        text-decoration: underline;
    }

.tintuc-card-summary,
.tintuckhac-card-summary {
    color: #555;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #007bff;
}

.pagination .active .page-link {
    background: #007bff;
    color: #fff !important;
}

.pagination .page-link:hover {
    background: #f0f8ff;
}
.detail-content {
/*    width: 90%;*/
    margin: 0 1%;
}
@media (max-width: 600px) {
    .post-item {
        width: 100%;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: 0.3s;
        cursor: pointer;
    }
     #detail-container {
        width: 100%;
        margin: 0 auto;
    }
    .tintuc-container, .tintuckhac-container {
        width: 100%;
        margin: 0 auto;
    }
    .bar-right{
        display: none;
    }
    .tintuckhac-card {
        width: 96%;
        margin:0 2%;
    }
    .detail-content {
        width: 90%;
        margin: 0 5%;
    }
    .detail-container h3 {
        margin: 0 5%;
    }
    .breadcrumb {
        width: 100% !important;
        /*        margin: 0 1%;*/
    }

    .content {
        margin: 0 auto !important;
    }
}

@media(max-width: 400px) {
    .tintuckhac-card {
        margin-left: 4%;
        width: 100%;
    }
    .detail-content {
        width: 90%;
        margin: 0 5%;
    }
    .detail-container h3 {
        margin: 0 5%;
    }
    .tintuc-row {
        width: 110%;
    }
    .breadcrumb {
        width: 100% !important;
/*        margin: 0 1%;*/
    }
    .content {
        margin: 0 auto !important;
    }
    
}