/*
Theme Name: MA Theme
Description: Child theme for Flatsome, built for demo.moz.com.vn.
Author: MA
Template: flatsome
Version: 1.0.0
Text Domain: matheme
*/

:root {
	--ma-navy: #081c35;
	--ma-blue: #164b9c;
	--ma-sky: #f6f7f8;
	--ma-orange: #f5a300;
	--ma-ink: #172334;
	--ma-muted: #657386;
	--ma-line: #dfe7ef;
	--ma-radius: 10px;
}

body { color: var(--ma-ink); font-family: Inter, Arial, sans-serif; }
.ma-line-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }
#header, #footer { display: none !important; }
.ma-site-header { position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 1px 7px rgba(8,28,53,.08); }
.ma-header-row { max-width: 1240px; min-height: 72px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 0; }
.ma-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ma-navy); font-weight: 800; line-height: 1; min-width: 175px; }
.ma-logo__mark { font-size: 28px; font-style: italic; letter-spacing: -7px; color: var(--ma-blue); }
.ma-logo small { display: block; font-size: 8px; letter-spacing: 1.6px; margin-top: 5px; }
.ma-nav { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 68px; gap: 24px; }
.ma-nav a { color: #243449; font-size: 13px; font-weight: 600; }
.ma-nav a:hover { color: var(--ma-blue); }
.ma-header-actions { display: flex; align-items: center; gap: 12px; }
.ma-header-actions .button { margin: 0; border-radius: 5px; font-size: 12px; }
.ma-languages { position: relative; }
.ma-languages button { border: 0; background: transparent; font-weight: 700; color: var(--ma-navy); padding: 10px; }
.ma-languages__menu { display: none; position: absolute; right: 0; top: 100%; min-width: 160px; background: #fff; padding: 8px; box-shadow: 0 12px 28px rgba(0,0,0,.15); border-radius: 8px; }
.ma-languages:hover .ma-languages__menu { display: grid; }
.ma-languages__menu a { padding: 8px 10px; white-space: nowrap; }

.ma-hero { min-height: 620px; display: flex; align-items: center; color: #fff; background: linear-gradient(90deg,rgba(3,32,63,.97) 0%,rgba(3,32,63,.78) 43%,rgba(3,32,63,.12) 76%),url("assets/images/factory-hero.png") center/cover no-repeat !important; }
.ma-hero .section-content { width: 100%; }
.ma-hero h1 { color: #fff !important; font-size: clamp(38px, 5vw, 68px); line-height: 1.05; max-width: 720px; }
.ma-hero p { max-width: 620px; font-size: 18px; color: rgba(255,255,255,.88); }
.ma-eyebrow { color: var(--ma-orange); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.ma-hero .button { border-radius: 5px; padding: 0 24px; }
.button.primary, .primary.is-outline:hover { background-color: var(--ma-blue) !important; border-color: var(--ma-blue) !important; }
.ma-hero-stats { margin-top: -55px; position: relative; z-index: 3; }
.ma-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); background: #fff; box-shadow: 0 16px 45px rgba(8,35,70,.14); border-radius: var(--ma-radius); }
.ma-stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--ma-line); }
.ma-stat:last-child { border: 0; }
.ma-stat strong { display: block; color: var(--ma-blue); font-size: 29px; }
.ma-stat span { color: var(--ma-muted); font-size: 13px; }

.ma-section { padding: 76px 0; }
.ma-section--soft { background: #f6f9fc; }
.ma-section--navy { background: var(--ma-navy); color: #fff; }
.ma-section-title { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.ma-section-title h2 { color: var(--ma-navy); font-size: clamp(30px,4vw,44px); margin-bottom: 12px; }
.ma-section-title p { color: var(--ma-muted); }
.ma-section--navy .ma-section-title h2, .ma-section--navy .ma-section-title p { color: #fff; }
.ma-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ma-card { height: 100%; padding: 28px; background: #fff; border: 1px solid var(--ma-line); border-radius: var(--ma-radius); transition: .25s ease; }
.ma-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(8,35,70,.11); }
.ma-card__icon { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: var(--ma-blue); border-radius: 10px; font-size: 23px; }
.ma-card h3 { color: var(--ma-navy); margin: 18px 0 8px; }
.ma-card p { color: var(--ma-muted); }
.ma-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; counter-reset: steps; }
.ma-step { padding: 24px 18px; background: #fff; border-radius: 8px; color: var(--ma-ink); counter-increment: steps; }
.ma-step:before { content: "0" counter(steps); display: block; color: var(--ma-orange); font-size: 27px; font-weight: 800; }
.ma-products { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.ma-product { background: #fff; border: 1px solid var(--ma-line); border-radius: 8px; overflow: hidden; }
.ma-product__visual { height: 190px; background: linear-gradient(145deg,#edf3f8,#fff); display: grid; place-items: center; font-size: 72px; }
.ma-product__body { padding: 18px; }
.ma-product__body h3 { margin: 0 0 7px; color: var(--ma-navy); }
.ma-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.ma-factory-image { min-height: 420px; border-radius: 12px; background: url("assets/images/factory-hero.png") center/cover; }
.ma-badges { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.ma-badge { padding: 22px 10px; text-align: center; background: #fff; border: 1px solid var(--ma-line); border-radius: 8px; color: var(--ma-navy); font-weight: 800; }

.ma-page-hero { padding: 90px 0 64px; color: #fff; background: linear-gradient(100deg,rgba(4,31,61,.98),rgba(4,31,61,.58)),url("assets/images/factory-hero.png") center/cover; }
.ma-page-hero h1 { color: #fff; font-size: 46px; margin-bottom: 8px; }
.ma-breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
.ma-breadcrumb a { color: #fff; }
.ma-form { padding: 32px; background: #fff; border: 1px solid var(--ma-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(8,35,70,.08); }
.ma-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ma-form label { display: block; font-weight: 600; font-size: 13px; color: var(--ma-navy); }
.ma-form input,.ma-form select,.ma-form textarea { width: 100%; margin-top: 7px; border: 1px solid #d5e0ea; border-radius: 5px; box-shadow: none; }
.ma-consent input { width: auto; }
.ma-alert { padding: 15px; margin-bottom: 20px; border-radius: 6px; }
.ma-alert--success { color: #155c38; background: #e7f8ef; }
.ma-download-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ma-download-card { padding: 25px; background: #fff; border: 1px solid var(--ma-line); border-radius: 8px; }
.ma-download-card__icon { font-size: 34px; color: var(--ma-blue); }
.ma-download-card form { display: grid; gap: 8px; }
.ma-download-card button { border: 0; padding: 11px; color: #fff; background: var(--ma-blue); border-radius: 4px; }
.ma-faq details { background: #fff; border: 1px solid var(--ma-line); border-radius: 6px; margin-bottom: 10px; padding: 16px 20px; }
.ma-faq summary { color: var(--ma-navy); font-weight: 700; cursor: pointer; }

.ma-site-footer { color: #c9d7e6; background: #041f3d; }
.ma-footer-inner { max-width: 1240px; margin: auto; padding: 58px 24px 25px; }
.ma-footer-grid { display: flex; flex-flow: row wrap; gap: 0; }
.ma-footer-grid h4 { color: #fff; margin-bottom: 17px; }
.ma-footer-grid a { display: block; color: #c9d7e6; margin: 9px 0; font-size: 14px; }
.ma-footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.ma-sticky-cta { position: fixed; right: 14px; top: 45%; z-index: 998; display: grid; gap: 6px; }
.ma-sticky-cta a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 7px; background: var(--ma-blue); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.ma-sticky-cta a:first-child { background: #22a85a; }
.ma-sticky-cta a:last-child { background: var(--ma-orange); }

@media (max-width: 900px) {
	.ma-nav { display: none; }
	.ma-header-row { min-height: 62px; }
	.ma-header-actions .button { display: none; }
	.ma-hero { min-height: 560px; }
	.ma-stat-grid,.ma-card-grid,.ma-products,.ma-download-grid { grid-template-columns: repeat(2,1fr); }
	.ma-steps { grid-template-columns: repeat(2,1fr); }
	.ma-split,.ma-footer-grid { grid-template-columns: 1fr; }
	.ma-badges { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 550px) {
	.ma-header-row { padding: 0 14px; }
	.ma-logo { min-width: 0; }
	.ma-stat-grid,.ma-card-grid,.ma-products,.ma-download-grid,.ma-form__grid { grid-template-columns: 1fr; }
	.ma-stat { border-right: 0; border-bottom: 1px solid var(--ma-line); }
	.ma-hero-stats { margin-top: 0; }
	.ma-section { padding: 52px 0; }
	.ma-sticky-cta { right: 7px; }
}

/* Editable UX Block library — visual system matching the YEUCAU references. */
.ma-header-section { background: #fff; }
.ma-header-section .row { max-width: 1240px !important; }
.ma-header-row { min-height: 68px; max-width: none; padding: 0; flex-wrap: nowrap; }
.ma-header-row .col { padding-bottom: 0; }
.ma-header-row .ma-nav { gap: 18px; }
.ma-header-row .ma-nav a { font-size: 11px; letter-spacing: -.1px; }
.ma-header-row .ma-logo { min-width: 150px; }
.ma-header-row .ma-header-actions { justify-content: flex-end; }
.ma-header-row .button { min-height: 35px; line-height: 33px; padding: 0 10px; white-space: nowrap; font-size: 10px; }
.ma-header-row .ma-header-actions { gap: 5px; flex-wrap: nowrap; }
.ma-logo-image { display: block; width: 174px; }
.ma-logo-image img { display: block; width: 174px; height: 48px; object-fit: contain; object-position: left center; }
.ma-flag { font-size: 17px; line-height: 1; }
.ma-mega-trigger { position: relative; display: inline-flex; align-items: center; min-height: 68px; }
.ma-mega { position: absolute; left: 50%; top: 100%; width: 640px; display: none; grid-template-columns: repeat(3,1fr); gap: 30px; padding: 28px; transform: translateX(-50%); background: #fff; box-shadow: 0 18px 40px rgba(6,38,74,.18); border-top: 3px solid var(--ma-blue); }
.ma-mega-trigger:hover .ma-mega { display: grid; }
.ma-mega b { display: block; margin-bottom: 10px; color: var(--ma-navy); font-size: 12px; }
.ma-mega a { display: block; padding: 6px 0; color: var(--ma-muted); }
.ma-mobile-menu { display: none; position: relative; }
.ma-mobile-menu summary { list-style: none; cursor: pointer; color: var(--ma-navy); font-size: 23px; }
.ma-mobile-menu nav { position: absolute; right: 0; top: 42px; width: 250px; display: grid; padding: 12px; text-align: left; background: #fff; box-shadow: 0 14px 32px rgba(6,38,74,.2); }
.ma-mobile-menu nav a { padding: 10px; color: var(--ma-navy); border-bottom: 1px solid var(--ma-line); font-size: 13px; }

.ma-home-hero { min-height: 610px; display: flex; align-items: center; color: #fff; background: linear-gradient(90deg,rgba(3,30,59,.93),rgba(3,30,59,.62) 48%,rgba(3,30,59,.08)),url("assets/images/factory-hero.png") center/cover no-repeat !important; }
.ma-home-hero h1 { color: #fff; max-width: 760px; font-size: clamp(38px,4.7vw,66px); line-height: 1.08; }
.ma-home-hero p { max-width: 620px; color: rgba(255,255,255,.9); font-size: 18px; }
.ma-home-hero .button { border-radius: 3px; }
.ma-home-hero a.button { display: inline-block !important; position: relative; z-index: 4; margin-top: 10px; margin-right: 10px; }
.ma-home-hero a.button.primary { color: #fff !important; background: #247ed9 !important; }
.ma-home-hero a.button.white.is-outline { color: #fff !important; border-color: #fff !important; background: transparent !important; }
.ma-ref-section { padding: 72px 0 !important; }
.ma-ref-section > .section-content > .row { max-width: 1180px !important; }
.ma-ref-section h2 { color: var(--ma-navy); font-size: clamp(28px,3.4vw,43px); line-height: 1.18; }
.ma-soft { background: #f5f8fc !important; }
.ma-navy { color: #fff; background: var(--ma-navy) !important; }
.ma-navy h2,.ma-navy h3,.ma-navy p,.ma-navy li { color: #fff; }
.ma-section-title { max-width: 780px; }
.ma-section-title h2 { margin-top: 8px; }
.ma-factory-photo { min-height: 360px; border-radius: 8px; background: url("assets/images/factory-hero.png") 65% center/cover no-repeat; box-shadow: 0 16px 38px rgba(6,38,74,.15); }
.ma-factory-photo--tall { min-height: 470px; }
.ma-factory-photo--contain { min-height: 390px; background-size: cover; }
.ma-mini-stats { display: flex; gap: 12px; margin: 24px 0; }
.ma-mini-stats div { flex: 1; padding: 16px 12px; border-left: 3px solid var(--ma-orange); background: #f5f8fc; }
.ma-mini-stats strong,.ma-mini-stats span { display: block; }
.ma-mini-stats strong { color: var(--ma-blue); font-size: 23px; }
.ma-mini-stats span { color: var(--ma-muted); font-size: 12px; }
.ma-product-categories,.ma-product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.ma-product-categories article,.ma-product-grid article { padding: 24px; border: 1px solid var(--ma-line); border-radius: 6px; background: #fff; transition: .25s; }
.ma-product-categories article:hover,.ma-product-grid article:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(6,38,74,.1); }
.ma-product-categories b { color: var(--ma-orange); font-size: 25px; }
.ma-product-categories h3,.ma-product-grid h3 { color: var(--ma-navy); margin: 12px 0 7px; }
.ma-product-categories p,.ma-product-grid p { color: var(--ma-muted); font-size: 13px; }
.ma-icon-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.ma-icon-item { text-align: center; padding: 26px 18px; border: 1px solid var(--ma-line); border-radius: 6px; background: #fff; }
.ma-icon-item > span { display: grid; width: 48px; height: 48px; margin: 0 auto 16px; place-items: center; color: #fff; background: var(--ma-blue); border-radius: 50%; font-weight: 800; }
.ma-icon-item h3 { margin: 0 0 7px; color: var(--ma-navy); font-size: 17px; }
.ma-icon-item p { margin: 0; color: var(--ma-muted); font-size: 13px; }
.ma-icon-grid--stats .ma-icon-item > span { background: transparent; color: var(--ma-blue); font-size: 25px; }
.ma-icon-grid--six { grid-template-columns: repeat(6,1fr); }
.ma-photo-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 12px; }
.ma-photo-grid div,.ma-facility-grid article div,.ma-gallery-grid div,.ma-news-image { background: url("assets/images/factory-hero.png") center/cover no-repeat; }
.ma-photo-grid div:first-child { grid-row: 1/3; }
.ma-photo-grid div:nth-child(2) { background-position: 75% center; }
.ma-photo-grid div:nth-child(3) { background-position: 35% center; }
.ma-photo-grid div:nth-child(4) { grid-column: 2/4; background-position: 60% 65%; }
.ma-photo-grid--six { grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,220px); }
.ma-photo-grid--six div:first-child { grid-row: auto; }
.ma-photo-grid--six div:nth-child(4) { grid-column: auto; }
.ma-cert-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.ma-cert-row div { min-height: 110px; display: grid; place-items: center; text-align: center; color: var(--ma-navy); border: 1px solid var(--ma-line); background: #fff; font-size: 20px; font-weight: 800; }
.ma-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ma-news-grid article { overflow: hidden; border: 1px solid var(--ma-line); border-radius: 6px; background: #fff; padding: 0 20px 20px; }
.ma-news-image { height: 200px; margin: 0 -20px 18px; }
.ma-news-grid small { color: var(--ma-blue); font-weight: 700; }
.ma-news-grid h3 { color: var(--ma-navy); font-size: 18px; }
.ma-rfq-cta { padding: 48px 0 !important; color: #fff; background: linear-gradient(100deg,#06264a,#075bbb) !important; }
.ma-rfq-cta h2,.ma-rfq-cta p { color: #fff; }
.ma-rfq-cta h2 { margin-bottom: 6px; }

.ma-ref-hero { min-height: 340px; display: flex; align-items: flex-end; padding: 110px 0 50px !important; color: #fff; background: linear-gradient(90deg,rgba(3,30,59,.96),rgba(3,30,59,.45)),url("assets/images/factory-hero.png") center/cover no-repeat !important; }
.ma-ref-hero h1 { color: #fff; margin: 5px 0; font-size: clamp(36px,4.4vw,56px); text-transform: uppercase; }
.ma-ref-hero p { color: rgba(255,255,255,.86); font-size: 17px; }
.ma-ref-hero .ma-breadcrumb { margin-top: 18px; }
.ma-stat-band { padding: 25px 0 !important; background: #fff !important; box-shadow: 0 8px 26px rgba(6,38,74,.08); }
.ma-stat-band .ma-icon-item { border: 0; padding: 12px 8px; border-right: 1px solid var(--ma-line); }
.ma-process { display: grid; grid-template-columns: repeat(6,1fr); gap: 13px; }
.ma-process > div { position: relative; min-height: 130px; padding: 22px 15px; background: #fff; border: 1px solid var(--ma-line); border-radius: 5px; }
.ma-process b { color: var(--ma-orange); font-size: 25px; }
.ma-process h3 { margin-top: 20px; color: var(--ma-navy); font-size: 15px; }
.ma-process--four { grid-template-columns: repeat(4,1fr); }
.ma-facility-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ma-facility-grid article { overflow: hidden; background: #fff; border: 1px solid var(--ma-line); border-radius: 6px; }
.ma-facility-grid article div { height: 190px; }
.ma-facility-grid h3 { padding: 0 18px; color: var(--ma-navy); }
.ma-product-grid article > div,.ma-product-grid article a > div { height: 180px; display: grid; place-items: center; margin: -24px -24px 18px; background: linear-gradient(145deg,#eef3f8,#fff); font-size: 62px; }
.ma-product-grid--archive { grid-template-columns: repeat(3,1fr); }
.ma-product-grid--archive a { color: inherit; }
.ma-product-grid--archive small { color: var(--ma-blue); font-weight: 700; }
.ma-filter-panel,.ma-sidebar,.ma-contact-info { padding: 24px; background: #f6f9fc; border: 1px solid var(--ma-line); border-radius: 5px; }
.ma-filter-panel h3,.ma-sidebar h3 { color: var(--ma-navy); font-size: 15px; }
.ma-filter-panel p,.ma-sidebar p { padding: 8px 0; border-bottom: 1px solid var(--ma-line); margin: 0; font-size: 13px; }
.ma-catalog-toolbar { display: flex; justify-content: space-between; margin-bottom: 18px; }
.ma-catalog-toolbar select { width: auto; }
.ma-cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ma-cert-grid article { text-align: center; padding: 24px; border: 1px solid var(--ma-line); background: #fff; }
.ma-cert-grid article > div { min-height: 150px; display: grid; place-items: center; color: var(--ma-blue); font-size: 32px; font-weight: 900; background: #f5f8fc; }
.ma-cert-grid h3 { color: var(--ma-navy); margin: 18px 0 6px; }
.ma-video-banner { padding: 76px 0 !important; color: #fff; background: linear-gradient(rgba(4,31,61,.7),rgba(4,31,61,.7)),url("assets/images/factory-hero.png") center/cover !important; }
.ma-video-banner h2,.ma-video-banner p { color: #fff; }
.ma-gallery-nav { box-shadow: 0 6px 20px rgba(6,38,74,.08); }
.ma-tabs { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; padding: 16px 0; }
.ma-tabs span { padding: 9px 15px; color: var(--ma-navy); background: #f1f5f9; border-radius: 4px; font-size: 12px; font-weight: 700; }
.ma-tabs span:first-child { color: #fff; background: var(--ma-blue); }
.ma-tabs--left { justify-content: flex-start; padding-top: 0; }
.ma-gallery-group { margin-bottom: 55px; }
.ma-gallery-group h2 { font-size: 27px; margin-bottom: 3px; }
.ma-gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: repeat(2,160px); gap: 10px; margin-top: 20px; }
.ma-gallery-grid div:first-child { grid-column: span 2; grid-row: span 2; }
.ma-gallery-grid div:nth-child(2) { grid-column: span 2; }
.ma-download-grid { grid-template-columns: repeat(3,1fr); }
.ma-download-card form input { margin-bottom: 7px; }
.ma-news-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin: 25px 0 32px; padding-bottom: 30px; border-bottom: 1px solid var(--ma-line); }
.ma-news-featured .ma-news-image { height: 300px; margin: 0; }
.ma-map-section { padding: 0 0 70px !important; }
.ma-map-placeholder { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ma-navy); background: radial-gradient(circle at center,#fff 0,#e9eef4 2px,transparent 3px) 0 0/24px 24px,#dce7ef; }
.ma-map-placeholder strong { padding: 16px; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,.12); }
.ma-map-placeholder span { padding: 6px 12px; background: #fff; }
.ma-product-gallery { padding: 20px; border: 1px solid var(--ma-line); }
.ma-product-main { min-height: 420px; display: grid; place-items: center; font-size: 150px; background: #f5f8fc; }
.ma-product-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 10px; }
.ma-product-thumbs span { display: grid; min-height: 80px; place-items: center; background: #f5f8fc; font-size: 34px; }
.ma-spec-table { margin-top: 25px; border-top: 1px solid var(--ma-line); }
.ma-spec-table > div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 13px 5px; border-bottom: 1px solid var(--ma-line); }
.ma-certificate-paper { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px; border: 12px double #236a9f; background: #fff; box-shadow: 0 15px 35px rgba(6,38,74,.12); }
.ma-certificate-paper strong { font-size: 52px; color: var(--ma-blue); }
.ma-certificate-paper span { margin: 20px 0; letter-spacing: 3px; }
.ma-news-image--large { height: 430px; margin: 20px 0; }
.ma-lead { font-size: 20px; color: var(--ma-navy); }
blockquote { border-left-color: var(--ma-orange); background: #f6f9fc; padding: 20px 24px; }
.ma-404 { padding: 70px 0 !important; }
.ma-404 strong { display: block; color: var(--ma-blue); font-size: 120px; line-height: 1; }
.ma-link-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin-top: 20px; }
.ma-link-grid a { padding: 20px 12px; text-align: center; color: var(--ma-navy); border: 1px solid var(--ma-line); font-weight: 700; }
.ma-footer-contact { padding: 32px 0 !important; color: #fff; background: linear-gradient(105deg,#092851,#0d3973) !important; }
.ma-footer-contact h3,.ma-footer-contact p { color: #fff; margin-bottom: 5px; }
.ma-footer-contact-list { display: grid; gap: 10px; }
.ma-footer-contact-list p { display: flex; gap: 12px; align-items: center; margin: 0; font-size: 12px; }
.ma-footer-contact-list b { display: grid; width: 34px; height: 34px; place-items: center; background: #164b9c; border-radius: 4px; }
.ma-footer-contact-list b .ma-line-icon { width: 18px; height: 18px; }
.ma-footer-contact-list strong { font-size: 13px; }
.ma-footer-section { padding: 38px 0 15px !important; background: #081c35 !important; }
.ma-footer-section .row { max-width: 1180px !important; }
.ma-logo--light { color: #fff; }
.ma-footer-grid h4 { font-size: 14px; }
.ma-footer-grid p { font-size: 13px; }
.ma-footer-brand { width: 175px; height: 48px; margin-bottom: 12px; overflow: hidden; }
.ma-footer-brand img { width: 175px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.ma-social { color: #4d9af2 !important; letter-spacing: 4px; }
.ma-footer-bottom { margin-top: 24px; }

/* WooCommerce catalog and Flatsome custom product layout. */
.ma-woo-product-top { padding: 34px 0 55px !important; background: #fff !important; }
.ma-woo-product-top > .section-content > .row,
.ma-woo-product-tabs > .section-content > .row { max-width: 1180px !important; }
.ma-woo-product-top .product-title { color: var(--ma-navy); font-size: 31px; line-height: 1.2; }
.ma-quote-price { display: inline-block; margin: 8px 0 16px; color: var(--ma-blue); font-size: 19px; font-weight: 800; }
.ma-product-rfq { max-width: 320px; margin-top: 18px; }
.ma-woo-product-tabs { padding: 0 0 58px !important; background: #fff !important; }
.ma-woo-product-tabs .product-tabs { border-top: 1px solid var(--ma-line); }
.ma-woo-product-tabs .nav-tabs { justify-content: flex-start; background: #f5f6f7; }
.ma-woo-product-tabs .nav-tabs > li > a { color: var(--ma-navy); font-size: 12px; }
.ma-woo-product-tabs .tab-panels { padding: 24px 0; }
.woocommerce .product-gallery .woocommerce-product-gallery__image,
.woocommerce .product-gallery .easyzoom { background: #f5f6f7; }
.woocommerce .product-gallery img { mix-blend-mode: multiply; }
.woocommerce-breadcrumb { color: #7a8795; font-size: 11px; text-transform: none; }
.products.row { margin-left: -10px; margin-right: -10px; }
.products .product-small { padding: 0 10px 22px; }
.products .box-image { background: #f5f6f7; border: 1px solid #eef0f2; }
.products .box-text { padding: 12px 3px 0; }
.products .category { color: #7c8995; font-size: 9px; }
.products .name a { color: var(--ma-navy); font-size: 13px; line-height: 1.35; }
.products .ma-quote-price { margin: 5px 0; font-size: 12px; }
.products .button { min-height: 30px; line-height: 28px; font-size: 9px; }
.woocommerce-result-count,.woocommerce-ordering { font-size: 11px; }
.woocommerce-message,.woocommerce-info { border-color: var(--ma-blue); background: #f5f6f7; }
.shop-page-title { display: none !important; }

/* Homepage, measured against YEUCAU/Trang chủ .png. */
.ma-home-hero { position: relative; min-height: 545px; padding-bottom: 72px !important; }
.ma-home-hero > .section-content { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; }
.ma-home-hero > .section-content > .row { flex: 1 1 auto; width: 100%; align-items: center; }
.ma-home-hero h1 { margin-bottom: 5px; font-size: clamp(39px,4.2vw,58px); }
.ma-home-hero h3 { color: #fff; font-size: 22px; font-weight: 500; line-height: 1.35; }
.ma-home-hero h3 strong { color: #2788f0; font-size: 28px; }
.ma-home-hero p { max-width: 600px; font-size: 14px; line-height: 1.75; }
.ma-hero-metrics { position: static; width: min(1180px,92%); display: grid; grid-template-columns: repeat(4,1fr); margin: 0 auto; background: #0c376c; border-radius: 5px 5px 0 0; }
.ma-hero-metrics > div { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; padding: 19px 27px; color: #fff; border-right: 1px solid rgba(255,255,255,.25); }
.ma-hero-metrics > div:last-child { border: 0; }
.ma-hero-metrics b { grid-row: 1/3; color: #37a0ff; font-size: 28px; }
.ma-hero-metrics b .ma-line-icon { width: 30px; height: 30px; }
.ma-hero-metrics strong { font-size: 19px; }
.ma-hero-metrics span { color: rgba(255,255,255,.78); font-size: 11px; }
.ma-home-about { padding-top: 48px !important; padding-bottom: 42px !important; }
.ma-home-about .ma-section-title { margin-bottom: 24px; }
.ma-five-benefits { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.ma-five-benefits article { min-height: 185px; padding: 23px 15px; text-align: center; border: 1px solid #e3e8ed; border-radius: 5px; background: #fff; }
.ma-five-benefits b { color: #2275d3; font-size: 32px; }
.ma-five-benefits b .ma-line-icon { width: 38px; height: 38px; }
.ma-five-benefits h3 { color: #0a274b; font-size: 14px; margin: 12px 0 8px; }
.ma-five-benefits p { color: #667382; font-size: 11px; line-height: 1.55; }
.ma-home-products-strip { padding: 14px 0 !important; color: #fff; background: #092851 !important; }
.ma-home-products-strip > .section-content > .row { max-width: 1180px !important; }
.ma-home-products-strip h2 { color: #fff; margin: 3px 0 12px; font-size: 29px; line-height: 1.15; }
.ma-home-products-strip .products .product-small { padding-bottom: 0; }
.ma-home-products-strip .products .box { overflow: hidden; background: #fff; border-radius: 4px; }
.ma-home-products-strip .products .box-image { border: 0; }
.ma-home-products-strip .products .box-text { min-height: 55px; padding: 10px 7px; text-align: center; }
.ma-home-products-strip .products .ma-quote-price,.ma-home-products-strip .products .button { display: none; }
.ma-check-list,.ma-capability-list { display: grid; gap: 8px; }
.ma-check-list p,.ma-capability-list p { display: flex; gap: 13px; align-items: flex-start; margin: 0; padding: 13px 15px; border: 1px solid #e2e8ee; border-radius: 5px; background: #fff; }
.ma-check-list b,.ma-capability-list b { display: grid; flex: 0 0 28px; height: 28px; place-items: center; color: #1c71ce; border: 1px solid #1c71ce; border-radius: 5px; }
.ma-check-list b .ma-line-icon,.ma-capability-list b .ma-line-icon { width: 17px; height: 17px; }

/* Privacy policy — dedicated editable UX Blocks matching bảo mật.png. */
.ma-privacy-hero {
	min-height: 205px;
	display: flex;
	align-items: center;
	color: #fff;
	background:
		linear-gradient(90deg,rgba(5,25,49,.94),rgba(5,31,61,.78)),
		url("/wp-content/themes/matheme/assets/images/factory-hero.png") center 48%/cover no-repeat;
}
.ma-privacy-hero .row { width: 100%; }
.ma-privacy-hero h1 { color: #fff; font-size: 35px; line-height: 1.15; margin: 15px 0 12px; }
.ma-privacy-hero p { color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.7; margin: 0; }
.ma-privacy-hero .breadcrumbs,.ma-privacy-hero .breadcrumbs a { color: rgba(255,255,255,.75); font-size: 12px; }
.ma-privacy-hero-icon { color: #fff; opacity: .95; }
.ma-privacy-hero-icon .ma-line-icon { width: 86px; height: 86px; stroke-width: 1.15; }
.ma-privacy-main { padding: 42px 0 42px !important; background: #fff; }
.ma-privacy-layout > .col { padding-bottom: 0; }
.ma-privacy-toc { border: 1px solid #dfe4ea; background: #fff; }
.ma-privacy-toc a {
	display: flex; align-items: center; gap: 10px; min-height: 41px; padding: 8px 13px;
	border-bottom: 1px solid #e6e9ed; color: #26384d; font-size: 11px; line-height: 1.2;
}
.ma-privacy-toc a:last-child { border-bottom: 0; }
.ma-privacy-toc a:hover,.ma-privacy-toc a.active { color: #fff; background: #0b376a; }
.ma-privacy-toc .ma-line-icon { width: 20px; height: 20px; flex: 0 0 20px; color: #164b9c; }
.ma-privacy-toc a:hover .ma-line-icon,.ma-privacy-toc a.active .ma-line-icon { color: #fff; }
.ma-privacy-trust {
	margin-top: 22px; padding: 28px 22px; text-align: center;
	border: 1px solid #dfe7f0; background: #f4f8fc;
}
.ma-privacy-trust > .ma-line-icon { width: 46px; height: 46px; color: #164b9c; }
.ma-privacy-trust h3 { color: #0b376a; font-size: 16px; margin: 14px 0 8px; }
.ma-privacy-trust p { color: #657282; font-size: 12px; line-height: 1.6; margin: 0; }
.ma-privacy-article { border: 1px solid #dfe4e9; padding: 20px 30px 24px; color: #485563; }
.ma-privacy-article > p { font-size: 10.5px; line-height: 1.45; }
.ma-policy-date { color: #7a8490; font-size: 11px !important; font-style: italic; margin-bottom: 13px; }
.ma-privacy-section { padding: 9px 0 7px; border-top: 1px solid #e3e7eb; scroll-margin-top: 90px; }
.ma-privacy-section h2 {
	display: flex; align-items: center; gap: 12px; margin: 0 0 13px;
	color: #0a315d; font-size: 15px; line-height: 1.2;
}
.ma-privacy-section h2 .ma-line-icon { width: 21px; height: 21px; color: #164b9c; flex: 0 0 21px; }
.ma-privacy-section p,.ma-privacy-section li { color: #485563; font-size: 10.5px; line-height: 1.38; }
.ma-privacy-section p { margin-bottom: 3px; }
.ma-privacy-section ul { margin: 2px 0 0 16px; }
.ma-privacy-section li { margin-bottom: 1px; padding-left: 2px; }
.ma-privacy-section li::marker { color: #164b9c; }
.ma-privacy-contact {
	display: grid; grid-template-columns: 1.7fr 1fr; gap: 0;
	margin-top: 16px; border: 1px solid #d9e0e7; background: #f8fafc;
}
.ma-privacy-contact p { display: flex; gap: 12px; margin: 0; padding: 15px 17px; border-bottom: 1px solid #e0e5ea; }
.ma-privacy-contact p:first-child { grid-row: span 2; align-items: flex-start; border-right: 1px solid #e0e5ea; border-bottom: 0; }
.ma-privacy-contact p:last-child { border-bottom: 0; }
.ma-privacy-contact .ma-line-icon { width: 22px; height: 22px; color: #164b9c; flex: 0 0 22px; }
.page-chinh-sach-bao-mat .ma-footer-contact { display: none; }
.page-chinh-sach-bao-mat .ma-footer-section { padding-top: 44px !important; }
@media (max-width: 849px) {
	.ma-privacy-hero { min-height: 190px; }
	.ma-privacy-hero h1 { font-size: 27px; }
	.ma-privacy-hero-icon .ma-line-icon { width: 58px; height: 58px; }
	.ma-privacy-main { padding: 30px 0 40px !important; }
	.ma-privacy-article { padding: 22px 18px; }
	.ma-privacy-contact { grid-template-columns: 1fr; }
	.ma-privacy-contact p:first-child { grid-row: auto; border-right: 0; border-bottom: 1px solid #e0e5ea; }
}
.ma-check-list span,.ma-check-list strong,.ma-check-list small,.ma-capability-list span,.ma-capability-list strong,.ma-capability-list small { display: block; }
.ma-check-list strong,.ma-capability-list strong { color: #0a274b; font-size: 13px; }
.ma-check-list small,.ma-capability-list small { color: #687584; font-size: 11px; margin-top: 3px; }
.ma-handshake-photo { min-height: 335px; border-radius: 6px; background: url("assets/images/factory-hero.png") 68% center/cover no-repeat; }
.ma-handshake-photo { display: block; width: 100%; height: auto; object-fit: cover; }
.ma-oem-five { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.ma-oem-five article { min-height: 180px; padding: 22px 15px; text-align: center; border: 1px solid #e1e7ed; border-radius: 5px; background: #fff; }
.ma-oem-five b { display: inline-grid; width: 46px; height: 46px; place-items: center; color: #1d70c9; border: 1px solid #1d70c9; border-radius: 50%; font-size: 12px; }
.ma-oem-five b .ma-line-icon { width: 40px; height: 40px; }
.ma-oem-number { display: block; margin-top: 2px; color: #8ca5bf; font-size: 10px; line-height: 1; }
.ma-oem-five h3 { color: #0a274b; font-size: 14px; margin: 13px 0 7px; }
.ma-oem-five p { color: #687584; font-size: 11px; }
.ma-production-gallery { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: 175px 175px; gap: 7px; }
.ma-production-gallery div { background: url("assets/images/factory-hero.png") center/cover no-repeat; border-radius: 4px; }
.ma-production-gallery div:nth-child(4) { grid-column: 1/2; }
.ma-production-gallery div:nth-child(5) { grid-column: 2/4; }
.ma-production-gallery-image { display: block; width: 100%; height: auto; border-radius: 5px; }
.ma-partner-title { margin-top: 42px; margin-bottom: 20px; }
.ma-partner-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.ma-partner-row div { min-height: 82px; display: grid; place-items: center; color: #a0a9b2; border: 1px solid #dfe5ea; background: #fff; font-weight: 700; }

@media (max-width: 849px) {
	.ma-hero-metrics { grid-template-columns: repeat(2,1fr); }
	.ma-five-benefits,.ma-oem-five { grid-template-columns: repeat(2,1fr); }
	.ma-home-products-strip .products { margin-top: 20px; }
	.ma-partner-row { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 549px) {
	.ma-home-hero { min-height: 690px; padding-bottom: 170px !important; }
	.ma-home-hero h3 { font-size: 18px; }
	.ma-home-hero h3 strong { font-size: 23px; }
	.ma-hero-metrics > div { padding: 12px; grid-template-columns: 34px 1fr; }
	.ma-hero-metrics strong { font-size: 15px; }
	.ma-five-benefits,.ma-oem-five { grid-template-columns: 1fr; }
	.ma-production-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(5,180px); }
	.ma-production-gallery div:nth-child(4),.ma-production-gallery div:nth-child(5) { grid-column: auto; }
}

/* Desktop proportions measured from YEUCAU/Trang chủ .png (1440px source layout). */
@media (min-width: 850px) {
	.page-vi .ma-home-hero { min-height: 600px; padding-bottom: 0 !important; }
	.page-vi .ma-home-hero > .section-content { min-height: 600px; }
	.page-vi .ma-home-hero > .section-content > .row {
		width: 92%;
		max-width: 1320px !important;
		padding-right: 0;
		padding-left: 0;
		margin-right: auto;
		margin-left: auto;
	}
	.page-vi .ma-home-hero > .section-content > .row > .col:first-child { padding-left: 0; }
	.page-vi .ma-hero-metrics { width: 92%; max-width: 1320px; }
	.page-vi .ma-home-hero h1 { font-size: clamp(44px,3.1vw,60px); line-height: 1.04; letter-spacing: -.5px; white-space: nowrap; }
	.page-vi .ma-home-hero h3 { font-size: 24px; }
	.page-vi .ma-home-hero h3 strong { font-size: 32px; }
	.page-vi .ma-home-about { padding-top: 18px !important; padding-bottom: 16px !important; }
	.page-vi .ma-home-about .ma-section-title { margin-bottom: 11px; }
	.page-vi .ma-section-title { max-width: 1000px; }
	.page-vi .ma-section-title h2 { font-size: 34px; }
	.page-vi .ma-five-benefits article { min-height: 135px; padding: 13px 11px; }
	.page-vi .ma-home-products-strip .box-image { height: 105px; }
	.page-vi .ma-home-products-strip .box-image .image-cover { padding-top: 0 !important; height: 100%; }
	.page-vi .ma-home-products-strip .box-image img { height: 100%; object-fit: contain; }
	.page-vi .ma-home-products-strip .box-text { min-height: 45px; padding: 7px 5px; }
	.page-vi .ma-home-products-strip .col { padding-bottom: 0; }
	.page-vi .ma-ref-section { padding-top: 25px !important; padding-bottom: 25px !important; }
	.page-vi .ma-ref-section .ma-section-title { margin-bottom: 15px; }
	.page-vi .ma-ref-section:has(.ma-oem-five) { padding-top: 34px !important; padding-bottom: 34px !important; }
	.page-vi .ma-ref-section:has(.ma-oem-five) .ma-section-title { margin-bottom: 18px; }
	.page-vi .ma-ref-section:has(.ma-oem-five) .ma-section-title h2 { font-size: 31px; }
	.page-vi .ma-oem-five article { min-height: 112px; padding: 11px 9px; }
	.page-vi .ma-oem-five b { width: 46px; height: 44px; border: 0; border-radius: 0; }
	.page-vi .ma-oem-five b .ma-line-icon { width: 40px; height: 40px; }
	.page-vi .ma-oem-five h3 { margin: 9px 0 5px; font-size: 13px; }
	.page-vi .ma-oem-five p { margin-bottom: 0; font-size: 10px; line-height: 1.4; }
	.page-vi .ma-ref-section:has(.ma-check-list) > .section-content > .row {
		max-width: 960px !important;
	}
	.page-vi .ma-ref-section:has(.ma-check-list) .ma-section-title {
		max-width: 960px;
	}
	.page-vi .ma-ref-section:has(.ma-check-list) > .section-content > .row > .col:nth-child(2) {
		flex-basis: 44%;
		max-width: 44%;
		display: flex;
	}
	.page-vi .ma-ref-section:has(.ma-check-list) > .section-content > .row > .col:nth-child(3) {
		flex-basis: 56%;
		max-width: 56%;
		display: flex;
	}
	.page-vi .ma-ref-section:has(.ma-check-list) > .section-content > .row > .col:nth-child(2) > .col-inner,
	.page-vi .ma-ref-section:has(.ma-check-list) > .section-content > .row > .col:nth-child(3) > .col-inner {
		display: flex;
		width: 100%;
	}
	.page-vi .ma-ref-section:has(.ma-check-list) .ma-check-list { width: 100%; }
	.page-vi .ma-ref-section:has(.ma-check-list) img.ma-handshake-photo {
		width: 100%;
		height: 100%;
		min-height: 0;
		object-fit: cover;
	}
	.page-vi .ma-handshake-photo { min-height: 230px; }
	.page-vi img.ma-handshake-photo { height: 230px; min-height: 0; object-fit: cover; }
	.page-vi .ma-production-gallery { grid-template-rows: 153px 153px; }
	.page-vi .ma-cert-row div { min-height: 74px; }
	.page-vi .ma-partner-title { margin-top: 19px; margin-bottom: 10px; }
	.page-vi .ma-partner-row div { min-height: 56px; }
	.page-vi .ma-news-image { height: 130px; }
	.page-vi img.ma-news-image { display: block; width: calc(100% + 40px); object-fit: cover; }
	.page-vi .ma-footer-contact {
		background:
			radial-gradient(circle at 70% 50%,rgba(30,105,185,.24),transparent 34%),
			linear-gradient(105deg,#08284f,#0b3973) !important;
	}
	.page-vi .ma-home-hero { background-size: cover !important; background-position: center !important; }
	.page-vi .ma-home-hero > .section-content > .row { transform: none; }
	.page-vi .ma-footer-contact { display: flex; align-items: center; }
}

@media (max-width: 849px) {
	.ma-mobile-menu { display: block; }
	.ma-home-hero { min-height: 570px; background-position: 62% center !important; }
	.ma-product-categories,.ma-product-grid,.ma-icon-grid,.ma-cert-grid,.ma-facility-grid,.ma-news-grid { grid-template-columns: repeat(2,1fr); }
	.ma-icon-grid--six,.ma-cert-row { grid-template-columns: repeat(3,1fr); }
	.ma-process { grid-template-columns: repeat(3,1fr); }
	.ma-news-featured { grid-template-columns: 1fr; }
	.ma-gallery-grid { grid-template-columns: repeat(2,1fr); }
	.ma-gallery-grid div:first-child,.ma-gallery-grid div:nth-child(2) { grid-column: auto; grid-row: auto; }
	.ma-link-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 549px) {
	.ma-ref-section { padding: 48px 0 !important; }
	.ma-home-hero h1 { font-size: 38px; }
	.ma-ref-hero { min-height: 290px; padding: 90px 0 35px !important; }
	.ma-ref-hero h1 { font-size: 34px; }
	.ma-product-categories,.ma-product-grid,.ma-icon-grid,.ma-cert-grid,.ma-facility-grid,.ma-news-grid,.ma-process,.ma-process--four { grid-template-columns: 1fr; }
	.ma-icon-grid--six,.ma-cert-row { grid-template-columns: repeat(2,1fr); }
	.ma-photo-grid,.ma-photo-grid--six { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4,190px); }
	.ma-photo-grid div:first-child,.ma-photo-grid div:nth-child(4) { grid-row: auto; grid-column: auto; }
	.ma-mini-stats { flex-direction: column; }
	.ma-gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5,180px); }
	.ma-spec-table > div { grid-template-columns: 1fr; gap: 4px; }
	.ma-link-grid { grid-template-columns: repeat(2,1fr); }
}
