/*
 Theme Name: GeneratePress Child
 Template: generatepress
 Version: 1.1
*/

/* =====================================================
   THIENHA.NET – Clean Authority Version
===================================================== */

/* ================= GOOGLE FONTS ================= */

/*@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Be+Vietnam+Pro:wght@400;500&display=swap');*/
/* ================= TYPOGRAPHY REFINED ================= */

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #222;
}

/* Giảm padding vùng header trang */
.page-header {
    padding: 10px 0 5px;
}
.page .entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 10px;
}
.page .entry-content h1 {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}
/* Section H2 */
.page .entry-content h2 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 45px;
    margin-bottom: 15px;
}

/* Section H3 */
.page .entry-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Paragraph */
.page .entry-content p {
    font-size: 17px;
    margin-bottom: 16px;
    color: #333;
}
/* ================= SINGLE POST ================= */

/* Title */
.single .entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}
/* H1 */
.single .entry-content h1 {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 500;
    margin-bottom: 18px;
}
/* H2 */
.single .entry-content h2 {
    font-size: 24px;
    line-height: 1.4;
    margin: 32px 0 14px;
    font-weight: 500;
}

/* H3 */
.single .entry-content h3 {
    font-size: 20px;
    line-height: 1.4;
    margin: 24px 0 12px;
    font-weight: 500;
}

/* H4 */
.single .entry-content h4 {
    font-size: 18px;
    line-height: 1.4;
    margin: 20px 0 10px;
    font-weight: 500;
}

/* Paragraph */
.single .entry-content p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 18px;
    color: #333;
}

/* First paragraph highlight */
.single .entry-content > p:first-of-type {
    font-size: 18px;
    font-style: italic;
    color: #555;
}

/* Strong */
.single .entry-content strong,
.single .entry-content b {
    font-weight: 600;
}

/* HR */
.single .entry-content hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 30px 0;
}

/* UL */
.single .entry-content ul {
    margin: 18px 0 28px;
    padding-left: 22px;
}

.single .entry-content ul li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Links */
.single .entry-content a {
    color: #2f6f5e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single .entry-content a:hover {
    color: #000;
}

/* ====================================================
   TABLET (768px–1024px)
==================================================== */

@media (max-width: 1024px) and (min-width: 768px) {

    .site-content {
        padding: 0 25px;
    }

    .content-area {
        width: 65%;
    }

    .widget-area {
        width: 35%;
    }

    .entry-title {
        font-size: 28px;
    }

    .inside-article {
        padding: 30px;
    }

    .main-navigation ul {
        gap: 18px;
    }

    .navigation-search input[type="search"] {
        width: 160px;
    }

    .th-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ====================================================
   MOBILE (<= 768px)
==================================================== */

@media (max-width: 768px) {

    .site-content {
        padding: 0 18px;
    }

    .inside-header {
        flex-wrap: wrap;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .navigation-search {
        width: 100%;
        margin-top: 10px;
    }

    .navigation-search input[type="search"] {
        width: 100%;
    }

    .content-area,
    .widget-area {
        width: 100%;
    }

    .separate-containers .inside-article {
        padding: 24px;
    }

    .entry-title {
        font-size: 24px;
    }

    .post-image img {
        border-radius: 16px;
    }

    .th-footer-inner {
        grid-template-columns: 1fr;
    }

    .th-footer {
        padding: 40px 20px;
    }
}

/* ====================================================
   EXTRA SMALL (<= 480px)
==================================================== */

@media (max-width: 480px) {

    .entry-title {
        font-size: 22px;
    }

    .entry-content p {
        font-size: 16px;
    }

    .main-navigation a {
        font-size: 14px;
    }
}


/* =========================================================
   DISCLAIMER
========================================================= */

.post-disclaimer {
  margin-top: 24px;
  padding: 18px 22px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-left: 4px solid #b22222;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  border-radius: 6px;
}


/* =========================================================
   AUTHOR BOX – ACADEMIC COMPACT
========================================================= */

.author-box {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 16px;
}

.author-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.author-content {
  flex: 1;
}

.author-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  margin-bottom: 6px;
}

.author-name {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 3px;
}

.author-name a {
  text-decoration: none;
  color: #111;
}

.author-name a:hover {
  color: #0a58ca;
}

.author-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}

.author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}


/* =========================================================
   COMMENTS – ACADEMIC STYLE
========================================================= */

.comments-area {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.comments-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #222;
}

.comment-list,
.comment-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Comment Block */
.fb-comment {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.fb-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.fb-main {
  flex: 1;
}

.fb-author {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.fb-author a {
  text-decoration: none;
  color: #111;
}

.fb-author a:hover {
  color: #0a58ca;
}

.fb-badge {
  font-size: 11px;
  color: #777;
  margin-left: 8px;
}

.fb-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.fb-actions {
  margin-top: 10px;
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 18px;
}

.fb-actions span:hover {
  color: #000;
}

.comment-list .children {
  margin-left: 50px;
  margin-top: 18px;
}

.comment-list > li {
  border-bottom: 1px solid #eee;
  padding-bottom: 22px;
}

/* Hide default reply title */
#reply-title {
  display: none !important;
}

/* Comment Form */
.comment-form {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #bbb;
}

.comment-form .submit {
  margin-top: 12px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
}

.comment-form .submit:hover {
  background: #000;
}


/* =====================================================
   THIENHA SIDEBAR SYSTEM – UNIFIED STYLE
===================================================== */

.th-block {
    background: #fff;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 30px;
}

.th-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
}

.th-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.th-item {
    margin-bottom: 16px;
}

.th-item:last-child {
    margin-bottom: 0;
}

.th-link {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.th-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.th-title {
    font-size: 14.5px;
    line-height: 1.4;
    font-weight: 500;
    color: #222;
}

.th-link:hover .th-title {
    color: #2f6f5e;
}

/* Divider subtle */
.th-item:not(:last-child) {
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 14px;
}
/* =====================================================
   THIENHA FOOTER – GENERATEPRESS SAFE VERSION
===================================================== */

/* Wrapper full width */
.th-footer-wrapper {
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #2f6f5e;
}

/* Contained giống theme */
.th-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

/* Layout 3 cột */
.th-footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 20px;
}

/* Column */
.th-footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
}

/* Accent underline */
.th-footer-col h4::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    margin-top: 8px;
    background: #c9a227;
    border-radius: 2px;
}

.th-footer-col p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #444;
    max-width: 380px;
}

.th-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.th-footer-col ul li {
    margin-bottom: 10px;
}

.th-footer-col a {
    font-size: 14.5px;
    color: #2f6f5e;
    text-decoration: none;
    transition: 0.2s ease;
}

.th-footer-col a:hover {
    color: #c9a227;
    padding-left: 4px;
}

/* Divider giữa cột */
.th-footer-col:not(:first-child) {
    border-left: 1px solid rgba(0,0,0,0.06);
    padding-left: 40px;
}

/* Bottom */
.th-footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #e8e8e8;
}

/* ==============================
   TABLET
============================== */

@media (max-width: 1024px) {

    .th-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .th-footer-col:not(:first-child) {
        border-left: none;
        padding-left: 0;
    }
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 768px) {

    .th-footer-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .th-footer {
        padding: 50px 20px 0;
    }

    .th-footer-bottom {
        font-size: 12.5px;
        padding: 20px 0;
    }
}

/* =====================================================
   CATEGORY COLOR SYSTEM – UNIFIED (FINAL)
===================================================== */

/* =====================
   1. DEFAULT VARIABLES
===================== */

:root {
  --cat-bg: #faf7f2;
  --cat-title: #2c2c2c;
  --cat-text: #5f5a52;
  --cat-accent: #8b5e34;
}


/* =====================
   2. CATEGORY VARIABLES
===================== */

/* PHONG THỦY */
body.cat-phong-thuy-ung-dung {
  --cat-bg: #faf7f2;
  --cat-title: #2c2c2c;
  --cat-text: #5f5a52;
  --cat-accent: #8b5e34;
}

/* TỬ VI */
body.cat-tu-vi-van-menh {
  --cat-bg: #f4f1fa;
  --cat-title: #2d2340;
  --cat-text: #6b5f85;
  --cat-accent: #6b4fd3;
}

/* ĐỜI SỐNG */
body.cat-doi-song-phong-thuy {
  --cat-bg: #eef5f2;
  --cat-title: #1f3a34;
  --cat-text: #4f6b63;
  --cat-accent: #2f7f6f;
}


/* =====================
   3. CATEGORY HEADER
===================== */

.th-category-header {
  background: var(--cat-bg);
  padding: 14px 20px 12px;
  border-bottom: 1px solid #e5e0d8;
  margin-bottom: 18px;
}

.th-category-title {
  color: var(--cat-title);
}


/* =====================
   4. BREADCRUMB
===================== */

.th-breadcrumb {
  color: var(--cat-text);
}

.th-breadcrumb a {
  color: var(--cat-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.th-breadcrumb a:hover {
  color: var(--cat-accent);
}

.th-breadcrumb .separator {
  margin: 0 6px;
  color: #bbb;
}


/* =====================
   5. MAIN MENU (Scoped)
===================== */

/* Base menu */
.main-navigation .main-nav ul li > a {
  position: relative;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #111;
  transition: color 0.2s ease;
}

/* Active menu – theo category */
body[class*="cat-"] 
.main-navigation .main-nav ul li.current-menu-item > a,
body[class*="cat-"] 
.main-navigation .main-nav ul li.current-post-ancestor > a {
  color: var(--cat-accent);
  font-weight: 700;
}

/* Underline accent */
body[class*="cat-"] 
.main-navigation .main-nav ul li.current-menu-item > a::after,
body[class*="cat-"] 
.main-navigation .main-nav ul li.current-post-ancestor > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--cat-accent);
}


/* =====================
   6. CONTENT LINKS
===================== */

body[class*="cat-"] .entry-content a {
  color: var(--cat-accent);
}


/* =====================================================
   BLOG / ARCHIVE TITLE
===================================================== */

.blog .entry-title,
.archive .entry-title {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.3px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
    .category-hero {
        padding: 20px 20px 0;
    }

    .category-hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 20px 15px 0;
    }

    .category-hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .category-hero p {
        font-size: 15px;
    }

    .category-hero::before {
        filter: blur(2px) brightness(0.5);
    }
}


/* =====================================================
   GLOBAL IMAGE SYSTEM – THIENHA.NET
   Clean • Authority • Consistent
===================================================== */

/* Featured Image (ảnh đầu bài viết / archive) */
.wp-post-image {
    border-radius: 14px;
    overflow: hidden;
    display: block;
}


/* Ảnh trong nội dung bài viết */
.entry-content img {
    border-radius: 14px;
    display: block;
    margin: 28px auto;
}


/* Thumbnail trong sidebar */
.th-thumb img,
.sidebar img {
    border-radius: 10px;
}


/* Archive / Blog loop thumbnail */
.blog .post-image img,
.archive .post-image img {
    border-radius: 14px;
}


/* 5Hover nhẹ (tinh tế – không phô trương) */
.entry-content img:hover,
.wp-post-image:hover,
.blog .post-image img:hover {
    transform: scale(1.02);
    transition: all 0.35s ease;
}


/* 6Viền siêu nhẹ – tạo cảm giác cao cấp */
.wp-post-image,
.entry-content img,
.blog .post-image img {
    border: 1px solid rgba(0,0,0,0.04);
}


/* Responsive an toàn */
img {
    max-width: 100%;
    height: auto;
}
/* =========================================
   PAGINATION – COMPACT MINIMAL
========================================= */

.archive .nav-links,
.blog .nav-links {
    display: flex;
    gap: 12px;
    margin: 5px 0 5px;   /* giảm khoảng trắng trên/dưới */
    align-items: center;
}

/* Base */
.archive .nav-links .page-numbers,
.blog .nav-links .page-numbers {
    display: inline-block;
    padding: 5px 8px;     /* nhỏ lại */
    font-size: 13.5px;    /* nhẹ hơn */
    text-decoration: none;
    color: #555;
    border-bottom: 1px solid transparent;
    line-height: 0.25;
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* Hover */
.archive .nav-links a.page-numbers:hover,
.blog .nav-links a.page-numbers:hover {
    color: #111;
    border-bottom: 1px solid #111;
}

/* Current */
.archive .nav-links .current,
.blog .nav-links .current {
    color: #111;
    font-weight: 600;
    border-bottom: 1px solid #111;
}

/* Next */
.archive .nav-links .next,
.blog .nav-links .next {
    margin-left: 2px;
}
