/*
Theme Name: theme-seotech 
Fix triệt để lỗi font Title và cập nhật giao diện Category - KNC
*/

/* 1. Reset & Global Styles - Ép font cho toàn bộ section */
.section-category, 
.section-category h1, 
.section-category h2, 
.section-category h3, 
.section-category a, 
.section-category div, 
.section-category span {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

.section-category {
    padding: 60px 0;
    background-color: #FEEFD5; /* Màu nền kem đặc trưng */
}

.category-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

/* 2. Masonry Layout Grid */
.grid {
    column-count: 4;
    column-gap: 25px;
}

/* 3. Card Styles */
.card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 25px; 
    display: inline-block; 
    width: 100%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* 4. Thumbnail & Image */
.card-img {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.card-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

/* 5. Post Content & Title Fix */
.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.15rem !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-family: 'Be Vietnam Pro', sans-serif !important; /* Đảm bảo fix font */
}

.card-title a {
    color: #0056a7 !important;
    text-decoration: none !important;
    transition: color 0.3s;
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

.card-title a:hover {
    color: #E6B800 !important;
}

.card-desc {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 6. Button & Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    display: inline-block;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 18px;
    background: linear-gradient(45deg, #0056a7, #00c6ff);
    color: #fff !important;
    border-radius: 20px;
    text-decoration: none !important;
    transition: 0.3s;
}

/* 7. Pagination */
.pagination-wrapper {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #fff;
    border-radius: 10px;
    color: #0056a7 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.pagination-wrapper .page-numbers.current {
    background: #0056a7 !important;
    color: #fff !important;
}

/* 8. Animations & Clean up */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date, .post-date, .entry-date, .date-meta {
    display: none !important;
}

/* 9. Responsive Layout */
@media (max-width: 1100px) {
    .grid { column-count: 3; }
}
@media (max-width: 850px) {
    .grid { column-count: 2; }
}
@media (max-width: 600px) {
    .grid { column-count: 1; }
    .card-title { font-size: 1rem !important; }
}