/*
Theme Name: CongPeppy
Description: Theme đơn giản, hiển thị 5 cột, chỉ gồm tiêu đề và số thứ tự.
Author: Gemini
Version: 1.0
*/

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

.container {
    width: 96%;
    max-width: 1800px;
    margin: 40px auto;
}

/* Chia 5 cột bằng Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Định dạng từng bài viết */
.post-item {
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 120px;
}

/* Hiệu ứng nổi bật khi rê chuột (Hover) */
.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #cccccc;
}

.post-number {
    font-size: 14px;
    color: #888888;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 1px;
}

.post-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive cho điện thoại / Tablet */
@media (max-width: 1200px) {
    .post-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; }
}

/* Style cho trang chi tiết */
.single-post-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}


/* --- CSS CHO HEADER & FOOTER --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    padding: 30px 0;
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.site-title a {
    color: #333333;
    text-decoration: none;
}

.site-description {
    color: #888888;
    font-size: 14px;
    margin-top: 10px;
}

.site-footer {
    background-color: #fafafa;
    border-top: 1px solid #eeeeee;
    padding: 30px 0;
    text-align: center;
    color: #888888;
    font-size: 14px;
    margin-top: 50px;
}

/* Chỉnh lại số thứ tự thành màu xám nhạt và bớt đậm đi một chút */
.post-number {
    font-size: 28px !important; 
    color: #999999 !important; /* Đổi sang màu xám nhạt */
    margin-bottom: 10px;
    font-weight: 700 !important; /* Giảm độ đậm xuống để nhường sự chú ý cho Tiêu đề */
    letter-spacing: 2px;
}

/* Set kích thước 16px cho toàn bộ chữ trong phần nội dung bài viết */
.post-content,
.post-content p,
.post-content li {
    font-size: 18px;
    line-height: 1.7; /* Chỉnh khoảng cách giữa các dòng cho dễ đọc */
    color: #333333;
}

/* Style cho phần Catalo (Danh mục) */
.post-categories {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.cat-tag {
    padding: 5px 12px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

/* Căn chỉnh lại ở trang chi tiết bài viết */
.single-post-categories {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Sửa lại CSS để cấu trúc link mới nằm canh giữa hoàn hảo */
.post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cat-tag {
    /* Đảm bảo khi có link chữ vẫn màu trắng và không bị gạch chân */
    text-decoration: none !important;
    color: #ffffff !important; 
    transition: opacity 0.2s;
}

.cat-tag:hover {
    opacity: 0.85; /* Hiệu ứng sáng mờ nhẹ khi rê chuột vào danh mục */
}