/*
Theme Name: Mazda Gia Lai
Template: generatepress
Description: Child theme cho mazdagialai.vn — v3 bam sat web goc: header toi 1 thanh 2 hang, hero tran vien slider 6 banner, luoi xe 3 cot, muc MUA XE, banner DICH VU tran vien + 4 the, thanh cong cu phai, footer xam than dung noi dung goc.
Version: 3.0.1
*/

:root { --mz-dark: #14161a; --mz-char: #23262b; --mz-gray: #f2f2f2; --mz-line: #e3e3e3; --mz-txt: #1c1c1e; --mz-mut: #6d6e71; }
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; font-family: "Helvetica Neue", Arial, sans-serif; color: var(--mz-txt); background: #fff; }
img { max-width: 100%; }
a { color: inherit; }
.mz-wrap { max-width: 1230px; margin: 0 auto; padding: 0 15px; }
.mz-full { width: 100vw; margin-left: calc(50% - 50vw); }
/* Dong bo khung chua cua GeneratePress (mac dinh 1200px) voi .mz-wrap 1230px — tranh lech le */
body .grid-container { max-width: 1230px; }
body .site-content { display: block; }
body .site-main { margin: 0; }
/* GP dang de layout right-sidebar: content-area chi 70% -> hero tran vien bi tinh lech. Ep full width. */
body .site-content .content-area { width: 100%; }
body .separate-containers .site-main { margin: 0; }
h1, h2, h3, .mz-card-name { font-family: Georgia, "Times New Roman", serif; }

/* ===== Header: 1 thanh toi, 2 hang ===== */
.mz-header { background: var(--mz-dark); color: #fff; }
.mz-util-row { border-bottom: 1px solid rgba(255,255,255,.12); }
.mz-util { list-style: none; margin: 0; padding: 6px 0; display: flex; justify-content: flex-end; gap: 26px; }
.mz-util a { color: #d7d7d7; text-decoration: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.mz-util a:hover { color: #fff; }
.mz-main-flex { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.mz-logo img { height: 50px; width: auto; filter: brightness(0) invert(1); display: block; }
.mz-logo-text { color: #fff; text-decoration: none; font-size: 20px; letter-spacing: .2em; }
.mz-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; }
.mz-menu a { color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; display: block; }
.mz-menu a:hover { color: #c8c9cb; }
.mz-burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ===== Hero tran vien ===== */
.mz-hero { position: relative; height: min(600px, 56vw); min-height: 320px; background: #000; overflow: hidden; }
.mz-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.mz-slide.active { opacity: 1; }
.mz-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(0,0,0,.35); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.mz-arrow:hover { background: rgba(0,0,0,.6); }
.mz-prev { left: 22px; } .mz-next { right: 22px; }
.mz-dots { position: absolute; left: 30px; bottom: 20px; z-index: 5; display: flex; gap: 9px; }
.mz-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.mz-dots button.on { background: #fff; }

/* ===== Luoi xe 3 cot ===== */
.mz-models { max-width: 1230px; margin: 0 auto; padding: 34px 15px 6px; }
.mz-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mz-card { display: block; text-decoration: none; background: var(--mz-gray); }
.mz-card-img { display: block; overflow: hidden; aspect-ratio: 500/420; }
.mz-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mz-card:hover .mz-card-img img { transform: scale(1.04); }
.mz-card-info { display: block; text-align: center; padding: 16px 10px 20px; }
.mz-card-name { display: block; font-size: 19px; letter-spacing: .22em; color: var(--mz-txt); }
.mz-card-tag { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: .14em; color: var(--mz-mut); text-transform: uppercase; }

/* ===== MUA XE ===== */
.mz-buy { max-width: 1230px; margin: 0 auto; padding: 44px 15px 10px; }
.mz-sec-title { text-align: center; font-size: 30px; letter-spacing: .18em; margin: 0 0 30px; font-weight: 400; }
.mz-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mz-buy-item { text-align: center; text-decoration: none; padding: 8px 12px; display: block; }
.mz-buy-item img { height: 74px; width: auto; }
.mz-buy-item h3 { font-size: 16px; letter-spacing: .12em; margin: 14px 0 8px; font-weight: 400; }
.mz-buy-item p { font-size: 13.5px; color: var(--mz-mut); line-height: 1.55; margin: 0; }

/* ===== DICH VU: banner tran vien + the ===== */
.mz-service { margin-top: 44px; min-height: 380px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.mz-service-overlay { width: 100%; max-width: 1230px; margin: 0 auto; padding: 50px 15px; display: flex; justify-content: flex-end; }
.mz-service-text { max-width: 430px; background: rgba(20,22,26,.72); color: #fff; padding: 28px 30px; }
.mz-service-text h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: .18em; font-weight: 400; }
.mz-service-text p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #e6e6e6; }
.mz-svc-cards { max-width: 1230px; margin: 0 auto; padding: 30px 15px 54px; }
.mz-svc-card { background: #fff; border: 1px solid var(--mz-line); }
.mz-svc-img { display: block; aspect-ratio: 4/3; overflow: hidden; }
.mz-svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-svc-card h3 { font-size: 15.5px; letter-spacing: .1em; margin: 0; padding: 16px 16px 10px; font-weight: 400; }
.mz-svc-card ul { list-style: none; margin: 0; padding: 0 16px 16px; }
.mz-svc-card li { border-top: 1px solid var(--mz-line); }
.mz-svc-card li a { display: block; padding: 8px 0; font-size: 13.5px; color: #3c4043; text-decoration: none; }
.mz-svc-card li a:hover { color: #000; text-decoration: underline; }

/* ===== Thanh cong cu doc ben phai ===== */
.mz-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.mz-rail a { padding: 11px 10px; font-size: 11px; letter-spacing: .04em; text-align: center; text-decoration: none; color: #26282c; border-bottom: 1px solid var(--mz-line); max-width: 92px; line-height: 1.35; }
.mz-rail a:last-child { border-bottom: 0; }
.mz-rail a:hover { background: var(--mz-dark); color: #fff; }

/* ===== Footer ===== */
.mz-footer { background: var(--mz-char); color: #c9cbce; margin-top: 0; }
.mz-foot-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.1fr; gap: 34px; padding: 48px 15px 38px; }
.mz-foot-col h4 { color: #fff; font-size: 14px; letter-spacing: .14em; margin: 0 0 16px; font-weight: 400; font-family: Georgia, "Times New Roman", serif; }
.mz-foot-col p { font-size: 13.5px; line-height: 1.65; margin: 0 0 10px; }
.mz-foot-col ul { list-style: none; margin: 0; padding: 0; }
.mz-foot-col li { margin-bottom: 9px; }
.mz-foot-col a { color: #c9cbce; text-decoration: none; font-size: 13.5px; }
.mz-foot-col a:hover { color: #fff; text-decoration: underline; }
.mz-social a { letter-spacing: .02em; }
.mz-bct { display: inline-block; border: 1px solid #4a4e55; padding: 6px 10px; font-size: 12px; color: #9fd08a; }
.mz-copy { border-top: 1px solid #34373d; padding: 16px 0; font-size: 12.5px; letter-spacing: .06em; color: #9a9da2; text-align: center; }

/* ===== Trang con (single-xe / archive-xe) ===== */
.mz-vehicle-hero { position: relative; background: #000; }
.mz-vehicle-hero img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.mz-vh-cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.68)); color: #fff; padding: 46px 0 20px; }
.mz-vh-cap h1 { margin: 0; font-size: 34px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.mz-subnav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--mz-line); }
.mz-subnav .mz-wrap { display: flex; gap: 26px; overflow-x: auto; }
.mz-subnav a { padding: 13px 2px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--mz-mut); }
.mz-subnav a.cur { color: #000; border-bottom: 2px solid #000; }
.mz-pricebox { background: var(--mz-gray); padding: 20px 24px; margin: 26px 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mz-pricebox .mz-p { font-size: 24px; letter-spacing: .03em; }
.mz-pricebox .mz-u { color: #a4123f; font-size: 14px; }
.mz-btn { background: var(--mz-dark); color: #fff; text-decoration: none; padding: 11px 20px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; display: inline-block; }
.mz-btn.ghost { background: transparent; color: var(--mz-dark); border: 1px solid var(--mz-dark); }
.mz-specs, .mz-spec { width: 100%; border-collapse: collapse; margin: 18px 0 30px; }
.mz-specs th, .mz-specs td, .mz-spec th, .mz-spec td { border: 1px solid var(--mz-line); padding: 10px 14px; font-size: 14px; text-align: left; }
.mz-specs td:first-child { background: var(--mz-gray); width: 34%; font-weight: 600; }
.mz-content { font-size: 15.5px; line-height: 1.75; color: #2b2b2e; padding-bottom: 50px; }
.mz-content img { height: auto; }
.mz-content h2, .mz-content h3 { letter-spacing: .06em; }
.mz-section { max-width: 1230px; margin: 0 auto; padding: 38px 15px 56px; }
.mz-section > h2 { text-align: center; font-size: 28px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; margin: 0 0 28px; }
.mz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mz-grid .mz-card { background: var(--mz-gray); }
.mz-grid .mz-card > a { display: block; }
.mz-grid .mz-card img { width: 100%; height: auto; aspect-ratio: 640/420; object-fit: cover; display: block; }
.mz-card-body { padding: 15px 16px 19px; text-align: center; }
.mz-card-body h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.mz-card-body h3 a { text-decoration: none; }
.mz-price { font-size: 15px; font-weight: 700; }
.mz-promo { font-size: 13px; color: #a4123f; margin-top: 4px; }

@media (max-width: 900px) {
  .mz-grid3, .mz-grid4, .mz-grid { grid-template-columns: repeat(2, 1fr); }
  .mz-foot-grid { grid-template-columns: 1fr 1fr; }
  .mz-rail { display: none; }
  .mz-hero { height: 52vw; }
}
@media (max-width: 640px) {
  .mz-menu { display: none; }
  .mz-nav.open .mz-menu { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--mz-dark); padding: 10px 20px 16px; }
  .mz-header { position: relative; }
  .mz-burger { display: block; }
  .mz-grid3, .mz-grid4, .mz-grid { grid-template-columns: 1fr; }
  .mz-util { justify-content: center; flex-wrap: wrap; gap: 14px; }
  .mz-service-text { max-width: none; }
}
