/*
Theme Name: Thẩm Định Phong Thủy
Theme URI: https://thamdinhphongthuy.com
Author: Thẩm Định Phong Thủy Team
Author URI: https://thamdinhphongthuy.com
Description: Giao diện cổng thông tin Thẩm Định Phong Thủy – 2 sidebar, phong cách Facebook, có trang hồ sơ, bài viết, hỏi đáp, tra cứu phong thủy, đăng ký, đăng nhập.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tdpt
Tags: two-columns, three-columns, custom-header, custom-menu, featured-images, translation-ready
*/

/* =============================================
   VARIABLES
   ============================================= */
:root {
    --blue:         #1877f2;
    --blue-dark:    #0f5dc4;
    --blue-light:   #e7f0fd;
    --blue-mid:     #4293f5;
    --bg:           #f0f2f5;
    --card:         #ffffff;
    --text:         #1c1e21;
    --text-sub:     #65676b;
    --border:       #dde1e8;
    --radius:       8px;
    --shadow:       0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 16px rgba(24,119,242,0.15);
    --nav-h:        48px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #b3c8f5; border-radius: 4px; }

/* =============================================
   TOP NAVIGATION
   ============================================= */
#top-nav {
    background: var(--blue);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.22);
    gap: 10px;
}
#top-nav .site-branding a {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
}
#top-nav .site-branding a span.logo-icon { font-size: 20px; }
.nav-search {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 4px 13px;
    gap: 8px;
}
.nav-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 150px;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.65); }
.nav-search i { color: rgba(255,255,255,0.75); font-size: 12px; }
.nav-menu-main {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    flex-wrap: nowrap;
}
.nav-menu-main a {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 6px;
    transition: background 0.18s;
    text-decoration: none;
    white-space: nowrap;
}
.nav-menu-main a:hover,
.nav-menu-main a.active { background: rgba(255,255,255,0.18); }
.nav-right-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.nav-right-actions a {
    color: rgba(255,255,255,0.9);
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    transition: background 0.18s;
    text-decoration: none;
    white-space: nowrap;
}
.nav-right-actions a:hover { background: rgba(255,255,255,0.18); }
.nav-right-actions a.btn-login {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.38);
}
.nav-right-actions a.btn-register {
    background: #fff;
    color: var(--blue);
    font-weight: 700;
}
.nav-right-actions a.btn-register:hover { background: var(--blue-light); }
.nav-right-actions a.btn-user {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.38);
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 14px 0;
}

/* =============================================
   SITE HEADER BANNER
   ============================================= */
#site-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.header-banner {
    flex: 0 0 74%;
    height: 200px;
    background: linear-gradient(135deg,#1877f2 0%,#0a4fa8 40%,#1565c0 100%);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}
.header-banner img.banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(10,60,140,0.6) 0%,rgba(10,60,140,0.1) 100%);
    z-index: 1;
}
.header-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 20px;
}
.header-logo-circle {
    width: 76px;
    height: 76px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--blue);
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    flex-shrink: 0;
}
.header-text h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    line-height: 1.2;
    margin-bottom: 7px;
}
.header-text p {
    color: rgba(255,255,255,0.85);
    font-size: 13.5px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}
.header-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.header-stats .stat-item {
    background: rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 4px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.3);
}
.header-info-box {
    flex: 1;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.header-info-box .ib-title {
    background: var(--blue);
    color: #fff;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.header-info-box .ib-body {
    flex: 1;
    padding: 12px 14px;
    overflow: hidden;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
}
/* Logged-in user in info box */
.user-info-card { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.user-info-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg,var(--blue),var(--blue-mid));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.user-info-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info-name { font-weight: 700; font-size: 14px; color: var(--text); }
.user-info-role { font-size: 11.5px; color: var(--text-sub); }
.user-quick-links { display: flex; flex-direction: column; gap: 4px; }
.user-quick-links a { font-size: 12px; color: var(--blue); display: flex; align-items: center; gap: 6px; }
.user-quick-links a:hover { text-decoration: none; opacity: 0.8; }

/* =============================================
   3-COLUMN LAYOUT
   ============================================= */
.tdpt-layout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.tdpt-left {
    flex: 0 0 15%;
    position: sticky;
    top: calc(var(--nav-h) + 12px);
    max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
}
.tdpt-left::-webkit-scrollbar { width: 3px; }
.tdpt-center {
    flex: 1;
    min-width: 0;
}
.tdpt-right {
    flex: 0 0 25%;
    position: sticky;
    top: calc(var(--nav-h) + 12px);
    max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
}
.tdpt-right::-webkit-scrollbar { width: 3px; }

/* =============================================
   CARD COMPONENT
   ============================================= */
.tdpt-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.tdpt-card-header { border-radius: var(--radius) var(--radius) 0 0; }
.tdpt-card-header {
    background: var(--blue);
    color: #fff;
    padding: 8px 13px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tdpt-card-header .ch-left { display: flex; align-items: center; gap: 6px; }
.tdpt-card-header a.see-all {
    color: rgba(255,255,255,0.82);
    font-size: 11px;
    font-weight: 400;
    text-decoration: none;
    flex-shrink: 0;
}
.tdpt-card-header a.see-all:hover { color: #fff; }
.tdpt-card-body { padding: 12px; }
.tdpt-card-body.padsm { padding: 8px; }

/* =============================================
   LEFT SIDEBAR
   ============================================= */
.sb-nav li a {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px; border-radius: 6px;
    color: var(--text); font-size: 13px; font-weight: 500;
    transition: all 0.15s; text-decoration: none;
}
.sb-nav li a:hover,
.sb-nav li.current-menu-item > a {
    background: var(--blue-light); color: var(--blue);
}
.sb-nav li a i { width: 18px; text-align: center; color: var(--blue); font-size: 13px; flex-shrink: 0; }

.sb-contact li a {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 10px; border-radius: 6px;
    color: var(--text-sub); font-size: 12.5px;
    transition: all 0.15s; text-decoration: none;
}
.sb-contact li a:hover { background: var(--blue-light); color: var(--blue); }
.sb-contact li a i { width: 16px; text-align: center; font-size: 12px; color: var(--blue); flex-shrink: 0; }

.sb-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.sb-stat-row:last-child { border-bottom: none; }
.sb-stat-row .label { color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
.sb-stat-row .value { font-weight: 700; color: var(--blue); font-size: 13px; }
.sb-stat-row .value.online { color: #2e7d32; }
.sb-stat-icon { color: var(--blue); font-size: 11px; width: 14px; text-align: center; }

/* =============================================
   TABS
   ============================================= */
.tdpt-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 10px; }
.tdpt-tab-btn {
    flex: 1; padding: 7px 5px; background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    cursor: pointer; font-size: 12px; font-weight: 600;
    color: var(--text-sub); transition: all 0.15s;
}
.tdpt-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tdpt-tab-pane { display: none; }
.tdpt-tab-pane.active { display: block; }

/* =============================================
   RIGHT SIDEBAR: POST LIST
   ============================================= */
.sb-post-item {
    display: flex; gap: 9px; padding: 7px 0;
    border-bottom: 1px solid var(--border); align-items: flex-start;
}
.sb-post-item:last-child { border-bottom: none; }
.sb-post-thumb {
    width: 54px; height: 42px; border-radius: 5px; overflow: hidden;
    flex-shrink: 0; background: var(--blue-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-size: 17px;
}
.sb-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-post-info { flex: 1; min-width: 0; }
.sb-post-info .title {
    font-size: 12px; font-weight: 600; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.4; margin-bottom: 2px; text-decoration: none;
}
.sb-post-info .title:hover { color: var(--blue); }
.sb-post-info .meta { font-size: 10.5px; color: var(--text-sub); }

/* RIGHT SIDEBAR: PROFILE MINI */
.sb-profile-item {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 0; border-bottom: 1px solid var(--border);
}
.sb-profile-item:last-child { border-bottom: none; }
.sb-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg,var(--blue),var(--blue-mid));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px;
    flex-shrink: 0; overflow: hidden;
}
.sb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sb-profile-info { flex: 1; min-width: 0; }
.sb-profile-info .name {
    font-size: 12.5px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none; display: block;
}
.sb-profile-info .name:hover { color: var(--blue); }
.sb-profile-info .meta { font-size: 11px; color: var(--text-sub); }
.badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px;
}
.badge-approved { background: #e8f5e9; color: #2e7d32; }
.badge-new { background: #fff3e0; color: #e65100; }

/* RIGHT SIDEBAR: FEATURED GRID */
.sb-featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sb-featured-item {
    border-radius: 6px; overflow: hidden; border: 1px solid var(--border);
    transition: box-shadow 0.2s; text-decoration: none; display: block;
}
.sb-featured-item:hover { box-shadow: var(--shadow-hover); text-decoration: none; }
.sb-featured-thumb {
    width: 100%; height: 52px; background: var(--blue-light);
    display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden;
}
.sb-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-featured-name {
    padding: 4px 6px; font-size: 11px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--card);
}

/* RIGHT SIDEBAR: LOOKUP FORM */
.lookup-form { display: flex; flex-direction: column; gap: 8px; }
.lookup-form label { font-size: 11.5px; font-weight: 600; color: var(--text-sub); display: block; margin-bottom: 2px; }
.lookup-form select,
.lookup-form input[type="number"] {
    width: 100%; padding: 6px 10px;
    border: 1.5px solid var(--border); border-radius: 6px;
    font-size: 12.5px; outline: none; color: var(--text);
    background: #f7f8fa; transition: border-color 0.2s;
}
.lookup-form select:focus,
.lookup-form input:focus { border-color: var(--blue); background: #fff; }
.lookup-row { display: flex; gap: 7px; }
.lookup-row > * { flex: 1; }
.btn-lookup {
    background: var(--blue); color: #fff; border: none;
    border-radius: 6px; padding: 8px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background 0.2s; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-lookup:hover { background: var(--blue-dark); }
.lookup-result {
    background: var(--blue-light); border-radius: 6px; padding: 10px 12px;
    font-size: 12px; color: var(--blue-dark); border: 1px solid #b3c8f5;
    margin-top: 6px; display: none;
}
.lookup-result.show { display: block; }
.lookup-result .r-title { font-weight: 700; margin-bottom: 7px; font-size: 13px; border-bottom: 1px solid #b3c8f5; padding-bottom: 6px; }
.lookup-result .r-row { display: flex; justify-content: space-between; padding: 3px 0; }
.lookup-result .r-row span:first-child { color: var(--text-sub); }
.lookup-result .r-row span:last-child { font-weight: 600; }

/* RIGHT SIDEBAR: Q&A */
.sb-qa-item { padding: 5px 0; border-bottom: 1px solid var(--border); }
.sb-qa-item:last-child { border-bottom: none; }
.sb-qa-item a {
    font-size: 12px; font-weight: 500; color: var(--text);
    display: flex; align-items: flex-start; gap: 6px;
    text-decoration: none; line-height: 1.45;
}
.sb-qa-item a:hover { color: var(--blue); }
.sb-qa-item a i { color: var(--blue); margin-top: 3px; font-size: 11px; flex-shrink: 0; }

/* =============================================
   CENTER: SECTION HEADING
   ============================================= */
.section-heading {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.section-heading h2 {
    font-size: 17px; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.section-heading h2 .title-accent { width: 4px; height: 22px; background: var(--blue); border-radius: 3px; flex-shrink: 0; }
.section-heading h2 .title-badge {
    font-size: 11px; background: #e8f5e9; color: #2e7d32;
    padding: 2px 9px; border-radius: 12px; font-weight: 600;
}
.section-heading a.view-all { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; flex-shrink: 0; }
.section-heading a.view-all:hover { text-decoration: underline; }

/* =============================================
   CENTER: POST CARD GRID
   ============================================= */
.post-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 22px;
}
.post-card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card-thumb {
    width: 100%; height: 160px; overflow: hidden;
    background: linear-gradient(135deg,#dde7ff,#b3c8f5);
    position: relative; flex-shrink: 0;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb .no-thumb {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px; color: var(--blue);
}
.pc-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 10.5px; font-weight: 700; padding: 3px 9px;
    border-radius: 12px; display: flex; align-items: center; gap: 4px; color: #fff;
    background: rgba(24,119,242,0.92);
}
.pc-badge.approved { background: rgba(46,125,50,0.92); }

.post-card-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.post-card-title {
    font-size: 14px; font-weight: 700; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.45; margin-bottom: 7px; text-decoration: none;
}
.post-card-title:hover { color: var(--blue); }
.post-card-meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 11.5px; color: var(--text-sub); margin-bottom: 9px;
}
.post-card-meta i { font-size: 11px; margin-right: 3px; }
.post-card-excerpt {
    font-size: 12.5px; color: var(--text-sub);
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.65; flex: 1;
}

/* Pagination */
.tdpt-pagination { display: flex; justify-content: center; gap: 6px; margin: 16px 0 24px; flex-wrap: wrap; }
.tdpt-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: 6px; border: 1.5px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-sub);
    text-decoration: none; transition: all 0.15s; background: var(--card);
}
.tdpt-pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.tdpt-pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* =============================================
   SINGLE POST
   ============================================= */
.single-wrap {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    overflow: hidden; margin-bottom: 16px;
}
.single-header { padding: 20px 22px 0; }
.single-cat {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 700; color: var(--blue);
    background: var(--blue-light); padding: 3px 10px;
    border-radius: 12px; margin-bottom: 12px; text-decoration: none;
}
.single-title { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 12px; }
.single-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    font-size: 12.5px; color: var(--text-sub);
    margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.single-meta i { margin-right: 5px; }
.single-featured { width: 100%; max-height: 400px; overflow: hidden; }
.single-featured img { width: 100%; height: 100%; object-fit: cover; }

.single-content { padding: 22px 22px 26px; font-size: 15px; line-height: 1.82; color: var(--text); }
.single-content h2 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.single-content h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin: 16px 0 8px; }
.single-content p { margin-bottom: 14px; }
.single-content ul, .single-content ol { padding-left: 22px; margin-bottom: 14px; }
.single-content li { margin-bottom: 6px; }
.single-content img { border-radius: 6px; margin: 14px 0; box-shadow: var(--shadow); max-width: 100%; }
.single-content a { color: var(--blue); }
.single-content blockquote {
    border-left: 4px solid var(--blue); padding: 10px 16px;
    background: var(--blue-light); border-radius: 0 6px 6px 0;
    margin: 16px 0; font-style: italic; color: var(--blue-dark);
}
.single-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.single-content th, .single-content td { padding: 8px 12px; border: 1px solid var(--border); font-size: 13.5px; }
.single-content th { background: var(--blue-light); font-weight: 700; }

.post-tags { padding: 0 22px 18px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.post-tags .tags-label { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.post-tags a {
    font-size: 12px; background: var(--blue-light); color: var(--blue);
    padding: 3px 10px; border-radius: 12px; text-decoration: none; font-weight: 500;
}
.post-tags a:hover { background: var(--blue); color: #fff; }

.post-share {
    padding: 14px 22px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.post-share .share-label { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600;
    text-decoration: none; transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; text-decoration: none; }
.share-fb { background: #1877f2; color: #fff; }
.share-zl { background: #0068ff; color: #fff; }
.share-cp { background: var(--bg); color: var(--text-sub); border: 1px solid var(--border); cursor: pointer; border-radius: 6px; }

/* Author box */
.author-box {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    padding: 18px 20px; display: flex; gap: 14px;
    align-items: flex-start; margin-bottom: 16px;
}
.author-avatar {
    width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: var(--blue); display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 24px;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 15px; font-weight: 700; color: var(--text); }
.author-role { font-size: 12px; color: var(--text-sub); margin-bottom: 7px; }
.author-bio { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

/* Comments */
.comments-section {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    padding: 20px 22px; margin-bottom: 16px;
}
.comments-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.comment-list { margin-bottom: 20px; }
.comment-item {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg,var(--blue),var(--blue-mid));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-meta { font-size: 12px; color: var(--text-sub); margin-bottom: 5px; }
.comment-meta strong { color: var(--text); font-size: 13px; }
.comment-text { font-size: 13.5px; line-height: 1.6; }

/* WP comment form override */
#respond { margin-top: 0 !important; }
#respond h3 { font-size: 16px !important; font-weight: 700 !important; margin-bottom: 16px !important; color: var(--text) !important; }
.comment-form input,
.comment-form textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
    border-radius: 6px; font-size: 13.5px; outline: none; background: #f7f8fa;
    margin-bottom: 10px; transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); background: #fff; }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form input[type="submit"],
#submit {
    background: var(--blue) !important; color: #fff !important; border: none !important;
    padding: 10px 24px !important; border-radius: 6px !important;
    font-size: 14px !important; font-weight: 700 !important; cursor: pointer !important;
    transition: background 0.2s !important;
}
.comment-form input[type="submit"]:hover,
#submit:hover { background: var(--blue-dark) !important; }

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-wrap {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    padding: 28px 28px; margin-bottom: 16px;
}
.auth-title {
    font-size: 20px; font-weight: 800; color: var(--text);
    margin-bottom: 6px; display: flex; align-items: center; gap: 9px;
}
.auth-title i { color: var(--blue); }
.auth-subtitle { font-size: 13px; color: var(--text-sub); margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--text-sub); }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 7px;
    font-size: 13.5px; outline: none; background: #f7f8fa;
    transition: border-color 0.2s; width: 100%;
}
.auth-form input:focus { border-color: var(--blue); background: #fff; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }
.btn-auth {
    background: var(--blue); color: #fff; border: none;
    border-radius: 7px; padding: 11px; font-size: 14.5px; font-weight: 700;
    cursor: pointer; transition: background 0.2s; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
}
.btn-auth:hover { background: var(--blue-dark); }
.auth-divider {
    display: flex; align-items: center; gap: 12px; margin: 4px 0;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.auth-links { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; }
.auth-links a { color: var(--blue); }
.auth-agree {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: var(--text-sub); line-height: 1.5;
}
.auth-agree input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.auth-alert {
    padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 14px;
}
.auth-alert.error { background: #fde8e8; color: #c62828; border: 1px solid #ffcdd2; }
.auth-alert.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

/* WP login form override */
#loginform p label, #registerform p label, #lostpasswordform p label {
    font-size: 12.5px !important; font-weight: 600 !important; color: var(--text-sub) !important;
}
#loginform input[type="text"],
#loginform input[type="password"],
#registerform input,
#lostpasswordform input {
    border: 1.5px solid var(--border) !important;
    border-radius: 7px !important;
    padding: 9px 12px !important;
    font-size: 13.5px !important;
    background: #f7f8fa !important;
    box-shadow: none !important;
    width: 100% !important;
}
#wp-submit, #registerform input[type="submit"],
#lostpasswordform input[type="submit"] {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    border-radius: 7px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: none !important;
}

/* =============================================
   ARCHIVE / SEARCH / CATEGORY
   ============================================= */
.archive-header {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    padding: 16px 20px; margin-bottom: 16px;
}
.archive-header h1 {
    font-size: 18px; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: 9px;
}
.archive-header h1 i { color: var(--blue); }
.archive-header p { font-size: 13px; color: var(--text-sub); margin-top: 5px; }

/* =============================================
   STATIC PAGE
   ============================================= */
.page-content-wrap {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    overflow: hidden; margin-bottom: 16px;
}
.page-content-header { background: var(--blue); color: #fff; padding: 16px 22px; }
.page-content-header h1 { font-size: 20px; font-weight: 800; }
.page-entry { padding: 22px; font-size: 14.5px; line-height: 1.8; color: var(--text); }
.page-entry h2 { font-size: 17px; font-weight: 700; margin: 18px 0 10px; }
.page-entry h3 { font-size: 15px; font-weight: 700; color: var(--blue); margin: 14px 0 8px; }
.page-entry p { margin-bottom: 12px; }
.page-entry ul, .page-entry ol { padding-left: 22px; margin-bottom: 14px; }
.page-entry li { margin-bottom: 7px; }
.page-entry img { border-radius: 6px; margin: 14px 0; }

/* =============================================
   404 PAGE
   ============================================= */
.not-found-wrap {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    padding: 50px 28px; text-align: center; margin-bottom: 16px;
}
.not-found-wrap .err-code { font-size: 80px; font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: 10px; }
.not-found-wrap h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.not-found-wrap p { font-size: 14px; color: var(--text-sub); margin-bottom: 22px; }
.btn-home {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--blue); color: #fff; padding: 10px 24px;
    border-radius: 7px; font-weight: 700; font-size: 14px; text-decoration: none;
}
.btn-home:hover { background: var(--blue-dark); text-decoration: none; color: #fff; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--blue); color: rgba(255,255,255,0.85); margin-top: 24px; }
.footer-top {
    display: flex; gap: 28px; padding: 26px 14px 20px;
    max-width: 1440px; margin: 0 auto; flex-wrap: wrap;
}
.footer-col { flex: 1; min-width: 180px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-col li { margin-bottom: 7px; }
.footer-col li a { color: rgba(255,255,255,0.75); font-size: 13px; text-decoration: none; }
.footer-col li a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,0.75); font-size: 13px; line-height: 1.7; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center; padding: 12px 14px;
    font-size: 12.5px; color: rgba(255,255,255,0.65);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .tdpt-left { display: none; }
    .tdpt-right { flex: 0 0 28%; }
}
@media (max-width: 860px) {
    .tdpt-right { display: none; }
    .tdpt-center { flex: 0 0 100%; }
    .post-grid { grid-template-columns: 1fr; }
    .header-info-box { display: none; }
    .header-banner { flex: 0 0 100%; }
}
@media (max-width: 600px) {
    .nav-menu-main { display: none; }
    .nav-search input { width: 90px; }
    .post-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .page-wrapper { padding: 10px 10px 0; }
}

/* =============================================
   HỒ SƠ: Attributes Grid
   ============================================= */
.hoso-attrs {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
}
.hoso-attrs__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hoso-attrs__title i { color: var(--blue); }
.hoso-attrs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.hoso-attr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 6px;
}
.hoso-attr__icon {
    width: 32px;
    height: 32px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.hoso-attr__label {
    display: block;
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 500;
    line-height: 1.3;
}
.hoso-attr__value {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

/* =============================================
   HỒ SƠ: CTA Box
   ============================================= */
.hoso-cta {
    margin: 20px 0;
}
.hoso-cta__inner {
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, #e7f0fd 0%, #f0e6ff 100%);
    border: 2px dashed var(--blue);
    border-radius: var(--radius);
}
.hoso-cta__icon {
    font-size: 28px;
    color: var(--blue);
    margin-bottom: 8px;
}
.hoso-cta__inner h3 {
    margin: 8px 0 6px;
    font-size: 16px;
    color: var(--text);
}
.hoso-cta__inner p {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-sub);
}
.hoso-cta__btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hoso-cta__btn:hover { background: var(--blue-dark); }

/* =============================================
   HỒ SƠ: Member Registration Modal
   ============================================= */
.hoso-member-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}
.hoso-member-modal.open { display: flex; }
.hoso-member-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.hoso-member-modal__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: hoso-modal-in .25s ease;
}
@keyframes hoso-modal-in {
    from { opacity:0; transform:translateY(20px) scale(.96); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
.hoso-member-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
}
.hoso-member-modal__close:hover { color: var(--text); }
.hoso-member-modal__header {
    text-align: center;
    margin-bottom: 18px;
}
.hoso-member-modal__header i {
    font-size: 28px;
    color: var(--blue);
    margin-bottom: 6px;
}
.hoso-member-modal__header h3 {
    margin: 6px 0 0;
    font-size: 17px;
    font-weight: 700;
}
.hoso-member-modal__field {
    margin-bottom: 14px;
}
.hoso-member-modal__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}
.hoso-member-modal__field input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s;
}
.hoso-member-modal__field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(24,119,242,.1);
}
.hoso-member-modal__submit {
    width: 100%;
    padding: 11px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.hoso-member-modal__submit:hover { background: var(--blue-dark); }
.hoso-member-modal__submit:disabled { opacity: .7; cursor: not-allowed; }
.hoso-member-modal__msg {
    font-size: 13px;
    padding: 0;
    margin-bottom: 8px;
    border-radius: 6px;
    text-align: center;
}
.hoso-member-modal__msg.msg-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
}
.hoso-member-modal__msg.msg-error {
    background: #ffeef0;
    color: #dc2626;
    padding: 10px;
}
@media (max-width: 768px) {
    .hoso-attrs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .hoso-attrs__grid { grid-template-columns: 1fr; }
    .hoso-member-modal__box { margin: 0 12px; padding: 22px 16px; }
}
