/*
Theme Name:   Glovia Child
Theme URI:    https://glovia.edu.vn/
Description:  Child theme của Astra cho Glovia Education (tư vấn du học & đào tạo ngoại ngữ).
Author:       Glovia Education
Template:     astra
Version:      1.0.0
Text Domain:  glovia-child
*/

/* ---------- Tokens (khớp Astra Global Colors) ---------- */
:root {
	--gl-red: var(--ast-global-color-0, #c8102e);
	--gl-red-dark: var(--ast-global-color-1, #a00d25);
	--gl-ink: var(--ast-global-color-2, #1a1a1a);
	--gl-text: var(--ast-global-color-3, #3d3d3d);
	--gl-cream: var(--ast-global-color-5, #fff7f0);
	--gl-line: var(--ast-global-color-7, #eadfd4);
	--gl-gold: var(--ast-global-color-8, #f2b705);
	--gl-muted: #6b6b6b;
	--gl-radius: 14px;
	--gl-shadow: 0 10px 30px -12px rgba(26, 26, 26, .18);
	--gl-ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Anchor targets không bị header dính che */
[id] { scroll-margin-top: 96px; }

/* ---------- Header dính + đổ bóng (Astra free không có sticky) ---------- */
#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 4px 18px -10px rgba(26, 26, 26, .25);
}
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 0; } }

.main-header-menu .menu-link { font-weight: 600; white-space: nowrap; }
@media (min-width: 1280px) {
	.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link { padding: 0 .62em; font-size: 15px; }
	.ast-primary-header-bar .site-header-primary-section-right { gap: 10px; }
	.ast-primary-header-bar .site-header-primary-section-right > * { margin-left: 0; margin-right: 0; }
}
@media (min-width: 1280px) {
	/* Logo chỉ chiếm đúng chiều rộng của nó, phần còn lại cho menu + nút */
	#ast-desktop-header .ast-builder-grid-row-no-center { grid-template-columns: 1fr auto; }
	#ast-desktop-header .site-header-primary-section-right { justify-content: flex-end; }
	#ast-desktop-header .site-header-primary-section-left { min-width: 0; }
	#ast-desktop-header .main-header-menu { flex-wrap: nowrap; }
}

.ast-header-button-1 .ast-custom-button { white-space: nowrap; }

/* Nút Zalo trong header (HTML 1) */
.gl-zalo-btn {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: .55em 1em;
	border-radius: 999px;
	background: #0068ff;
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: transform .2s var(--gl-ease), background-color .2s;
}
.gl-zalo-btn:hover { background: #0052cc; transform: translateY(-1px); }
.gl-zalo-btn:focus-visible { outline: 3px solid var(--gl-gold); outline-offset: 2px; }

/* ---------- Thẻ dùng chung trong Elementor (class: gl-card) ---------- */
.gl-card {
	transition: transform .25s var(--gl-ease), box-shadow .25s var(--gl-ease);
}
.gl-card:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow); }

/* Hero: bullet lợi ích */
.gl-hero .elementor-icon-list-item { font-weight: 600; }
.gl-hero-img img { border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(160, 13, 37, .55); }

/* Logo trường đối tác: xám, hover hiện màu */
.gl-partners .gallery-item img {
	filter: grayscale(1);
	opacity: .75;
	transition: filter .25s, opacity .25s;
}
.gl-partners .gallery-item img:hover { filter: none; opacity: 1; }
@media (max-width: 1024px) {
	.gl-partners .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.gl-partners .gallery-item { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
	.gl-partners .gallery br { display: none; }
}

/* Counter */
.gl-stats .elementor-counter-number-wrapper { font-variant-numeric: tabular-nums; }

/* ---------- Contact Form 7 (thay CSS mặc định của CF7) ---------- */
.wpcf7 form .gl-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}
.wpcf7 form .gl-form-grid .gl-full { grid-column: 1 / -1; }
@media (max-width: 767px) {
	.wpcf7 form .gl-form-grid { grid-template-columns: 1fr; }
}
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 label { display: block; font-weight: 600; font-size: 14px; color: var(--gl-ink); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--gl-line);
	border-radius: 10px;
	background: #fff;
	font-size: 16px; /* tránh iOS zoom khi focus */
	color: var(--gl-ink);
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 110px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--gl-red);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, .15);
}
.wpcf7 input[type="submit"] {
	width: 100%;
	min-height: 52px;
	margin-top: 4px;
	border: 0;
	border-radius: 999px;
	background: var(--gl-red);
	color: #fff;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s, transform .2s var(--gl-ease);
}
.wpcf7 input[type="submit"]:hover { background: var(--gl-red-dark); transform: translateY(-1px); }
.wpcf7 input[type="submit"]:focus-visible { outline: 3px solid var(--gl-gold); outline-offset: 3px; }
.wpcf7 .wpcf7-not-valid-tip { color: var(--gl-red); font-size: 13px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
}
.wpcf7 .wpcf7-spinner { display: block; margin: 8px auto 0; }
.wpcf7 .screen-reader-response { position: absolute; clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer .widget-title { color: #fff; font-size: 18px; margin-bottom: 14px; }
.site-footer .gl-footer-links { list-style: none; margin: 0; padding: 0; }
.site-footer .gl-footer-links li { margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gl-gold) !important; }
.gl-footer-cta {
	display: inline-block;
	margin-top: 10px;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--gl-gold);
	color: var(--gl-ink) !important;
	font-weight: 800;
}
.gl-footer-cta:hover { color: var(--gl-ink) !important; filter: brightness(1.05); }

/* ---------- Bảng TablePress ---------- */
.tablepress thead th { background: var(--gl-red); color: #fff; }
.tablepress tbody tr:nth-child(even) td { background: var(--gl-cream); }

/* =========================================================
   v2 — bố cục theo luồng tham khảo
   ========================================================= */

/* ---------- Header: menu chữ hoa, mục hiện tại dạng pill đỏ ---------- */
@media (min-width: 1280px) {
	.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
		text-transform: uppercase;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .02em;
		color: var(--gl-ink);
	}
	.ast-primary-header-bar .main-header-menu > .menu-item { display: flex; align-items: center; }
	.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
		line-height: 1;
		height: auto;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
		border-radius: 999px;
		transition: background-color .2s, color .2s;
	}
	.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link:hover { color: var(--gl-red); }
	.ast-primary-header-bar .main-header-menu > .current-menu-item > .menu-link,
	.ast-primary-header-bar .main-header-menu > .current-menu-ancestor > .menu-link,
	.ast-primary-header-bar .main-header-menu > .current-menu-parent > .menu-link {
		background: var(--gl-red);
		color: #fff !important;
	}
	/* Dropdown */
	#ast-desktop-header .main-header-menu .sub-menu {
		min-width: 230px;
		border-top: 3px solid var(--gl-red) !important;
		border-radius: 0 0 10px 10px;
		box-shadow: var(--gl-shadow);
	}
	#ast-desktop-header .main-header-menu .sub-menu .menu-link {
		text-transform: uppercase;
		font-size: 13px;
		font-weight: 700;
		padding: 12px 18px;
	}
	#ast-desktop-header .main-header-menu .sub-menu .menu-link:hover { color: var(--gl-red); background: var(--gl-cream); }
}

/* Logo + menu cùng nằm bên trái */
#ast-desktop-header .site-header-primary-section-left { gap: 22px; }

/* Nút tròn gọi điện trong header (HTML 1) */
.gl-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gl-red);
	color: #fff !important;
	transition: background-color .2s, transform .2s var(--gl-ease);
}
.gl-icon-btn:hover { background: var(--gl-red-dark); transform: translateY(-1px); }
.gl-icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.ast-header-search .astra-search-icon { color: var(--gl-red); }

/* ---------- Tiêu đề khối có gạch đỏ dưới ---------- */
.gl-title-line .elementor-heading-title::after {
	content: "";
	display: block;
	width: 72px;
	height: 3px;
	margin: 14px auto 0;
	background: var(--gl-red);
	border-radius: 3px;
}

/* ---------- Tabs ---------- */
.gl-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 24px;
}
.gl-tabs__tab {
	padding: 9px 18px !important;
	border: 1px solid var(--gl-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--gl-muted) !important;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
/* Astra tô nền đỏ đậm cho mọi <button>:hover/:focus → khai báo đủ các trạng thái */
.gl-tabs__tab:hover,
.gl-tabs__tab:focus,
.gl-tabs__tab:active {
	background: var(--gl-cream) !important;
	border-color: var(--gl-red) !important;
	color: var(--gl-red) !important;
}
.gl-tabs__tab[aria-selected="true"],
.gl-tabs__tab[aria-selected="true"]:focus {
	background: var(--gl-red) !important;
	border-color: var(--gl-red) !important;
	color: #fff !important;
}
.gl-tabs__tab[aria-selected="true"]:hover {
	background: var(--gl-red-dark) !important;
	border-color: var(--gl-red-dark) !important;
	color: #fff !important;
}
.gl-tabs__tab:focus { outline: none; }
.gl-tabs__tab:focus-visible { outline: 3px solid var(--gl-gold) !important; outline-offset: 2px; }
.gl-tabs__more { margin: 16px 0 0; text-align: center; font-weight: 700; }
.gl-tabs__more a { color: var(--gl-red); }

/* ---------- Carousel (scroll-snap, không thư viện) ---------- */
.gl-carousel { position: relative; }
.gl-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 60px) / 4);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 2px 14px;
	scrollbar-width: none;      /* điều hướng bằng nút mũi tên / vuốt */
}
.gl-carousel__track::-webkit-scrollbar { display: none; }
.gl-carousel__track > * { scroll-snap-align: start; }
@media (max-width: 1024px) { .gl-carousel__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 767px) { .gl-carousel__track { grid-auto-columns: 82%; } }
.gl-carousel__btn {
	position: absolute;
	top: calc(33% - 22px);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	padding: 0 !important;   /* Astra đặt padding 15px 30px cho mọi <button> → nút bị kéo dẹt */
	border: 1px solid var(--gl-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--gl-red) !important;
	font-size: 0;             /* ẩn ký tự dự phòng, icon vẽ bằng ::before */
	line-height: 0;
	box-shadow: 0 6px 18px -6px rgba(26, 26, 26, .35);
	cursor: pointer;
	transition: background-color .2s, color .2s, opacity .2s, transform .2s var(--gl-ease);
}
.gl-carousel__btn::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gl-carousel__btn--next::before { transform: scaleX(-1); }
.gl-carousel__btn--prev { left: -18px; }
.gl-carousel__btn--next { right: -18px; }
.gl-carousel__btn:hover { background: var(--gl-red) !important; color: #fff !important; transform: scale(1.06); }
.gl-carousel__btn:focus-visible { outline: 3px solid var(--gl-gold) !important; outline-offset: 2px; }
.gl-carousel__btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1240px) {
	.gl-carousel__btn--prev { left: 6px; }
	.gl-carousel__btn--next { right: 6px; }
}
@media (max-width: 767px) { .gl-carousel__btn { display: none; } }

/* ---------- Thẻ bài viết ---------- */
.gl-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 20px -12px rgba(26, 26, 26, .25);
	transition: transform .25s var(--gl-ease), box-shadow .25s var(--gl-ease);
}
.gl-post-card:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow); }
.gl-post-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.gl-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.gl-post-card__date {
	position: absolute;
	left: 10px;
	top: 10px;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--gl-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.gl-post-card__body { padding: 14px 16px 18px; }
.gl-post-card__title { margin: 0 0 6px; font-size: 15px; line-height: 1.4; text-transform: uppercase; }
.gl-post-card__title a { color: var(--gl-ink); text-decoration: none; }
.gl-post-card__title a:hover { color: var(--gl-red); }
.gl-post-card__excerpt { margin: 0; font-size: 14px; color: var(--gl-muted); }
.gl-post-grid { display: grid; grid-template-columns: repeat(var(--gl-cols, 3), minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .gl-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gl-post-grid { grid-template-columns: 1fr; } }

/* ---------- "Vì sao": thẻ chữ, tiêu đề đỏ chữ hoa ---------- */
.gl-why .elementor-widget-icon-box .elementor-icon-box-title { text-transform: uppercase; color: var(--gl-red); }

/* ---------- Cảm nhận: slider (điều khiển do glovia-ui.js thêm vào) ---------- */
.gl-snap {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.gl-snap::-webkit-scrollbar { display: none; }
.gl-snap > .elementor-element { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- Đối tác: thẻ trắng nổi ---------- */
.gl-partners .gallery-item img { border-radius: 50%; }

/* ---------- Form: nhãn ẩn, chỉ placeholder (vẫn đọc được bằng trình đọc màn hình) ---------- */
.gl-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.wpcf7 .gl-form-grid > .gl-field { position: relative; }
.wpcf7 .gl-form-grid .wpcf7-form-control-wrap { margin-top: 0; }

/* ---------- Sidebar chuyên mục ---------- */
.widget .gl-term-list { list-style: none; margin: 0; padding: 0; }
.widget .gl-term-list li { margin: 0; border-bottom: 1px dashed var(--gl-line); }
.widget .gl-term-list a { display: block; padding: 8px 2px; color: var(--gl-text); text-decoration: none; }
.widget .gl-term-list a:hover { color: var(--gl-red); padding-left: 6px; transition: padding .2s; }
#secondary .widget-title { text-transform: uppercase; color: var(--gl-red); font-size: 16px; border-bottom: 2px solid var(--gl-red); padding-bottom: 8px; }
#secondary img { border-radius: 12px; }

/* Lưới bài trong trang chuyên mục */
.ast-archive-description .ast-archive-title { color: var(--gl-red); text-transform: uppercase; }
.archive .ast-article-post .entry-title, .blog .ast-article-post .entry-title { text-transform: uppercase; font-size: 17px; }

/* ---------- Footer đỏ ---------- */
.gl-social { display: flex; gap: 10px; margin-top: 14px; }
.gl-social a {
	display: inline-grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	color: #fff !important;
	transition: background-color .2s;
}
.gl-social a:hover { background: var(--gl-gold); color: var(--gl-ink) !important; }
.gl-social svg { width: 16px; height: 16px; fill: currentColor; }
.gl-branches { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 28px; }
.gl-branches li { margin: 0 0 8px; break-inside: avoid; font-size: 14px; }
.gl-branches strong { color: #fff; }
.gl-fanpage {
	display: grid;
	place-items: center;
	min-height: 150px;
	padding: 16px;
	border: 1.5px dashed rgba(255, 255, 255, .5);
	border-radius: 12px;
	text-align: center;
	font-size: 14px;
}
.site-footer .gl-footer-cta { background: #fff; color: var(--gl-red) !important; }

/* ---------- Trang nội dung (Gutenberg + HTML) ---------- */
.gl-h-red { color: var(--gl-red); text-transform: uppercase; }
.gl-center { text-align: center; }
.gl-boxes { display: grid; grid-template-columns: repeat(var(--gl-cols, 4), minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
@media (max-width: 1024px) { .gl-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gl-boxes { grid-template-columns: 1fr; } }
.gl-box { padding: 22px 20px; background: var(--gl-cream); border: 1px solid var(--gl-line); border-radius: var(--gl-radius); }
.gl-box h3 { margin: 0 0 8px; font-size: 17px; color: var(--gl-red); text-transform: uppercase; }
.gl-box p { margin: 0; font-size: 15px; }
.gl-boxes--contact .gl-box { background: #fff; border-top: 4px solid var(--gl-red); }
.gl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.gl-split img { border-radius: 18px; width: 100%; height: auto; }
@media (max-width: 767px) { .gl-split { grid-template-columns: 1fr; gap: 20px; } }
.gl-form-card { max-width: 760px; margin: 0 auto; padding: 32px; background: var(--gl-cream); border-radius: 18px; }
.gl-form-card__title { color: var(--gl-red); text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 600px) { .gl-form-card { padding: 22px 16px; } }
.gl-steps { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
@media (max-width: 900px) { .gl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gl-steps { grid-template-columns: 1fr; } }
.gl-steps li { position: relative; margin: 0; padding: 24px 20px 20px; border-radius: var(--gl-radius); background: #fff; box-shadow: 0 6px 20px -12px rgba(26,26,26,.3); }
.gl-steps__n { font-size: 34px; font-weight: 800; color: var(--gl-gold); line-height: 1; }
.gl-steps h3 { margin: 10px 0 6px; font-size: 17px; text-transform: uppercase; color: var(--gl-red); }
.gl-steps p { margin: 0; font-size: 15px; }
.gl-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 767px) { .gl-videos { grid-template-columns: 1fr; } }
.gl-video-ph { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--gl-radius); background: linear-gradient(135deg, #1a1a1a, #a00d25); color: #fff; text-align: center; }
.gl-video-ph span { font-size: 40px; line-height: 1; }
.gl-video-ph p { margin: 0; }
.gl-logo-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767px) { .gl-logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gl-logo-row img { width: 100%; height: auto; }
.gl-press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 767px) { .gl-press-grid { grid-template-columns: 1fr; } }
.gl-press { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--gl-line); border-radius: var(--gl-radius); background: #fff; text-decoration: none; color: var(--gl-ink); }
.gl-press__logo { display: grid; place-items: center; height: 80px; border-radius: 10px; background: var(--gl-cream); font-weight: 800; color: var(--gl-red); }
.gl-press__title { font-weight: 600; }

/* Lưới bài trang chuyên mục: 2 cột (Astra free cố định 3 cột) */
@media (min-width: 768px) {
	.archive #primary .ast-row > .ast-article-post,
	.blog #primary .ast-row > .ast-article-post,
	.search #primary .ast-row > .ast-article-post { width: 50%; flex: 0 0 50%; max-width: 50%; }
}

/* Icon điện thoại cho nút tròn header (CSS mask, không cần <svg>) */
.gl-icon-btn--phone::before {
	content: "";
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M497.4 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.7 370.7 0 0 1 130.6 204.1l60.6-49.6a23.9 23.9 0 0 0 6.9-28l-48-112A24.2 24.2 0 0 0 122.6.6l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.3 24.3 0 0 0-14-27.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M497.4 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.7 370.7 0 0 1 130.6 204.1l60.6-49.6a23.9 23.9 0 0 0 6.9-28l-48-112A24.2 24.2 0 0 0 122.6.6l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.3 24.3 0 0 0-14-27.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Băng chuyền cảm nhận: cắt phần tràn, mỗi thẻ ~1 khung */
.e-con.gl-snap { overflow-x: auto !important; overflow-y: hidden; }
.gl-snap > .elementor-widget-testimonial { flex: 0 0 100% !important; max-width: 100%; }

/* Không gạch chân tiêu đề thẻ bài */
.gl-post-card a, .gl-post-card a:hover { text-decoration: none !important; }

/* Đồng bộ với astra_header_break_point = 1279 */
.ast-header-break-point #ast-desktop-header { display: none !important; }
.ast-header-break-point #ast-mobile-header { display: block !important; }
@media (min-width: 922px) and (max-width: 1279px) {
	#ast-mobile-header .ast-primary-header-bar .site-primary-header-wrap { min-height: 72px; }
	#ast-mobile-header .site-header-primary-section-right { gap: 10px; }
}

/* =========================================================
   v3 — header chuyên mục gọn + nút mở menu con
   ========================================================= */

/* ---------- Header trang chuyên mục: dải mỏng thay cho hộp trắng lớn ---------- */
.archive .ast-archive-description,
.ast-separate-container .ast-archive-description {
	margin: 0 0 20px !important;
	padding: 16px 20px !important;
	background: #fff;
	border: 1px solid var(--gl-line);
	border-left: 4px solid var(--gl-red);
	border-radius: 12px;
	box-shadow: none;
}
.ast-archive-description .ast-archive-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 !important;
	font-size: 22px !important;
	line-height: 1.25;
	color: var(--gl-ink) !important;
	text-transform: uppercase;
}
.ast-archive-description .gl-arch-parent {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--gl-red);
	text-decoration: none;
}
.ast-archive-description .gl-arch-parent::after { content: " ›"; }
.ast-archive-description .gl-arch-parent:hover { text-decoration: underline; }
.ast-archive-description p { margin: 6px 0 0; font-size: 14px; color: var(--gl-muted); }
.gl-chips {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
	        mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.gl-chips::-webkit-scrollbar { display: none; }
.gl-chip {
	flex: 0 0 auto;
	padding: 6px 14px;
	border: 1px solid var(--gl-line);
	border-radius: 999px;
	background: var(--gl-cream);
	color: var(--gl-text);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.gl-chip:hover { border-color: var(--gl-red); color: var(--gl-red); }
.gl-chip.is-active { background: var(--gl-red); border-color: var(--gl-red); color: #fff; }
.gl-chip:focus-visible { outline: 2px solid var(--gl-gold); outline-offset: 2px; }
@media (max-width: 767px) {
	.archive .ast-archive-description, .ast-separate-container .ast-archive-description { padding: 12px 14px !important; margin-bottom: 14px !important; }
	.ast-archive-description .ast-archive-title { font-size: 19px !important; }
}

/* ---------- Nút mở menu con (Astra .ast-menu-toggle) ---------- */
/* Bỏ bo tròn 999px kế thừa từ style nút chung và viền chấm focus của Astra */
.ast-menu-toggle,
.ast-menu-toggle:hover,
.ast-menu-toggle:focus,
.ast-menu-toggle:active {
	border: 0 !important;
	border-radius: 8px !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}
.ast-menu-toggle:focus-visible { box-shadow: inset 0 0 0 2px var(--gl-gold) !important; }
.ast-menu-toggle .ast-icon svg { transition: transform .2s var(--gl-ease); }
.ast-submenu-expanded > .ast-menu-toggle .ast-icon svg,
.ast-menu-toggle[aria-expanded="true"] .ast-icon svg { transform: rotate(180deg); }

/* ---------- Menu mobile / hamburger: gọn, có vạch phân cách ---------- */
#ast-mobile-header .main-header-menu > .menu-item { border-bottom: 1px solid var(--gl-line); }
#ast-mobile-header .main-header-menu > .menu-item > .menu-link {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
	font-weight: 600;
	background: transparent !important;
}
#ast-mobile-header .main-header-menu > .current-menu-item > .menu-link,
#ast-mobile-header .main-header-menu > .current-menu-ancestor > .menu-link { color: var(--gl-red); }
#ast-mobile-header .main-header-menu .menu-item.ast-submenu-expanded,
#ast-mobile-header .main-header-menu .current-menu-ancestor { background: transparent !important; }
#ast-mobile-header .main-header-menu .ast-menu-toggle { top: 4px; width: 40px; height: 40px; color: var(--gl-red); }
#ast-mobile-header .main-header-menu .sub-menu {
	margin: 0 0 10px 18px !important;
	padding: 0 !important;
	border-left: 2px solid var(--gl-red) !important;
	background: transparent !important;
}
#ast-mobile-header .main-header-menu .sub-menu .menu-link {
	padding: 9px 14px !important;
	font-size: 14px;
	font-weight: 500;
	border: 0 !important;
	background: transparent !important;
}
#ast-mobile-header .main-header-menu .sub-menu .menu-link .ast-icon,
#ast-mobile-header .main-header-menu .sub-menu .menu-link .icon-arrow { display: none; }
#ast-mobile-header .main-header-menu .sub-menu .current-menu-item > .menu-link { color: var(--gl-red); font-weight: 700; }
#ast-mobile-header .ast-header-button-1 { padding: 14px 0 6px; }
/* Astra gán cỡ chữ riêng cho phần tử con của tiêu đề archive → ghi đè tường minh */
.ast-archive-description .ast-archive-title .gl-arch-name { font-size: 22px !important; line-height: 1.25; }
.ast-archive-description .ast-archive-title .gl-arch-parent { font-size: 12px !important; line-height: 1.4; }
@media (max-width: 767px) {
	.ast-archive-description .ast-archive-title .gl-arch-name { font-size: 19px !important; }
}

/* =========================================================
   v4 — phần tử lấy dữ liệu từ "Thông tin Glovia" + widget khối
   ========================================================= */
.gl-zalo-pill {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--gl-red);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color .2s, transform .2s var(--gl-ease);
}
.gl-zalo-pill:hover { background: var(--gl-red-dark); transform: translateY(-1px); }
.gl-zalo-pill:focus-visible { outline: 3px solid var(--gl-gold); outline-offset: 2px; }
.ast-header-html .ast-builder-html-element p { margin: 0; }
.ast-mobile-popup-content .gl-zalo-pill, #ast-mobile-header .ast-header-html .gl-zalo-pill { margin-top: 12px; }

/* Footer: widget khối */
.site-footer .wp-block-heading { margin: 0 0 14px; color: #fff; font-size: 18px; text-transform: none; }
.site-footer .wp-block-image { margin: 0 0 14px; }
/* Footer nền navy dùng logo âm bản (trắng, nền trong suốt) → không cần ô nền trắng */
.site-footer .wp-block-image img {
	width: 210px;
	height: auto;
}
.site-footer .widget p { margin: 0 0 12px; }
.site-footer .wp-block-button__link {
	padding: 12px 22px;
	border-radius: 999px;
	background: #fff;
	color: var(--gl-red) !important;
	font-weight: 800;
	text-decoration: none;
}
.site-footer .wp-block-button__link:hover { background: var(--gl-gold); color: var(--gl-ink) !important; }
.site-footer .wp-block-buttons { margin-top: 14px; }
.gl-fanpage-frame { border-radius: 10px; background: #fff; }

/* Sidebar: widget khối */
#secondary .wp-block-heading {
	margin: 18px 0 8px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--gl-red);
	color: var(--gl-red);
	font-size: 16px;
	text-transform: uppercase;
}
#secondary .wp-block-image { margin: 0 0 8px; }
#secondary .wp-block-image img { width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 1199px) {
	.site-primary-footer-wrap, .site-below-footer-wrap { padding-left: 20px !important; padding-right: 20px !important; }
	.site-primary-footer-wrap .ast-builder-grid-row { row-gap: 28px; }
}

/* Slider cảm nhận: nút + chấm trên nền đỏ */
.gl-slider-nav { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.gl-slider-nav__btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	min-width: 0;
	padding: 0 !important;
	border: 1.5px solid rgba(255, 255, 255, .7) !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.gl-slider-nav__btn::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gl-slider-nav__btn--next::before { transform: scaleX(-1); }
.gl-slider-nav__btn:hover,
.gl-slider-nav__btn:focus { background: #fff !important; border-color: #fff !important; color: var(--gl-red) !important; }
.gl-slider-nav__btn:focus { outline: none; }
.gl-slider-nav__btn:focus-visible { outline: 3px solid var(--gl-gold) !important; outline-offset: 2px; }
.gl-slider-nav__dots { display: flex; align-items: center; gap: 8px; }
.gl-slider-nav__dot {
	width: 10px;
	height: 10px;
	min-width: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, .45) !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: width .25s var(--gl-ease), background-color .2s;
}
.gl-slider-nav__dot:hover { background: rgba(255, 255, 255, .8) !important; }
.gl-slider-nav__dot[aria-current="true"] { width: 28px; background: #fff !important; }
.gl-slider-nav__dot:focus { outline: none; }
.gl-slider-nav__dot:focus-visible { outline: 2px solid var(--gl-gold) !important; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .gl-slider-nav__dot { transition: none; } }

/* =========================================================
   v5 — Trang Du học: tab dọc + tìm kiếm, form nền đỏ
   ========================================================= */
.gl-tabs--vertical { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.gl-tabs--vertical .gl-tabs__nav { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 4px; margin: 0; }
.gl-tabs--vertical .gl-tabs__tab {
	width: 100%;
	text-align: left;
	border-radius: 10px !important;
	border-color: transparent !important;
	background: transparent !important;
	text-transform: none;
	font-size: 15px;
}
.gl-tabs--vertical .gl-tabs__tab:hover,
.gl-tabs--vertical .gl-tabs__tab:focus { background: var(--gl-cream) !important; border-color: transparent !important; }
.gl-tabs--vertical .gl-tabs__tab[aria-selected="true"],
.gl-tabs--vertical .gl-tabs__tab[aria-selected="true"]:focus { background: var(--gl-red) !important; color: #fff !important; }
.gl-tabs--vertical .gl-tabs__tab[aria-selected="true"]:hover { background: var(--gl-red-dark) !important; }
@media (max-width: 767px) {
	.gl-tabs--vertical { grid-template-columns: 1fr; gap: 16px; }
	.gl-tabs--vertical .gl-tabs__nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
	.gl-tabs--vertical .gl-tabs__nav::-webkit-scrollbar { display: none; }
	.gl-tabs--vertical .gl-tabs__tab { width: auto; flex: 0 0 auto; white-space: nowrap; border-color: var(--gl-line) !important; border-radius: 999px !important; }
}

/* Ô tìm kiếm trong tab dọc */
.gl-tabs__search { position: relative; margin: 0 0 18px; }
.gl-tabs__search input[type="search"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 48px 10px 16px;
	border: 1.5px solid var(--gl-line);
	border-radius: 10px;
	background: #fff;
	font-size: 16px;
}
.gl-tabs__search input[type="search"]:focus { outline: none; border-color: var(--gl-red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.gl-tabs__search button {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 40px;
	height: 40px;
	min-width: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--gl-red) !important;
	box-shadow: none !important;
	cursor: pointer;
}
.gl-tabs__search button::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	margin: auto;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gl-tabs__search button:hover { background: var(--gl-cream) !important; }

/* Nút "Xem thêm" dạng pill */
.gl-tabs__more--button { margin-top: 22px; }
.gl-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--gl-red);
	color: #fff !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: none !important;
	transition: background-color .2s, transform .2s var(--gl-ease);
}
.gl-btn:hover { background: var(--gl-red-dark); transform: translateY(-1px); }

/* Form đặt trên nền đỏ (khối "Du học Glovia") */
.gl-form-on-red .wpcf7 input[type="text"],
.gl-form-on-red .wpcf7 input[type="tel"],
.gl-form-on-red .wpcf7 input[type="email"],
.gl-form-on-red .wpcf7 select,
.gl-form-on-red .wpcf7 textarea { border-color: transparent; }
.gl-form-on-red .wpcf7 input[type="submit"] { background: var(--gl-gold); color: var(--gl-ink); }
.gl-form-on-red .wpcf7 input[type="submit"]:hover { background: #fff; color: var(--gl-red); }
.gl-form-on-red .wpcf7 .wpcf7-not-valid-tip { color: #FFE08A; }
.gl-form-on-red .wpcf7 form .wpcf7-response-output { color: #fff; border-color: rgba(255, 255, 255, .6); }
