/*
Theme Name: GStyle Blog
Theme URI: https://giang.pro.vn
Author: Giang.Pro.VN
Author URI: https://giang.pro.vn
Description: Giao diện blog cá nhân phong cách blog cổ điển Việt Nam: thanh điều hướng xanh cyan, thẻ bài viết trắng gọn gàng, bài nổi bật, bài liên quan, tích hợp sẵn lớp SEO (meta description, Open Graph, Twitter Card, JSON-LD) tự tắt khi có plugin SEO.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gstyle
Tags: blog, two-columns, right-sidebar, custom-logo, custom-colors, custom-menu, featured-images, featured-image-header, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
# Biến & nền tảng
--------------------------------------------------------------*/
:root {
	--g-primary: #019dc6;
	--g-primary-dark: #01779a;
	--g-primary-light: #a8d9f6;
	--g-accent: #FF8C00;
	--g-border: #e2e2e2;
	--g-bg: #f5f7f8;
	--g-card-bg: #ffffff;
	--g-text: #232323;
	--g-muted: #767676;
	--g-topbar-bg: #23282c;
	--g-footer-bg: #22262a;
	--g-radius: 4px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--g-bg);
	color: var(--g-text);
	font-family: "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	word-wrap: break-word;
}

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

a {
	color: var(--g-primary);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--g-primary-dark);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.3;
	margin: 0 0 0.5em;
	color: #16181a;
}

p {
	margin: 0 0 1em;
}

.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;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--g-primary-dark);
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 12px 18px;
	top: 6px;
	width: auto;
	z-index: 100000;
}

.g-container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.g-card {
	background: var(--g-card-bg);
	border: 1px solid var(--g-border);
	border-radius: var(--g-radius);
}

/*--------------------------------------------------------------
# Thanh trên cùng (top bar)
--------------------------------------------------------------*/
.g-topbar {
	background: var(--g-topbar-bg);
	color: #cfd6da;
	font-size: 13px;
}

.g-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.g-topbar .g-tagline {
	color: #9fb3ba;
	text-align: right;
}

/*--------------------------------------------------------------
# Đầu trang (site header)
--------------------------------------------------------------*/
.g-site-header {
	background: #fff;
	border-bottom: 1px solid var(--g-border);
}

.g-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.g-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.g-branding .custom-logo {
	max-height: 64px;
	width: auto;
}

.g-site-title {
	font-size: 30px;
	font-weight: 800;
	margin: 0;
	line-height: 1.15;
}

.g-site-title a {
	color: var(--g-primary);
	text-decoration: none;
}

.g-site-title a:hover {
	color: var(--g-primary-dark);
}

.g-site-description {
	margin: 2px 0 0;
	color: var(--g-muted);
	font-size: 14px;
}

.g-header-search {
	flex: 0 0 320px;
	max-width: 100%;
}

/*--------------------------------------------------------------
# Form tìm kiếm
--------------------------------------------------------------*/
.g-search-form {
	display: flex;
	width: 100%;
}

.g-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--g-border);
	border-right: 0;
	border-radius: var(--g-radius) 0 0 var(--g-radius);
	font-size: 14px;
	background: #fff;
	color: var(--g-text);
}

.g-search-form input[type="search"]:focus {
	outline: 2px solid var(--g-primary-light);
	outline-offset: -1px;
}

.g-search-form button {
	flex: 0 0 auto;
	border: 1px solid var(--g-primary);
	background: var(--g-primary);
	color: #fff;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 0 var(--g-radius) var(--g-radius) 0;
	cursor: pointer;
}

.g-search-form button:hover,
.g-search-form button:focus {
	background: var(--g-primary-dark);
	border-color: var(--g-primary-dark);
}

/*--------------------------------------------------------------
# Điều hướng chính
--------------------------------------------------------------*/
.g-main-nav {
	background: var(--g-primary);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.g-nav-inner {
	display: flex;
	align-items: center;
}

.g-nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 6px;
	cursor: pointer;
	align-items: center;
	gap: 8px;
}

.g-nav-toggle .g-nav-toggle-icon {
	font-size: 20px;
	line-height: 1;
}

.g-primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.g-primary-menu li {
	position: relative;
	margin: 0;
}

.g-primary-menu a {
	display: block;
	padding: 12px 16px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.g-primary-menu a:hover,
.g-primary-menu a:focus,
.g-primary-menu .current-menu-item > a,
.g-primary-menu .current_page_item > a {
	background: var(--g-primary-dark);
	color: #fff;
	text-decoration: none;
}

.g-primary-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 210px;
	background: var(--g-primary-dark);
	z-index: 50;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.g-primary-menu li:hover > ul,
.g-primary-menu li:focus-within > ul {
	display: block;
}

.g-primary-menu ul a {
	padding: 10px 16px;
	font-weight: 500;
}

/*--------------------------------------------------------------
# Bố cục chính
--------------------------------------------------------------*/
.g-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	padding-top: 25px;
	padding-bottom: 35px;
}

.g-main {
	flex: 1 1 auto;
	min-width: 0;
}

.g-sidebar {
	flex: 0 0 300px;
	width: 300px;
}

/*--------------------------------------------------------------
# Breadcrumb
--------------------------------------------------------------*/
.g-breadcrumb {
	background: #fff;
	border: 1px solid var(--g-border);
	border-radius: var(--g-radius);
	padding: 9px 14px;
	margin-bottom: 20px;
	font-size: 13.5px;
}

.g-breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.g-breadcrumb li {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--g-muted);
}

.g-breadcrumb li + li::before {
	content: "»";
	color: var(--g-primary);
	margin-right: 4px;
}

.g-breadcrumb [aria-current="page"] {
	color: var(--g-text);
	font-weight: 600;
}

/*--------------------------------------------------------------
# Bài nổi bật (trang chủ)
--------------------------------------------------------------*/
.g-featured {
	margin-bottom: 25px;
}

.g-featured-heading,
.g-section-heading {
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--g-primary);
	display: inline-block;
}

.g-featured-grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 18px;
}

.g-featured-main {
	overflow: hidden;
}

.g-featured-main .g-featured-thumb img {
	display: block;
	width: 100%;
}

.g-featured-main .g-featured-body {
	padding: 14px 16px 16px;
}

.g-featured-main h3 {
	font-size: 21px;
	margin-bottom: 6px;
}

.g-featured-main h3 a {
	color: #16181a;
}

.g-featured-main h3 a:hover {
	color: var(--g-primary);
	text-decoration: none;
}

.g-featured-side {
	display: grid;
	grid-template-rows: repeat(4, 1fr);
	gap: 12px;
}

.g-featured-small {
	display: flex;
	gap: 12px;
	padding: 10px;
	align-items: flex-start;
}

.g-featured-small .g-featured-thumb {
	flex: 0 0 104px;
}

.g-featured-small .g-featured-thumb img {
	display: block;
	width: 104px;
	height: 72px;
	object-fit: cover;
	border-radius: 3px;
}

.g-featured-small h3 {
	font-size: 14.5px;
	margin: 0 0 4px;
	line-height: 1.4;
}

.g-featured-small h3 a {
	color: #16181a;
}

.g-featured-small h3 a:hover {
	color: var(--g-primary);
	text-decoration: none;
}

.g-featured-thumb {
	position: relative;
	display: block;
}

.g-hot-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--g-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.4px;
	padding: 2px 8px;
	border-radius: 3px;
	z-index: 2;
	text-transform: uppercase;
}

.g-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 72px;
	background: var(--g-primary-light);
}

/*--------------------------------------------------------------
# Danh sách bài viết (kiểu TDBlog)
--------------------------------------------------------------*/
.g-list-item {
	display: flex;
	gap: 18px;
	padding: 16px;
	margin-bottom: 18px;
}

.g-list-thumb {
	flex: 0 0 268px;
	position: relative;
	display: block;
	align-self: flex-start;
}

.g-list-thumb img {
	display: block;
	width: 268px;
	height: 179px;
	object-fit: cover;
	border-radius: 3px;
}

.g-list-thumb .g-thumb-placeholder {
	width: 268px;
	height: 179px;
	border-radius: 3px;
}

.g-list-body {
	flex: 1 1 auto;
	min-width: 0;
}

.g-cat-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--g-primary);
	margin-bottom: 4px;
}

.g-cat-label:hover {
	color: var(--g-primary-dark);
	text-decoration: none;
}

.g-list-title {
	font-size: 21px;
	margin-bottom: 6px;
}

.g-list-title a {
	color: #16181a;
}

.g-list-title a:hover {
	color: var(--g-primary);
	text-decoration: none;
}

.g-meta {
	font-size: 13px;
	color: var(--g-muted);
	margin-bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.g-meta a {
	color: var(--g-muted);
}

.g-meta a:hover {
	color: var(--g-primary);
}

.g-list-excerpt {
	color: #444;
	font-size: 15px;
}

.g-list-excerpt p {
	margin-bottom: 8px;
}

.g-readmore {
	display: inline-block;
	font-weight: 600;
	font-size: 14px;
}

.g-readmore::after {
	content: " →";
}

/*--------------------------------------------------------------
# Phân trang
--------------------------------------------------------------*/
.g-pagination {
	margin-top: 26px;
	text-align: center;
}

.g-pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.g-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid var(--g-border);
	border-radius: var(--g-radius);
	color: var(--g-primary);
	font-weight: 600;
	text-decoration: none;
}

.g-pagination .page-numbers:hover {
	border-color: var(--g-primary);
	text-decoration: none;
}

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

/*--------------------------------------------------------------
# Bài viết chi tiết (single)
--------------------------------------------------------------*/
.g-single {
	padding: 22px 26px;
}

.g-single-title {
	font-size: 30px;
	margin-bottom: 10px;
}

.g-single .g-meta {
	border-bottom: 1px solid var(--g-border);
	padding-bottom: 12px;
	margin-bottom: 18px;
}

.g-single-thumb {
	margin: 0 0 20px;
}

.g-single-thumb img {
	display: block;
	width: 100%;
	border-radius: var(--g-radius);
}

.g-single-thumb figcaption {
	font-size: 13px;
	color: var(--g-muted);
	text-align: center;
	padding-top: 8px;
	font-style: italic;
}

.g-entry-content {
	font-size: 16.5px;
	line-height: 1.75;
}

.g-entry-content h2 {
	font-size: 24px;
	margin-top: 1.4em;
}

.g-entry-content h3 {
	font-size: 20px;
	margin-top: 1.3em;
}

.g-entry-content ul,
.g-entry-content ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.g-entry-content blockquote {
	margin: 1.2em 0;
	padding: 12px 18px;
	border-left: 4px solid var(--g-primary);
	background: #f0f8fb;
	color: #33424a;
}

.g-entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.g-entry-content pre {
	background: #23282c;
	color: #e8f2f5;
	padding: 14px 16px;
	border-radius: var(--g-radius);
	overflow-x: auto;
	font-size: 14px;
}

.g-entry-content code {
	background: #eef3f5;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 0.92em;
}

.g-entry-content pre code {
	background: transparent;
	padding: 0;
}

.g-entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 1em;
}

.g-entry-content th,
.g-entry-content td {
	border: 1px solid var(--g-border);
	padding: 8px 10px;
	text-align: left;
}

.g-entry-content th {
	background: #f0f8fb;
}

.g-tags {
	margin: 22px 0 6px;
	font-size: 14px;
}

.g-tags .g-tags-label {
	font-weight: 700;
	margin-right: 6px;
}

.g-tags a {
	display: inline-block;
	background: #eef6f9;
	border: 1px solid var(--g-border);
	border-radius: 20px;
	padding: 3px 12px;
	margin: 0 6px 6px 0;
	color: var(--g-primary-dark);
	font-size: 13px;
}

.g-tags a:hover {
	background: var(--g-primary-light);
	text-decoration: none;
}

/* Nút chia sẻ */
.g-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 6px;
	padding: 14px 0;
	border-top: 1px solid var(--g-border);
	border-bottom: 1px solid var(--g-border);
}

.g-share-label {
	font-weight: 700;
	font-size: 14px;
	margin-right: 4px;
}

.g-share-btn {
	display: inline-block;
	padding: 7px 14px;
	border-radius: var(--g-radius);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	text-decoration: none;
}

.g-share-btn:hover,
.g-share-btn:focus {
	color: #fff;
	text-decoration: none;
	opacity: 0.88;
}

.g-share-fb { background: #1877f2; }
.g-share-x { background: #14171a; }
.g-share-telegram { background: #229ed9; }
.g-share-copy { background: #5a6b72; }

/* Hộp tác giả */
.g-author-box {
	display: flex;
	gap: 16px;
	padding: 18px;
	margin: 22px 0;
	background: #f7fbfd;
}

.g-author-box .avatar {
	border-radius: 50%;
	flex: 0 0 72px;
}

.g-author-box h3 {
	margin-bottom: 4px;
	font-size: 17px;
}

.g-author-box h3 a {
	color: #16181a;
}

.g-author-box p {
	margin: 0;
	font-size: 14.5px;
	color: #444;
}

/* Trước / sau */
.g-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 20px 0;
}

.g-post-nav a {
	display: block;
	background: #fff;
	border: 1px solid var(--g-border);
	border-radius: var(--g-radius);
	padding: 12px 16px;
	font-weight: 600;
	max-width: 48%;
}

.g-post-nav .g-post-nav-next {
	text-align: right;
	margin-left: auto;
}

.g-post-nav .g-post-nav-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--g-muted);
	font-weight: 700;
	margin-bottom: 2px;
}

/* Bài liên quan */
.g-related {
	margin-top: 26px;
}

.g-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.g-related-item {
	overflow: hidden;
}

.g-related-item img {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.g-related-item .g-thumb-placeholder {
	height: 130px;
}

.g-related-item h3 {
	font-size: 15px;
	padding: 10px 12px 12px;
	margin: 0;
	line-height: 1.45;
}

.g-related-item h3 a {
	color: #16181a;
}

.g-related-item h3 a:hover {
	color: var(--g-primary);
	text-decoration: none;
}

/*--------------------------------------------------------------
# Bình luận
--------------------------------------------------------------*/
.g-comments {
	padding: 20px 26px;
	margin-top: 24px;
}

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

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

.g-comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 34px;
}

.g-comment-body {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--g-border);
}

.g-comment-body .avatar {
	border-radius: 50%;
	flex: 0 0 48px;
}

.g-comment-main {
	flex: 1 1 auto;
	min-width: 0;
}

.g-comment-meta {
	font-size: 13px;
	color: var(--g-muted);
	margin-bottom: 4px;
}

.g-comment-author {
	font-weight: 700;
	font-size: 14.5px;
	margin-right: 8px;
}

.g-comment-author a {
	color: #16181a;
}

.g-comment-awaiting {
	color: var(--g-accent);
	font-style: italic;
	font-size: 14px;
}

.g-comment-text p:last-child {
	margin-bottom: 4px;
}

.g-comment-reply a {
	font-size: 13px;
	font-weight: 600;
}

.g-comments .comment-respond {
	margin-top: 20px;
}

.g-comments label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}

.g-comments input[type="text"],
.g-comments input[type="email"],
.g-comments input[type="url"],
.g-comments textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--g-border);
	border-radius: var(--g-radius);
	font: inherit;
	font-size: 14.5px;
}

.g-comments .submit,
.g-comments input[type="submit"] {
	background: var(--g-primary);
	border: 1px solid var(--g-primary);
	color: #fff;
	padding: 10px 22px;
	font-weight: 700;
	border-radius: var(--g-radius);
	cursor: pointer;
	width: auto;
}

.g-comments .submit:hover {
	background: var(--g-primary-dark);
}

.g-comments-nav {
	margin: 14px 0;
	display: flex;
	justify-content: space-between;
	font-weight: 600;
}

/*--------------------------------------------------------------
# Sidebar & widget
--------------------------------------------------------------*/
.g-widget {
	padding: 16px 18px;
	margin-bottom: 22px;
}

.g-widget-title {
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--g-primary);
}

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

.g-widget li {
	margin: 0 0 8px;
}

.g-widget-posts li {
	margin-bottom: 12px;
}

.g-widget-post {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	position: relative;
}

.g-widget-post img {
	width: 76px;
	height: 56px;
	object-fit: cover;
	border-radius: 3px;
	flex: 0 0 76px;
}

.g-widget-post .g-thumb-placeholder {
	width: 76px;
	height: 56px;
	flex: 0 0 76px;
	border-radius: 3px;
}

.g-widget-post .g-widget-post-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #16181a;
	display: block;
}

.g-widget-post .g-widget-post-title:hover {
	color: var(--g-primary);
	text-decoration: none;
}

.g-widget-post .g-widget-post-date {
	font-size: 12px;
	color: var(--g-muted);
}

.g-widget-post .g-hot-badge {
	top: 0;
	left: 0;
	font-size: 10px;
	padding: 1px 6px;
}

.g-widget .cat-item {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px dashed var(--g-border);
	padding-bottom: 6px;
}

.g-widget select,
.g-widget input[type="text"],
.g-widget input[type="search"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--g-border);
	border-radius: var(--g-radius);
	font: inherit;
	font-size: 14px;
}

.g-widget .tagcloud a {
	display: inline-block;
	background: #eef6f9;
	border-radius: 20px;
	padding: 2px 10px;
	margin: 0 4px 6px 0;
	font-size: 13px !important;
}

/*--------------------------------------------------------------
# Trang lưu trữ / tìm kiếm / trang tĩnh
--------------------------------------------------------------*/
.g-archive-header {
	padding: 20px 22px;
	margin-bottom: 20px;
}

.g-archive-title {
	font-size: 26px;
	margin-bottom: 6px;
}

.g-archive-description {
	color: #444;
}

.g-archive-description p:last-child {
	margin-bottom: 0;
}

.g-page {
	padding: 22px 26px;
}

.g-page-title {
	font-size: 28px;
	margin-bottom: 14px;
}

.g-no-results {
	padding: 24px;
}

.g-no-results h2 {
	font-size: 22px;
}

/* 404 */
.g-404 {
	padding: 36px 26px;
	text-align: center;
}

.g-404-code {
	font-size: 84px;
	font-weight: 800;
	color: var(--g-primary);
	line-height: 1;
	margin-bottom: 8px;
}

.g-404 .g-search-form {
	max-width: 460px;
	margin: 18px auto 8px;
	text-align: left;
}

.g-404-recent {
	text-align: left;
	max-width: 520px;
	margin: 24px auto 0;
}

.g-404-recent h2 {
	font-size: 18px;
}

.g-404-recent ul {
	margin: 0;
	padding-left: 1.2em;
}

/* Căn chỉnh nội dung WordPress */
.alignleft {
	float: left;
	margin: 0.4em 1.2em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.2em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 13px;
	color: var(--g-muted);
	text-align: center;
	padding-top: 6px;
}

.page-links {
	margin-top: 16px;
	font-weight: 600;
}

.page-links a,
.page-links .post-page-numbers {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--g-border);
	border-radius: var(--g-radius);
	margin-right: 4px;
	background: #fff;
}

.page-links .current {
	background: var(--g-primary);
	color: #fff;
	border-color: var(--g-primary);
}

.sticky {
	border-color: var(--g-primary-light);
}

/*--------------------------------------------------------------
# Chân trang (footer)
--------------------------------------------------------------*/
.g-site-footer {
	background: var(--g-footer-bg);
	color: #c7cfd4;
	margin-top: 10px;
}

.g-footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	padding-top: 34px;
	padding-bottom: 10px;
}

.g-footer-widgets .g-widget {
	background: transparent;
	border: 0;
	padding: 0;
	margin-bottom: 24px;
}

.g-footer-widgets .g-widget-title {
	color: #fff;
	border-bottom-color: var(--g-primary);
}

.g-footer-widgets a {
	color: #dbe7ec;
}

.g-footer-widgets a:hover {
	color: var(--g-primary-light);
}

.g-footer-widgets .g-widget-post .g-widget-post-title {
	color: #eef4f6;
}

.g-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 16px;
	padding-bottom: 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 13.5px;
}

.g-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.g-footer-menu a {
	color: #c7cfd4;
}

.g-footer-menu a:hover {
	color: #fff;
}

/* Nút về đầu trang */
.g-back-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--g-primary);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 90;
}

.g-back-top:hover,
.g-back-top:focus {
	background: var(--g-primary-dark);
}

.g-back-top.is-visible {
	opacity: 1;
	visibility: visible;
}

/*--------------------------------------------------------------
# Đáp ứng (responsive)
--------------------------------------------------------------*/
@media (max-width: 992px) {
	.g-layout {
		flex-direction: column;
	}

	.g-sidebar {
		flex: none;
		width: 100%;
	}

	.g-featured-grid {
		grid-template-columns: 1fr;
	}

	.g-featured-side {
		grid-template-rows: none;
		grid-template-columns: 1fr 1fr;
	}

	.g-related-grid {
		grid-template-columns: 1fr 1fr;
	}

	.g-footer-widgets {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 15px;
	}

	.g-header-inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.g-branding {
		justify-content: center;
	}

	.g-header-search {
		flex: none;
	}

	.g-nav-toggle {
		display: inline-flex;
	}

	.g-primary-menu {
		display: none;
		flex-direction: column;
		width: 100%;
		padding-bottom: 8px;
	}

	.g-main-nav.is-open .g-primary-menu {
		display: flex;
	}

	.g-primary-menu ul {
		position: static;
		display: block;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.08);
	}

	.g-list-item {
		flex-direction: column;
	}

	.g-list-thumb,
	.g-list-thumb img,
	.g-list-thumb .g-thumb-placeholder {
		width: 100%;
	}

	.g-list-thumb img,
	.g-list-thumb .g-thumb-placeholder {
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.g-list-thumb {
		flex: none;
	}

	.g-featured-side {
		grid-template-columns: 1fr;
	}

	.g-single,
	.g-page,
	.g-comments {
		padding: 18px 16px;
	}

	.g-single-title {
		font-size: 25px;
	}

	.g-post-nav {
		flex-direction: column;
	}

	.g-post-nav a {
		max-width: 100%;
	}

	.g-post-nav .g-post-nav-next {
		text-align: left;
	}

	.g-author-box {
		flex-direction: column;
	}

	.g-topbar .g-tagline {
		display: none;
	}

	.g-topbar-inner {
		justify-content: center;
	}
}

@media (max-width: 520px) {
	.g-related-grid,
	.g-footer-widgets {
		grid-template-columns: 1fr;
	}

	.g-footer-bottom {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}

	.g-404-code {
		font-size: 60px;
	}
}


/* --- Font Awesome: icon trong meta, nut chia se, tieu de muc --- */
.g-meta .fa { margin-right: 5px; color: var(--g-primary); }
.g-cat-label .fa, .g-tags-label .fa { margin-right: 5px; }
.g-hot-badge .fa { margin-right: 4px; }
.g-share-btn .fa { margin-right: 6px; }
.g-share-label .fa { margin-right: 5px; color: var(--g-primary); }
.g-featured-heading .fa, .g-section-heading .fa, .g-comments-title .fa { margin-right: 7px; color: var(--g-primary); }
.g-widget-title .fa { margin-right: 6px; }
.g-breadcrumb .fa-home { margin-right: 4px; color: var(--g-primary); }
.g-date .fa { margin-right: 5px; }
.g-post-nav-label .fa { margin: 0 4px; }
.g-404-icon { font-size: 54px; line-height: 1; color: var(--g-accent); text-align: center; margin-bottom: 10px; }
