/*!
Theme Name: mhd
Theme URI: http://underscores.me/
Author: mhd
Author URI: http://underscores.me/
Description: Description
Version: 1.0.4
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mhd
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

mhd is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@400;500;700&display=swap');
:root {
    --fs-base: 1rem;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

body {
    font-family: 'Montserrat', Georgia, serif; /* Font Serif cho nội dung đọc không mỏi mắt */
    color: #2c3e50;
    line-height: 1.8;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #111111;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover { color: #777777; }

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
    font-size: var(--fs-base);
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 0.9em;
    white-space: inherit;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: "Lora";
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: "Lora", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #999999;
}

a:hover,
a:focus,
a:active {
	color: #111111;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}


/* Khung bọc toàn trang */
.site {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}

/* Biến Container thành 2 cột bằng Grid trên màn hình lớn */
@media (min-width: 992px) {
    #content {
        display: grid;
        grid-template-columns: 7fr 3fr; /* Cột bài viết chiếm 70%, Sidebar chiếm 30% */
        gap: 80px; /* Khoảng cách giữa 2 cột rất rộng và thoáng */
        margin-top: 60px;
    }
}

/* Phần căn chỉnh Header (Logo nằm giữa trang nhã) */
.site-header {
    text-align: center;
    padding: 50px 0 20px 0;
    border-bottom: 1px solid #f5f5f5;
}
.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px; /* Giãn chữ tạo nét hiện đại */
}

.site-title a {
	text-decoration: none;
	color: #111111;
}

.site-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
    letter-spacing: 1px;
}

.site-main .post {
    /* margin-bottom: 70px;
    padding-bottom: 70px; */
    border-bottom: 1px solid #eaeaea;
	margin-bottom: 40px;
	padding-bottom: 20px;
}

/* Sắp xếp tiêu đề bài viết */
.entry-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Meta data (Ngày tháng, danh mục) */
.entry-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}
.entry-meta a { color: #bbb; }
.entry-meta a:hover { color: #111; }

/* Phần chữ tóm tắt bài viết */
.entry-summary {
    font-size: 1.05rem;
    color: #555555;
    text-align: justify;
}

.widget-area {
    font-family: 'Montserrat', sans-serif;
}

/* Style danh sách bài viết mới / chuyên mục trong sidebar */
.widget ul {
    list-style: none;
    padding: 0;
}
.widget ul li {
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.widget ul li a {
    color: #666;
}
.widget ul li a:hover {
    color: #111;
    padding-left: 5px; /* Hiệu ứng đẩy nhẹ khi di chuột */
}
.widget {
    margin-bottom: 50px;
}

/* ==========================================================================
   ÉP LAYOUT CHUẨN ĐỂ SIDEBAR LÊN BÊN PHẢI (DESKTOP)
   ========================================================================== */

/* 1. Mặc định trên màn hình nhỏ (Mobile/Tablet): Xếp dọc 1 cột */
.site-content, #content {
    display: block !important;
    width: 100% !important;
    padding: 0 20px;
}
#primary, #secondary {
    width: 100% !important;
    float: none !important;
    margin: 0 0 40px 0 !important;
}

/* 2. Trên màn hình Desktop rộng (Từ 992px trở lên) */
@media (min-width: 992px) {
    /* Ép thẻ bọc #content (hoặc class .site-content) biến thành Grid */
    .site-content, #content {
        display: grid !important;
        grid-template-columns: 6.8fr 3.2fr !important; /* Cột chính ~68%, Sidebar ~32% */
        gap: 60px !important; /* Khoảng cách giữa 2 cột rộng rãi thoáng đãng */
        max-width: 1140px !important;
        margin: 40px auto !important;
        padding: 0 20px !important;
        align-items: start !important; /* Giữ cố định sidebar ở trên cùng, không bị tụt */
    }

    /* Đảm bảo cột nội dung chính chiếm trọn không gian cột 1 */
    #primary {
        grid-column: 1 !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    /* Đảm bảo cột phụ Sidebar nhảy hẳn lên vị trí cột 2 bên phải */
    #secondary {
        grid-column: 2 !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding-left: 30px !important;
        border-left: 1px solid #eaeaea !important; /* Thêm đường vạch kẻ dọc mờ phong cách thanh lịch */
    }
}

/* ==========================================================================
   BUTTON BACK TO TOP (TỐI GIẢN)
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #111111; /* Màu đen tối giản */
    color: #ffffff;
    border: none;
    border-radius: 50%; /* Nút hình tròn */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    
    /* Hiệu ứng ẩn hiện mượt mà bằng CSS */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Hơi thụt xuống dưới khi ẩn */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hiệu ứng khi nút được kích hoạt (Thêm class .show bằng JS) */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Đẩy lên vị trí chuẩn */
}

/* Hiệu ứng khi di chuột qua (Hover) */
#back-to-top:hover {
    background-color: #555555;
    transform: translateY(-3px); /* Nhấc nhẹ lên tạo cảm giác cơ học */
}

/* Đảm bảo toàn bộ trang web cuộn mượt mà bằng CSS */
html {
    scroll-behavior: smooth;
}

/* Phóng to tối đa mũi tên để chiếm gần hết kích thước nút */
#back-to-top svg {
    width: 28px;  /* Đặt kích thước gốc cố định */
    height: 28px;
    transform: scale(1.65); /* Phóng to 165% để mũi tên bung rộng gần sát viền nút tròn */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hiệu ứng khi hover: Mũi tên nhấc nhẹ lên tạo cảm giác cơ học trực quan */
#back-to-top:hover svg {
    transform: scale(1.65) translateY(-1px);
}

/* ==========================================================================
   GIẢI PHÁP FIXED MENU BẤT KHẢ CHIẾN BẠI (DESKTOP TỪ 996PX)
   ========================================================================== */
@media (min-width: 996px) {
    
    /* Ẩn nút mobile */
    .menu-toggle {
        display: none !important;
    }

    /* Khóa chặt menu lên đỉnh màn hình bằng FIXED */
    #site-navigation, .main-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: rgba(255, 255, 255, 0.96) !important; /* Nền trắng mờ kính */
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 20px 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        z-index: 99999 !important; /* Luôn nổi lên trên bài viết */
        transition: all 0.3s ease;
    }

    /* Dàn hàng ngang và căn giữa menu */
    .main-navigation ul {
        display: flex !important;
        justify-content: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 35px !important;
    }

    .main-navigation li a {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.8rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #111111 !important;
    }

    /* --- SỬA LỖI ĐÈ CHỮ: Đẩy phần nội dung bên dưới xuống để không bị menu fixed che khuất --- */
    #content, .site-content {
        margin-top: 40px !important; /* Tạo một khoảng trống vừa đủ bằng chiều cao menu */
    }

    /* Hiệu ứng co nhỏ menu khi cuộn chuột xuống (kết hợp JS) */
    .main-navigation.scrolled {
        padding: 12px 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
        background-color: #ffffff !important;
    }
}

/* ==========================================================================
   SỬA LỖI MENU FIXED CHE KHUẤT ADMIN BAR CỦA WORDPRESS
   ========================================================================== */
@media (min-width: 996px) {
    /* Khi đang đăng nhập, WordPress sẽ tự động thêm class .admin-bar vào thẻ body */
    .admin-bar #site-navigation, 
    .admin-bar .main-navigation {
        top: 32px !important; /* Đẩy menu fixed xuống dưới thanh Admin Bar */
    }
}

/* ==========================================================================
   STYLE CHO KHỐI CHỮ FOOTER ĐỘNG ĐƯỢC CẤU HÌNH TỪ ADMIN
   ========================================================================== */
.footer-custom-content {
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #aaaaaa;
    letter-spacing: 1.5px;
    line-height: 2;
}

/* Định dạng nếu bạn viết nhiều đoạn văn hoặc chèn link trong widget footer */
.footer-custom-content p {
    margin: 0 0 10px 0;
}
.footer-custom-content a {
    color: #888888;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.footer-custom-content a:hover {
    color: #111111;
}

/* ==========================================================================
   STYLE FOOTER ĐỒNG BỘ HOÀN HẢO VỚI FIXED HEADER
   ========================================================================== */
.site-footer {
    background-color: #ffffff;
    
    /* 1. Ép viền trên của Footer giống hệt viền dưới của Header */
    border-top: 1px solid #f5f5f5 !important; 
    
    /* 2. Đồng bộ padding trên/dưới giống hệt như thanh menu (20px) */
    padding: 20px 0 !important; 
    
    /* Khoảng cách đẩy footer tách biệt khỏi nội dung bài viết dài phía trên */
    margin-top: 100px; 
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    
    /* Biến phần nội dung footer thành hàng ngang (Flex) căn giữa để đối xứng với thanh menu */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* Đảm bảo chữ trong widget footer ăn khớp khoảng cách */
.footer-custom-content {
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #aaaaaa;
    letter-spacing: 1.5px;
}

.site-info {
	text-align: center;
}

/* ==========================================================================
   FIX LỖI WIDGET LÀM MẤT CĂN GIỮA THEO CHIỀU DỌC CỦA FOOTER
   ========================================================================== */

/* 1. Triệt tiêu toàn bộ margin/padding mặc định của bản thân khối Widget */
.site-footer .widget {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important; /* Xóa bỏ nền nếu có */
    border: none !important;
}

/* 2. Triệt tiêu margin của thẻ p (đoạn văn) do WordPress tự động sinh ra bên trong widget */
.site-footer .widget p,
.site-footer .footer-custom-content p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important; /* Khóa line-height gọn gàng để không kích chiều cao */
}

/* 3. Ép khung container dùng Flexbox để khóa chặt mục tiêu vào giữa tâm */
.footer-container {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 0 20px;
    
    display: flex !important;
    justify-content: center !important; /* Căn giữa theo chiều ngang */
    align-items: center !important;     /* Bắt buộc căn giữa khít theo chiều dọc */
    min-height: 24px; /* Đảm bảo có một chiều cao cơ sở bằng kích thước chữ */
}

/* ==========================================================================
   SỬA LỖI FORM TÌM KIẾM - KHÔNG ẢNH HƯỞNG ĐẾN NÚT BÌNH LUẬN (COMMENT)
   ========================================================================== */

/* 1. Khung bọc của RIÊNG form tìm kiếm */
.wp-block-search, 
.widget_search .search-form, 
.wp-block-search__inside-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 25px;
}

/* 2. Chỉ ép ô nhập liệu của RIÊNG khối tìm kiếm (Không ảnh hưởng ô nhập bình luận) */
.wp-block-search__input, 
.widget_search .search-field,
.search-form input[type="search"] {
    width: 100% !important;
    padding: 12px 45px 12px 15px !important; /* Chừa 45px bên phải để không đè lên kính lúp */
    font-family: 'Lora', sans-serif;
    font-size: var(--fs-base);
    color: #111111;
    background-color: #f9f9f9 !important;
    border: 1px solid #eeeeee !important;
    border-radius: 4px !important;
    outline: none;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

.wp-block-search__input:focus, 
.widget_search .search-field:focus,
.search-form input[type="search"]:focus {
    background-color: #ffffff !important;
    border-color: #111111 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* 3. CHỈ BIẾN NÚT CỦA KHỐI TÌM KIẾM THÀNH KÍNH LÚP 
   (Thêm tiền tố .wp-block-search và .widget_search để bảo vệ nút Comment) */
.wp-block-search .wp-block-search__button, 
.widget_search .search-submit,
.search-form .search-submit {
    position: absolute !important;
    top: 50% !important;
    right: 5px !important; /* Găm nút vào trong ô input */
    transform: translateY(-50%) !important;
    
    width: 35px !important;
    height: 35px !important;
    background: none !important;
    border: none !important;
    font-size: 0 !important; /* Giấu chữ Search/Tìm kiếm gốc */
    color: transparent !important;
    cursor: pointer !important;
    z-index: 5 !important;

    /* Chèn icon kính lúp SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    transition: all 0.3s ease;
}

/* Hiệu ứng Hover riêng cho nút kính lúp */
.wp-block-search .wp-block-search__button:hover, 
.widget_search .search-submit:hover,
.search-form .search-submit:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
}

/* Ẩn chữ tiêu đề mặc định nằm sát trên ô input Search */
.wp-block-search__label {
    display: none !important;
}

/* ==========================================================================
   STYLE NÚT BÌNH LUẬN (POST COMMENT) TỐI GIẢN CHUẨN ĐẸP
   ========================================================================== */
#commentform input[type="submit"],
.comment-form input[type="submit"] {
    position: relative !important;
    display: inline-block !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    background-color: #111111 !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: 'Lora', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hiệu ứng khi hover vào nút Post Comment */
#commentform input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
    background-color: #555555 !important; /* Đổi sang xám đậm khi di chuột */
    background-image: none !important; /* Chống dính kính lúp */
}

/* ==========================================================================
   ĐỒNG BỘ MÀU SẮC TIÊU ĐỀ POST VÀ CÁC LINK ĐI KÈM (MINIMAL BLACK/GRAY)
   ========================================================================== */

/* 1. Đưa tiêu đề bài viết (ở Trang chủ, Single page, Archive) về màu đen tối giản */
.entry-title a,
.entry-title {
    font-family: 'Lora', sans-serif;
    color: #111111 !important; /* Đổi hẳn từ xanh sang đen */
    text-decoration: none !important;
    transition: color 0.3s ease;
}

/* Hiệu ứng khi rê chuột vào tiêu đề bài viết (mờ nhẹ đi một chút tinh tế) */
.entry-title a:hover {
    color: #555555 !important;
}

/* 2. Đồng bộ các phần link meta phía dưới tiêu đề (Ngày tháng, Tác giả, Chuyên mục, Bình luận) */
.entry-meta, 
.entry-meta a,
.entry-footer,
.entry-footer a,
.cat-links a,
.tags-links a,
.byline a,
.posted-on a {
    font-family: 'Lora', sans-serif;
    font-size: 0.75rem; /* Thu nhỏ lại một chút cho thanh lịch */
    text-transform: uppercase; /* Viết in hoa nhẹ nhàng */
    letter-spacing: 1px;
    color: #999999 !important; /* Chuyển sang màu xám mảnh tinh tế, không bị nổi bật quá mức */
    transition: color 0.3s ease;
}

/* Hiệu ứng khi rê chuột vào các đường link phụ này */
.entry-meta a:hover,
.entry-footer a:hover,
.cat-links a:hover,
.tags-links a:hover {
    color: #111111 !important; /* Chuyển sang đen khi hover để người dùng biết click được */
}

/* 3. Sửa luôn dấu gạch hoặc khoảng cách giữa các thành phần meta cho đỡ thô */
.entry-meta > span {
    margin-right: 15px;
}

.more-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111111 !important;
    border-bottom: 1px solid #111111; /* Tạo đường gạch chân mảnh tinh tế thay vì gạch mặc định */
    padding-bottom: 2px;
    transition: all 0.3s ease;
}
.more-link:hover {
    color: #666666 !important;
    border-bottom-color: #666666;
}

/* ==========================================================================
   FIX LỖI DÍNH CHỮ TRONG PHẦN META (POSTED BY, COMMENT, EDIT)
   ========================================================================== */

/* 1. Giãn cách cho phần Meta dưới tiêu đề (Nếu có chữ Posted by ở trên) */
.entry-meta > span {
    margin-right: 15px !important; /* Tạo khoảng cách 15px bên phải mỗi mục */
    display: inline-block; /* Đảm bảo thuộc tính margin hoạt động chuẩn */
}

/* Xóa khoảng cách của mục cuối cùng để không bị lệch khung */
.entry-meta > span:last-child {
    margin-right: 0 !important;
}

/* 2. Giãn cách cho phần Footer dưới bài viết (Nơi chứa Leave comment, Edit, Tags) */
.entry-footer > span,
.entry-footer .cat-links,
.entry-footer .tags-links,
.entry-footer .comments-link,
.entry-footer .edit-link {
    margin-right: 18px !important; /* Tạo khoảng cách thoáng đãng giữa các link */
    display: inline-block;
}

.entry-footer > span:last-child {
    margin-right: 0 !important;
}

/* 3. Tạo một dấu gạch đứng mảnh (|) ẩn hiện giữa các thành phần cho thêm phần tinh tế (Tùy chọn) */
.entry-footer > span:not(:last-child)::after {
    content: "|";
    margin-left: 18px;
    color: #eeeeee; /* Màu gạch dọc rất nhẹ, không làm rối mắt */
}

/* ==========================================================================
   ĐỒNG BỘ FONT MONTSERRAT CHO TOÀN BỘ NỘI DUNG BÀI VIẾT (POST CONTENT)
   ========================================================================== */

/* 1. Áp dụng Montserrat cho tất cả chữ thường, danh sách, đoạn văn trong bài */
.entry-content,
.entry-content p,
.entry-content li,
.entry-content blockquote {
    font-family: 'Lora', sans-serif !important;
    font-size: var(--fs-base); /* Kích thước chữ vừa vặn, dễ đọc trên desktop */
    line-height: 1.75;  /* Chiều cao dòng thoáng đãng, giúp người đọc không bị mỏi mắt */
    color: #333333;     /* Màu xám đen thẫm (đỡ gắt hơn màu đen tuyền, tăng trải nghiệm đọc) */
}

/* 2. Áp dụng cho các tiêu đề (Heading) người dùng tự chèn bên trong bài viết */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Lora', sans-serif !important;
    color: #111111 !important;
    font-weight: 600; /* Làm đậm tiêu đề để phân biệt với chữ thường */
    letter-spacing: -0.5px; /* Thu hẹp khoảng cách chữ tiêu đề một chút cho giống tạp chí */
    margin-top: 30px; /* Tạo khoảng cách vừa đủ với đoạn văn phía trên */
    margin-bottom: 15px;
}

/* Tinh chỉnh size cho riêng từng cấp tiêu đề trong bài cho cân đối */
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }

/* ==========================================================================
   ĐỒNG BỘ FONT LORA CHO SIDEBAR & LOẠI BỎ HIỆU ỨNG HOVER THỤT LỀ
   ========================================================================== */

/* 1. Ép toàn bộ text nhỏ, danh sách bài viết, comment, widget ở sidebar sang LORA */
.widget ul li,
.widget ul li a,
.widget_recent_entries a,
.widget_recent_comments span,
.widget_archive a,
.widget_categories a {
    font-family: 'Lora', Georgia, serif !important;
    font-size: var(--fs-base) !important; /* Size vừa vặn với font có chân */
    line-height: 1.6 !important;
    color: #444444 !important; /* Màu xám đậm dễ đọc */
    text-decoration: none !important;
    transition: color 0.3s ease !important; /* Chỉ mượt mà về màu sắc */
}

/* 2. Hiệu ứng Hover: Chỉ đổi màu sang đen, KHÔNG thụt lề, KHÔNG chuyển động khối */
.widget ul li a:hover,
.widget_recent_entries a:hover,
.widget_archive a:hover,
.widget_categories a:hover {
    color: #111111 !important; /* Đậm lên thành đen tuyền khi hover */
    
    /* TRẬT TIÊU HOÀN TOÀN HIỆU ỨNG THỤT LỀ CỦA UNDERSCORES */
    padding-left: 0 !important; 
    margin-left: 0 !important;
    transform: none !important;
}

/* 3. Tinh chỉnh khoảng cách giữa các hàng trong danh sách cho thoáng đãng */
.widget ul li {
	list-style: circle !important;
    padding: 8px 0 !important;
    border-bottom: 1px id solid transparent; /* Đảm bảo không bị nhảy pixel */
    margin: 0 !important;
}

/* 4. Giữ nguyên Tiêu đề các Widget (ví dụ: BÀI VIẾT MỚI, CHUYÊN MỤC) là Montserrat in hoa cho đúng layout */
.widget .widget-title,
.sidebar .widget-title, .wp-block-heading {
    font-family: 'Lora', sans-serif !important;
    font-size: var(--fs-base) !important;
    font-weight: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #111111 !important;
    margin-bottom: 15px !important;
    border: none !important;
}

/* ==========================================================================
   STYLE NÚT ĐỌC TIẾP (READ MORE) TỐI GIẢN NGOÀI TRANG CHỦ
   ========================================================================== */
.more-link-excerpt {
    display: inline-block !important;
    font-family: 'Lora', sans-serif !important;
    font-size: 1rem !important; /* Chữ nhỏ gọn, tinh tế */
    font-weight: 500 !important;
    text-transform: uppercase; /* Viết in hoa sang trọng */
    letter-spacing: 1px; /* Giãn chữ */
    color: #111111 !important; /* Màu đen tuyền */
    text-decoration: none !important;
    
    /* Tạo một đường gạch dưới chân mảnh, cách chữ một khoảng nhỏ thay vì gạch mặc định */
    border-bottom: 1px solid #111111; 
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi rê chuột vào nút Đọc tiếp */
.more-link-excerpt:hover {
    color: #777777 !important; /* Mờ nhẹ sang xám */
    border-bottom-color: #777777; /* Đường gạch chân cũng mờ theo */
}

/* ==========================================================================
   HAMBURGER MENU & OFF-CANVAS SIDEBAR CHO MOBILE & TABLET
   ========================================================================== */

/* 1. Mặc định ẩn nút 3 gạch trên màn hình Máy tính (Desktop) */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
	width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999;
    position: absolute;
	outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Vẽ hình 3 gạch bằng CSS thuần tinh tế */
.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}
.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: #111111;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -7px; left: 0; }
.hamburger-inner::after { content: ""; bottom: -7px; left: 0; }

/* Hiệu ứng biến đổi 3 gạch thành dấu X khi mở menu */
.sidebar-open #mobile-menu-toggle .hamburger-inner { background-color: transparent; }
.sidebar-open #mobile-menu-toggle .hamburger-inner::before { transform: rotate(45deg); top: 0; }
.sidebar-open #mobile-menu-toggle .hamburger-open .hamburger-inner::after { transform: rotate(-45deg); bottom: 0; }
.sidebar-open #mobile-menu-toggle .hamburger-inner::after { transform: rotate(-45deg); bottom: 0; }


/* ==========================================================================
   2. ĐỘT BIẾN GIAO DIỆN KHI VÀO IPAD VÀ ĐIỆN THOẠI (MAX-WIDTH: 991PX)
   ========================================================================== */
@media (max-width: 991px) {
    
    /* Hiện nút 3 gạch, căn phải thanh Header */
    #mobile-menu-toggle {
        display: block !important;
    }
    
    /* Ẩn thanh menu ngang mặc định để đỡ rối */
    .main-navigation ul {
        display: none !important;
    }

    /* BIẾN SIDEBAR THÀNH CÁI HỘP ẨN NGOÀI MÀN HÌNH */
    #secondary, 
    .sidebar {
        position: fixed !important;
        right: -320px !important; /* Đẩy hẳn ra ngoài rìa phải màn hình */
        width: 300px !important;
        top: 0 !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.05) !important;
        padding: 80px 30px 40px 30px !important;
        overflow-y: auto !important; /* Nếu sidebar dài quá thì tự cuộn dọc */
        z-index: 999999 !important;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; /* Hiệu ứng trượt êm ái */

        /* Đảm bảo bật tính năng cuộn nội dung bên trong hộp */
        overflow-y: auto !important; 
        /* Giúp hiệu ứng cuộn bằng ngón tay trên iOS (Safari) mượt mà, không bị khựng */
        -webkit-overflow-scrolling: touch !important; 
        
        /* 1. Ẩn thanh cuộn đối với trình duyệt Firefox */
        scrollbar-width: none !important;
    }

    /* 2. ẨN THANH CUỘN ĐỐI VỚI TRÌNH DUYỆT NHÂN WEBKIT (CHROME, SAFARI, EDGE, OPERA) */
    #secondary::-webkit-scrollbar,
    .sidebar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }

    /* KHI BẤM NÚT: Đẩy Sidebar trượt mượt mà từ phải vào trong màn hình */
    .sidebar-open #secondary {
        right: 0 !important;
    }

    /* Tạo lớp màng mờ tối phủ lên nội dung trang khi mở menu */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 9990;
    }
    body.sidebar-open::before {
        opacity: 1;
        visibility: visible;
    }

    /* Ép khung content chính rộng 100% khi trên mobile, không bị chia cột */
    #primary {
        width: 100% !important;
        float: none !important;
    }

	/* 1. Thanh Header màu trắng đặc, cố định trên đỉnh */
    #masthead,
    .site-header {
        /* position: fixed !important;
		top: 0 !important;
        left: 0 !important; */
        position: relative;
        width: 100% !important;
        height: 60px !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        
        /* Đảm bảo nền trắng hoàn toàn, không bị nhìn xuyên thấu nội dung phía dưới */
        background-color: #ffffff !important; 
        background: #ffffff !important;
        border-bottom: 1px solid #eeeeee !important;
        
        display: block !important; /* Hủy flexbox để dùng định vị cứng */
        z-index: 9990 !important;
    }

    /* 2. KHỐNG CHẾ THANH ADMIN BAR CỦA WORDPRESS KHI LOGIN:
       Ép nó dịch xuống dưới thanh Header của bạn, biến nó thành phụ thuộc vào Header */
    /* .admin-bar #wpadminbar {
        position: fixed !important;
        top: 60px !important;
    } */

    /* 2. GĂM CỨNG NÚT 3 GẠCH VÀO GÓC TRÁI (Hitbox chuẩn 44px dễ bấm) */
    #mobile-menu-toggle {
        position: absolute !important; 
        top: 8px !important; /* Căn giữa chiều dọc (60 - 44) / 2 */
        left: 0 !important; /* Cách lề trái 15px */
        
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
    }

    /* 3. ÉP KHỐI TÊN WEB DẠT SANG PHẢI */
    .site-branding {
        float: right !important; /* Đẩy kịch về bên phải đối xứng với nút */
        margin: 0 !important;
        padding: 0 !important;
        
        height: 60px !important;
        display: flex !important;
        align-items: center !important; 
        
        /* Giới hạn chiều rộng để không bao giờ lấn sang vùng nút bên trái */
        max-width: calc(100% - 60px) !important; 
        text-align: right !important;
    }

    .site-title {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 4. ẨN HOÀN TOÀN DÒNG DESCRIPTION THỪA THÃI */
    .site-description {
        display: none !important;
    }

    /* Khử float bảo vệ khung */
    #masthead::after,
    .site-header::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
}

.wp-block-preformatted,
pre.wp-block-preformatted {
    box-sizing: border-box !important;
    display: block !important;
    width: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
    white-space: pre !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    word-break: normal !important;
    word-wrap: normal !important;
}

.wp-block-preformatted code,
.wp-block-preformatted span {
    display: inline-block !important;
    min-width: 100% !important;
    white-space: pre !important;
    word-break: normal !important;
    word-wrap: normal !important;
}

.wp-block-preformatted,
pre.wp-block-preformatted {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.wp-block-preformatted::-webkit-scrollbar,
pre.wp-block-preformatted::-webkit-scrollbar {
    display: none !important;
}
