body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* --- Branding / Logo --- */
.site-branding .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #007cba;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

/* --- Desktop Menu --- */
.main-navigation .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation .nav-list li a {
    text-decoration: none;
    color: #475569;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation .nav-list li a:hover,
.main-navigation .nav-list li.current-menu-item a {
    color: #007cba;
}

/* Hiệu ứng gạch chân mượt mà khi hover */
.main-navigation .nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007cba;
    transition: width 0.3s ease;
}

.main-navigation .nav-list li a:hover::after,
.main-navigation .nav-list li.current-menu-item a::after {
    width: 100%;
}

/* --- Nút Mobile Toggle (Mặc định ẩn) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Hiện nút bấm trên mobile */
    }

    .main-navigation {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #f1f5f9;
        
        /* Hiệu ứng trượt ẩn hiện */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .main-navigation.is-active {
        max-height: 400px; /* Chiều cao mở rộng tối đa */
    }

    .main-navigation .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 20px;
    }

    .main-navigation .nav-list li {
        width: 100%;
        border-bottom: 1px dashed #e2e8f0;
    }

    .main-navigation .nav-list li:last-child {
        border-bottom: none;
    }

    .main-navigation .nav-list li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    /* Tắt hiệu ứng gạch chân trên mobile */
    .main-navigation .nav-list li a::after {
        display: none;
    }
}

/* =========================================
   GIAO DIỆN HỒ SƠ CHI TIẾT THÀNH VIÊN
   ========================================= */

.pha-he-profile-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Cột trái */
.profile-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f8fafc;
    box-shadow: 0 0 0 2px #007cba;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.profile-meta-list {
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.profile-meta-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    color: #475569;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}

.profile-meta-list li strong {
    color: #1e293b;
}

/* Nội dung chính Cột phải */
.profile-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 20px;
    color: #0f172a;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.profile-content {
    line-height: 1.7;
    color: #334155;
}

/* Grid Quan hệ gia đình */
.relations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.relation-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
}

.relation-box h3 {
    font-size: 16px;
    color: #334155;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.relation-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.relation-box li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.relation-box a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.relation-box a:hover {
    text-decoration: underline;
}

.rel-tag {
    font-size: 12px;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
}

.empty-text {
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   TRANG TIN TỨC: PHONG CÁCH TỐI GIẢN (GIỐNG MA.TT)
   ========================================== */

/* 1. VÙNG CHỨA CHÍNH (Thu hẹp lại để tối ưu chiều dài dòng đọc) */
.dong-ho-news-container {
    max-width: 740px; /* Bề rộng "tỷ lệ vàng" cho việc đọc chữ */
    margin: 60px auto;
    padding: 0 20px;
    /* Dùng font chữ hệ thống sạch sẽ, rõ ràng giống giao diện gốc của WordPress */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 2. KHU VỰC TIÊU ĐỀ TRANG */
.news-header {
    text-align: left; /* Đưa về căn trái chuẩn blog */
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 4px solid #000000; /* Đường viền đen đậm dứt khoát */
}

.news-title {
    color: #111111;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px; /* Ép chữ lại một chút cho hiện đại */
    margin: 0;
}

.news-description {
    color: #555555;
    font-size: 18px;
    margin-top: 15px;
    line-height: 1.6;
}

/* 3. BỐ CỤC DANH SÁCH (Hủy bỏ Grid, đưa về 1 cột) */
.news-grid {
    display: block; /* Trở về luồng văn bản chảy dọc bình thường */
}

/* 4. TỪNG BÀI VIẾT (Loại bỏ hoàn toàn viền và đổ bóng) */
.news-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 70px; /* Khoảng cách siêu rộng giữa các bài viết */
    padding-bottom: 70px;
    border-bottom: 1px solid #e5e5e5; /* Đường kẻ ngang mỏng phân cách các bài */
}

/* Bỏ đường kẻ ngang ở bài viết cuối cùng */
.news-card:last-child {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

/* Tắt hiệu ứng nảy (hover) của dạng thẻ */
.news-card:hover {
    transform: none;
    box-shadow: none;
}

/* 5. ẢNH ĐẠI DIỆN */
.news-thumbnail {
    width: 100%;
    margin-bottom: 30px; /* Đẩy nội dung xuống dưới ảnh */
    display: block;
}

.news-thumbnail img {
    width: 100%;
    height: auto; /* Để ảnh hiển thị tự nhiên, không bị cắt cúp ép buộc */
    border-radius: 4px; /* Bo góc cực nhẹ cho mềm mại */
}

/* 6. NỘI DUNG VÀ KIỂU CHỮ (Linh hồn của phong cách ma.tt) */
.news-content {
    padding: 0;
}

/* Meta: Ngày tháng, tác giả */
.news-meta {
    color: #777777;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.news-meta .dashicons {
    display: none; /* Ẩn các icon đi để giao diện chữ tuyệt đối dọn dẹp */
}

/* Tiêu đề bài viết: Siêu to, đậm, màu đen tuyền */
.news-heading {
    margin: 0 0 20px 0;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
}

.news-heading a {
    color: #111111;
    text-decoration: none;
}

/* Gạch chân màu xanh (hoặc đổi màu) khi trỏ chuột vào tiêu đề */
.news-heading a:hover {
    color: #005a87;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Đoạn trích dẫn: Chữ to, dễ đọc, khoảng cách dòng rộng */
.news-excerpt {
    color: #333333;
    line-height: 1.8; /* Dãn dòng chuẩn sách in */
    font-size: 18px; /* Tăng cỡ chữ để người lớn tuổi đọc không mỏi mắt */
    margin-bottom: 25px;
}

/* Nút Xem chi tiết: Biến thành đường link text đơn giản */
.news-readmore {
    display: inline-block;
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

.news-readmore:hover {
    color: #111111;
    text-decoration: underline;
}

/* 7. THÔNG BÁO RỖNG & NÚT TẢI THÊM */
.empty-news {
    text-align: left;
    padding: 40px 0;
    color: #777;
    font-size: 18px;
    font-style: italic;
}

.news-load-more-wrap {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
}

.btn-load-more {
    /* Thêm dòng này để ẩn mặc định */
    display: none;
    background: transparent;
    color: #111111;
    border: 2px solid #111111; /* Nút bấm dạng viền thô (Ghost button) */
    padding: 12px 35px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: #111111;
    color: #ffffff;
}

.btn-load-more:disabled {
    border-color: #cccccc;
    color: #cccccc;
    cursor: not-allowed;
    background: transparent;
}

/* 8. MOBILE RESPONSIVE TỰ ĐỘNG MƯỢT MÀ */
@media (max-width: 600px) {
    .news-title { font-size: 32px; }
    .news-heading { font-size: 26px; }
    .news-excerpt { font-size: 16px; }
    .news-card { margin-bottom: 50px; padding-bottom: 50px; }
}

/* ==========================================
   CHI TIẾT BÀI VIẾT: PHONG CÁCH MA.TT
   ========================================== */

/* 1. KHUNG BÀI VIẾT */
.ma-tt-single-container {
    max-width: 740px; /* Độ rộng hoàn hảo cho việc đọc */
    margin: 60px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
}

/* 2. HEADER */
.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #111111;
    letter-spacing: -1px;
    margin: 0 0 15px 0;
}

.article-meta {
    font-size: 15px;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 3. ẢNH ĐẠI DIỆN */
.article-thumbnail {
    margin: 0 0 40px 0;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 4. NỘI DUNG (Typography Formatting) */
.article-content {
    font-size: 19px;
    line-height: 1.8; /* Dãn dòng lớn giúp dễ đọc */
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2, 
.article-content h3 {
    color: #111111;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-content h2 { font-size: 28px; }
.article-content h3 { font-size: 22px; }

.article-content a {
    color: #007cba;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #111111;
}

/* Khối trích dẫn (Blockquote) chuẩn báo chí */
.article-content blockquote {
    margin: 30px 0;
    padding: 10px 20px;
    border-left: 4px solid #111111;
    font-style: italic;
    font-size: 22px;
    color: #555555;
    background: transparent;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* ==========================================
   BÀI VIẾT LIÊN QUAN (MA.TT STYLE)
   ========================================== */
.ma-tt-related-posts {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0; /* Đường kẻ mỏng như ma.tt */
}

.related-title {
    font-size: 13px;
    font-weight: 800;
    color: #111;
    text-transform: none;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ép hiển thị đúng 3 cột */
    gap: 20px;
}

.related-item a {
    text-decoration: none;
    display: block;
}

/* Cập nhật thuộc tính cho ảnh bài viết liên quan */

.related-item img, .related-item div {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9; /* Ép cứng khung hình về tỷ lệ 16:9 cố định */
    object-fit: cover;    /* Giúp ảnh phủ kín khung, tự động cắt bỏ phần thừa thay vì bị bóp méo */
    display: block;
    margin-bottom: 10px;
    border: 1px solid #eaeaea;
}

.related-item-title {
    font-size: 14px;
    color: #4a7e9b; /* Màu xanh nước biển đặc trưng của link ma.tt */
    line-height: 1.4;
    display: block;
}

.related-item a:hover .related-item-title {
    color: #111;
    text-decoration: underline;
}

/* ==========================================
   KHU VỰC BÌNH LUẬN (SPEECH BUBBLES MA.TT)
   ========================================== */
.ma-tt-comments-area {
    margin-top: 80px;
    /* Có thể set background màu kem nhạt cho body để bong bóng trắng nổi bật hơn */
}

.comments-title {
    font-family: serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 400;
    color: #555;
    margin-bottom: 40px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cấu trúc mỗi bình luận */
.comment-list li.comment {
    position: relative;
    margin-bottom: 30px;
}

/* BONG BÓNG CHAT CHÍNH (Vùng trắng chứa text) */
.comment-list li.comment > article {
    background: #ffffff;
    margin-left: 70px; /* Nhường 70px bên trái cho Avatar */
    padding: 20px 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08); /* Đổ bóng nhẹ để tách khỏi nền */
    position: relative;
}

/* CÁI MỎ QUẠ ĐUÔI BONG BÓNG (Hình tam giác chĩa sang trái) */
.comment-list li.comment > article::before {
    content: '';
    position: absolute;
    left: -12px; /* Thò ra ngoài hộp trắng */
    top: 20px;
    border-width: 10px 12px 10px 0;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

/* AVATAR: Rút ra khỏi hộp trắng và ghim vào lề trái */
.comment-author img.avatar {
    position: absolute;
    left: -70px;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 0; /* Avatar vuông chuẩn ma.tt */
}

/* TÊN TÁC GIẢ & NGÀY GIỜ */
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.comment-author .fn, 
.comment-author .fn a {
    color: #d35400; /* Màu cam gạch (Rust Orange) */
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
}

.comment-metadata a {
    color: #d35400;
    font-size: 12px;
    text-decoration: none;
    opacity: 0.8;
}

/* NỘI DUNG BÌNH LUẬN */
.comment-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.comment-content p {
    margin-bottom: 10px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* NÚT TRẢ LỜI CÓ MŨI TÊN (↪ Reply) */
.reply {
    margin-top: 15px;
}

.reply a {
    color: #d35400;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.reply a::before {
    content: '\21AA'; /* Mã Unicode của mũi tên móc cong ↪ */
    margin-right: 5px;
    font-size: 16px;
}

/* BÌNH LUẬN CON (REPLIES LÙI VÀO TRONG) */
.comment-list .children {
    margin-left: 70px;
    margin-top: 30px;
}

/* ==========================================
   FORM TRẢ LỜI MÀU XANH LÁ (REPLY BOX)
   ========================================== */
#respond.comment-respond {
    background: #8cb85c; /* Màu xanh lá ma.tt */
    padding: 25px;
    border-radius: 2px;
    margin-top: 40px;
    position: relative;
}

/* Chữ "Reply to..." in nghiêng to */
.comment-reply-title {
    font-family: serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    color: #3b5323; /* Xanh lá thẫm */
    margin-bottom: 20px;
    display: block;
}

.comment-reply-title small a {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #3b5323;
    font-size: 20px;
    text-decoration: none;
}

/* Ô nhập text */
.comment-form textarea, 
.comment-form input[type="text"], 
.comment-form input[type="email"] {
    width: 100%;
    background: #e1eed4; /* Nền xanh lá cực nhạt cho ô text */
    border: none;
    padding: 15px;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    margin-bottom: 15px;
    resize: vertical;
}

.comment-form textarea:focus, 
.comment-form input:focus {
    outline: none;
    background: #ffffff;
}

/* Nút Submit màu trắng góc phải */
.form-submit {
    text-align: right;
    margin: 0;
}

.comment-form .submit {
    background: #ffffff;
    color: #8cb85c;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: #f1f5f9;
    color: #3b5323;
}

/* RESPONSIVE TRÊN ĐIỆN THOẠI */
@media (max-width: 600px) {
    .related-grid { grid-template-columns: 1fr; } /* Lưới thành 1 cột */
    
    .comment-list li.comment > article {
        margin-left: 0;
        padding-top: 40px; /* Đẩy chữ xuống nhường chỗ cho Avatar */
    }
    
    .comment-list li.comment > article::before { display: none; } /* Giấu mỏ quạ */
    
    .comment-author img.avatar {
        left: 20px;
        top: -24px; /* Trồi Avatar lên trên mép hộp */
    }
    
    .comment-list .children { margin-left: 20px; }
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .article-title { font-size: 32px; }
    .article-content { font-size: 17px; }
}

/* ==========================================
   FOOTER (BẢN QUYỀN)
   ========================================== */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea; /* Đường kẻ ngang mỏng phân cách nội dung */
    padding: 30px 20px;
    margin-top: 60px; /* Tạo khoảng trống để không bị dính vào nội dung phía trên */
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .copyright {
    margin: 0;
    color: #777777; /* Màu xám mờ để không tranh giành sự chú ý */
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}