/* ========================================================
   Decox Design - Category Stylesheet (category.css)
   Applied on category.php & archive.php
   ======================================================== */

.category-header {
    margin: 15px 0 25px;
    text-align: center;
}
.category-header h1.in {
    font-size: 28px;
    color: #264c5d;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.category-header .category-desc {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    max-width: 900px;
    margin: 0 auto;
}
.listnews {
    margin: 0 -10px 20px;
    display: flex;
    flex-wrap: wrap;
}
.listnews::after {
    content: ' ';
    display: block;
    clear: both;
}
.listnews li {
    width: 33.333%;
    padding: 0 10px 20px;
    box-sizing: border-box;
}
.listnews .pad {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ececec;
    transition: transform .3s ease, box-shadow .3s ease;
}
.listnews .pad:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.listnews .images {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}
.listnews .images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.listnews .pad:hover .images img {
    transform: scale(1.05);
}
.listnews .info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.listnews .info h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 700;
}
.listnews .info h3 a {
    color: #264c5d;
    text-decoration: none;
    transition: color .2s;
}
.listnews .info h3 a:hover {
    color: #aa0f15;
}
.listnews .info p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination-wrap {
    margin: 30px auto;
    text-align: center;
    clear: both;
}
.pagination-wrap .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #264c5d;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
    background: #264c5d;
    color: #fff;
    border-color: #264c5d;
}

/* Collapsible toggle */
.shadowdmx { position: relative; text-align: center; margin: 15px auto; }
.read-more {
    display: inline-block; color: #264c5d; font-weight: 600; font-size: 14px;
    cursor: pointer; padding: 6px 16px; border: 1px solid #e0e0e0;
    border-radius: 20px; background: #f9f9f9; text-decoration: none;
}
.read-more:hover { background: #264c5d; color: #fff; border-color: #264c5d; }

@media screen and (max-width: 991px) {
    .listnews li { width: 50%; }
}
@media screen and (max-width: 576px) {
    .listnews li { width: 100%; }
    .category-header h1.in { font-size: 22px; }
}
