/**
 * Category Pages Style
 * Sử dụng common.css cho các style chung (fonts, breadcrumb, layout)
 */

.title-main-new .title-left {
    font-size: 16px;
    font-family: 'VJAMAI', sans-serif;
    color: #ffffff;
}

@media only screen and (min-width: 768px) {
    .title-main-new .title-left {
        font-size: 20px;
    }
}

.title-main-new .date-open-right {
    color: #ffdf7e;
    font-size: 14px;
}

@media only screen and (min-width: 768px) {
    .title-main-new .date-open-right {
        font-size: 18px;
    }
}

/* List New Page */
.list-new-page {
    padding: 0 5px;
    margin-top: 20px;
    padding-bottom: 10px;
}

@media only screen and (min-width: 768px) {
    .list-new-page {
        margin-top: 30px;
        padding: 0 10px;
        padding-bottom: 30px;
    }
}

/* Item New */
.list-new-page .item-new {
    padding: 5px;
    background: #efecde;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

@media only screen and (min-width: 768px) {
    .list-new-page .item-new {
        margin-bottom: 30px;
        padding: 10px;
    }
}

.list-new-page .item-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-new-page .item-new a {
    color: #291107;
    text-decoration: none;
    display: block;
}

/* Thumb */
.list-new-page .item-new .thumb {
    float: left;
    margin-right: 10px;
}

.list-new-page .item-new .thumb img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

@media only screen and (min-width: 768px) {
    .list-new-page .item-new .thumb img {
        width: 216px;
        height: 216px;
    }
}

/* Full Text */
.list-new-page .item-new .full-text {
    margin-left: 8px;
    width: calc(100% - 120px);
    float: left;
}

@media only screen and (min-width: 768px) {
    .list-new-page .item-new .full-text {
        margin-left: 15px;
        width: calc(100% - 235px);
    }
}

/* Title New Date */
.list-new-page .item-new .full-text .title-new-date {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #12181f;
    clear: both;
}

@media only screen and (min-width: 768px) {
    .list-new-page .item-new .full-text .title-new-date {
        padding: 10px 0;
        font-size: 20px;
    }
}

.list-new-page .item-new .full-text .title-new-date .title-new {
    float: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    font-family: 'VJAMAI', sans-serif;
    font-weight: normal;
}

@media only screen and (min-width: 768px) {
    .list-new-page .item-new .full-text .title-new-date .title-new {
        width: 92%;
    }
}

.list-new-page .item-new .full-text .title-new-date .title-new span {
    color: #4f1906;
    font-family: 'VJAMAI', sans-serif;
}

.list-new-page .item-new .full-text .title-new-date .date-open {
    float: right;
    color: #888888;
    font-size: 12px;
}

@media only screen and (min-width: 768px) {
    .list-new-page .item-new .full-text .title-new-date .date-open {
        font-size: 16px;
    }
}

/* Des Text */
.list-new-page .item-new .full-text .des-text {
    margin-top: 10px;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    line-height: 1.6;
}

@media only screen and (min-width: 768px) {
    .list-new-page .item-new .full-text .des-text {
        margin-top: 15px;
        font-size: 15px;
        -webkit-line-clamp: 6;
    }
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

@media only screen and (min-width: 768px) {
    .pagination {
        margin-top: 40px;
    }
}

.pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination ul li {
    width: 58px;
    height: 30px;
    background: #0d2031;
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    margin: 0 -5px;
    transition: all 0.3s ease;
}

@media only screen and (min-width: 768px) {
    .pagination ul li {
        width: 78px;
        height: 40px;
    }
}

.pagination ul li.active,
.pagination ul li:hover {
    background: #ffdf7e;
}

.pagination ul li a {
    font-family: 'VJAMAI', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

@media only screen and (min-width: 768px) {
    .pagination ul li a {
        font-size: 18px;
    }
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-family: 'VJAMAI', sans-serif;
}

.no-posts p {
    font-size: 16px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px 0 15px;
    }
    
    .main-content-news {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .list-new-page .item-new {
        padding: 10px;
    }
    
    .list-new-page .item-new .thumb {
        float: none;
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .list-new-page .item-new .thumb img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .list-new-page .item-new .full-text {
        margin-left: 0;
        width: 100%;
        float: none;
    }
    
    .pagination ul {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination ul li {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px 0 10px;
    }
    
    .title-main-new {
        padding: 15px 8px;
        flex-direction: column;
        gap: 10px;
    }
    
    .list-new-page {
        padding: 0;
    }
    
    .list-new-page .item-new {
        padding: 8px;
        margin-bottom: 15px;
    }
    
    .list-new-page .item-new .full-text .title-new-date {
        font-size: 13px;
    }
    
    .list-new-page .item-new .full-text .title-new-date .title-new {
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
    }
}
