/*
Theme Name: FairyTales
Theme URI: https://TheGioiCoTich.vn
Author: Thế giới cổ tích
Author URI: https://TheGioiCoTich.vn
Description: Kho tàng truyện cổ dân gian Việt Nam và thế giới. Theme thiết kế độc quyền dành riêng cho website TruyenCoDanGian.com.
Version: 1.0
Text Domain: fairytales
*/


/* GLOBAL */

/* Thêm font Roboto từ Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* reset */
*, *::before, *::after {
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
}

body {
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 1.125rem; /* 18px trên màn hình mặc định */
    line-height: 1.8; /* Tăng line-height giúp dễ đọc hơn */
    text-align: left;
}

h1 {
    font-size: 2.5rem; /* Tiêu chuẩn */
    line-height: 1.3;
    margin: 3rem 0 1.5rem; /* Tăng khoảng cách trên để phân tách */
}

h2 {
    font-size: 2rem; /* Giảm hợp lý so với h1 */
    line-height: 1.35;
    margin: 2.8rem 0 1.3rem;
}

#logo h2 {
    line-height: 40px;
    margin: 0;
}

h3 {
    font-size: 1.75rem; /* Dễ phân biệt với h2 */
    line-height: 1.4;
    margin: 2.6rem 0 1.2rem;
}

h4 {
    font-size: 1.5rem; /* Giảm nhẹ */
    line-height: 1.4;
    margin: 2.4rem 0 1rem;
}

h5 {
    font-size: 1.25rem; /* Nhỏ hơn nhưng vẫn dễ đọc */
    line-height: 1.5;
    margin: 2.2rem 0 0.9rem;
}

h6 {
    font-size: 1rem; /* Nhỏ nhất, đảm bảo phù hợp */
    line-height: 1.6;
    margin: 2rem 0 0.8rem;
}

ul {
    list-style: disc inside; /* Chấm đầu dòng nằm trong nội dung */
}
.main-container li::marker {
    color: var(--accent-color);
}

.main-container li {
    padding: 5px 0 15px 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease-in-out;
}

img {
    border: none;
    border-radius: var(--border-radius-5);
}

/* variables */
:root {

    --hover-highlight-color: #DDB32C;

    /* Màu Xanh lá cây */
    --primary-color:#00490A;
    /* Màu phụ, hỗ trợ màu chính (Xanh lá cây đậm) */
    --secondary-color: #276B03;
    /* Màu phụ thứ 3 (Xanh đậm) */
    --tertiary-color: #1D6300;

    /* Màu nhấn xanh lá cây sáng */
    --accent-color: #6A9600;
    --accent-color-hover: #3C7A00;

    /* Màu text */
    --text-white-color: #FFF;
    --text-color-0: #222;
    --text-color: #333;
    --subtext-color: #666;
    --tertiary-text-color: #999;

    /* Màu border */
    --border-color-1: #136300;
    --border-color-2: #2C7700;
    --border-color-3: #E0E0E0;

    /* Border radius*/
    --border-radius-3: 3px;
    --border-radius-5: 5px;
    --border-radius-8: 8px;
    --border-radius-10: 10px;

}

p a, a:hover {
    color: var(--accent-color);
}

button {
    all: unset; /* Loại bỏ toàn bộ kiểu dáng mặc định của trình duyệt */
    cursor: pointer; /* Thêm con trỏ để hiển thị trạng thái nhấn */
}

.clear {
    clear: both;
}

/* container */
.container {
    margin: 0 auto;
    max-width: 1200px;
}

/* main container */
.main-container {
    gap: 30px;
    display: flex;
    flex-wrap: nowrap;
    margin: 0 auto;
    max-width: 1200px;
    width: calc(100% - 40px);
    align-items: flex-start;
}

/* SIDEBAR */

.content-area {
    flex: 1; /* Cột này chiếm không gian linh hoạt */
    min-width: calc(100% - 330px); /* Đảm bảo chiều ngang tối thiểu là 100% trừ đi 300px và gap 30px */
    max-width: calc(100% - 330px); /* Đảm bảo không vượt quá không gian */
}

.widget-area {
    background-color: #fff;
    margin-top: 100px;
    width: 300px;
}

.widget-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.widget {
    margin-bottom: 60px;
}

.widget ul {
    list-style-type: none;
    padding: 0;
}



.widget a {
    color: var(--text-color);
    transition: color 0.2s ease-in-out;
}

.widget a:hover {
    color: var(--accent-color);
}

/* Style ảnh thumbnail sidebar */

.widget ul li {
    padding: 15px 0;
}

.widget ul.alignleft > li {
    border-bottom: 1px dashed #ddd;
}

.widget ul.alignleft > li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.widget .wp-widget-group__inner-blocks img.size-large{
    border-radius: var(--border-radius-8);
}


.wp-block-group__inner-container .wp-block-latest-posts__featured-image {
    float: left;
}
.wp-block-group__inner-container li {
    display: flex; /* Bố cục ngang */
    align-items: center; /* Căn giữa theo chiều cao */
    padding: 0; /* Xóa bất kỳ padding không cần thiết nào */
    margin: 0; /* Đặt margin về 0 nếu cần */
}
.wp-block-latest-posts__featured-image {
    margin-bottom: 10px;
}
.wp-block-group__inner-container .wp-block-latest-posts__featured-image {
    display: inline-block;
    max-width: 70px;
    max-height: 70px !important;
    margin-right: 10px; /* Khoảng cách giữa ảnh và tiêu đề */
    margin-bottom: 0;
}

/* .wp-block-group__inner-container .wp-block-latest-posts__featured-image img {
    width: 70px;
	height: 70px;
    object-fit: cover;
	object-position: center;
	display: block;
}
 */


/* Ảnh thumbnail vuông 70x70 khi có class alignleft */
.wp-block-latest-posts__featured-image.alignleft img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Ảnh kích thước lớn khi KHÔNG có alignleft */
.wp-block-latest-posts__featured-image:not(.alignleft) img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}




/* Tùy chỉnh phân trang */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination .page-numbers {
    border: 1px solid #ddd;
    color: #333;
    display: inline-block;
    margin: 0 4px;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--border-radius-3);
}

.pagination .page-numbers.current {
    background-color: var(--accent-color);
    border-color: var(--accent-color-hover);
    color: #fff;
}

.pagination .page-numbers:hover {
    background-color: var(--accent-color-hover);
    border-color: var(--accent-color-hover);
    color: #fff;
}

.entry-content {
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 20px;
}

.related-posts, .comments-area {
    margin-top: 50px;
}

.related-posts h2 {
    font-size: 24px;
    margin-bottom: 20px;
}
.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts ul li {
    margin-bottom: 10px;
}

.related-posts ul li a {
    color: var(--text-color);
}

.related-posts ul li a:hover {
    color: var(--accent-color);
}

/* Style cho phần bình luận */

.comments-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.comment-list .comment-body {
    align-items: flex-start;
    display: flex;
}

.comment-list .comment-avatar {
    margin-right: 20px;
}

.comment-list .comment-content {
    max-width: 100%;
}

.comment-list .comment-meta {
    color: #999;
    margin-bottom: 10px;
}

.comment-list .comment-reply-link {
    color: var(--text-color);
    font-size: 14px;
}

.comment-list .comment-reply-link:hover {
    color: var(--accent-color);
}

/* Định dạng Excerpt */
.category-excerpt {
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    border-radius: var(--border-radius-5);
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 20px;
}

.page-header h1.page-title {
    margin: 80px 0 30px 0;
}

/* Hiển thị đường line nếu có Description */
.page-header .archive-description {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 20px;
}

/* Ẩn đường line nếu không có Description */
.page-header .archive-description:empty {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ARCHIVE */
/* Tùy chỉnh giao diện danh sách bài viết trong trang archive */

/* Container chứa tất cả bài viết */
.archive-posts {
    display: flex;
    flex-direction: column;
}

/* Bài viết dạng danh sách */
article {
    border-bottom: 1px dashed #ddd;
}
/* article:last-child {
    border-bottom: none;
} */

/* Nếu có phân trang, bài viết cuối cùng vẫn có border */
.archive-posts.has-pagination article:last-child {
    border-bottom: 1px dashed #ddd;
}

/* Nếu không có phân trang, bài viết cuối cùng không có border */
.archive-posts.no-pagination article:last-child {
    border-bottom: none;
}


/* Đảm bảo archive-post hoạt động đúng */
.archive-post {
    display: flex; /* Chia thành 2 cột */
    flex-wrap: nowrap; 
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: space-between; /* Khoảng cách cân đối giữa 2 cột */
    gap: 30px; /* Khoảng cách giữa các phần tử */
    padding: 30px 0;
/*     border-bottom: 1px dashed #ddd; */
}

/* Phần hình ảnh */
.archive-post-image {
    flex: 0 0 35%; /* Chiếm 40% chiều rộng */
    max-width: 300px;
    height: auto;
    display: flex; /* Đảm bảo flexbox hoạt động */
    align-items: center; /* Căn giữa theo chiều dọc */
    overflow: hidden; /* Ẩn phần ảnh vượt quá */
}

/* Ảnh trong archive-post-image */
.archive-post-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
    display: block;
}

/* Phần nội dung */
.archive-post-content {
    flex: 1; /* Chiếm 58% chiều rộng */
    max-width: 65%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ✅ Đảm bảo không bị ảnh hưởng bởi các style khác */
.archive-post,
.archive-post-image,
.archive-post-content {
    box-sizing: border-box; /* Bao gồm padding và border */
}


/* Tiêu đề bài viết */
.archive-post-title {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

/* Mô tả bài viết */
.archive-post-description {
    margin: 0;
    font-size: 1rem;
    color: #666;
}
  
@media (max-width: 768px) {
    .archive-post {
        flex-direction: column;
        text-align: center;
    }

    .archive-post-image,
    .archive-post-content {
        max-width: 100%; /* Tràn full width */
        flex: 1;
    }
}


/* Images Effect */

.category-thumb, .archive-post-image,
.related-post-thumbnail,
.featured-image,
.category-image-wrapper,
li .wp-block-latest-posts__featured-image {
    overflow: hidden;
    text-align: center;
    border-radius: var(--border-radius-8);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.category-thumb {
    margin-bottom: 15px;
}

.category-thumb img,
.archive-post-image img,
.related-post-thumbnail img,
li .wp-block-latest-posts__featured-image img{
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-8);
    object-fit: cover;
    transition: all .3s ease 0s;
}
.category-thumb:hover img,
.archive-post-image:hover img,
.related-post-thumbnail:hover img,
li .wp-block-latest-posts__featured-image:hover img {
    transform: scale(1.05);
}

li .alignleft {
    display: inline-block;
    position: relative;
    overflow: visible !important; /* Đặt visible để tránh bị cắt nội dung */
}

li .alignleft img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-5);
    transition: none !important; /* Loại bỏ hiệu ứng transition */
}

li .alignleft:hover img {
    transform: none !important; /* Không phóng to ảnh khi hover */
}

/* Hiệu ứng viền khi hover */
li .alignleft::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--text-white-color);
    border-radius: var(--border-radius-5);
    pointer-events: none;
    opacity: 0; /* Ban đầu ẩn viền */
    transition: all 0.3s ease;
}

li .alignleft:hover::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    opacity: 1; /* Hiện viền khi hover */
}

/*Tạo viền ảnh*/
.featured-image {
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}
.featured-image::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--text-white-color);
  border-radius: var(--border-radius-5);
  pointer-events: none;
  opacity: 0.7;
  transition: all 0.5s ease;
}
.featured-image:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}

/* End Tạo viền ảnh */
figcaption {
    font-style: italic;
    text-align: right;
    font-size: 0.875rem;
    color: #999;
}

/* END Images Effect */


/* SINGLE */

.breadcrumb {
    font-size: 0.9rem;
    color: #999;
    margin-top: 80px;
}
.breadcrumb a {
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--accent-color);
}
.page-header h1.entry-title {
    margin: 20px 0 30px 0;
}

.single-post-thumbnail {
    margin-bottom: 20px;
    overflow: hidden;
    text-align: center;
    border-radius: var(--border-radius-8);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.single-post-thumbnail img, .category-image-wrapper img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius-8);
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
}

.cat-links {
    margin-bottom: 10px; /* Thêm khoảng cách giữa danh mục và tag */
}
.tags-links {
    padding-bottom: 30px; /* Thêm khoảng cách giữa danh mục và tag */
}

.cat-links strong a {
    color: var(--accent-color);
}

.wp-block-quote {
    font-style: italic;
    padding: 0 1.5em;
    font-size: 1.1rem;
}

.wp-block-quote cite {
    display: block;
    text-align: right;
    color: #999;
    font-size: 0.875rem; /* tương đương ~14px */
    margin-top: 0.5em;
	padding: 0 1.5em;
    font-style: normal;
}

/* FOOTER */

/* Style cho footer */
.site-footer {
    background-color: #f1f1f1;
    margin-top: 60px;
}

.footer-widgets {
    background-color: #f1f1f1;
    padding-bottom: 20px;
    width: 100%;
}

.footer-widgets .main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    align-items: flex-start;
}

.footer-widget-column {
    flex: 1 1 23%;
}

/* Điều chỉnh widget trong footer */
.footer-widget {
    margin-bottom: 10px;
    background: none;
}


/* Footer bottom - Giữ nội dung trên cùng một hàng và căn giữa theo chiều cao */
.footer-widgets-bottom {
    background-color: #333;
    color: #d3d3d3;
    padding: 10px 0; /* Giữ khoảng cách trên dưới 10px */
    width: 100%;
    display: flex;
    align-items: center; /* Căn giữa nội dung theo chiều cao */
}

.footer-widgets-bottom .main-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: calc(100% - 40px);
/*    margin-left: 30px;*/
    max-width: 1200px;
}

/* Cột trái: Hiển thị Site Info */
.footer-site-info {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 50%;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100% - 30px);
    margin: 0;
}


/* Cột phải: Chứa widget */
.footer-widget-container {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 50%;
    display: flex;
    justify-content: flex-end; /* Đẩy nội dung về bên phải */
    align-items: center; /* Căn giữa theo chiều cao */
}

/* Căn phần tử bên trong từ phải qua trái */
.footer-widget-container .widget {
    display: flex;
    justify-content: flex-end; /* Đẩy phần tử về bên phải */
    flex-direction: row-reverse; /* Sắp xếp từ phải qua trái */
    gap: 10px; /* Tạo khoảng cách giữa các phần tử */
}

.footer-widget-container .footer-widget{
    margin-bottom: 0 !important;
}


/* FORMS */
.comment-form {
    margin-top: 40px;
}

.comment-form label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    border-radius: var(--border-radius-5);
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 10px;
    width: 100%;
}

.comment-form input[type="submit"] {
    background: var(--accent-color);
    border-radius: var(--border-radius-5);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px;
}

.comment-form input[type="submit"]:hover {
    background: var(--hover-accent-color);
}


/* Box Search Styling */
.no-results .page-content {
    background: #f8f8f8;
    padding: 30px;
    border-radius: var(--border-radius-5);
    text-align: center;
    border: 1px solid #ddd;
}

.no-results .page-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.no-results .search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.no-results .search-form input[type="search"] {
    width: calc(100% - 40px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-3);
    font-size: 1rem;
}

.no-results .search-form input[type="submit"] {
    background: var(--accent-color);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--border-radius-3);
    cursor: pointer;
    transition: background 0.3s;
}

.no-results .search-form input[type="submit"]:hover {
    background: var(--hover-accent-color);
}


/* Desktop và tablet (giữ nguyên nút chữ "Tìm kiếm") */
.desktop-search-btn {
    display: inline-block; /* Hiển thị trên desktop và tablet */
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-3);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    white-space: nowrap;
}

.desktop-search-btn:hover {
    background: var(--accent-color-hover);
}

/* Ẩn icon trên desktop và tablet */
.mobile-search-btn {
    display: none;
}

.no-results .page-header,
.not-found .page-header,
.search .page-header,
.search-no-results .page-header {
    text-align: center;
}

.wp-block-social-links {
	font-size: 1.2rem;
}


/* RESPONSIVE */

/* Style cho thiết bị <= 768px */
@media (max-width: 767px) {

    body {
        font-size: 1rem; /* 16px */
        line-height: 1.6;
        text-align: left;
    }

    h1 {
        font-size: 1.75rem; /* Giảm để phù hợp với màn hình nhỏ */
        margin: 2.5rem 0 1.25rem;
    }

    h2 {
        font-size: 1.5rem;
        margin: 2.2rem 0 1.1rem;
    }

    h3 {
        font-size: 1.25rem;
        margin: 2rem 0 1rem;
    }

    h4 {
        font-size: 1.125rem;
        margin: 1.8rem 0 0.9rem;
    }

    h5 {
        font-size: 1rem;
        margin: 1.6rem 0 0.8rem;
    }

    h6 {
        font-size: 0.875rem; /* Nhỏ nhất trên mobile */
        margin: 1.4rem 0 0.7rem;
    }
    
    /* Fix lỗi position cho ::before */
    .featured-image {
        position: relative; /* Đảm bảo phần tử cha có position */
    }
    
    .featured-image::before {
        content: '';
        position: absolute; /* Đảm bảo hiệu ứng viền xuất hiện đúng */
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: var(--border-radius-5);
        opacity: 0.7;
        transition: all 0.5s ease;
    }

    .main-container {
        flex-direction: column; /* Chuyển thành bố cục 1 cột */
        align-items: flex-start;
        max-width: 100%; 
        margin: 0 auto;
        gap: 10px;
    }

    .content-area, .widget-area, .footer-widget-column {
        max-width: 100%;
    }

    .widget-area {
        width: 100% !important; /* Fix lỗi 100vw làm xuất hiện scrollbar */
        display: block;
        box-sizing: border-box;
    }
	
	.archive-post {
		text-align: left;
	}

    .footer-widgets-bottom .main-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-site-info,
    .footer-widget-container {
        flex-basis: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-widget-container .widget {
        justify-content: center;
        flex-direction: row;
    }

    /* Responsive Search Form */

    .desktop-search-btn {
        display: none;
    }

    .mobile-search-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--accent-color);
        color: #fff;
        border: none;
        border-radius: var(--border-radius-3);
        width: 42px;
        height: 42px;
        cursor: pointer;
        font-size: 1.6rem;
        transition: background 0.3s;
    }

    .mobile-search-btn:hover {
        background: var(--hover-accent-color);
    }
	
	article {
		border-bottom: none;
	}
	
	.archive-post {
		padding-bottom: 20px;
	}
}

/* Style cho thiết bị >= 769px (Tablet nhỏ) */
@media (min-width: 768px) and (max-width: 899px) {

    body {
        font-size: 1.0625rem; /* 17px */
        line-height: 1.7;
    }

    h1 {
        font-size: 2.25rem;
        margin: 2.8rem 0 1.4rem;
    }

    h2 {
        font-size: 1.875rem;
        margin: 2.5rem 0 1.2rem;
    }

    h3 {
        font-size: 1.625rem;
        margin: 2.3rem 0 1.1rem;
    }

    h4 {
        font-size: 1.375rem;
        margin: 2.1rem 0 1rem;
    }

    h5 {
        font-size: 1.125rem;
        margin: 1.9rem 0 0.9rem;
    }

    h6 {
        font-size: 1rem;
        margin: 1.7rem 0 0.8rem;
    }

    .widget-area-shared {
        flex: 0 0 100%;
        margin-top: 40px;
    }
    .search .widget-area {
        flex: 0 0 100%; 
    }
}

/* Style cho thiết bị >= 900px (Tablet lớn & Laptop nhỏ) */
@media (min-width: 900px) and (max-width: 1099px) {

    body {
        font-size: 1.125rem; /* Giữ 18px */
        line-height: 1.8;
    }

    h1 {
        font-size: 2.5rem;
        margin: 3rem 0 1.5rem;
    }

    h2 {
        font-size: 2.125rem;
        margin: 2.8rem 0 1.3rem;
    }

    h3 {
        font-size: 1.875rem;
        margin: 2.6rem 0 1.2rem;
    }

    h4 {
        font-size: 1.625rem;
        margin: 2.4rem 0 1rem;
    }

    h5 {
        font-size: 1.375rem;
        margin: 2.2rem 0 0.9rem;
    }

    h6 {
        font-size: 1.125rem;
        margin: 2rem 0 0.8rem;
    }
    
    #menu ul li, #menu ul > li.menu-item a {
        padding: 0 8px !important;
    }
}

/* Style cho thiết bị >= 1100px (Laptop trung bình) */
@media (min-width: 1100px) and (max-width: 1199px) {
    #menu ul li, #menu ul > li.menu-item a {
        padding: 0 12px !important;
    }
}

/* Style cho thiết bị >= 1200px (Desktop & Màn hình lớn) */
@media (min-width: 1200px) {
    .main-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        margin: 0 auto;
    }
    .site-footer {
        margin-top: 30px;
    }
    .archive-post {
        display: flex !important;
        flex-direction: row !important; /* Giữ nguyên hàng ngang */
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }
    .archive-post-image {
        flex: 0 0 35% !important;
        max-width: 300px !important;
    }
    .archive-post-content {
        flex: 1 !important;
        max-width: 65% !important;
    }
}