/*
Theme Name: Mg Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ===== ESSC tokens ===== */
:root {
	--essc-navy: #0b3a7e;
	--essc-navy-dark: #072a5c;
	--essc-red: #d71920;
	--essc-bg: #f2f5fa;
	--essc-line: #dfe6f1;
	--essc-text: #3a4556;
	--essc-shadow: 0 4px 18px rgba(11, 58, 126, .08);
}
body { color: var(--essc-text); }
.essc-ico-cal, .essc-cards .post-meta, .essc-notice-list .post-meta, .essc-featured .post-meta, .blog-archive .post-meta { position: relative; }

/* ===== Top bar ===== */
#top-bar .essc-tb { margin-right: 22px; font-size: 12.5px; white-space: nowrap; }
#top-bar .essc-tb i { margin-right: 5px; opacity: .85; }
#top-bar .essc-tb a { color: inherit; }
#top-bar .nav-top > li > a { font-size: 12.5px; }
#top-bar .nav-top > li + li { border-left: 1px solid rgba(255, 255, 255, .35); }
#top-bar .nav-top > li { margin: 0; padding: 0 12px; }

/* ===== Header: split menu around centered logo ===== */
.header-main { border-bottom: 3px solid var(--essc-navy); }
.header-main .header-nav-main > li > a { font-weight: 700; font-size: 15px; letter-spacing: 0; }
.header-main .header-nav-main > li.active > a,
.header-main .header-nav-main > li.current-menu-ancestor > a { color: var(--essc-red); }
.header-main .nav-dropdown { border-top: 3px solid var(--essc-red); }
@media (min-width: 850px) and (max-width: 1199px) {
	.header-main .header-nav-main > li > a { font-size: 13.5px; }
	.header-main .nav-spacing-large > li { margin: 0 6px; }
}

/* ===== Hero ===== */
.essc-hero h1 { font-size: 34px; line-height: 1.3; color: #fff; margin: 0; letter-spacing: .5px; }
.essc-hero h1::after { content: ""; display: block; width: 72px; height: 4px; background: var(--essc-red); margin-top: 18px; }

/* ===== Service bar ===== */
.essc-services-sec { background: var(--essc-bg) !important; }
.essc-services { background: #fff; border: 1px solid var(--essc-line); border-radius: 8px; box-shadow: var(--essc-shadow); margin-top: -46px !important; position: relative; z-index: 2; padding: 14px 0; }
.essc-services > .col { border-right: 1px solid var(--essc-line); }
.essc-services > .col:last-child { border-right: 0; }
.essc-services .featured-box { padding: 6px 22px; }
.essc-services .featured-box h3 { font-size: 15px; line-height: 1.35; color: var(--essc-navy); margin: 0; font-weight: 600; }
.essc-services .icon-box-img { margin-right: 14px !important; }
.essc-services a:hover h3 { color: var(--essc-red); }

/* ===== Section titles (native [title]) ===== */
.essc-khcn-sec .section-content > .row:first-child > .col, .essc-blog-sec .section-content > .row:first-child > .col { padding-bottom: 0; }
.page-template-page-blank .section-title-container { margin-bottom: 16px; }
.section-title-normal { border-bottom: 0; }
.section-title-normal span { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.page-template-page-blank h2.section-title { font-size: 24px; }
.section-title-normal .section-title-main { border-left: 5px solid var(--essc-red); padding-left: 12px; color: var(--essc-navy); font-size: 24px; text-transform: none; }
.section-title a { color: var(--essc-red); font-weight: 600; font-size: 14px; }
.section-title a .icon-angle-right { color: var(--essc-red); }

/* ===== Featured slider + notices ===== */
.essc-news-sec { background: var(--essc-bg) !important; }
.essc-featured > .col-inner, .essc-notices > .col-inner { background: #fff; border: 1px solid var(--essc-line); border-radius: 8px; box-shadow: var(--essc-shadow); padding: 14px; height: 100%; }
.essc-featured > .col-inner { position: relative; overflow: hidden; }
.essc-featured .row-slider { margin-left: 0 !important; margin-right: 0 !important; }
.essc-featured .row-slider .post-item { padding: 0 !important; }
.essc-featured .box-text-inner::before { content: "\f0e7  TIN NỔI BẬT"; font-family: "Font Awesome 6 Free", Roboto, sans-serif; display: inline-block; color: #fff; background: var(--essc-red); font-weight: 700; font-size: 11.5px; letter-spacing: .4px; line-height: 1; padding: 6px 10px 6px 9px; border-radius: 3px; margin: 0 0 10px; }
.essc-featured .box-image { border-radius: 6px; overflow: hidden; }
.essc-featured .box-text { padding: 34px 10px 10px 26px !important; }
.essc-featured .post-title { font-size: 20px; line-height: 1.35; color: var(--essc-navy); }
.essc-featured .from_the_blog_excerpt { color: var(--essc-text); font-size: 14px; }
.essc-featured .button { color: var(--essc-red); font-weight: 600; text-transform: none; padding-left: 0; }
.essc-featured .flickity-page-dots .dot { background: #c6cfdc; border: 0; opacity: 1; }
.essc-featured .flickity-page-dots .dot.is-selected { background: var(--essc-red); }
.page-template-page-blank .essc-notices h2.section-title { font-size: 19px; }
.essc-notices .section-title-normal .section-title-main { font-size: 19px; color: var(--essc-red); text-transform: uppercase; border-left: 0; padding-left: 0; }
.essc-notices .section-title-main::before { content: ""; display: inline-block; width: 26px; height: 20px; margin-right: 8px; vertical-align: -3px; background: var(--essc-red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4h3l6 5V5L6 10H3zm13.5 2A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%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='M3 10v4h3l6 5V5L6 10H3zm13.5 2A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") no-repeat center / contain; }
.essc-notice-list .box-image { display: none; }
.essc-notice-list .col { padding-bottom: 0 !important; }
.essc-notice-list .box-text { padding: 10px 0 10px 18px !important; border-bottom: 1px dashed var(--essc-line); position: relative; }
.essc-notice-list .col:last-child .box-text { border-bottom: 0; }
.essc-notice-list .box-text::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--essc-red); }
.essc-notice-list .post-title { font-size: 14.5px; line-height: 1.4; color: var(--essc-navy); font-weight: 600; }
.essc-notice-list .is-divider { display: none; }
.essc-notice-list a:hover .post-title { color: var(--essc-red); }

/* Calendar glyph before post dates (shared) */
.essc-cards .post-meta::before, .essc-notice-list .post-meta::before, .essc-featured .post-meta::before, .blog-archive .entry-meta::before {
	content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; 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='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%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' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== About + stats ===== */
.essc-about > .col-inner { background: linear-gradient(100deg, #eef3fb 0%, #e3ebf7 100%); border: 1px solid var(--essc-line); border-radius: 8px; padding: 22px 24px 4px; }
.essc-about-video .video { border-radius: 6px; overflow: hidden; box-shadow: var(--essc-shadow); }
.essc-about h2 { font-size: 24px; border-left: 5px solid var(--essc-red); padding-left: 12px; margin-bottom: 14px; }
.essc-about p { font-size: 14.5px; line-height: 1.65; }
.essc-more, .essc-footer a:hover { color: var(--essc-red); }
.essc-more { font-weight: 600; }
.essc-more::after, .section-title a::after { content: " →"; }
.section-title a .icon-angle-right { display: none; }
.essc-stats > .col-inner { border-left: 1px solid #c9d5e8; padding-left: 22px; }
.essc-stats .featured-box { margin-bottom: 4px; border-bottom: 1px solid #d3ddec; padding: 8px 0; }
.essc-stats .featured-box:last-child { border-bottom: 0; }
.essc-stats p { margin: 0; font-size: 15px; color: var(--essc-text); }
.essc-stats strong { display: inline-block; min-width: 68px; font-size: 24px; color: var(--essc-red); font-weight: 700; }
.essc-stats .icon-box-img { margin-right: 14px !important; }
.essc-stats p { font-size: 14px; }

/* ===== Post cards (KH&CN, news) ===== */
.essc-khcn-sec, .essc-blog-sec { background: #fff; }
.essc-cards .col-inner { background: #fff; border: 1px solid var(--essc-line); border-radius: 6px; overflow: hidden; box-shadow: var(--essc-shadow); height: 100%; transition: transform .2s, box-shadow .2s; }
.essc-cards .col-inner:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11, 58, 126, .14); }
.essc-cards .box-text { padding: 12px 14px 14px !important; }
.essc-cards .post-title { font-size: 14.5px; line-height: 1.4; color: var(--essc-navy); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.essc-cards .is-divider { display: none; }
.essc-cards .post-meta, .essc-notice-list .post-meta, .essc-featured .post-meta { font-size: 12.5px; color: #6a7587; margin-top: 6px; opacity: 1; }

/* ===== Quick lookup strip ===== */
.essc-quick { background: linear-gradient(90deg, #f6f8fc 0%, #e8eef8 100%); border: 1px solid var(--essc-line); border-radius: 8px; overflow: hidden; }
.essc-quick-head > .col-inner { background: var(--essc-navy); padding: 18px 22px !important; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.essc-quick-head h2 { color: #fff; font-size: 20px; margin: 0; letter-spacing: .5px; }
.essc-quick-items .col-inner { padding: 14px 10px !important; }
.essc-quick-items .col + .col > .col-inner { border-left: 1px solid #cdd7e6; }
.essc-quick-items .featured-box { display: flex; justify-content: center; }
.essc-quick-items p { margin: 0; font-weight: 600; color: var(--essc-navy); font-size: 15px; }
.essc-quick-items a:hover p { color: var(--essc-red); }

/* ===== Footer ===== */
.essc-footer h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.essc-footer p { color: #c9d6ec; font-size: 13.5px; margin-bottom: 10px; }
.essc-footer ul { list-style: none; margin: 0; }
.essc-footer li { margin: 0 0 6px; color: #dfe7f5; font-size: 13.5px; }
.essc-footer a { color: #dfe7f5; }
.essc-footer-info > .col-inner, .essc-footer-links > .col-inner { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 26px; }
.essc-footer-links li::before { content: "› "; color: #fff; }
.essc-contact li { padding-left: 22px; position: relative; }
.essc-contact li::before { font-family: "fl-icons"; position: absolute; left: 0; top: 0; color: #fff; }
.essc-ci-pin::before { content: "\e01a"; }
.essc-contact li::before { content: "•"; font-family: inherit; font-size: 18px; line-height: 1; color: var(--essc-red); }
.absolute-footer { font-size: 13px; }
.absolute-footer, .absolute-footer a { color: #fff !important; }

/* ===== Tablet ===== */
@media (max-width: 849px) {
	.essc-hero h1 { font-size: 28px; }
	.essc-services > .col:nth-child(2n) { border-right: 0; }
	.essc-services > .col:nth-child(-n+2) { border-bottom: 1px solid var(--essc-line); }
	.essc-featured { margin-bottom: 20px; }
	.essc-quick-head > .col-inner { clip-path: none; text-align: center; }
	.essc-quick-head .featured-box { display: flex; justify-content: center; }
	.essc-footer-links > .col-inner { border-left: 0; padding-left: 0; }
}

/* ===== Mobile: news + notices right after the hero (CSS order, no duplicate content) ===== */
@media (max-width: 549px) {
	#top-bar .essc-tb:first-child { display: none; }
	.essc-hero h1 { font-size: 20px; }
	.essc-hero h1::after { margin-top: 10px; width: 50px; height: 3px; }
	.page-template-page-blank #content { display: flex; flex-direction: column; }
	.page-template-page-blank #content > .essc-hero { order: 1; }
	.page-template-page-blank #content > .essc-news-sec { order: 2; }
	.page-template-page-blank #content > .essc-services-sec { order: 3; padding-top: 6px !important; }
	.page-template-page-blank #content > .essc-about-sec { order: 4; }
	.page-template-page-blank #content > .essc-khcn-sec { order: 5; }
	.page-template-page-blank #content > .essc-blog-sec { order: 6; }
	.page-template-page-blank #content > .essc-quick-sec { order: 7; }
	.essc-services { margin-top: 0 !important; padding: 4px 0; }
	.essc-services .featured-box { padding: 8px 10px; }
	.essc-services .featured-box h3 { font-size: 13px; }
	.essc-services .icon-box-img { margin-right: 8px !important; width: 30px !important; }
	.essc-news-row > .col { padding-bottom: 12px; }
	.essc-featured > .col-inner, .essc-notices > .col-inner { padding: 10px; }
	.essc-featured .post-item .box { display: flex; align-items: center; }
	.essc-featured .post-item .box-image { width: 38% !important; flex: 0 0 38%; }
	.essc-featured .box-text { padding: 0 0 0 12px !important; }
	.essc-featured .post-title { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.essc-featured .from_the_blog_excerpt, .essc-featured .button, .essc-featured .is-divider { display: none; }
	.essc-notice-list .box-text { padding: 7px 0 7px 16px !important; }
	.essc-notice-list .box-text::before { top: 14px; }
	.essc-notice-list .post-title { font-size: 13.5px; }
	.essc-notices .section-title-container { margin-bottom: 4px; }
	.page-template-page-blank h2.section-title, .section-title-normal .section-title-main { font-size: 19px; }
	.essc-about h2 { font-size: 20px; }
	.essc-stats strong { font-size: 22px; min-width: 64px; }
	.essc-stats > .col-inner { border-left: 0; padding-left: 0; }
	.essc-about > .col-inner { padding: 16px 14px 0; }
	.essc-featured .row-slider { padding-bottom: 24px; }
	.essc-featured .row-slider .flickity-page-dots { bottom: 0; }
	.essc-featured .flickity-prev-next-button { display: none; }
	.essc-cards .post-title { font-size: 13.5px; }
	.essc-quick-items .col-inner { padding: 10px 6px !important; }
	.essc-quick-items .col:nth-child(odd) > .col-inner { border-left: 0 !important; }
	.essc-quick-items .col:nth-child(-n+2) > .col-inner { border-bottom: 1px solid #cdd7e6; }
	.essc-footer-info > .col-inner { border-left: 0; padding-left: 0; }
}


/* ===== Dropdown menus ===== */
.header-nav .nav-dropdown { border: 0; border-top: 3px solid var(--essc-red); border-radius: 0 0 4px 4px; box-shadow: 0 14px 30px rgba(11, 58, 126, .16); padding: 6px 0; min-width: 260px; background: #fff; }
.header-nav .nav-dropdown > li { width: 100%; }
.header-nav .nav-dropdown > li > a { position: relative; display: block; padding: 10px 20px; margin: 0; font-size: 14px; font-weight: 500; text-transform: none; color: #1f3556; border-bottom: 1px solid #eef2f7; border-radius: 0; background: none; }
.header-nav .nav-dropdown > li:last-child > a { border-bottom: 0; }
.header-nav .nav-dropdown > li > a:hover, .header-nav .nav-dropdown > li.current-menu-item > a { background: #f2f6fc; color: var(--essc-navy); }
.header-nav .nav-dropdown > li > a:hover::before, .header-nav .nav-dropdown > li.current-menu-item > a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--essc-red); }
/* Mega dropdown (menu item design: custom size) */
.header-nav .menu-item-design-custom-size > .nav-dropdown { display: flex; align-items: flex-start; padding: 20px 8px 14px; }
.header-nav .menu-item-design-custom-size > .nav-dropdown > li.nav-dropdown-col { flex: 1 1 0; width: auto; padding: 0 16px; border-left: 1px solid #eef2f7; }
.header-nav .menu-item-design-custom-size > .nav-dropdown > li.nav-dropdown-col:first-child { border-left: 0; }
.header-nav .nav-dropdown > li.nav-dropdown-col > a { padding: 0 0 10px; margin-bottom: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; color: var(--essc-navy); border-bottom: 1px solid #dbe3ef; background: none !important; }
.header-nav .nav-dropdown > li.nav-dropdown-col > a::before { display: none; }
.header-nav .nav-dropdown > li.nav-dropdown-col > a::after { content: ""; display: block; width: 36px; height: 2px; background: var(--essc-red); margin-top: 10px; position: relative; top: 11px; }
.header-nav .nav-dropdown-col > ul { display: block !important; position: static; padding: 0; box-shadow: none; border: 0; min-width: 0; }
.header-nav .menu-item-design-custom-size .nav-dropdown a { white-space: normal; line-height: 1.4; }
.header-nav .nav-dropdown-col > ul > li > a { display: block; padding: 7px 8px 7px 14px; font-size: 14px; color: #3a4556; position: relative; border-radius: 3px; }
.header-nav .nav-dropdown-col > ul > li > a::before { content: "›"; position: absolute; left: 3px; color: var(--essc-red); font-weight: 700; }
.header-nav .nav-dropdown-col > ul > li > a:hover { background: #f2f6fc; color: var(--essc-navy); }
.off-canvas .nav-sidebar > li > a { color: var(--essc-navy); font-weight: 600; }
.off-canvas .nav-sidebar .children li a, .off-canvas .nav-sidebar .sub-menu li a { color: #3a4556; }

/* ===== Inner page band (page_header + archive header) ===== */
.page-title.dark, .essc-page-band { min-height: 0; }
.page-title-inner { padding-top: 0; }
.page-title .title-breadcrumbs, .essc-breadcrumb { font-size: 13px; }
.essc-breadcrumb { color: rgba(255, 255, 255, .75); margin-top: 8px; }
.essc-breadcrumb a { color: #fff; }
.essc-breadcrumb a:hover { color: #ffd2d3; }
.essc-breadcrumb .divider { margin: 0 8px; opacity: .7; }
.essc-breadcrumb .current { color: rgba(255, 255, 255, .8); }
.page-title .page-title-inner h1, .page-title .entry-title { font-size: 28px; letter-spacing: .3px; }
.page-title .page-title-inner h1::after { content: ""; display: block; width: 56px; height: 3px; background: var(--essc-red); margin-top: 10px; }

/* ===== Panels (gov portal style) ===== */
.essc-panel > .col-inner { background: #fff; border: 1px solid #dbe3ef; border-radius: 4px; padding: 0 20px 18px; box-shadow: 0 1px 3px rgba(11, 58, 126, .05); height: 100%; }
.essc-panel-title { width: calc(100% + 40px); box-sizing: border-box; margin: 0 -20px 16px; padding: 12px 20px; font-size: 16px; text-transform: uppercase; letter-spacing: .3px; color: var(--essc-navy); background: #eef3fa; border-bottom: 2px solid var(--essc-navy); border-radius: 4px 4px 0 0; position: relative; }
.essc-panel-title::before { content: ""; display: inline-block; width: 4px; height: 16px; background: var(--essc-red); margin-right: 10px; vertical-align: -2px; }
.essc-panel-note { font-size: 14px; color: #5b6678; }
.essc-contact-row .featured-box { padding: 12px 0; border-bottom: 1px dashed #dbe3ef; }
.essc-contact-row .essc-panel:first-child .col-inner > .featured-box:last-child { border-bottom: 0; }
.essc-contact-row .featured-box h3 { font-size: 14px; margin: 0 0 2px; color: var(--essc-navy); text-transform: uppercase; letter-spacing: .2px; }
.essc-contact-row .featured-box p { margin: 0; font-size: 14.5px; color: var(--essc-text); }
.essc-contact-row .featured-box a:hover p { color: var(--essc-red); }
.essc-contact-row .icon-box-img { margin-right: 14px !important; background: #eef3fa; border-radius: 4px; padding: 8px; box-sizing: content-box; }
.essc-map-panel iframe { display: block; border-radius: 3px; }
/* Contact Form 7 */
.essc-form-panel .wpcf7 input[type=text], .essc-form-panel .wpcf7 input[type=tel], .essc-form-panel .wpcf7 input[type=email], .essc-form-panel .wpcf7 textarea { border: 1px solid #cfd8e6; border-radius: 4px; box-shadow: none; height: 44px; font-size: 14.5px; background: #fbfcfe; }
.essc-form-panel .wpcf7 textarea { height: 150px; }
.essc-form-panel .wpcf7 input:focus, .essc-form-panel .wpcf7 textarea:focus { border-color: var(--essc-navy); background: #fff; box-shadow: 0 0 0 3px rgba(11, 58, 126, .1); }
.essc-form-panel .wpcf7 input[type=submit] { background: var(--essc-red) !important; border: 0 !important; color: #fff; border-radius: 4px; padding: 0 28px; text-transform: none; font-weight: 600; }
.essc-form-panel .wpcf7 input[type=submit]:hover { background: #b51419 !important; }
.essc-form-panel .wpcf7 br { display: none; }
.essc-form-panel .wpcf7-form > p, .essc-form-panel .wpcf7-form-control-wrap { display: block; margin-bottom: 12px; }
/* Partners */
.essc-partner-intro p { max-width: 820px; margin-bottom: 4px; }
.essc-partner-grid { margin-top: 14px !important; }
.essc-partner > .col-inner { background: #fff; border: 1px solid #dbe3ef; border-radius: 4px; padding: 16px 14px 12px; height: 100%; transition: border-color .2s, box-shadow .2s; }
.essc-partner > .col-inner:hover { border-color: var(--essc-navy); box-shadow: 0 6px 18px rgba(11, 58, 126, .12); }
.essc-partner .img { height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; width: 100% !important; }
.essc-partner .img .img-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.essc-partner .img img { max-height: 96px; width: auto !important; max-width: 85%; object-fit: contain; }
.essc-partner h3 { font-size: 14px; line-height: 1.45; color: var(--essc-navy); font-weight: 600; margin: 0; padding-top: 10px; border-top: 1px solid #eef2f7; }
.essc-partner-cta > .col-inner { background: linear-gradient(90deg, var(--essc-navy) 0%, #164b98 100%); border: 0; padding: 22px 26px; color: #fff; }
.essc-partner-cta h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.essc-partner-cta p { color: #d6e1f3; margin: 0; }

/* ===== Category archive (gov tone) ===== */
.archive .blog-wrapper.page-wrapper, .search .blog-wrapper.page-wrapper { padding-top: 0; background: #f2f5fa; padding-bottom: 30px; }
.essc-page-band { background: var(--essc-navy) url("/wp-content/uploads/2024/12/costi-vn-2-scaled.webp") 70% 50% / cover; position: relative; margin-bottom: 26px; }
.essc-page-band::before { content: ""; position: absolute; inset: 0; background: rgba(6, 28, 74, .75); }
.essc-page-band .row { position: relative; padding: 38px 0 30px; }
.essc-page-band .col { padding-bottom: 0; }
.essc-page-band .page-title { color: #fff; font-size: 28px; margin: 0; letter-spacing: .3px; text-transform: none; }
.essc-page-band .page-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--essc-red); margin-top: 10px; }
.essc-page-band .taxonomy-description { color: #d5e0f2; margin-top: 8px; font-size: 14px; }
.essc-post-list .post-item { padding-bottom: 14px; }
.essc-post-list .post-item .col-inner { background: #fff; border: 1px solid #dbe3ef; border-radius: 4px; box-shadow: none; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.essc-post-list .post-item .col-inner:hover { border-color: #b9c8de; box-shadow: 0 6px 18px rgba(11, 58, 126, .1); }
.essc-post-list .box-image { border-radius: 0; }
.essc-post-list .box-text { padding: 14px 20px !important; vertical-align: top; }
.essc-post-list .post-title { font-size: 17px; line-height: 1.4; color: var(--essc-navy); font-weight: 700; }
.essc-post-list a:hover .post-title { color: var(--essc-red); }
.essc-post-list .is-divider { display: none; }
.essc-post-list .post-meta { font-size: 13px; color: #6a7587; margin: 6px 0 8px; opacity: 1; }
.essc-post-list .post-meta::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; 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='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%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' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain; }
.essc-post-list .from_the_blog_excerpt { font-size: 14px; color: var(--essc-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Pagination: plain strip, square-ish 3px items */
ul.page-numbers.nav-pagination { background: none !important; border: 0 !important; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
ul.nav-pagination > li { margin: 0; }
ul.nav-pagination > li > .page-number { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; line-height: 1; border: 1px solid #cfd8e6 !important; border-radius: 3px !important; background: #fff; color: var(--essc-navy); font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
ul.nav-pagination > li > a.page-number:hover { border-color: var(--essc-navy) !important; color: var(--essc-red); }
ul.nav-pagination > li > .page-number.current { background: var(--essc-navy) !important; border-color: var(--essc-navy) !important; color: #fff !important; }
ul.nav-pagination > li > .page-number.dots { border-color: transparent !important; background: none; }
/* Sidebar widgets */
.archive #secondary, .search #secondary, .single-post #secondary { padding-bottom: 0; }
#secondary .widget { background: #fff; border: 1px solid #dbe3ef; border-radius: 4px; padding: 0 16px 12px; box-shadow: none; margin-bottom: 20px; }
#secondary .widget-title { display: block; margin: 0 -16px 10px; padding: 11px 16px; background: var(--essc-navy); color: #fff; font-size: 14px !important; text-transform: uppercase; letter-spacing: .4px; border-radius: 3px 3px 0 0; }
#secondary .widget-title::before { content: ""; display: inline-block; width: 4px; height: 14px; background: var(--essc-red); margin-right: 9px; vertical-align: -1px; }
#secondary .is-divider.small { display: none; }
#secondary .essc-notice-list .post-item .col-inner { background: none; border: 0; border-radius: 0; box-shadow: none; }
#secondary .essc-notice-list .post-title { font-size: 14px; font-weight: 600; }
#secondary .essc-notice-list .box-text { padding: 9px 0 9px 16px !important; }
.essc-hotline { text-align: center; padding: 6px 0 2px; }
.essc-hotline p { margin: 0 0 4px; font-size: 13.5px; color: #5b6678; }
.essc-hotline a.essc-hotline-num { display: block; font-size: 22px; font-weight: 700; color: var(--essc-red); margin: 4px 0 8px; }
.essc-hotline a.button { margin: 6px 0 0; border-radius: 4px; }

@media (max-width: 849px) {
	.header-nav .menu-item-design-custom-size > .nav-dropdown { display: block; }
	.essc-panel > .col-inner { margin-bottom: 0; }
	.essc-partner .img { height: 90px; }
}
@media (max-width: 549px) {
	.page-title .page-title-inner h1, .essc-page-band .page-title { font-size: 22px; }
	.essc-page-band .row { padding: 24px 0 20px; }
	.essc-panel > .col-inner { padding: 0 14px 14px; }
	.essc-panel-title { width: calc(100% + 28px); margin: 0 -14px 12px; padding: 11px 14px; font-size: 14.5px; }
	.essc-partner > .col-inner { padding: 12px 10px 10px; }
	.essc-partner .img { height: 74px; }
	.essc-partner .img img { max-height: 64px; }
	.essc-partner h3 { font-size: 12.5px; }
	.essc-partner-cta > .col-inner { padding: 18px; text-align: center; }
	.essc-partner-cta .col-inner.text-right { text-align: center; }
	.essc-post-list .box-text { padding: 12px 14px !important; }
	.essc-post-list .post-title { font-size: 15.5px; }
}

/* ===== About pages (sub-nav + panels) ===== */
.essc-about-page .essc-main-col > .col-inner > .row { margin-bottom: 6px; }
.essc-about-page .row-inner .col { padding-bottom: 20px; }
.essc-subnav-panel > .col-inner { padding-bottom: 0; position: sticky; top: 90px; height: auto; }
.essc-subnav { list-style: none; margin: -16px -20px 0 !important; padding: 0 !important; }
.essc-subnav li { margin: 0 !important; border-bottom: 1px solid #eef2f7; }
.essc-subnav a { display: block; position: relative; padding: 12px 20px 12px 34px; color: #1f3556; font-weight: 500; font-size: 14.5px; }
.essc-subnav a::before { content: "›"; position: absolute; left: 20px; color: var(--essc-red); font-weight: 700; }
.essc-subnav a:hover { background: #f2f6fc; color: var(--essc-navy); }
.page-id-1296 .sn-1296 a, .page-id-1676 .sn-1676 a, .page-id-1640 .sn-1640 a, .page-id-1822 .sn-1822 a { background: var(--essc-navy); color: #fff; font-weight: 600; }
.page-id-1296 .sn-1296 a::before, .page-id-1676 .sn-1676 a::before, .page-id-1640 .sn-1640 a::before, .page-id-1822 .sn-1822 a::before { color: #fff; }
.essc-subnav-help { margin: 0 -20px; padding: 16px 20px 18px; text-align: center; background: #f7f9fd; }
.essc-subnav-help p { margin: 0; font-size: 13px; color: #5b6678; text-transform: uppercase; letter-spacing: .3px; }
.essc-subnav-help a { font-size: 22px; font-weight: 700; color: var(--essc-red); }
.essc-panel p { font-size: 15px; line-height: 1.7; text-align: justify; }
.essc-panel-img > .col-inner { padding: 10px; display: flex; align-items: center; }
.essc-panel-img img { border-radius: 3px; }
.essc-panel .img { margin-bottom: 4px; }
.essc-stat-card > .col-inner, .essc-icon-card > .col-inner { background: #fff; border: 1px solid #dbe3ef; border-radius: 4px; padding: 18px 16px; height: 100%; text-align: center; transition: border-color .2s, box-shadow .2s; }
.essc-stat-card .icon-box-text, .essc-icon-card .icon-box-text { text-align: center; padding-left: 0; }
.essc-panel > .col-inner > .text > p:last-child { margin-bottom: 0; }
.essc-stat-card .featured-box h3 { font-size: 28px; color: var(--essc-red); margin: 6px 0 2px; font-weight: 700; }
.essc-stat-card .featured-box p { font-size: 13.5px; color: #5b6678; margin: 0; text-align: center; }
.essc-icon-card .featured-box h3 { font-size: 16px; color: var(--essc-navy); margin: 8px 0 6px; }
.essc-icon-card .featured-box p { font-size: 14px; color: #5b6678; margin: 0; text-align: center; line-height: 1.55; }
.essc-link-card > .col-inner:hover { border-color: var(--essc-navy); box-shadow: 0 6px 18px rgba(11, 58, 126, .12); }
.essc-link-card a:hover h3 { color: var(--essc-red); }
.essc-icon-card .icon-box-img, .essc-stat-card .icon-box-img { margin: 0 auto 4px !important; }
.essc-vm-card > .col-inner { padding: 26px 26px 20px; border-top: 3px solid var(--essc-red); }
.essc-vm-card .featured-box { text-align: center; }
.essc-vm-card h2 { color: var(--essc-navy); font-size: 22px; margin: 10px 0 10px; text-transform: uppercase; letter-spacing: .5px; }
.essc-vm-card .icon-box-img { margin: 0 auto !important; background: #eef3fa; border-radius: 50%; padding: 14px; box-sizing: content-box; }
.essc-contact-mini .featured-box { padding: 10px 0; border-bottom: 1px dashed #dbe3ef; }
.essc-contact-mini .col-inner > .featured-box:last-child, .essc-contact-mini a:last-of-type .featured-box { border-bottom: 0; }
.essc-contact-mini h3 { font-size: 13.5px; margin: 0; color: var(--essc-navy); text-transform: uppercase; }
.essc-contact-mini p { margin: 0; text-align: left; font-size: 14.5px; }
.essc-contact-mini .icon-box-img { margin-right: 12px !important; }
.essc-about-page .row-inner > .col.essc-panel:not(.essc-panel-img):not(.essc-vm-card) > .col-inner > .text:only-child h2.essc-panel-title { margin-bottom: 8px; }

@media (max-width: 849px) {
	.essc-subnav-panel > .col-inner { position: static; }
	.essc-subnav-panel { padding-top: 6px; }
}
@media (max-width: 549px) {
	.essc-post-list .post-item .box-vertical { display: flex; align-items: flex-start; }
	.essc-post-list .post-item .box-vertical .box-image { width: 36% !important; flex: 0 0 36%; }
	.essc-post-list .post-item .box-vertical .box-image .image-cover { padding-top: 100% !important; }
	.essc-post-list .box-text { padding: 10px 12px !important; }
	.essc-post-list .post-title { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.essc-post-list .from_the_blog_excerpt { display: none; }
	.essc-post-list .post-meta { margin-bottom: 0; }
	.essc-subnav { margin: -12px -14px 0 !important; }
	.essc-subnav-help { margin: 0 -14px; }
	.essc-panel p { font-size: 14.5px; text-align: left; }
	.essc-stat-card > .col-inner, .essc-icon-card > .col-inner { padding: 14px 10px; }
	.essc-stat-card .icon-box-text, .essc-icon-card .icon-box-text { text-align: center; padding-left: 0; }
.essc-panel > .col-inner > .text > p:last-child { margin-bottom: 0; }
.essc-stat-card .featured-box h3 { font-size: 22px; }
	.essc-icon-card .featured-box h3 { font-size: 14.5px; }
	.essc-icon-card .featured-box p { font-size: 13px; }
	.essc-vm-card > .col-inner { padding: 20px 16px 14px; }
}
@media (max-width: 549px) {
	.essc-panel-img .img { max-width: 220px; margin: 0 auto; }
}

/* ===== Titles left-aligned everywhere (page_header, single post) ===== */
.page-title:not(.blog-featured-title) .page-title-inner { flex-wrap: wrap; }
@media (max-width: 849px) {
	.page-title .page-title-inner .flex-col { text-align: left !important; flex-basis: 100%; }
	.page-title .page-title-inner .flex-col.flex-right { margin-top: 6px; }
	.page-title .title-breadcrumbs { justify-content: flex-start; }
}
/* Single post */
.single-post .blog-wrapper.page-wrapper { padding-top: 0; background: #f2f5fa; padding-bottom: 30px; }
.single-post .essc-page-band .page-title { font-size: 22px; }
.single-post .article-inner { background: #fff; border: 1px solid #dbe3ef; border-radius: 4px; padding: 26px 30px 20px; }
.single-post .entry-header-text { text-align: left !important; padding: 0 0 14px; border-bottom: 1px solid #eef2f7; margin-bottom: 18px; }
.single-post .entry-category { font-size: 12px; letter-spacing: .3px; margin-bottom: 8px; }
.single-post .entry-category a { color: var(--essc-red); }
.single-post .entry-title { font-size: 26px; line-height: 1.35; color: var(--essc-navy); margin-bottom: 10px; }
.single-post .entry-divider { background: var(--essc-red); height: 3px; max-width: 48px; opacity: 1; margin: 0 0 10px; }
.single-post .entry-meta { font-size: 13px; color: #6a7587; text-transform: none; letter-spacing: 0; }
.single-post .entry-meta .byline { display: none; }
.single-post .entry-content { font-size: 15.5px; line-height: 1.75; padding-top: 0; }
.single-post .entry-content a { color: var(--essc-red); }
.single-post footer.entry-meta { border-top: 1px solid #eef2f7; padding-top: 12px; margin-top: 20px; font-size: 13px; }
.single-post .blog-share { text-align: left !important; }
@media (max-width: 549px) {
	.single-post .article-inner { padding: 16px 14px 12px; }
	.single-post .entry-title { font-size: 20px; }
	.single-post .entry-content { font-size: 15px; }
}
/* Legacy posts repeat the title as an H1 inside content */
.single-post .entry-content > h1:first-child { display: none; }
.essc-single-band .page-title { font-weight: 700; }
.essc-single-band .page-title::after { content: "" !important; display: block !important; width: 56px; height: 3px; background: var(--essc-red); margin-top: 10px; }
/* About stats: number above label (narrow column) */
@media (min-width: 550px) {
	.essc-stats p strong { display: block; min-width: 0; line-height: 1.1; margin-bottom: 2px; }
	.essc-stats .icon-box { align-items: center; }
}
.essc-about-video .video { margin-bottom: 18px; background: #0b3a7e; }
/* Footer social (native follow) */
.essc-follow { margin-top: 12px; }
.essc-follow .icon.button.circle { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.25) !important; color: #fff !important; }
.essc-follow .icon.button.circle:hover { background: var(--essc-red) !important; border-color: var(--essc-red) !important; }

/* ===== Mobile off-canvas menu (gov style) ===== */
.off-canvas .mobile-sidebar { background: #fff; padding-top: 0; min-height: 100vh; }
.off-canvas-left .mfp-content, .off-canvas-right .mfp-content { width: 300px; }
#main-menu .sidebar-menu { padding-top: 0; }
#main-menu .essc-mm-top { background: var(--essc-navy); padding: 18px 16px 14px; border-bottom: 3px solid var(--essc-red); }
#main-menu .essc-mm-top img { height: 40px; width: auto; }
#main-menu .essc-mm-top span { display: block; color: #d5e0f2; font-size: 12px; line-height: 1.4; margin-top: 8px; }
#main-menu .nav-sidebar.nav-uppercase > li > a { text-transform: none; letter-spacing: 0; }
#main-menu .header-search-form { padding: 14px 16px; background: #f2f5fa; border-bottom: 1px solid #dbe3ef; }
#main-menu .header-search-form .search-field { height: 40px; border: 1px solid #c9d5e8; border-right: 0; box-shadow: none; border-radius: 4px 0 0 4px; font-size: 14px; }
#main-menu .header-search-form .submit-button { height: 40px; min-height: 40px; width: 44px; border-radius: 0 4px 4px 0; background: var(--essc-navy); }
#main-menu .nav-sidebar > li { border-top: 0; border-bottom: 1px solid #e6ecf4; }
#main-menu .nav-sidebar > li > a { color: var(--essc-navy); font-size: 15px; font-weight: 700; padding: 14px 16px; border-left: 3px solid transparent; }
#main-menu .nav-sidebar > li.active > a, #main-menu .nav-sidebar > li.current-menu-ancestor > a, #main-menu .nav-sidebar > li.current-menu-item > a { border-left-color: var(--essc-red); color: var(--essc-red); background: #f7f9fc; }
#main-menu .nav-sidebar li .toggle { color: var(--essc-navy); opacity: .7; margin-right: 6px; }
#main-menu .nav-sidebar > li.active > .toggle i { transform: rotate(180deg); }
#main-menu .nav-sidebar .sub-menu { background: #f5f8fc; padding: 4px 0 6px; border-top: 1px solid #e6ecf4; }
#main-menu .nav-sidebar .sub-menu li { border: 0; }
#main-menu .nav-sidebar .sub-menu li a { color: #2c3a52; font-size: 14px; font-weight: 400; text-transform: none; padding: 9px 16px 9px 30px; position: relative; }
#main-menu .nav-sidebar .sub-menu li a::before { content: ""; position: absolute; left: 18px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--essc-red); }
#main-menu .nav-sidebar .sub-menu .sub-menu { background: transparent; border: 0; padding: 0; }
#main-menu .nav-sidebar .sub-menu .sub-menu li a { padding-left: 44px; font-size: 13.5px; }
#main-menu .nav-sidebar .sub-menu .sub-menu li a::before { left: 32px; background: #9fb0c9; }
#main-menu .nav-sidebar .sub-menu li.current-menu-item > a { color: var(--essc-red); font-weight: 600; }
.mfp-close { color: #fff; opacity: 1; }
#main-menu .nav-sidebar > li > .sub-menu > li.menu-item-has-children > a { color: var(--essc-navy); font-weight: 600; }
#main-menu .nav-sidebar .sub-menu .sub-menu li a { padding-top: 7px; padding-bottom: 7px; line-height: 1.4; }
#main-menu .nav-sidebar > li.active > .toggle { background: transparent; }

/* ===== Dịch vụ page ===== */
.essc-svc-page h2[id] { scroll-margin-top: 110px; }
.essc-svc-lead { font-size: 15px; line-height: 1.7; color: #3d4a60; max-width: 880px; margin-bottom: 18px; text-align: left !important; }
.essc-svc-row { margin-top: 22px; }
.essc-svc-card > .col-inner { background: #fff; border: 1px solid #dbe3ef; border-radius: 4px; overflow: hidden; height: 100%; transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.essc-svc-card > .col-inner:hover { border-color: #b8c8e2; box-shadow: 0 8px 22px rgba(11, 58, 126, .12); transform: translateY(-2px); }
.essc-svc-card .img { margin: 0 !important; }
.essc-svc-card .img-inner { border-bottom: 3px solid var(--essc-red); }
.essc-svc-card > .col-inner > .text { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.essc-svc-card h3 { font-size: 16px; line-height: 1.4; margin: 0 0 6px; }
.essc-svc-card h3 a { color: var(--essc-navy); }
.essc-svc-card h3 a:hover { color: var(--essc-red); }
.essc-svc-card p { font-size: 14px; line-height: 1.6; color: #4f5b6e; text-align: left !important; margin-bottom: 10px; }
.essc-svc-card p:last-child { margin: auto 0 0; }
.essc-svc-cta { margin-top: 26px; }
.essc-svc-cta > .col { padding-bottom: 0; }
.essc-svc-cta { background: var(--essc-navy); border-radius: 4px; border-left: 5px solid var(--essc-red); padding: 22px 10px 8px; max-width: calc(1190px) !important; }
.essc-svc-cta h2 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.essc-svc-cta p { color: #d5e0f2; margin-bottom: 10px; }
.essc-svc-cta-btns > .col-inner { text-align: right; }
.essc-svc-cta-btns .button { margin: 6px 0 6px 8px; }
@media (max-width: 849px) {
	.essc-svc-cta-btns > .col-inner { text-align: left; }
	.essc-svc-cta-btns .button { margin: 0 8px 10px 0; }
}
@media (max-width: 549px) {
	.essc-svc-card h3 { font-size: 15px; }
	.essc-svc-cta { margin-left: 0 !important; margin-right: 0 !important; }
}
.essc-svc-feature-img .img-inner { border-radius: 4px; border-bottom: 3px solid var(--essc-red); }
.essc-svc-feature h3 { font-size: 19px; margin-bottom: 10px; }
.essc-svc-feature h3 a { color: var(--essc-navy); }
.essc-svc-feature ul { margin-bottom: 14px; }
.essc-svc-feature li { font-size: 14.5px; line-height: 1.6; color: #3d4a60; margin-bottom: 6px; list-style: none; position: relative; padding-left: 18px; margin-left: 0; }
.essc-svc-feature li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--essc-red); }
.essc-svc-feature .button { margin: 0 8px 8px 0; }
.essc-svc-cta .button.is-outline { color: #fff !important; border-color: rgba(255,255,255,.6) !important; }
.essc-svc-cta .button.is-outline:hover { background: #fff !important; color: var(--essc-navy) !important; }
@media (max-width: 549px) {
	.essc-svc-page .essc-icon-card > .col-inner { padding: 12px 14px; text-align: left; }
	.essc-svc-page .essc-icon-card .icon-box { display: flex; align-items: center; gap: 12px; }
	.essc-svc-page .essc-icon-card .icon-box-img { margin: 0 !important; flex: 0 0 34px; width: 34px !important; }
	.essc-svc-page .essc-icon-card .icon-box-text { text-align: left; }
	.essc-svc-page .essc-icon-card .featured-box h3 { margin: 0 0 2px; font-size: 15px; }
	.essc-svc-page .essc-icon-card .featured-box p { text-align: left; font-size: 13px; }
	.essc-svc-page .essc-icon-card { padding-bottom: 10px !important; }
}

/* ===== Round 5 ===== */
/* Quick lookup: navy tab fills full strip height */
.essc-quick > .essc-quick-head { align-self: stretch; }
.essc-quick-head > .col-inner { height: 100%; display: flex; align-items: center; }
.essc-quick-head .featured-box { width: 100%; }

/* Blog/single: wider sidebar, tighter gap */
@media (min-width: 850px) {
	.blog-wrapper > .row > .large-9 { flex-basis: 70%; max-width: 70%; padding-right: 12px; }
	.blog-wrapper > .row > .post-sidebar.large-3 { flex-basis: 30%; max-width: 30%; padding-left: 12px; }
}
.post-sidebar { border-left: 0 !important; }

/* Font Awesome accents (FA 6 webfont is loaded by the plugin) */
.essc-fa::before, #secondary .widget-title::before, .essc-btn-send::before { font-family: "Font Awesome 6 Free"; font-weight: 900; }
#secondary .widget-title { display: flex; align-items: center; gap: 9px; }
#secondary .widget-title::before { content: "\f0a1"; position: static !important; width: auto !important; height: auto !important; background: none !important; color: #ff6b70; font-size: 14px; }
#secondary #text-9003 .widget-title::before { content: "\f590"; }
#secondary #text-9002 .widget-title::before { content: "\f07c"; }
.essc-hotline-num::before { content: "\f095"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .75em; margin-right: 8px; vertical-align: 2px; }
.essc-btn-send::before { content: "\f1d8"; margin-right: 8px; }
.button.essc-btn-send { display: inline-flex; align-items: center; justify-content: center; }

/* Support modal (Flatsome lightbox) */
#essc-support { border-radius: 5px; overflow: hidden; padding: 0 !important; box-shadow: 0 20px 50px rgba(6, 28, 74, .35); }
.essc-modal-head { background: var(--essc-navy); color: #fff; padding: 20px 26px 16px; border-bottom: 3px solid var(--essc-red); display: flex; gap: 14px; align-items: center; }
.essc-modal-head > i { font-size: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 46px; }
.essc-modal-head h3 { color: #fff; font-size: 19px; margin: 0 0 2px; }
.essc-modal-head p { color: #c9d6ec; font-size: 13px; margin: 0; line-height: 1.45; }
.essc-modal-body { padding: 22px 26px 8px; background: #fff; }
.essc-modal-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 26px 16px; background: #f5f8fc; border-top: 1px solid #e6ecf4; font-size: 13px; color: #4f5b6e; }
.essc-modal-foot a { color: var(--essc-navy); font-weight: 600; }
.essc-modal-foot i { color: var(--essc-red); margin-right: 6px; }
.mfp-wrap .mfp-close { color: #fff; }

/* CF7 form (shared by modal + Liên hệ) */
.essc-cf7-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.essc-f { display: block; position: relative; margin: 0 0 14px; font-weight: 400; }
.essc-f > i { position: absolute; left: 14px; top: 14px; color: #8a9ab3; font-size: 14px; z-index: 2; pointer-events: none; transition: color .2s; }
.essc-f:focus-within > i { color: var(--essc-navy); }
.essc-f .wpcf7-form-control-wrap { display: block; }
.essc-f input, .essc-f textarea { width: 100%; margin: 0 !important; padding-left: 40px !important; height: 44px; border: 1px solid #d3ddeb !important; border-radius: 5px !important; background: #f8fafd !important; box-shadow: none !important; font-size: 14.5px; color: #1f2b40; transition: border-color .2s, background .2s, box-shadow .2s; }
.essc-f textarea { height: 120px; min-height: 120px; padding-top: 11px; resize: vertical; }
.essc-f input:focus, .essc-f textarea:focus { border-color: var(--essc-navy) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(11, 58, 126, .1) !important; }
.essc-cf7 ::placeholder { color: #98a4b6; opacity: 1; }
.essc-cf7-submit { position: relative; display: inline-block; }
.essc-cf7-submit > i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #fff; z-index: 2; pointer-events: none; }
.essc-cf7-submit input[type="submit"] { margin: 0 !important; padding: 0 26px 0 44px !important; height: 44px; border-radius: 5px !important; background: var(--essc-red) !important; font-size: 14.5px; letter-spacing: .2px; text-transform: none; }
.essc-cf7-submit input[type="submit"]:hover { background: #b5141a !important; }
.essc-cf7 .wpcf7-spinner { margin: 0 0 0 10px; }
.essc-cf7 .wpcf7-not-valid-tip { font-size: 12.5px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { border-radius: 5px; margin: 12px 0 14px; font-size: 13.5px; }
@media (max-width: 549px) {
	.essc-cf7-grid { grid-template-columns: 1fr; }
	.essc-modal-head, .essc-modal-body, .essc-modal-foot { padding-left: 16px; padding-right: 16px; }
	.essc-cf7-submit, .essc-cf7-submit input[type="submit"] { width: 100%; }
}
.essc-cf7-submit > i { top: 22px; }
.essc-cf7 .wpcf7-spinner { position: absolute; right: -40px; top: 10px; margin: 0; }
@media (max-width: 549px) {
	.essc-cf7-submit > i { left: calc(50% - 62px); }
	.essc-cf7 .wpcf7-spinner { right: 8px; }
}
