/* Fonts*/
/* lora-regular - latin_latin-ext_math_symbols_vietnamese */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/lora-v37-latin_latin-ext_math_symbols_vietnamese-regular.woff2') format('woff2'); 
}
/* lora-italic - latin_latin-ext_math_symbols_vietnamese */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/lora-v37-latin_latin-ext_math_symbols_vietnamese-italic.woff2') format('woff2'); 
}
/* lora-500 - latin_latin-ext_math_symbols_vietnamese */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/lora-v37-latin_latin-ext_math_symbols_vietnamese-500.woff2') format('woff2'); 
}
/* lora-500italic - latin_latin-ext_math_symbols_vietnamese */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/lora-v37-latin_latin-ext_math_symbols_vietnamese-500italic.woff2') format('woff2'); 
}
/* lora-600 - latin_latin-ext_math_symbols_vietnamese */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/lora-v37-latin_latin-ext_math_symbols_vietnamese-600.woff2') format('woff2'); 
}
/* lora-600italic - latin_latin-ext_math_symbols_vietnamese */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  src: url('/fonts/lora-v37-latin_latin-ext_math_symbols_vietnamese-600italic.woff2') format('woff2'); 
}
/* lora-700 - latin_latin-ext_math_symbols_vietnamese */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/lora-v37-latin_latin-ext_math_symbols_vietnamese-700.woff2') format('woff2'); 
}
/* lora-700italic - latin_latin-ext_math_symbols_vietnamese */
@font-face {
  font-display: swap; 
  font-family: 'Lora';
  font-style: italic;
  font-weight: 700;
  src: url('/fonts/lora-v37-latin_latin-ext_math_symbols_vietnamese-700italic.woff2') format('woff2'); 
}
/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
/*quy định trước size font đỡ nhầm */
html { font-size: 16px; }
/* 1. KHỞI TẠO TỔNG THỂ */
body {
    font-family: 'Lora', 'Times New Roman', serif;
    line-height: 1.8;
    color: #222;
    background-color: #fdfaf7;
/* Giúp chữ hiển thị sắc nét hơn trên Mac và iPhone */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
/* Chống tràn ngang (lỗi hay gặp trên mobile) */
    overflow-x: hidden;
}
/* SETUP TOÀN BỘ PHẦN ĐẦU TRANG (HEADER) */
/* KHUNG CHUẨN */
.khung-chuan {  
    max-width: 800px;  
    margin: 0 auto;  
    padding: 0 0.625rem;
    width: 100%; /* đảm bảo co giản trên mọi màn hình */
}
/* HEADER AND LOGO */
.dau-trang { text-align: center; padding: 0; background: #fdfaf7; }
/*LOGO, TÊN TRANG*/
.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0.1rem;     
}
.site-logo { width: 7rem; height: auto; display: block; margin: 0 auto; }
.logo h1,
.logo div {
    font-size: 2.6rem;
    color: #b38600;
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    line-height: 1.2;
}
.logo a { color: inherit; text-decoration: none; }
.bio { font-size: 1rem; color: #666; margin: 0.5rem 0 1rem 0;
}
/* MENU CHÍNH */
.main-nav { 
    background: #fdfaf7;
    border-bottom: 1px solid #b38600;
    position: sticky;
    top: 0;
    z-index: 1000; }
.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem 0rem;
    margin: 0; }
.menu li { margin: 0.5rem 0.7rem; }
.menu a { 
    text-decoration: none;
    color: #444;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    position: relative; 
    transition: color 0.3s ease; }
.menu a:hover { color: #b38600;
}
/*.menu a::after {*/
  /*  content: ''; */
/*    position: absolute; */
/*    width: 0; height: 2px; */
/*    bottom: -5px; left: 0; */
/*    background: #b38600; */
 /*   transition: width 0.3s ease; }*/
/*.menu a:hover::after { width: 100%; }*/
.home-icon svg {
    fill: #444;
    width: 1.1rem;
    height: 1.1rem;
    display: inline-block;
    transition: fill 0.3s ease, transform 0.3s ease;
    vertical-align: -0.2rem; /* Giúp icon thẳng hàng với chữ */
}
.home-icon:hover svg {
    fill: #b38600; /* Đổi sang vàng đồng khi hover */
    transform: scale(1.4);
}

/* THANH MẠNG XÃ HỒI */
.thanh-mxh {
    background-color: #fdfaf7;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.icon-mxh {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.8rem 0.5rem;
}
.icon-mxh a {
    display: flex;
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
/* Định nghĩa màu sắc cụ thể cho từng thẻ a */
.icon-mxh a[aria-label="TikTok"] { color: #000; }
.icon-mxh a[aria-label="YouTube"] { color: #ff0000; }
.icon-mxh a[aria-label="Facebook"] { color: #1877f2; }
.icon-mxh a[aria-label="Email"] { color: #adb5bd; }

/* SVG đồng bộ màu*/
.icon-mxh a svg {
    fill: currentColor;
    width: 100%;
    height: 100%;
}
.icon-mxh a:hover {
    color: #b38600;
    transform: scale(1.2);
}
/* PHẦN TRUNG TÂM TRANG CHỦ */
/* Từng mục bài viết */
.khung-bai-post {
    background: #ffffff;
    margin: 1rem 0;
    padding: 1.5rem 1.3rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent; 
    transition: border-color 0.4s ease, background-color 0.4s ease;
}
/* Khi rê chuột vào khung */
.khung-bai-post:hover { border-color: #e6b800; }
.khung-bai-post:hover .tieu-de { color: #b38600; }
.tieu-de {
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.link-bai-viet {
    text-decoration: none;
    color: inherit;
    display: block;
}
.trich-dan p {
    font-size: 1.2rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Nút phân trang */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
}
.btn-pagination {
        background: #ffffff;
    text-decoration: none;
    color: #666;
    font-weight: 400;
    transition: all 0.3s;
    border: 1px solid #e6b800;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    display: inline-block;  /* Quan trọng: Để có thể đặt kích thước */
    width: 7.5rem;           /* Ép cả 2 nút rộng đúng 7.5rem */
    text-align: center;     /* Căn chữ vào chính giữa cái khung */
}
.btn-pagination:hover {
    background: #e6b800;
    color: #fff;
}

/* TRANG ĐỌC BÀI VIẾT */
.khung-noi-dung-chi-tiet {
    max-width: 800px;
    margin: 1.5rem auto;
    background: #fff;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Đổ bóng cực nhẹ cho sang */
  /*  border: 1px solid #e6b800; */
}
.tieu-de-lon {
    text-transform: uppercase;
    font-size: 1.8rem;
    text-align: center;
    margin: 0.5rem 0 1rem 0;
    color: #222;
}
/* Điều chỉnh đường kẻ ngang trong bài viết */
.vung-noi-dung hr {
    border: 0;
    border-top: 1px solid #ced4da;
    margin: 2rem auto; 
    width: 50%;         
}
.vung-noi-dung p {
    font-size: 1.2rem;
    line-height: 2;
    color: #333;
    margin-bottom: 0.4rem;
    
    /*Dàn lề từ trái qua phải*/
    text-align: left; 
    
    /* Thêm lệnh này để nếu có từ quá dài (như link web), nó sẽ tự xuống dòng chứ không đâm thủng khung */
    word-wrap: break-word; 
    overflow-wrap: break-word;
}
.vung-noi-dung h2 { font-size: 1.5rem;   text-transform: uppercase;
    text-align: left;
    margin: 0.5rem 0 0.8rem 1rem;
    color: #222; }
.vung-noi-dung h3 { font-size: 1.4rem;
    text-align: left;
    margin: 0.4rem 0 0.6rem 0.8rem;
    color: #4f5d75; }
.vung-noi-dung blockquote {
    border-left: 4px solid #b38600;
    margin: 1.5rem 0; padding: 1rem 1rem;
    background: #fffdf5;
    border-radius: 0.5rem;
}
.vung-noi-dung li {
    font-size: 1.2rem;
    line-height: 2;
    color: #333;
    margin-bottom: 0.4rem;
    text-align: left; 
    word-wrap: break-word; 
    overflow-wrap: break-word;
}
.vung-noi-dung strong { color: #222; font-size: 1.2rem; font-weight:500;}

/* Riêng cho danh sách, mình giữ cái margin-left để thụt vào */
.vung-noi-dung ul, 
.vung-noi-dung ol { 
    margin-left: 2rem; 
    margin-bottom: 1rem; /* Khoảng cách sau khi kết thúc toàn bộ danh sách */
}
/* Định nghĩa thêm định dạng chữ */
.d-block-span {
    display: block;
    white-space: pre-wrap; /* để nhận diện phím Enter */
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    background-clip: padding-box;
}

/* Khung 1: xám */
.custom-tag-1 {
    line-height: 1.2;
    background-color: #edf2f4;
    border-left: 4px solid #495057;
    color: #495057;
}

/* Khung 2: đỏ */
.custom-tag-2 {
    line-height: 1.2;
    background-color: #fdfaf7;
    border-left: 4px solid #ae2012;
    color: #ae2012;
}
/* chữ vàng số 3 */
.custom-tag-3 { color: #b38600; font-size: 1.2; font-weight: 500; }
/* chữ đổ số 4 */
.custom-tag-4 { color: #ae2012; font-size: 1.2; font-weight: 500; }

.vung-noi-dung img {
    max-width: 100%; /* Đảm bảo ảnh không tràn màn hình */
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}
/* TRANG LIST TRUNG BỘ */
.trung-bo-list {
    padding-left: 2.5rem;   /* khóa cột số */
    line-height: 1.8;
}

.trung-bo-list li {
    padding-left: 0.25rem;  /* đẩy chữ ra chút cho thoáng */
}

.trung-bo-list::marker,
.trung-bo-list li::marker {
    font-weight: 500;
}

.pali-sub {
    opacity: 0.5;
    font-size: 0.9rem;
}
.trung-bo-list li a {
    text-decoration: none;
    color: inherit;
}

.trung-bo-list li a:hover {
    color: #b38600;
}

.trung-bo-list li a:focus {
    outline: 2px solid rgba(0,0,0,.15);
    outline-offset: 2px;
}

/* TRANG ĐỌC KINH TRUNG BỘ */
.khung-noi-dung-chi-tiet-1 {
    max-width: 800px;
    margin: 1.5rem auto;
    background: #fbf7ef;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Đổ bóng cực nhẹ cho sang */
  /*  border: 1px solid #e6b800; */
}
.dieu-huong-kinh a {
    text-decoration: none;
    color: #6c757d;
}

.dieu-huong-kinh a:hover {
color: #b38600;
}

/* CHÂN TRANG */
.chan-trang {
  margin-top: 2rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #888; 
}
.chan-trang p {
  margin-bottom: 0.3rem; /* Khoảng cách giữa các dòng chữ nếu có nhiều dòng */
  opacity: 0.9; 
}
.copyr {font-size: 0.8rem; opacity: 0.9;}
/* ===========================
    MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {
.site-logo {width: 5rem; }      /* nhỏ hơn trên mobile */
.logo h1, .logo div { font-size: 1.4rem; margin: 0.1rem 0 0.2rem 0; }
.bio { margin-bottom: 0.8rem; font-size: 0.85rem; }
.tieu-de {margin-bottom: 0.7rem; font-size: 1.1rem; }
.khung-bai-post { margin: 0.8rem 0; padding: 1.2rem 1rem; border-radius: 0.7rem; }
.trich-dan p {font-size: 1.1rem ;}
.khung-noi-dung-chi-tiet {
        /* 1. Cho khung rộng gần hết màn hình nhưng vẫn có khoảng hở */
        width: 92%; 
        /* 2. Margin trên dưới giữ nguyên, trái phải để auto để cân giữa */
        margin: 1rem auto; 
        /* 3. Giảm padding bên trong để dành không gian cho chữ */
        padding: 1.2rem 0.8rem; 
        /* 4. Bo góc nhẹ lại một chút cho hợp màn hình nhỏ */
        border-radius: 0.8rem; 
        /* 5. Quan trọng: Reset lại max-width để không bị dính con số 800px */
        max-width: 100%; 
    }
.khung-noi-dung-chi-tiet-1 {
        /* 1. Cho khung rộng gần hết màn hình nhưng vẫn có khoảng hở */
        width: 92%; 
        /* 2. Margin trên dưới giữ nguyên, trái phải để auto để cân giữa */
        margin: 1rem auto; 
        /* 3. Giảm padding bên trong để dành không gian cho chữ */
        padding: 1.2rem 0.8rem; 
        /* 4. Bo góc nhẹ lại một chút cho hợp màn hình nhỏ */
        border-radius: 0.8rem; 
        /* 5. Quan trọng: Reset lại max-width để không bị dính con số 800px */
        max-width: 100%; 
    }
.tieu-de-lon { font-size: 1.3rem; }
.vung-noi-dung h2 {font-size: 1.1rem; }
.vung-noi-dung h3 {font-size: 1.1rem; }
.home-icon { padding-left: 10px; /* Đảm bảo icon không dính sát mép trái */ }
.vung-noi-dung hr { margin: 1rem auto; }
.vung-noi-dung p {font-size: 1.1rem; line-height: 2; }
.vung-noi-dung strong {font-size: 1.1rem;}
.vung-noi-dung em {font-size: 1.1rem;}
.vung-noi-dung blockquote {font-size:1.1rem; margin: 0.7rem 0; padding: 0.5rem 0.5rem; }
.custom-tag-1 { margin: 0.7rem 0; padding: 0.8rem 0.8rem; line-height: 1.3; font-size: 1.1rem; }
.custom-tag-2 { margin: 0.7rem 0; padding: 0.8rem 0.8rem; line-height: 1.3; font-size: 1.1rem; }
.vung-noi-dung li { font-size: 1.1rem; line-height: 1.8;}
.custom-tag-3 {font-size: 1.1rem; line-height: 2; }
.custom-tag-4 {font-size: 1.1rem; line-height: 2; }
.trung-bo-list {
padding-left: 1rem;
    }
nav.main-nav {
        position: -webkit-sticky; /* Cho Safari iOS */
        position: sticky; /* QUAN TRỌNG: Để dải mờ ::after căn cứ theo khung này */
        top: 0;
        z-index: 1000;
        background: #fdfaf7;}
nav.main-nav .menu {
        display: flex;
        flex-wrap: nowrap;          /* CHỐT 1: ÉP 1 DÒNG, KHÔNG XUỐNG HÀNG */
        overflow-x: auto;           /* Cho phép vuốt ngang */
        -webkit-overflow-scrolling: touch; 
        justify-content: flex-start; 
        padding: 0.6rem 0;
        padding-right: 3.5rem;        /* Tạo vùng đệm rộng để chữ không đè lên mũi tên */
        gap: 0.1rem;                 
    }
    nav.main-nav .menu::-webkit-scrollbar {
        display: none;
    }
    nav.main-nav .menu li {
        flex: 0 0 auto;             /* CHỐT 2: KHÔNG CHO MỤC MENU BỊ CO LẠI */
        margin: 0;
    }
    nav.main-nav .menu a {
        font-size: 0.9rem;
        padding: 0.5rem 0.6rem;     
        white-space: nowrap;        /* CHỐT 3: KHÔNG CHO CHỮ TRONG MENU XUỐNG DÒNG */
    }
    /* 3. Dải mờ che phủ 5 ký tự */
    nav.main-nav::after {
        content: '»';
        position: absolute;
        top: 0; right: 0;
        width: 3.2rem; height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 2px;
        color: #444; 
        font-size: 1rem;
        font-weight: normal;
        z-index: 10;
        pointer-events: none;
        background: linear-gradient(to right, 
            rgba(253, 250, 247, 0) 0%, 
            rgba(253, 250, 247, 1) 60%,
            rgba(253, 250, 247, 1) 100%
        );
    }
}