/* SYSMATE Việt Nam — child theme styles. Scoped to body.mg-sysmate. */

/* SVN-Poppins (OFL), subset to Latin + Vietnamese. Only Regular and Bold exist, so 600 renders with the Bold file. */
@font-face { font-family: "SVN-Poppins"; src: url("../fonts/svn-poppins-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Poppins"; src: url("../fonts/svn-poppins-bold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
	--mg-navy: #071c29;
	--mg-navy-2: #0a2a40;
	--mg-blue: #005098;
	--mg-blue-dark: #003e77;
	--mg-mint: #a1cc56;
	--mg-cyan: #00a5db;
	--mg-bg: #f3f6fa;
	--mg-line: #dce5f1;
	--mg-muted: #607087;
	--mg-radius: 12px;
	--mg-radius-btn: 8px;
	--mg-shadow: 0 10px 30px rgba(11, 18, 32, .08);
	--mg-container: 1200px;
	--mg-focus: 0 0 0 3px rgba(0, 80, 152, .35);
	--mg-font: "SVN-Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

/* Base typography */
.mg-sysmate { color: var(--mg-navy); font-family: var(--mg-font); font-size: 16px; }
.mg-sysmate h1, .mg-sysmate h2, .mg-sysmate h3, .mg-sysmate h4, .mg-sysmate h5, .mg-sysmate h6,
.mg-sysmate .nav > li > a, .mg-sysmate .button, .mg-sysmate input, .mg-sysmate textarea, .mg-sysmate select,
.mg-sysmate .product-title, .mg-sysmate .widget-title, .mg-sysmate .alt-font { font-family: var(--mg-font); }
.mg-sysmate h1, .mg-sysmate h2, .mg-sysmate h3, .mg-sysmate h4, .mg-sysmate h5 { color: var(--mg-navy); font-weight: 700; letter-spacing: -.01em; }
.mg-sysmate h1 { line-height: 1.12; }
.mg-sysmate h2 { line-height: 1.2; }
.mg-sysmate h5.uppercase { text-transform: none; }
.mg-sysmate p { line-height: 1.65; }
.mg-sysmate .dark h1, .mg-sysmate .dark h2, .mg-sysmate .dark h3, .mg-sysmate .dark h4 { color: #fff; }

/* 1200px container */
.mg-sysmate .row:not(.row-full-width),
.mg-sysmate .container,
.mg-sysmate .header-main .header-inner,
.mg-sysmate .shop-page-title .page-title-inner { max-width: var(--mg-container); }

/* Buttons: hover / active / focus */
.mg-sysmate .button { align-items: center; border-radius: var(--mg-radius-btn); display: inline-flex; font-weight: 700; gap: 8px; justify-content: center; letter-spacing: 0; min-height: 44px; text-transform: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mg-sysmate .button i { margin: 0; top: 0; }
.mg-sysmate .button.primary:not(.is-outline) { background-color: var(--mg-blue); border-color: var(--mg-blue); }
.mg-sysmate .button.primary:not(.is-outline):hover { background-color: var(--mg-blue-dark); border-color: var(--mg-blue-dark); box-shadow: 0 8px 20px rgba(0, 80, 152, .28); }
.mg-sysmate .button.is-outline:hover { background-color: var(--mg-blue); border-color: var(--mg-blue); color: #fff; }
.mg-sysmate .button.white.is-outline:hover { background-color: #fff; border-color: #fff; color: var(--mg-navy); }
.mg-sysmate .button:active { box-shadow: none; transform: translateY(1px); }
.mg-sysmate .button:focus-visible { box-shadow: var(--mg-focus); outline: 0; }
.mg-sysmate a:focus-visible, .mg-sysmate input:focus-visible, .mg-sysmate textarea:focus-visible, .mg-sysmate select:focus-visible { outline: 3px solid rgba(0, 80, 152, .35); outline-offset: 3px; }

/* Header */
.header-main { border-bottom: 1px solid #edf1f6; }
.header-main .nav > li > a { color: var(--mg-navy); font-size: 15px; font-weight: 700; text-transform: none; }
.header-main .nav > li.active > a, .header-main .nav > li.current-menu-item > a, .header-main .nav > li > a:hover { color: var(--mg-blue); }
.header-main .nav > li > a::before { background: var(--mg-blue) !important; }
.header-button-1 .button { padding: 0 20px; }
.header-logo, .header-logo-dark { max-height: 50px; object-fit: contain; }
.stuck .header-logo { max-height: 42px; }
.nav-dropdown { border: 1px solid var(--mg-line); border-radius: 10px; box-shadow: var(--mg-shadow); }

/* Shared section heading */
.mg-eyebrow, .mg-kicker { color: var(--mg-blue); font-size: 13px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; text-transform: uppercase; }
.mg-section-head { margin-bottom: 20px; }
.mg-section-head h2 { font-size: 34px; margin: 0; }
.mg-arrow-link { color: var(--mg-blue); font-size: 14px; font-weight: 700; }
.mg-arrow-link:hover { color: var(--mg-blue-dark); text-decoration: underline; }

/* Hero */
.mg-hero h1 { color: #fff; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.04; margin-bottom: 16px; max-width: 640px; }
.mg-hero h1 span { color: #a1cc56; }
.mg-hero .mg-eyebrow { color: #7fd3f0; padding-left: 34px; position: relative; }
.mg-hero .mg-eyebrow::before { background: var(--mg-mint); content: ""; height: 4px; left: 0; position: absolute; top: 9px; width: 22px; }
.mg-hero-lead { font-size: 18px; max-width: 520px; }
.mg-hero .button { margin: 12px 12px 0 0; min-height: 48px; padding: 0 22px; }
.mg-hero .mg-btn-outline { border-color: rgba(255, 255, 255, .85); }

/* Category image boxes */
.mg-category-box { background: #fff; border: 1px solid #e5ebf3; border-radius: var(--mg-radius); height: 100%; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.mg-category-box:hover, .mg-category-box:focus-within { box-shadow: var(--mg-shadow); transform: translateY(-3px); }
.mg-category-box .box-image { background: #eef3fa; }
.mg-category-box .box-image img { object-fit: contain; padding: 14px; }
.mg-category-box .box-text { padding: 14px 16px 16px; }
.mg-category-box h2 { font-size: 18px; line-height: 1.25; margin: 0 0 4px; }
.mg-category-box h2 a { color: var(--mg-navy); }
.mg-category-box h2 a:hover { color: var(--mg-blue); }
.mg-category-box p { color: var(--mg-blue); font-size: 13px; font-weight: 700; margin: 0; }

/* Product cards */
.mg-sysmate .product-small.col > .col-inner { height: 100%; }
.mg-sysmate .product-small.box { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.mg-sysmate .product-small.box:hover, .mg-sysmate .product-small.box:focus-within { box-shadow: var(--mg-shadow); transform: translateY(-4px); }
/* Uniform 4:3 media area; contain so LED cabinets are never cropped */
.mg-sysmate .product-small .box-image { aspect-ratio: 4 / 3; background: #f5f7fa; }
.mg-sysmate .product-small .box-image > div, .mg-sysmate .product-small .box-image a { display: block; height: 100%; }
.mg-sysmate .product-small .box-image img { height: 100% !important; object-fit: contain !important; padding: 12px; width: 100%; }
.mg-sysmate .product-small .box-text { display: flex; flex: 1; flex-direction: column; padding: 16px !important; }
.mg-sysmate .product-small .title-wrapper { flex: 1; }
.mg-sysmate .product-small .product-title a { color: var(--mg-navy); font-size: 15px; font-weight: 700; line-height: 1.35; }
.mg-sysmate .product-small .category { color: var(--mg-muted); font-size: 11px; }
.mg-sysmate .product-small .price-wrapper { display: none; }
.mg-product-link { font-size: 13px; margin: 12px 0 0 !important; min-height: 38px !important; padding: 0 14px !important; }
.quick-view { display: none !important; }

/* Solution image boxes */
.mg-solution-box { border-radius: var(--mg-radius); overflow: hidden; }
.mg-solution-box .box-image .image-cover::after { background: linear-gradient(180deg, rgba(4, 13, 31, 0) 35%, rgba(4, 13, 31, .82) 100%); content: ""; inset: 0; position: absolute; }
.mg-solution-box .box-text { padding: 18px 20px; }
.mg-solution-box h3 { color: #fff; font-size: 19px; margin: 0 0 4px; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.mg-solution-box p { color: rgba(255, 255, 255, .86); font-size: 13px; margin: 0; }

/* Technology & USP boxes */
.mg-tech-image img, .mg-round-image img, .mg-about-image img { border-radius: var(--mg-radius); object-fit: cover; }
.mg-technology h2, .mg-about-tech h2 { font-size: 34px; }
.mg-usp-box { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); height: 100%; padding: 18px; transition: border-color .2s ease, box-shadow .2s ease; }
.mg-usp-box:hover { border-color: #b9cdf0; box-shadow: var(--mg-shadow); }
.mg-usp-box h5 { font-size: 16px; margin-bottom: 6px; }
.mg-usp-box p { color: var(--mg-muted); font-size: 14px; margin: 0; }
.col-inner > .mg-usp-box, .col > .col-inner > .mg-usp-box { height: 100%; }

/* CTA */
.mg-cta h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.mg-cta p { color: #c4d0e2; margin: 0; }
.mg-cta .button { margin: 0; }

/* About */
.mg-about-hero { background: linear-gradient(90deg, #f7faff 0, #eaf2ff 100%); }
.mg-about-hero h1 { font-size: 48px; }
.mg-about-hero .mg-lead { font-size: 18px; }
.mg-breadcrumb-copy { color: var(--mg-muted); font-size: 13px; }
.mg-core .mg-usp-box { padding: 24px 20px; }
.mg-vietnam-callout h2 { font-size: 24px; margin-bottom: 6px; }

/* Shop / category */
.mg-shop-intro h2 { font-size: 40px; }
.shop-page-title { background: #fff; }
.shop-page-title .woocommerce-breadcrumb { color: var(--mg-muted); font-size: 13px; }
.shop-sidebar { padding-right: 28px; }
.shop-sidebar .widget { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); margin-bottom: 18px; padding: 20px; }
.shop-sidebar .widget-title { color: var(--mg-navy); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.shop-sidebar ul li { border-bottom: 1px solid #edf1f6; }
.shop-sidebar ul li:last-child { border-bottom: 0; }
.shop-sidebar a { color: #33445d; font-size: 14px; }
.shop-sidebar a:hover, .shop-sidebar .current-cat > a { color: var(--mg-blue); }
.category-page-row { padding-top: 32px; }
.category-page-row .products > .product { padding-bottom: 22px; }
.woocommerce-result-count { color: var(--mg-muted); font-size: 13px; }
.woocommerce-ordering select { border-color: var(--mg-line); border-radius: var(--mg-radius-btn); }

/* Single product */
.single-product .product-main { padding: 42px 0 56px; }
.single-product .product-gallery .woocommerce-product-gallery__image { background: #f6f8fb; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); }
.single-product .product-gallery img { object-fit: contain; }
.single-product .product-title { font-size: 36px; line-height: 1.15; }
.single-product .product-short-description { color: #33445d; font-size: 16px; }
.single-product .product-info .price { display: none; }
.single-product .product_meta { color: var(--mg-muted); font-size: 12px; }
.mg-key-specs { display: grid; gap: 10px; list-style: none; margin: 22px 0; padding: 0; }
.mg-key-specs li { color: #33445d; font-size: 14px; margin: 0; }
.mg-key-specs li > span { align-items: center; background: #e8f1ff; border-radius: 50%; color: var(--mg-blue); display: inline-flex; font-weight: 700; height: 20px; justify-content: center; margin-right: 8px; width: 20px; }
.mg-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.mg-product-actions .button { margin: 0; min-height: 48px; padding: 0 24px; }
.product-footer .woocommerce-tabs { border-top: 1px solid var(--mg-line); }
.product-tabs { gap: 26px; }
.product-tabs li a { font-size: 14px; text-transform: none; }
.mg-spec-table { border: 1px solid var(--mg-line); border-radius: var(--mg-radius); overflow: hidden; }
.mg-spec-table table { margin: 0; }
.mg-spec-table th, .mg-spec-table td { border-bottom: 1px solid var(--mg-line); font-size: 14px; padding: 14px 18px; text-align: left; }
.mg-spec-table th { background: #f6f8fb; width: 36%; }
.mg-spec-table tr:last-child th, .mg-spec-table tr:last-child td { border-bottom: 0; }
.mg-application-list { display: grid; gap: 10px 30px; grid-template-columns: repeat(2, 1fr); }
.related-products-wrapper { background: var(--mg-bg); padding: 56px 0; }
.related-products-wrapper > h3, .related-products-wrapper .product-section-title { font-size: 28px; }

/* Footer */
.mg-footer h4 { color: #fff; font-size: 15px; letter-spacing: 0; margin-bottom: 14px; }
.mg-footer p, .mg-footer a { color: #c1cede; font-size: 14px; }
.mg-footer ul { list-style: none; margin: 0; padding: 0; }
.mg-footer ul li { margin: 0 0 8px; }
.mg-footer a:hover, .mg-footer a:focus-visible { color: #fff; }
.mg-footer-logo img { filter: brightness(0) invert(1); }
.mg-distributor { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 20px; padding-top: 14px; }
.absolute-footer, .absolute-footer.dark { border-top: 1px solid rgba(255, 255, 255, .12); color: #9dacc0; padding: 14px 0; }

/* Consultation modal: single column, toggle consent */
.lightbox-content { border-radius: var(--mg-radius); }
.lightbox-content h2 { font-size: 28px; }
.mg-form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.mg-form-grid label { color: var(--mg-navy); font-size: 13px; font-weight: 700; }
.mg-form-grid input:not([type="checkbox"]), .mg-form-grid textarea { border: 1px solid var(--mg-line); border-radius: var(--mg-radius-btn); margin-top: 6px; }
.mg-form-grid textarea { min-height: 110px; }
.mg-form-grid .button { width: 100%; }
.mg-consent { font-size: 13px; }
.mg-consent .wpcf7-list-item { margin: 0; }
.mg-consent label { align-items: flex-start; cursor: pointer; display: flex; font-weight: 400; gap: 12px; }
.mg-consent input[type="checkbox"] { appearance: none; background: #cfd9e8; border-radius: 999px; cursor: pointer; flex: 0 0 auto; height: 24px; margin: 0; position: relative; transition: background-color .18s ease; width: 42px; }
.mg-consent input[type="checkbox"]::after { background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); content: ""; height: 18px; left: 3px; position: absolute; top: 3px; transition: transform .18s ease; width: 18px; }
.mg-consent input[type="checkbox"]:checked { background: var(--mg-blue); }
.mg-consent input[type="checkbox"]:checked::after { transform: translateX(18px); }
.mg-consent input[type="checkbox"]:focus-visible { box-shadow: var(--mg-focus); outline: 0; }
.wpcf7-spinner { margin-top: 12px; }

/* Page hero (projects, contact) */
.mg-page-hero h1 { font-size: 44px; margin-bottom: 12px; }
.mg-lead { color: #33445d; font-size: 18px; }

/* Stats */
.mg-stats { border-bottom: 1px solid var(--mg-line); }
.mg-stat-value { color: var(--mg-blue); font-size: 40px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.mg-stat-label { color: var(--mg-muted); font-size: 14px; margin: 0; }

/* Milestones */
.mg-milestone h5 { color: var(--mg-blue); font-size: 20px; }

/* Lists in copy */
.mg-values ul, .mg-certificates ul { margin-left: 0; }
.mg-values li, .mg-certificates li { list-style: none; margin: 0 0 10px; padding-left: 26px; position: relative; }
.mg-values li::before, .mg-certificates li::before { background: var(--mg-blue); border-radius: 50%; content: ""; height: 8px; left: 4px; position: absolute; top: .55em; width: 8px; }
.mg-cert-image img { border: 1px solid var(--mg-line); border-radius: var(--mg-radius); }

/* Project image boxes */
.mg-project-box { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); height: 100%; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.mg-project-box:hover, .mg-project-box:focus-within { box-shadow: var(--mg-shadow); transform: translateY(-3px); }
.mg-project-box .box-text { padding: 16px 18px 18px; }
.mg-project-box h3 { font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.mg-project-box p { color: var(--mg-muted); font-size: 14px; margin: 0; }
.mg-project-box .mg-project-meta { color: var(--mg-blue); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.mg-projects .col-inner > .mg-project-box, .mg-projects-home .col-inner > .mg-project-box { height: 100%; }

/* Tabs (projects) */
.mg-tabs .nav { gap: 8px; margin-bottom: 28px; }
.mg-tabs .nav > li > a { border: 1px solid var(--mg-line); border-radius: 999px; color: var(--mg-navy); font-size: 15px; font-weight: 700; padding: 10px 18px; text-transform: none; }
.mg-tabs .nav > li.active > a, .mg-tabs .nav > li > a:hover { background: var(--mg-blue); border-color: var(--mg-blue); color: #fff; }
.mg-tabs .nav > li > a:focus-visible { box-shadow: var(--mg-focus); outline: 0; }

/* Contact */
.mg-contact-box a { color: var(--mg-blue); font-size: 26px; font-weight: 700; }
.mg-contact .button { margin: 0 0 12px; }
.mg-korea-contact { color: #33445d; font-size: 15px; margin-top: 8px; }
.mg-footer .mg-distributor a { color: #fff; font-weight: 700; }

/* Header hotline */
.header-contact a { color: var(--mg-navy); font-weight: 700; }
.header-contact a:hover { color: var(--mg-blue); }

/* Tablet */
@media (max-width: 849px) {
	.header-main { height: 66px !important; }
	.header-logo { max-height: 42px; }
	.mg-hero .bg { background-position: 68% center !important; }
	.mg-hero .overlay { background: linear-gradient(180deg, rgba(4, 13, 31, .86), rgba(4, 13, 31, .35)) !important; }
	.mg-hero h1 { font-size: 40px; }
	.mg-hero-lead { font-size: 16px; }
	.mg-section-head h2, .mg-technology h2, .mg-about-tech h2 { font-size: 28px; }
	.mg-section-head .col { padding-bottom: 8px; }
	.mg-technology .mg-tech-image, .mg-about-image, .mg-round-image { margin-bottom: 8px; }
	.mg-cta, .mg-cta .col, .mg-vietnam-callout .col { text-align: center !important; }
	.mg-cta .button, .mg-vietnam-callout .button { margin-top: 16px; }
	.mg-about-hero h1, .mg-page-hero h1 { font-size: 36px; }
	.mg-stat-value { font-size: 32px; }
	.mg-shop-intro h2 { font-size: 32px; }
	.shop-sidebar { padding-right: 15px; }
	.single-product .product-main { padding-top: 24px; }
	.single-product .product-title { font-size: 30px; }
	.product-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.product-tabs li { flex: 0 0 auto; }
	.mg-application-list { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 549px) {
	.mg-hero h1 { font-size: 34px; }
	.mg-hero .button { display: flex; margin-right: 0; width: 100%; }
	.mg-section-head .text-right { text-align: left !important; }
	.mg-category-box h2 { font-size: 16px; }
	.mg-category-box .box-text { padding: 12px; }
	.mg-sysmate .product-small .product-title a { font-size: 13px; }
	.mg-product-actions { flex-direction: column; }
	.mg-product-actions .button { width: 100%; }
	.mg-spec-table th, .mg-spec-table td { display: block; width: 100%; }
	.mg-spec-table th { border-bottom: 0; padding-bottom: 4px; }
	.mg-spec-table td { padding-top: 4px; }
	.lightbox-content { padding: 24px !important; }
	.lightbox-content h2 { font-size: 24px; }
	.category-page-row { padding-top: 18px; }
	/* Single-column tab list on phones */
	.mg-tabs .nav { flex-direction: column; }
	.mg-tabs .nav > li { width: 100%; }
	.mg-tabs .nav > li > a { justify-content: center; width: 100%; }
	.mg-page-hero h1 { font-size: 30px; }
	.mg-lead { font-size: 16px; }
	/* Single-column tab list on phones (Flatsome small-nav-collapse) */
	.product-tabs { flex-direction: column; gap: 0; overflow: visible; }
	.product-tabs li { flex: 1 1 auto; width: 100%; }
	.product-tabs li a { border-bottom: 1px solid var(--mg-line); padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mg-sysmate *, .mg-sysmate *::before, .mg-sysmate *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Tablet/mobile media caps */
.mg-footer-logo { max-width: 220px; }
@media (max-width: 849px) {
	.mg-tech-image, .mg-round-image, .mg-about-image { margin-left: auto; margin-right: auto; max-width: 560px; }
}

/* Sysmate additions */
.mg-category-box .mg-category-desc { color: var(--mg-muted); font-size: 13px; font-weight: 400; margin: 0 0 6px; }
.mg-stats-dark .mg-stat-value { color: var(--mg-mint); }
.mg-stats-dark .mg-stat-label { color: #c4d0e2; }
.mg-stats-dark { border-bottom: 0; }
.mg-facts { margin: 16px 0 0; }
.mg-facts li { border-bottom: 1px solid var(--mg-line); list-style: none; margin: 0; padding: 10px 0; }
.mg-facts li:last-child { border-bottom: 0; }
.mg-brand-story h2 { font-size: 30px; }
.mg-history .mg-milestone h5 { color: var(--mg-blue); }
.mg-technology .button { margin-top: 18px; }
/* Key specs: label / value rows (markup from mg_sysmate_quote_actions) */
.mg-key-specs { border: 1px solid var(--mg-line); border-radius: var(--mg-radius); gap: 0; overflow: hidden; }
.mg-key-specs li { display: grid; gap: 12px; grid-template-columns: minmax(110px, 38%) 1fr; padding: 10px 14px; }
.mg-key-specs li + li { border-top: 1px solid var(--mg-line); }
.mg-key-specs li > strong { color: var(--mg-navy); font-weight: 700; }
.mg-key-specs li > span { background: none; border-radius: 0; color: #33445d; display: block; font-weight: 400; height: auto; margin: 0; width: auto; }
@media (max-width: 549px) { .mg-key-specs li { gap: 2px; grid-template-columns: 1fr; } }
.mg-key-specs li { margin: 0; }
.mg-facts { padding-left: 0; } .mg-facts li { margin-left: 0; }

/* ---- Round 3: typography weights, white thumbnails, clickable cards ---- */
.mg-sysmate h3, .mg-sysmate h4, .mg-sysmate h5, .mg-sysmate h6,
.mg-sysmate .product-title, .mg-sysmate .product-title a, .mg-sysmate .widget-title,
.mg-sysmate .header-main .nav > li > a, .mg-sysmate .nav-dropdown a, .mg-sysmate .mobile-sidebar .nav > li > a,
.mg-sysmate .button, .mg-sysmate .mg-kicker, .mg-sysmate .mg-eyebrow, .mg-sysmate .mg-arrow-link,
.mg-sysmate .mg-category-box h2, .mg-sysmate .mg-category-box p, .mg-sysmate .mg-project-meta, .mg-sysmate .mg-key-specs strong,
.mg-sysmate .product-tabs li a, .mg-sysmate .mg-form-grid label, .mg-sysmate .header-contact a { font-weight: 600; }
/* Headlines keep 700. */
.mg-sysmate h1, .mg-sysmate h2:not(.mg-category-box h2), .mg-sysmate .mg-stat-value { font-weight: 700; }
.mg-sysmate .header-main .nav > li > a { letter-spacing: 0; }

/* Product and category thumbnails sit on white, like the product photos themselves. */
.mg-sysmate .product-small .box-image, .mg-sysmate .mg-category-box .box-image,
.mg-sysmate .single-product .product-gallery .woocommerce-product-gallery__image { background: #fff; }
.mg-sysmate .product-small .box-image { border-bottom: 1px solid var(--mg-line); }

/* The whole card is clickable: the title link is stretched over the card. */
.mg-sysmate .product-small.box, .mg-sysmate .mg-category-box { cursor: pointer; position: relative; }
.mg-sysmate .product-small .product-title a::after, .mg-sysmate .mg-category-box h2 a::after { content: ""; inset: 0; position: absolute; z-index: 1; }
.mg-sysmate .product-small .box-text .button, .mg-sysmate .product-small .box-image a { position: relative; z-index: 2; }
.mg-sysmate .product-small.box:hover .product-title a, .mg-sysmate .mg-category-box:hover h2 a { color: var(--mg-blue); }
.mg-sysmate .product-small.box:focus-within { box-shadow: var(--mg-focus); }
.mg-sysmate .mg-category-box .mg-category-desc { font-weight: 400; }
/* Single product: full-bleed related-products background, cards stay in the container. */
.mg-sysmate .related-products-wrapper { background: var(--mg-bg); box-shadow: 0 0 0 100vmax var(--mg-bg); clip-path: inset(0 -100vmax); } /* full-bleed related */
.mg-sysmate .related-products-wrapper .product-section-title { margin-left: 0; margin-right: 0; max-width: none; padding-left: 10px; text-transform: none; } /* related heading aligned with cards */

/* ---- Horizontal timeline (Lịch sử phát triển): line + SVG dot per milestone, scroll-snap on small screens ---- */
.mg-sysmate .mg-timeline { flex-wrap: nowrap !important; overflow-x: auto; padding: 8px 0 18px; position: relative; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mg-sysmate .mg-timeline > .col { flex: 0 0 25%; max-width: 25%; padding-bottom: 0; scroll-snap-align: start; }
.mg-sysmate .mg-timeline > .col > .col-inner { padding-top: 46px; position: relative; }
.mg-sysmate .mg-timeline > .col > .col-inner::before { background: linear-gradient(90deg, var(--mg-blue), var(--mg-mint)); content: ""; height: 2px; left: -15px; position: absolute; right: -15px; top: 17px; }
.mg-sysmate .mg-timeline > .col:first-child > .col-inner::before { left: 18px; }
.mg-sysmate .mg-timeline > .col:last-child > .col-inner::before { right: 50%; }
.mg-sysmate .mg-timeline > .col > .col-inner::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='%23ffffff' stroke='%23005098' stroke-width='2'/%3E%3Ccircle cx='18' cy='18' r='8' fill='%23005098'/%3E%3Ccircle cx='18' cy='18' r='3' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat; content: ""; height: 36px; left: 0; position: absolute; top: 0; width: 36px; }
.mg-sysmate .mg-timeline .mg-milestone { border: 0; box-shadow: none; padding: 0 14px 0 0; }
.mg-sysmate .mg-timeline .mg-milestone:hover { box-shadow: none; }
.mg-sysmate .mg-timeline .mg-milestone h5 { font-size: 22px; margin-bottom: 6px; }
.mg-sysmate .mg-timeline .mg-milestone p { font-size: 14px; }
@media (max-width: 849px) { .mg-sysmate .mg-timeline > .col { flex-basis: 45%; max-width: 45%; } }
@media (max-width: 549px) { .mg-sysmate .mg-timeline > .col { flex-basis: 78%; max-width: 78%; } }

/* ---- Round 4: centred contact page ---- */
.mg-sysmate .mg-contact-hero .button { margin: 14px 6px 0; }
.mg-sysmate .mg-contact-card > .col-inner { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); box-shadow: var(--mg-shadow); padding: 32px 36px; }
.mg-sysmate .mg-contact-card h2 { font-size: 26px; }
@media (max-width: 549px) { .mg-sysmate .mg-contact-card > .col-inner { padding: 22px 18px; } .mg-sysmate .mg-contact-hero .button { margin: 10px 0 0; width: 100%; } }
.mg-sysmate .mg-demo-note { color: var(--mg-muted); font-size: 13px; font-style: italic; }

.mg-sysmate .mg-timeline::-webkit-scrollbar { height: 6px; }
.mg-sysmate .mg-timeline::-webkit-scrollbar-track { background: var(--mg-line); border-radius: 6px; }
.mg-sysmate .mg-timeline::-webkit-scrollbar-thumb { background: var(--mg-blue); border-radius: 6px; }
.mg-sysmate .mg-timeline { scrollbar-color: var(--mg-blue) var(--mg-line); }
.mg-sysmate .product-small .box-image { flex-shrink: 0; } /* keep 4:3 media when titles wrap */
/* Fixed 4:3 media box (padding ratio) – independent of title length and flex sizing */
.mg-sysmate .product-small .box-image { aspect-ratio: auto; flex: 0 0 auto; height: 0; margin: 0; padding-top: 75%; position: relative; width: 100%; }
.mg-sysmate .product-small .box-image > div { inset: 0; position: absolute; }
.mg-sysmate .product-small .box-image img { height: 100% !important; inset: 0; position: absolute; width: 100%; }
