/*
Theme Name:   MUFA Kadence Child
Theme URI:    https://vietnamtrimmanufacturing.com
Description:  Child theme cho Kadence — Vietnam Trim Manufacturing.
Author:       Vietnam Trim Manufacturing
Author URI:   https://vietnamtrimmanufacturing.com
Template:     kadence
Version:      1.0.0
License:      GPL-2.0-or-later
Text Domain:  mufa-kadence-child
Requires at least: 6.4
Requires PHP: 8.0
*/

/* ===================================================================
   0. Global Reset & Kadence Variable Overrides
   =================================================================== */
:root {
  --global-palette1: #1d3254;
  --global-palette2: #5678a6;
  --global-palette3: #1d3254;
  --global-palette4: #66738a;
  --global-palette5: #778074;
  --global-palette6: #dce2d8;
  --global-palette7: #e9eef6;
  --global-palette8: #f8f9fc;
  --global-palette9: #ffffff;
  --global-body-font-family: Arial, sans-serif;
  --global-heading-font-family: Arial, sans-serif;
  --global-content-width: 1180px;
  --navy: #1d3254;
  --navy-2: #2c466f;
  --steel: #5678a6;
  --line: #dce3ef;
  --muted: #5f6f86;
  --soft: #eef2f8;
  --ink: #1d3254;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  padding: 0;
  color: #1d3254;
  background-color: #f8f9fc;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Vector Northeast Arrow Icon (replaces Unicode U+2197 so mobile OS never renders 3D emoji) */
.mufa-icon-ne {
  display: inline-block;
  width: 0.88em;
  height: 0.88em;
  vertical-align: -0.1em;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

a:hover .mufa-icon-ne,
button:hover .mufa-icon-ne {
  transform: translate(1.5px, -1.5px);
}

/* ===================================================================
   1. Header & Navigation (Sticky, Responsive, Hamburger)
   =================================================================== */
header {
  background: #ffffff;
  border-bottom: 1px solid #e3e8e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.15;
  text-decoration: none;
  color: #1d3254;
}

.logo {
  width: 100px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #1d3254;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.7px;
  margin-top: 5px;
  color: #66738a;
  text-transform: uppercase;
}

header nav {
  display: flex;
  align-items: center;
  gap: 33px;
  font-size: 14px;
}

header nav a {
  color: #1d3254;
  font-weight: 500;
}

header nav a:hover {
  color: #507aaa;
}

.call {
  background: #1d3254;
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.call:hover {
  background: #375781;
}

.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  color: #1d3254;
  padding: 5px 10px;
}

/* Container Constraint */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ===================================================================
   2. Hero Section & Stats Bar (Redesigned Industrial B2B Showcase)
   =================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 22%, rgba(86, 120, 166, 0.28) 0%, rgba(22, 40, 68, 0) 52%),
    linear-gradient(135deg, #13233d 0%, #1b3154 55%, #162844 100%);
  color: #ffffff;
  padding: 72px 0 112px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(126, 163, 212, 0.22);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  padding: 0;
  align-self: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(159, 189, 230, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #cfe0f7;
  margin-bottom: 22px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63b3ed;
  box-shadow: 0 0 0 4px rgba(99, 179, 237, 0.2);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.3px;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #6889b6;
}

.eyebrow::before {
  content: '';
  height: 1px;
  width: 28px;
  background: #6889b6;
  flex-shrink: 0;
}

h1 {
  font-size: 50px;
  line-height: 1.15;
  letter-spacing: -1.4px;
  font-weight: 600;
  margin: 20px 0;
  color: #1d3254;
}

h1 em {
  font-style: normal;
  color: #5678a6;
}

.hero h1 {
  font-size: clamp(36px, 4.1vw, 52px);
  line-height: 1.14;
  letter-spacing: -1.2px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
}

.hero h1 em {
  display: block;
  color: #8bb4e8;
  font-weight: 500;
  margin-top: 6px;
}

.lead {
  font-size: 15px;
  color: #66738a;
  max-width: 480px;
  margin: 0 0 25px;
  line-height: 1.68;
}

.hero .lead {
  font-size: 16px;
  color: #c5d4e8;
  max-width: 520px;
  margin: 0 0 24px;
  line-height: 1.72;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e6effa;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(159, 189, 230, 0.22);
  border-radius: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
  background: #1d3254;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid #1d3254;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background: #375781;
  border-color: #375781;
}

.btn.light {
  background: transparent;
  color: #1d3254 !important;
}

.hero .btn-hero-primary {
  background: #ffffff;
  color: #162844 !important;
  border-color: #ffffff;
  padding: 14px 24px;
  box-shadow: 0 8px 22px rgba(9, 19, 36, 0.25);
}

.hero .btn-hero-primary:hover {
  background: #e6effa;
  border-color: #e6effa;
  transform: translateY(-1px);
}

.hero .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(173, 200, 236, 0.35);
  padding: 14px 22px;
}

.hero .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Right Column Bento Showcase */
.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}

.hero-card-main {
  grid-column: 1 / -1;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(8, 16, 31, 0.36);
  background: #0f1c31;
}

.hero-card-main img,
.hero-card-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-sub {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 155px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(8, 16, 31, 0.28);
  background: #0f1c31;
}

.hero-card-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 13px;
  background: rgba(17, 31, 54, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-card-sub .hero-card-label {
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 11px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.hero-card-label strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.hero-card-label small {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ec0ed;
  font-weight: 700;
}

/* Stats Bar (Floating Elevated Card) */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 10px;
  margin-top: -52px;
  position: relative;
  z-index: 5;
  border: 1px solid #d8e2f0;
  border-top: 3px solid #5678a6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(22, 40, 68, 0.09);
}

.stat {
  padding: 4px 28px;
  border-right: 1px solid #e4ebf5;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.3;
  display: block;
  color: #1d3254;
}

.stat span {
  display: block;
  color: #778074;
  font-size: 12px;
  margin-top: 4px;
}

/* ===================================================================
   3. Content Sections & Typography
   =================================================================== */
section {
  padding: 84px 0;
  width: 100%;
}

h2 {
  font-weight: 500;
  line-height: 1.25;
  font-size: 35px;
  letter-spacing: -0.7px;
  margin: 17px 0 24px;
  color: #1d3254;
}

h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 15px 0 9px;
  color: #1d3254;
}

p {
  color: #66738a;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 15px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 30px;
}

.text-link {
  font-size: 13px;
  border-bottom: 1px solid #718469;
  padding-bottom: 7px;
  white-space: nowrap;
  color: #1d3254;
}

.text-link:hover {
  color: #507aaa;
  border-color: #507aaa;
}

/* Section 01: About & Materials */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.checklist {
  margin-top: 25px;
}

.checklist div {
  padding: 12px 0;
  border-bottom: 1px solid #dce2d8;
  font-size: 13px;
  color: #1d3254;
}

.checklist b {
  color: #5c7fae;
  margin-right: 13px;
}

.material-panel {
  padding: 35px;
  background: #e9eef6;
  position: relative;
  border-radius: 2px;
}

.material-panel h3 {
  font-size: 25px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.chips span {
  border: 1px solid #bccbe0;
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 12px;
  background: #ffffff;
  color: #1d3254;
}

.material-photo {
  width: 100%;
  height: 280px;
  object-fit: contain;
  display: block;
  background: #f1f4f9;
  padding: 14px;
  margin: 20px 0 25px;
}

.materials-foot {
  padding-top: 20px;
  border-top: 1px solid #c9d3e3;
  font-size: 13px;
  color: #66738a;
}

/* ===================================================================
   4. Section 02: Products & Interactive Slider
   =================================================================== */
.products {
  background: #eef2f8;
}

.product-slider {
  position: relative;
}

.slider-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.slider-hint {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #7385a0;
  font-weight: bold;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-status {
  font-size: 11px;
  letter-spacing: 2px;
  color: #607694;
  margin-right: 12px;
  min-width: 62px;
  font-variant-numeric: tabular-nums;
}

.slider-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid #b8c8dd;
  background: #ffffff;
  color: #1d3254;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slider-controls button:hover:not(:disabled) {
  background: #1d3254;
  color: #ffffff;
  border-color: #1d3254;
}

.slider-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

.product-slider .product-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 10px;
  margin: 0;
  list-style: none;
}

.product-slider .product-grid::-webkit-scrollbar {
  display: none;
}

.product-slider .product {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  min-width: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e7f0;
  border-radius: 2px;
  overflow: hidden;
}

.product-slider .product > .product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: #eef2f8;
}

.product-slider .actual-sample {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin: 0;
  background: #eef2f8;
}

.product-slider .actual-sample .product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.product-slider .actual-sample figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: rgba(29, 50, 84, 0.87);
  color: #ffffff;
  font-size: 9px;
  line-height: 1.5;
}

.product-slider img[src*="day-luon-6.jpg"] {
  object-position: 50% 47%;
}

.product-slider img[src*="day-luon-3.jpg"],
.product-slider img[src*="day-luon-4.jpg"] {
  object-position: 50% 45%;
}

.product .copy {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product .copy p {
  margin: 0;
  font-size: 12px;
  color: #66738a;
  flex: 1;
}

.product-number {
  font-size: 10px;
  letter-spacing: 2px;
  color: #829071;
  font-weight: bold;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.specs span {
  background: #eef2f8;
  padding: 3px 9px;
  font-size: 11px;
  color: #1d3254;
  border-radius: 2px;
}

/* ===================================================================
   5. Section 03: Sample Gallery
   =================================================================== */
.sample-gallery {
  background: #ffffff;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.sample-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dce4ef;
  border-radius: 4px;
  overflow: hidden;
}

.sample-grid figure > a {
  padding: 0;
  aspect-ratio: 4/3;
  background: #e8edf5;
  position: relative;
  display: block;
  overflow: hidden;
}

.sample-grid figure > a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  padding: 0;
  transition: transform 0.25s ease;
}

.sample-grid figure > a:hover img {
  transform: scale(1.04);
}

.sample-grid img[src*="day-luon-7.jpg"] {
  object-position: 50% 47%;
}

.sample-grid img[src*="day-luon-8.jpg"] {
  object-position: 50% 43%;
}

.sample-grid img[src*="day-luon-10.jpg"] {
  object-position: 50% 48%;
}

.sample-grid figcaption {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 16px 20px;
  border-top: 1px solid #e0e7f0;
  color: #1d3254;
}

.sample-grid figcaption span {
  color: #7892b6;
}

/* ===================================================================
   6. Section 04: Certificate Showcase & Modal Dialog
   =================================================================== */
.cert-showcase {
  background: #1d3254;
  color: #ffffff;
}

.cert-showcase .eyebrow {
  color: #abc1df;
}

.cert-showcase .eyebrow::before {
  background: #abc1df;
}

.cert-showcase h2 {
  font-size: 40px;
  color: #ffffff;
}

.cert-intro {
  max-width: 370px;
  color: #c0cee1;
  font-size: 14px;
}

.certificate-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.certificate-feature {
  background: #ffffff;
  color: #1d3254;
  border-radius: 4px;
  overflow: hidden;
}

.certificate-preview {
  background: #e9eef6;
  padding: 30px;
  position: relative;
  text-align: center;
}

.certificate-preview img {
  display: block;
  height: 420px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(16, 40, 72, 0.13));
}

.zoom-cert {
  background: #1d3254;
  color: #ffffff;
  border: 0;
  border-radius: 3px;
  padding: 11px 18px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 22px;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.zoom-cert:hover {
  background: #375781;
}

.certificate-info {
  padding: 26px 30px;
}

.certificate-info small {
  color: #6c84a5;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.certificate-info h3 {
  font-size: 24px;
  margin: 8px 0;
  color: #1d3254;
}

.certificate-info p {
  min-height: 48px;
  color: #66738a;
  font-size: 13px;
}

.certificate-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #dce3ee;
  padding-top: 17px;
  gap: 9px;
  font-size: 12px;
  margin: 0;
}

.certificate-info dt {
  color: #71809a;
}

.certificate-info dd {
  margin: 0;
  text-align: right;
  color: #1d3254;
  font-weight: 500;
}

.cert-note {
  margin-top: 25px;
  border-left: 2px solid #98b3d7;
  padding: 3px 20px;
}

.cert-note span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #bed1eb;
}

.cert-note p {
  color: #cad7e8;
  margin: 6px 0;
  font-size: 12px;
}

.grs-line {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.grs-line small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #a9bfdc;
}

.grs-line h3 {
  color: #ffffff;
  margin: 5px 0;
}

.grs-line p,
.cert-showcase .quality {
  color: #bdcce0;
}

.grs-line a {
  font-size: 12px;
  border-bottom: 1px solid #7894b8;
  padding-bottom: 6px;
  color: #ffffff;
  white-space: nowrap;
}

.cert-showcase .quality {
  margin-top: 25px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
  padding-top: 20px;
}

/* Certificate Dialog */
#certificate-dialog {
  padding: 20px;
  border: 0;
  border-radius: 5px;
  width: min(760px, 94vw);
  max-height: 93vh;
  background: #f3f6fb;
  color: #1d3254;
}

#certificate-dialog::backdrop {
  background: rgba(9, 23, 42, 0.85);
}

.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  position: sticky;
  top: -20px;
  background: #f3f6fb;
  padding: 10px 0;
}

.dialog-bar strong {
  font-size: 14px;
}

.dialog-bar button {
  border: 1px solid #b2c1d8;
  padding: 7px 12px;
  background: #ffffff;
  cursor: pointer;
  border-radius: 2px;
}

#certificate-large {
  width: 100%;
  height: auto;
  display: block;
}

#certificate-original {
  font-size: 13px;
  display: block;
  padding: 15px 0 0;
  color: #1d3254;
}

/* ===================================================================
   7. Section 05: Contact Band
   =================================================================== */
.contact-band {
  background: #1d3254;
  color: #ffffff;
  padding: 55px 0;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contact-band h2 {
  margin: 10px 0;
  color: #ffffff;
}

.contact-band p {
  color: #bdcce0;
  margin: 0;
}

.contact-band .btn {
  background: #edf2fa;
  color: #1d3254 !important;
  border-color: #edf2fa;
  white-space: nowrap;
}

.contact-band .btn:hover {
  background: #ffffff;
}

.contact-band .eyebrow {
  color: #b7cae5;
}

.contact-band .eyebrow::before {
  background: #b7cae5;
}

/* ===================================================================
   8. Section 06: Request Form
   =================================================================== */
.request-section {
  background: #eaf0f8;
  overflow: hidden;
  width: 100%;
}

.request-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
  width: 100%;
}

.request-grid > * {
  min-width: 0;
}

.request-info {
  min-width: 0;
}

.request-call {
  margin: 32px 0;
}

.request-call small {
  display: block;
  letter-spacing: 1.6px;
  font-size: 10px;
  color: #627b9e;
  font-weight: bold;
}

.request-call a {
  font-size: 26px;
  color: #1d3254;
  font-weight: 500;
  display: inline-block;
}

.fine {
  font-size: 12px;
  color: #7b877c;
}

/* Form Container */
form#request-form,
.request-section form {
  background: #ffffff;
  padding: 34px;
  border: 1px solid #dce3ef;
  border-radius: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* 2-Column Fields Grid */
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  width: 100%;
}

.fields > label,
form#request-form label {
  display: block;
  font-size: 12px;
  color: #334c70;
  font-weight: 500;
  min-width: 0;
  margin-bottom: 0;
}

form#request-form label > span {
  color: #a22934;
}

/* Form Inputs, Selects, Textarea */
form#request-form input:not([type="checkbox"]):not([type="radio"]),
form#request-form select,
form#request-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 6px 0 14px;
  padding: 11px 13px;
  border: 1px solid #d4ddea;
  border-radius: 2px;
  background: #fcfdff;
  color: #1d3254;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: normal;
  transition: border-color 0.2s, outline 0.2s;
}

form#request-form select {
  height: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231d3254%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px auto;
  padding-right: 32px;
  cursor: pointer;
}

form#request-form textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

form#request-form input:focus,
form#request-form select:focus,
form#request-form textarea:focus {
  outline: 2px solid #7095c7;
  outline-offset: 1px;
  border-color: #7095c7;
}

/* Consent Checkbox */
form#request-form label.consent,
.consent {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 18px !important;
  font-size: 11px;
  line-height: 1.6;
  color: #334c70;
  cursor: pointer;
}

form#request-form label.consent input[type="checkbox"],
.consent input[type="checkbox"] {
  display: inline-block !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  accent-color: #1d3254;
  cursor: pointer;
}

form#request-form label.consent span,
.consent span {
  flex: 1;
  color: #334c70 !important;
  font-size: 11px;
  line-height: 1.6;
}

/* Anti-spam trap field */
.trap {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* Submit Button */
form#request-form button.btn,
.request-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 26px;
  background: #1d3254;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #1d3254;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

form#request-form button.btn:hover,
.request-section .btn:hover {
  background: #375781;
  border-color: #375781;
}

form#request-form button.btn:disabled,
.request-section .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Status message */
#form-status {
  margin: 15px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

#form-status.success {
  color: #1d5e48;
  font-weight: 600;
}

#form-status.error {
  color: #a22934;
  font-weight: 600;
}

/* ===================================================================
   9. Footer
   =================================================================== */
footer.site-footer,
footer {
  padding: 68px 0 28px;
  background: linear-gradient(180deg, #162844 0%, #111f36 100%);
  color: #e6eef8;
  border-top: 3px solid #5678a6;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1.35fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 8px 13px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(7, 16, 30, 0.25);
}

.footer-logo-box .logo {
  width: 84px;
  height: 34px;
  object-fit: contain;
}

.footer-brand-text strong {
  display: block;
  font-size: 18px;
  letter-spacing: 2px;
  color: #ffffff;
  font-weight: 700;
}

.footer-brand-text small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 1.7px;
  color: #9cb4d4;
  margin-top: 5px;
}

.footer-grid p,
.footer-desc,
.footer-address {
  font-size: 13.5px;
  color: #c2d1e5;
  line-height: 1.75;
  margin: 0 0 18px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.footer-badges span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #dce7f7;
  background: rgba(86, 120, 166, 0.22);
  border: 1px solid rgba(142, 173, 214, 0.32);
  padding: 5px 11px;
  border-radius: 3px;
}

.footer-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
  color: #9cb4d4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-title::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: #6889b6;
  display: inline-block;
}

.footer-hotline-box {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(156, 180, 212, 0.22);
  border-left: 3px solid #6889b6;
  border-radius: 4px;
}

.footer-hotline-box small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9cb4d4;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-hotline-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-size: 20px !important;
  font-weight: 600;
  color: #ffffff !important;
  margin-bottom: 0 !important;
  letter-spacing: 0.3px;
}

.footer-hotline-link em {
  font-style: normal;
  font-size: 15px;
  color: #8bb0e0;
  transition: transform 0.2s ease;
}

.footer-hotline-link:hover em {
  transform: translate(2px, -2px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #c9d7ea;
  padding: 6px 0;
  border-bottom: 1px solid rgba(156, 180, 212, 0.12);
  transition: color 0.2s ease, padding-left 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
  border-bottom-color: rgba(156, 180, 212, 0.38);
}

.footer-links a.footer-cta-link {
  margin-top: 8px;
  padding: 10px 14px;
  background: #5678a6;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 3px;
  border-bottom: none;
  justify-content: center;
  gap: 8px;
}

.footer-links a.footer-cta-link:hover {
  background: #6889b6;
  padding-left: 14px;
}

.bottom {
  border-top: 1px solid rgba(156, 180, 212, 0.18);
  margin-top: 48px;
  padding-top: 22px;
  font-size: 12px;
  color: #8fa6c4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-tagline {
  color: #b0c3dd;
  letter-spacing: 0.3px;
}

/* ===================================================================
   10. Subpage Elements (Sản phẩm & Liên hệ)
   =================================================================== */
.page-head {
  padding: 65px 0;
  background: #edf1f7;
  width: 100%;
}

.page-head h1 {
  font-size: 43px;
  margin-bottom: 15px;
  margin-top: 10px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid #dce2d6;
}

.contact-item small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #83936f;
  font-weight: bold;
}

.contact-item a {
  font-size: 25px;
  color: #1d3254;
  font-weight: 500;
}

.note {
  padding: 32px;
  background: #e9eef6;
  border-radius: 4px;
}

.note ol {
  padding-left: 20px;
  font-size: 14px;
  color: #64735f;
}

.note li {
  margin-bottom: 15px;
}

/* ===================================================================
   11. Responsive Breakpoints (Redesigned Mobile & Tablet UI)
   =================================================================== */
@media (max-width: 1000px) {
  .product-slider .product {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 800px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* 1. Mobile Header & Drawer Menu */
  .nav {
    height: 66px;
    padding: 0 18px;
  }

  .brand {
    gap: 10px;
  }

  .logo {
    width: 68px;
    height: 30px;
  }

  .brand strong {
    font-size: 14px;
    letter-spacing: 1.2px;
  }

  .brand small {
    font-size: 7.5px;
    letter-spacing: 1.1px;
    margin-top: 3px;
  }

  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d5dfed;
    border-radius: 6px;
    background: #f7f9fc;
    font-size: 20px;
    color: #1d3254;
    padding: 0;
    transition: all 0.2s ease;
  }

  .menu[aria-expanded="true"] {
    background: #1d3254;
    border-color: #1d3254;
    color: #ffffff;
  }

  header nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 12px 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 2px solid #1d3254;
    box-shadow: 0 18px 36px rgba(17, 31, 54, 0.14);
  }

  header nav.open {
    display: flex;
  }

  header nav a:not(.call) {
    padding: 13px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1d3254;
    border-bottom: 1px solid #eef2f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  header nav a:not(.call)::after {
    content: '→';
    font-size: 13px;
    color: #7c95b8;
  }

  header nav a.call {
    margin-top: 14px;
    padding: 13px 18px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 6px;
  }

  /* 2. Mobile Hero Banner (Decluttered: 1 clean focal image + clean inline checklist) */
  .hero {
    padding: 26px 0 64px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 0 18px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-badge {
    font-size: 9.5px;
    letter-spacing: 0.8px;
    padding: 5px 10px;
    margin-bottom: 12px;
    line-height: 1.35;
    border-radius: 4px;
    background: rgba(86, 120, 166, 0.2);
    border-color: rgba(142, 173, 214, 0.28);
  }

  h1,
  .hero h1 {
    font-size: 26px;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
  }

  .hero h1 em {
    margin-top: 3px;
  }

  .hero .lead {
    font-size: 13.8px;
    line-height: 1.62;
    margin: 0 0 14px;
    color: #c5d6ec;
  }

  .hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: rgba(15, 29, 51, 0.48);
    border-left: 2.5px solid #6889b6;
    border-radius: 0 6px 6px 0;
  }

  .hero-highlights span {
    font-size: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #dbe8f8;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero .btn-hero-primary,
  .hero .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 10px;
    font-size: 12.5px;
    gap: 6px;
    text-align: center;
    border-radius: 5px;
  }

  .hero-art {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-card-main {
    height: 195px;
    border-radius: 8px;
  }

  /* Hide the 2 secondary sub-cards on mobile to keep the hero clean & focused */
  .hero-card-sub {
    display: none;
  }

  .hero-card-label {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 12px;
  }

  .hero-card-label strong {
    font-size: 12px;
  }

  .hero-card-label small {
    font-size: 9px;
    letter-spacing: 0.6px;
  }

  /* 3. Mobile 2x2 Stats Card */
  .wrap {
    padding: 0 18px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    margin-top: -36px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(17, 31, 54, 0.1);
  }

  .stat {
    padding: 14px 16px;
    border-right: 1px solid #e6ecf5;
    border-bottom: 1px solid #e6ecf5;
  }

  .stat:nth-child(2),
  .stat:nth-child(4) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: 0;
  }

  .stat strong {
    font-size: 22px;
    line-height: 1.15;
  }

  .stat span {
    font-size: 11px;
    margin-top: 3px;
  }

  /* 4. Sections & Typography */
  section {
    padding: 40px 0;
  }

  h2,
  .cert-showcase h2,
  .page-head h1 {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin: 8px 0 12px;
  }

  .page-head {
    padding: 32px 0 28px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .checklist {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    padding: 4px 16px;
  }

  .check {
    padding: 13px 0;
    gap: 12px;
  }

  .check:last-child {
    border-bottom: 0;
  }

  .material-panel {
    padding: 20px 18px;
    border-radius: 8px;
  }

  .material-panel h3 {
    font-size: 19px;
  }

  .chips {
    gap: 6px;
    margin: 14px 0;
  }

  .chips span {
    padding: 5px 10px;
    font-size: 11.5px;
    border-radius: 4px;
  }

  .material-photo {
    height: 175px;
    object-fit: cover;
    padding: 0;
    border-radius: 6px;
    margin: 12px 0 0;
  }

  .materials-foot {
    display: none;
  }

  /* 5. Product Slider on Mobile (Peek next card to invite swipe, remove redundant toolbar hint) */
  .slider-toolbar {
    justify-content: flex-end;
    margin-top: -42px;
    margin-bottom: 14px;
  }

  .slider-hint {
    display: none;
  }

  .slide-status {
    margin-right: 4px;
    font-size: 11px;
    min-width: 44px;
  }

  .slider-controls button {
    width: 34px;
    height: 34px;
    font-size: 17px;
    border-radius: 4px;
  }

  .product-slider .product-grid {
    gap: 14px;
    padding-bottom: 6px;
  }

  .product-slider .product {
    flex: 0 0 84%;
    border-radius: 8px;
  }

  .product .copy {
    padding: 16px 16px 18px;
  }

  .product .copy h3 {
    font-size: 17px;
    margin: 6px 0;
  }

  /* 6. Sample Gallery: 2-column compact grid on mobile */
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sample-grid figure {
    border-radius: 6px;
  }

  .sample-grid figure > a {
    aspect-ratio: 4 / 3;
  }

  .sample-grid figure > a img {
    height: 100%;
  }

  .sample-grid figcaption {
    min-height: 40px;
    font-size: 11.5px;
    line-height: 1.35;
    padding: 9px 11px;
    gap: 6px;
  }

  /* 7. Certificates on Mobile (Clean stacked definition rows so Vietnamese text never wraps awkwardly) */
  .certificate-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
  }

  .certificate-feature {
    border-radius: 8px;
  }

  .certificate-preview {
    padding: 14px;
  }

  .certificate-preview img {
    height: 220px;
  }

  .zoom-cert {
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 11.5px;
    border-radius: 4px;
  }

  .certificate-info {
    padding: 18px;
  }

  .certificate-info h3 {
    font-size: 19px;
  }

  .certificate-info p {
    min-height: 0;
    margin-bottom: 14px;
    font-size: 13.5px;
  }

  .certificate-info dl {
    grid-template-columns: 1fr;
    gap: 3px;
    padding-top: 12px;
  }

  .certificate-info dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7d96;
  }

  .certificate-info dd {
    text-align: left;
    font-size: 13px;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5ecf5;
  }

  .certificate-info dd:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .grs-line {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(156, 180, 212, 0.24);
    border-radius: 8px;
  }

  .grs-line a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(86, 120, 166, 0.28);
    color: #ffffff;
    border-radius: 5px;
    border: 1px solid rgba(156, 180, 212, 0.3);
    font-weight: 600;
  }

  /* 8. Contact Band & Request Form on Mobile */
  .contact-band {
    padding: 34px 0;
  }

  .contact-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .contact-band .btn {
    width: 100%;
    justify-content: center;
    border-radius: 5px;
  }

  .request-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .request-call {
    margin: 16px 0 8px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d5dfed;
    border-left: 3px solid #1d3254;
    border-radius: 6px;
  }

  .request-call a {
    font-size: 21px;
  }

  form#request-form,
  .request-section form {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  form#request-form button.btn,
  .request-section .btn {
    width: 100%;
    border-radius: 5px;
  }

  .note {
    padding: 20px 16px;
    border-radius: 8px;
  }

  /* 9. Footer on Mobile (Compact 2-column navigation links) */
  footer.site-footer,
  footer {
    padding: 36px 0 22px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-title {
    margin-bottom: 12px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
  }

  .footer-links a.footer-cta-link {
    grid-column: 1 / -1;
    margin-top: 6px;
    border-radius: 5px;
  }

  .bottom {
    margin-top: 24px;
    padding-top: 16px;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11.5px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sample-grid img,
  .slider-controls button {
    transition: none;
  }
}

/* ===================================================================
   14. News Page (/tin-tuc/) & Single Post (single.php)
   =================================================================== */

/* Featured News Highlight on /tin-tuc/ */
.news-featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(27, 46, 75, 0.05);
}

.news-featured-media {
  position: relative;
  min-height: 360px;
  background: #f1f5fb;
  overflow: hidden;
}

.news-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-featured-body {
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #eaf0f8;
  color: var(--navy);
  border-radius: 3px;
  margin-bottom: 16px;
}

.news-featured-body h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.24;
  margin: 0 0 14px;
}

.news-featured-body p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.75;
}

.news-featured-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.news-featured-points span {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  background: #f6f8fc;
  border: 1px solid var(--line);
  color: var(--navy-2);
  border-radius: 3px;
}

/* Filter Bar */
.news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.news-filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy-2);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-filter-btn:hover {
  border-color: var(--steel);
  color: var(--navy);
  background: #f5f8fc;
}

.news-filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

/* 3-Column News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: #bdcde4;
  box-shadow: 0 14px 30px rgba(27, 46, 75, 0.08);
}

.news-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef3fa;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 11px;
  background: rgba(22, 40, 68, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

.news-card-body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--steel);
  margin-bottom: 10px;
}

.news-card-meta time {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.news-card-title {
  font-size: 19px;
  line-height: 1.38;
  margin: 0 0 12px;
  color: var(--navy);
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
}

.news-card-title a:hover {
  color: var(--steel);
}

.news-card-excerpt {
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
}

.news-card-footer {
  padding-top: 14px;
  border-top: 1px solid #eef2f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-read-more:hover {
  color: var(--steel);
}

/* Technical Reference Grid on /tin-tuc/ */
.news-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.news-guide-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}

.news-guide-card small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--steel);
  margin-bottom: 10px;
}

.news-guide-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--navy);
}

.news-guide-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* Single Post Page (single.php) */
.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.news-breadcrumb a {
  color: var(--steel);
  font-weight: 500;
}

.news-breadcrumb a:hover {
  color: var(--navy);
}

.single-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.single-cat-badge {
  padding: 4px 10px;
  background: var(--navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 3px;
}

.single-post-head h1 {
  max-width: 900px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
}

.single-lead {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy-2);
}

.single-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.single-featured-media {
  margin: 0 0 32px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f6fb;
}

.single-featured-media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.single-post-content h2 {
  font-size: 24px;
  margin: 34px 0 14px;
  color: var(--navy);
}

.single-post-content h3 {
  font-size: 19px;
  margin: 26px 0 10px;
  color: var(--navy);
}

.single-post-content p {
  margin: 0 0 18px;
  color: #2b3a4e;
}

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #2b3a4e;
}

.single-post-content li {
  margin-bottom: 8px;
}

.single-post-content figure,
.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.single-post-content th,
.single-post-content td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

.single-post-content th {
  background: #edf2fa;
  color: var(--navy);
  font-weight: 700;
}

.single-post-cta-box {
  margin-top: 42px;
  padding: 32px;
  background: var(--soft);
  border: 1px solid #d4dfef;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-post-cta-box h3 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.single-post-cta-box p {
  margin: 0;
}

.single-post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.single-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}

.sidebar-card h3 {
  font-size: 17px;
  margin: 6px 0 16px;
}

.sidebar-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.sidebar-facts li {
  padding: 10px 0;
  border-bottom: 1px solid #eef2f8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-facts li:last-child {
  border-bottom: 0;
}

.sidebar-facts strong {
  font-size: 14px;
  color: var(--navy);
}

.sidebar-facts span {
  font-size: 12.5px;
  color: var(--muted);
}

.sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0 18px;
}

.sidebar-related-item {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f8;
  text-decoration: none;
}

.sidebar-related-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-related-item small {
  display: block;
  font-size: 11px;
  color: var(--steel);
  margin-bottom: 4px;
}

.sidebar-related-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--navy);
}

.sidebar-related-item:hover strong {
  color: var(--steel);
}

@media (max-width: 980px) {
  .news-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-featured-media {
    min-height: 200px;
    max-height: 225px;
  }

  .news-featured-body {
    padding: 22px 18px;
  }

  .news-featured-body h2 {
    font-size: 21px;
    margin-bottom: 10px;
  }

  .news-featured-body p {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  .news-featured-points {
    margin-bottom: 18px;
  }

  .news-featured-body .btn {
    width: 100%;
    justify-content: center;
  }

  .news-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 12px;
  }

  .news-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .news-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .news-grid,
  .news-guide-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .news-card-body,
  .news-guide-card {
    padding: 18px;
  }

  .news-card-title {
    font-size: 17px;
  }

  .single-post-head h1 {
    font-size: 24px;
    line-height: 1.24;
  }

  .single-lead {
    font-size: 14.5px;
  }

  .single-post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .single-post-cta-box {
    padding: 22px 18px;
  }

  .single-post-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .single-post-sidebar {
    position: static;
  }
}
