/*
Theme Name: Việt Tân Blocks
Description: Thème block (FSE) reproduisant le design Elementor de viettan.org (GeneratePress + Elementor Pro).
Author: Việt Tân
Version: 2.3.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: full-site-editing, block-patterns, news, two-columns
Text Domain: viettan
*/

/* ---------- Top bar ---------- */
.vt-topbar { font-size: 14px; line-height: 22px; letter-spacing: 1px; }
.vt-topbar .wp-block-group { gap: 4px 10px; }
.vt-topbar p { margin: 0; }
.vt-topbar a { color: #fff; text-decoration: none; text-transform: uppercase; }
.vt-topbar .wp-block-social-links { gap: 6px; }
.vt-topbar .wp-block-social-links .wp-social-link svg { width: 16px; height: 16px; }
.vt-topbar .wp-block-social-links .wp-social-link a { padding: 0; }

/* ---------- Header / navigation ---------- */
.vt-header { padding-top: 0; padding-bottom: 0; }
.vt-header > .wp-block-group,
.vt-topbar > .wp-block-group { max-width: 1400px !important; }
.vt-header > .wp-block-group { align-items: stretch !important; }
.vt-header .wp-block-site-logo { flex-shrink: 0; }
.vt-header .wp-block-site-logo { line-height: 0; margin: 0; }
.vt-header .wp-block-site-logo img { display: block; }
.vt-nav.wp-block-navigation { align-self: stretch; letter-spacing: 2px; }
.vt-nav.wp-block-navigation > .wp-block-navigation__responsive-container,
.vt-nav.wp-block-navigation .wp-block-navigation__container,
.vt-nav.wp-block-navigation .wp-block-navigation__responsive-container-content { height: 100%; align-items: stretch; }
.vt-nav.wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item { align-items: stretch; }
.vt-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content { display: flex; align-items: center; min-height: 75px; padding: 0 18px; color: #fff; }
.vt-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.vt-nav.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.vt-nav.wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
	box-shadow: inset 0 -4px 0 var(--wp--preset--color--accent);
}
/* Sous-menus (dropdown Elementor : fond blanc, ombre, séparateurs, survol bleu clair) */
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff !important;
	border: 0 !important;
	box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
	min-width: 290px !important;
	padding: 0;
	letter-spacing: 1.5px;
}
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item:not(:last-child) { border-bottom: 1px solid #eaeaea; }
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content {
	min-height: 0; padding: 13px 20px; box-shadow: none; white-space: nowrap;
	color: #494c4f; font-size: 13px; line-height: 20px;
}
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent); color: #fff; box-shadow: none;
}
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon { color: #494c4f; margin-right: 16px; }
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation__submenu-icon { color: #fff; }
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item.has-child:hover { background: var(--wp--preset--color--accent); }
/* Le cœur aligne le sous-menu à droite quand le menu est justifié à droite : on le cale sous l'élément, comme Elementor. */
.vt-nav.wp-block-navigation .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { left: 0 !important; right: auto !important; top: 100% !important; }
.vt-nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container { top: 0 !important; left: 100% !important; right: auto !important; }
.vt-nav.wp-block-navigation .wp-block-navigation__container > .has-child:hover > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
	box-shadow: inset 0 -4px 0 var(--wp--preset--color--accent);
}
.vt-nav.wp-block-navigation > .wp-block-navigation__responsive-container .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon { margin-left: -12px; margin-right: 18px; }

/* ---------- Bandeau de section (QUAN ĐIỂM | Xem tiếp...) ---------- */
.vt-section-head { gap: 0 !important; margin-bottom: 6px !important; align-items: stretch !important; }
.vt-section-head + * { margin-top: 0 !important; }
.vt-section-head > .vt-section-head__title {
	background: var(--wp--preset--color--primary);
	color: #fff;
	flex: 0 0 auto;
	min-width: 24%;
	white-space: nowrap;
	margin: 0;
	padding: 8px 12px;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 20px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
}
.vt-section-head > .vt-section-head__more {
	background: var(--wp--preset--color--light);
	border-bottom: 4px solid var(--wp--preset--color--primary);
	flex: 1;
	margin: 0;
	padding: 8px 12px;
	text-align: right;
	font-size: 16px; font-style: italic;
}
.vt-section-head__title a, .vt-section-head__more a { color: inherit; text-decoration: none; }

/* ---------- Cartes d'articles ---------- */
.vt-cards .wp-block-post-featured-image { margin-bottom: 12px; }
.vt-cards .wp-block-post-featured-image img { aspect-ratio: 5/3; width: 100%; height: auto; object-fit: cover; }
.vt-hero-image .wp-block-post-featured-image img { aspect-ratio: 20/11; width: 100%; height: auto; object-fit: cover; }
.vt-cards .wp-block-post-title { font-size: 16px; line-height: 1.5; font-weight: 700; margin: 0 0 8px; }
.vt-cards--lead .wp-block-post-title { font-size: 24px; line-height: 1.6; }
.vt-cards .wp-block-post-title a { color: var(--wp--preset--color--heading); text-decoration: none; }
.vt-cards .wp-block-post-title a:hover { color: var(--wp--preset--color--link); }
.vt-meta { font-family: var(--wp--preset--font-family--open-sans); font-size: 13px; color: var(--wp--preset--color--meta); gap: 0 !important; margin-bottom: 10px; }
.vt-meta > * + *::before { content: "|"; margin: 0 6px; }
.vt-meta p { margin: 0; }
.vt-cards .wp-block-post-excerpt { font-size: 17px; }
.vt-cards .wp-block-post-excerpt__more-text { display: none; }

/* ---------- Sidebar ---------- */
.vt-sidebar .wp-block-image { margin: 0 0 16px; }
.vt-sidebar .wp-block-search__input { border-radius: 3px; }

/* ---------- Réseaux sociaux (accueil) ---------- */
.vt-social-tile { text-align: center; padding: 40px 16px 24px !important; }
.vt-social-tile .wp-block-button__link {
	border: 2px solid #fff; background: transparent; color: #fff;
	font-size: 13px; border-radius: 3px; padding: 6px 14px;
}
.vt-social-tile .vt-social-icon { font-size: 80px; line-height: 1; color: #fff; margin: 0 0 24px; }
.vt-social-tile .vt-social-icon svg { width: 80px; height: 80px; fill: #fff; }

/* ---------- Article ---------- */
.vt-post-cats { font-family: var(--wp--preset--font-family--open-sans); font-size: 12px; text-transform: uppercase; }
.vt-post-cats a { color: var(--wp--preset--color--meta); text-decoration: none; }
.single .wp-block-post-content { color: #333; }
.single .wp-block-post-content a { color: var(--wp--preset--color--link); }

/* ---------- Footer ---------- */
.vt-footer, .vt-footer p { color: #d8d8d8; font-size: 16px; line-height: 24px; }
.vt-footer a { color: #fff; }
.vt-footer-bottom p { color: rgba(255, 255, 255, 0.32); font-size: 13px; margin: 0; }
.vt-footer-bottom .wp-block-social-links .wp-social-link { color: #818a91 !important; }
.vt-footer-bottom .wp-block-social-links .wp-social-link svg { fill: #818a91; }
.vt-footer-bottom .wp-block-social-links svg { width: 16px; height: 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.vt-section-head > .vt-section-head__title { min-width: 0; max-width: 75%; overflow: hidden; text-overflow: ellipsis; font-size: 15px; letter-spacing: 1px; }
	.vt-section-head > .vt-section-head__more { min-width: 0; }
}
.vt-section-head > .vt-section-head__title:only-child { flex: 1; max-width: none; white-space: normal; }
.vt-archive-head { text-align: center; }
.vt-latest-title { font-family: var(--wp--preset--font-family--roboto); font-size: 20px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.vt-share { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-share a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 2px; }
.vt-share svg { width: 16px; height: 16px; fill: #fff; }
.vt-share__facebook { background: var(--wp--preset--color--facebook); }
.vt-share__twitter { background: var(--wp--preset--color--twitter); }
.vt-share__whatsapp { background: #25d366; }
.vt-share__email { background: #ea4335; }
.vt-share__print { background: #a0a0a0; }
.vt-featured-caption { margin: 50px 0 0; padding-left: 50px; font-size: 17px; line-height: 1.5; color: var(--wp--preset--color--text); }

/* ---------- Page article ---------- */
.vt-post-header { padding-top: 30px; padding-bottom: 90px; }
.vt-post-header .wp-block-post-title { margin: 10px 0 20px; }
.vt-single__body { margin-top: -60px !important; }
.vt-single__aside { padding-top: 117px; }
.vt-single .wp-block-post-content { margin-top: 40px; padding-right: 40px; border-right: 1px solid #ddd; }
.vt-post-tags { margin-top: 30px; color: #888; font-size: 16px; }
.vt-post-tags a { color: #888; }
.vt-meta--icons { font-size: 14px; gap: 0 30px !important; }
.vt-meta--icons > * + *::before { content: none; }
.vt-meta--icons > *::before {
	content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 10px; vertical-align: -2px;
	background-color: var(--wp--preset--color--text);
	-webkit-mask: var(--vt-icon) no-repeat center / contain; mask: var(--vt-icon) no-repeat center / contain;
}
.vt-meta__author { --vt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm0 2a9 9 0 0 1 7 14.6c-1.5-1.8-4-2.9-7-2.9s-5.5 1.1-7 2.9A9 9 0 0 1 12 3zm0 2.5a4 4 0 1 0 0 8 4 4 0 0 0 0-8z'/%3E%3C/svg%3E"); }
.vt-meta__date { --vt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 1v2H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-4V1h-2v2H9V1zM4 9h16v12H4zm2 2v3h3v-3zm5 0v3h3v-3zm5 0v3h3v-3zM6 16v3h3v-3zm5 0v3h3v-3z'/%3E%3C/svg%3E"); }
.vt-meta--icons > .vt-meta__date::before { background-color: var(--wp--preset--color--link); }
@media (max-width: 781px) {
	.vt-single__aside { padding-top: 0; }
	.vt-single .wp-block-post-content { padding-right: 0; border-right: 0; }
	.vt-featured-caption { margin-top: 20px; padding-left: 20px; }
}
@media print { .vt-topbar, .vt-header, .vt-share, footer { display: none !important; } }
.vt-post-tags::before {
	content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px;
	background-color: var(--wp--preset--color--text);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 2h9l11 11-9 9L2 11zm4.5 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 2h9l11 11-9 9L2 11zm4.5 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Page Giới Thiệu ---------- */
.vt-archive-head .wp-block-post-title, .vt-tabs-head h1 { font-size: 40px; font-weight: 700; margin: 0; }
.vt-ico { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; color: #fff; font-size: 40px; margin: 0 auto; }
.vt-ico--orange { background: var(--wp--preset--color--orange); }
.vt-ico--sky { background: var(--wp--preset--color--sky); }
.vt-ico-wrap { text-align: center; margin: 0; line-height: 0; }

/* Cartes qui se retournent (widget « Flip Box » d'Elementor) */
.vt-flips { gap: 20px !important; margin-top: 50px !important; }
.vt-flip { position: relative; height: 280px; perspective: 1000px; }
.vt-flip__front, .vt-flip__back {
	position: absolute; inset: 0; margin: 0 !important; padding: 30px 25px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	border-radius: 5px; text-align: center; backface-visibility: hidden;
	transition: transform .6s ease;
}
.vt-flip__front { background: var(--wp--preset--color--surface); }
.vt-flip__back { background: var(--wp--preset--color--sky); color: #fff; transform: rotateY(180deg); }
.vt-flip:hover .vt-flip__front, .vt-flip:focus-within .vt-flip__front { transform: rotateY(-180deg); }
.vt-flip:hover .vt-flip__back, .vt-flip:focus-within .vt-flip__back { transform: rotateY(0); }
.vt-flip h3 { font-family: var(--wp--preset--font-family--roboto); font-size: 24px; font-weight: 400; margin: 8px 0 0; color: #000; }
.vt-flip__front p { font-size: 16px; color: #54595f; margin: 0; }
.vt-flip__back p { font-size: 17px; margin: 0; }
.vt-flip__back .wp-block-button__link { background: transparent; border: 2px solid #fff; color: #fff; font-size: 15px; font-weight: 500; padding: 12px 24px; border-radius: 3px; }

/* Titre de section centré + filet orange */
.vt-section-title { font-family: var(--wp--preset--font-family--roboto) !important; font-size: 30px !important; font-weight: 600 !important; text-align: center; margin: 60px 0 0 !important; }
.vt-divider.wp-block-separator { width: 200px; max-width: 200px; border: 0; border-top: 3px solid var(--wp--preset--color--orange); background: none; margin: 20px auto 40px !important; opacity: 1; }

/* Encadrés « Những Quan Niệm Căn Bản » */
.vt-concepts { gap: 20px !important; }
.vt-concept { text-align: center; }
.vt-concept h3 { font-family: var(--wp--preset--font-family--roboto); font-size: 24px; font-weight: 400; margin: 20px 0 0; }
.vt-concept h3 a { color: #000; }
.vt-concept h3 a:hover { color: var(--wp--preset--color--link); }

/* Nhân Sự Lãnh Đạo */
.vt-leaders { padding-top: 20px; padding-bottom: 60px; margin-top: 60px !important; }
.vt-leaders__intro { max-width: 800px; margin-left: auto !important; margin-right: auto !important; }
.vt-leaders__grid { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 20px !important; margin-top: 40px !important; }
.vt-leader { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; margin: 0 !important; }
.vt-leader .wp-block-image { margin: 0; }
.vt-leader .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.vt-leader__info { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; margin: 0 !important; }
.vt-leader__name { background: none; border: 0; cursor: pointer; color: var(--wp--preset--color--primary); font: 700 18px var(--wp--preset--font-family--roboto); padding: 12px 24px; }
.vt-leader__name:hover { color: var(--wp--preset--color--link); }
.vt-leader__role { margin: 0; color: #333; font-size: 17px; }

/* Fenêtre de biographie (widget « Modal » d'Element Pack) */
dialog.vt-modal { text-align: left; width: 600px; max-width: calc(100vw - 32px); max-height: calc(100vh - 80px); padding: 0; border: 0; color: var(--wp--preset--color--text); }
dialog.vt-modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.vt-modal__head { position: sticky; top: 0; background: #f8f8f8; padding: 15px 30px; }
.vt-modal__head h3 { font-family: var(--wp--preset--font-family--roboto); font-size: 22px; font-weight: 400; margin: 0; }
.vt-modal__head small { display: block; font-size: 15px; color: var(--wp--preset--color--meta); }
.vt-modal__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: #999; cursor: pointer; }
.vt-modal__body { padding: 30px; font-size: 16px; }
.vt-modal__body img.alignright { float: right; margin: 0 0 15px 20px; max-width: 200px; height: auto; }

/* Onglets Phần Một / Hai / Ba */
.vt-tabs { gap: 20px !important; margin-top: 30px !important; }
.vt-tabs .wp-block-button { flex: 0 0 233px; }
.vt-tabs .wp-block-button__link { width: 100%; background: transparent; color: #000; font-size: 15px; padding: 10px 0; border-radius: 0; border-bottom: 2px solid #000; }
.vt-tabs .wp-block-button__link:hover { color: var(--wp--preset--color--link); border-color: var(--wp--preset--color--link); }

@media (max-width: 781px) {
	.vt-leaders__grid { grid-template-columns: 1fr; }
	.vt-tabs .wp-block-button { flex-basis: 30%; }
}

/* ---------- Contenu de l'éditeur classique (articles et pages migrés) ---------- */
.wp-block-post-content img.alignright, .wp-block-post-content .wp-caption.alignright { float: right; clear: right; margin: 0 0 1em 1.5em; }
.wp-block-post-content img.alignleft, .wp-block-post-content .wp-caption.alignleft { float: left; clear: left; margin: 0 1.5em 1em 0; }
.wp-block-post-content img.aligncenter, .wp-block-post-content .wp-caption.aligncenter { display: block; margin: 0 auto 1.5em; }
.wp-block-post-content img { max-width: 100%; height: auto; }
.wp-block-post-content .wp-caption { max-width: 100%; }
.wp-block-post-content .wp-caption-text { font-size: 14px; color: var(--wp--preset--color--meta); text-align: center; margin: 6px 0 0; }
.wp-block-post-content::after { content: ""; display: table; clear: both; }
/* Documents de l'ancien site SPIP (articles d'avant 2018) : image + légende flottantes.
   Marge haute de 24px = espacement des paragraphes (20px) + demi-interligne, pour aligner l'image sur la 1re ligne du texte. */
.wp-block-post-content .spip_documents { max-width: 100%; text-align: center; font-size: 15px; line-height: 1.4; color: var(--wp--preset--color--meta); }
.wp-block-post-content .spip_documents_left { float: left; clear: left; margin: 24px 25px 15px 0 !important; }
.wp-block-post-content .spip_documents_right { float: right; clear: right; margin: 24px 0 15px 25px !important; }
.wp-block-post-content .spip_documents_center { clear: both; margin: 15px auto !important; }
.wp-block-post-content .spip_documents img { display: block; margin: 0 auto 6px; }
@media (max-width: 600px) {
	.wp-block-post-content .spip_documents_left, .wp-block-post-content .spip_documents_right { float: none; margin: 15px auto !important; }
	.wp-block-post-content img.alignright, .wp-block-post-content img.alignleft,
	.wp-block-post-content .wp-caption.alignright, .wp-block-post-content .wp-caption.alignleft { float: none; display: block; margin: 0 auto 1em; }
}

/* ---------- Page Thông Tin ---------- */
.vt-info { margin-top: 20px !important; }
.vt-info-top { gap: 30px !important; }
.vt-info-lead .wp-block-post-title { font-size: 24px; font-weight: 600; line-height: 1.5; }
.vt-info-side .wp-block-post-template { gap: 20px; }
.vt-info-side .wp-block-post-title, .vt-info-grid .wp-block-post-title { font-size: 16px; }
.vt-info-side .wp-block-post-title { font-weight: 600; }
.vt-info-grid .wp-block-post-template { gap: 10px 20px; }
.vt-info-grid .wp-block-post-excerpt { font-size: 15px; }
.vt-info-section { margin-top: 50px !important; }
.vt-info-head { font-family: var(--wp--preset--font-family--open-sans) !important; font-size: 20px !important; font-weight: 700 !important; letter-spacing: 3px; text-transform: uppercase; margin: 0 !important; }
.vt-info-head a { color: #000; }
.vt-info-rule.wp-block-separator { border: 0; border-top: 3px solid var(--wp--preset--color--orange); background: none; opacity: 1; margin: 8px 0 20px !important; width: 100%; max-width: none; }

/* ---------- Archives de catégorie (widget « Archive Posts » d'Elementor) ---------- */
.vt-archive-head { padding-top: 50px !important; padding-bottom: 50px !important; }
.vt-archive-head .wp-block-query-title { font-size: 40px; font-weight: 700; line-height: 1; margin: 0; }
.vt-archive-grid .wp-block-post-template { gap: 0 20px; }
.vt-archive-grid .wp-block-post-featured-image { margin-bottom: 20px; }
.vt-archive-grid .wp-block-post-title { font-size: 18px; font-weight: 600; line-height: 1.6; margin: 0 0 15px; }
.vt-archive-grid .vt-meta { margin-bottom: 15px; }
.vt-archive-grid .wp-block-post-excerpt { font-size: 17px; margin: 0 0 40px; }
.vt-archive-grid .wp-block-post-excerpt__excerpt { margin: 0; }
.vt-pagination { gap: 0; margin-top: 10px; font-size: 17px; }
.vt-pagination .page-numbers, .vt-pagination a { margin: 0 10px; color: var(--wp--preset--color--link); }
.vt-pagination .page-numbers.current, .vt-pagination .page-numbers.dots { color: var(--wp--preset--color--text); }
@media (max-width: 781px) { .vt-archive-grid .wp-block-post-template { grid-template-columns: 1fr !important; } }

/* ---------- Sites EN / FR ---------- */
.vt-rule-head { font-family: var(--wp--preset--font-family--roboto) !important; font-size: 20px !important; font-weight: 600 !important; letter-spacing: 3px; text-transform: uppercase; margin: 0 !important; }
.vt-rule-head a { color: #000; }
.vt-home--rule .vt-info-rule.wp-block-separator { margin: 8px 0 6px !important; }
.vt-home--rule .vt-info-rule + * { margin-top: 0 !important; }
.vt-meta p:empty, .vt-meta--icons p:empty { display: none; }
.vt-meta > p:empty + *::before { content: none; }

/* ---------- Pages « About Viet Tan » (EN) ---------- */
.vt-flips--four .vt-flip { height: 300px; }
.vt-flips--four .vt-flip h3 { font-size: 22px; }
.vt-flips--tall { gap: 20px !important; margin-top: 30px !important; }
.vt-flips--tall .vt-flip { height: 490px; }
.vt-flips--tall .vt-flip h3 { font-size: 22px; }
.vt-flips--tall .vt-flip__front p, .vt-flips--tall .vt-flip__back p { font-size: 16px; }
.vt-concepts--cards .vt-concept { background: var(--wp--preset--color--surface); border-radius: 5px; padding: 30px 20px; height: 100%; }
.vt-concepts--cards .vt-concept h3 { font-size: 20px; }
.vt-intro-section { scroll-margin-top: 20px; }
.vt-intro-section + .vt-intro-section { border-top: 1px solid #e8e8e8; padding-top: 30px; margin-top: 50px !important; }
.vt-intro-section .vt-section-title { margin-top: 30px !important; letter-spacing: 3px; }
.vt-part-title { font-family: var(--wp--preset--font-family--merriweather); font-size: 30px; font-weight: 700; margin: 0 !important; }
.vt-part-rule.wp-block-separator { width: 200px !important; margin: 15px 0 30px !important; }
.vt-part-head { max-width: 800px; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Pages de contact (Liên Lạc / Contact Us / Contactez-nous) ---------- */
.vt-contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 10px 0 40px; }
.vt-contact__card { display: flex; align-items: center; gap: 20px; padding: 6px 20px; border: 2px solid var(--wp--preset--color--sky); border-radius: 5px; color: #000 !important; font-size: 18px; text-decoration: none; }
.vt-contact__card:hover { background: #f5fbfe; }
.vt-contact__icon { flex: 0 0 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--wp--preset--color--sky); color: #fff; font-size: 30px; }
.vt-contact__field { margin: 0 0 20px; }
.vt-contact__field label { display: block; padding-bottom: 5px; color: #333; font-size: 17px; }
.vt-contact__req { color: #f00; }
.vt-contact__form input[type=text], .vt-contact__form input[type=email], .vt-contact__form textarea {
	width: 100%; box-sizing: border-box; padding: 10px 16px; border: 1px solid #c9c9c9; border-radius: 0;
	font: 16px var(--wp--preset--font-family--roboto); color: #333; background: #fff;
}
.vt-contact__form input:focus, .vt-contact__form textarea:focus { outline: 2px solid var(--wp--preset--color--sky); outline-offset: -1px; }
.vt-contact__send { width: 100%; padding: 12px 24px; border: 0; border-radius: 3px; background: var(--wp--preset--color--sky); color: #fff; font: 500 15px var(--wp--preset--font-family--roboto); cursor: pointer; }
.vt-contact__send:hover { background: #0e8fd1; }
.vt-contact__trap { position: absolute; left: -9999px; }
.vt-contact__notice { padding: 12px 16px; border-radius: 3px; margin: 0 0 20px; }
.vt-contact__notice--success { background: #e7f6ec; color: #1d6b36; }
.vt-contact__notice--error { background: #fdecea; color: #a12622; }
@media (max-width: 600px) { .vt-contact__cards { grid-template-columns: 1fr; } }
