@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════
   CÔNG NGHỆ THANG MÁY – giao diện (nạp sau main.css)
   Màu lấy từ tone ở CNTM Settings → Màu sắc & Font (--pdc-*), mặc định:
     primary #0f2a44 (xanh thép) · accent #0775af (xanh logo) · cta #d71920 (đỏ thương hiệu)
   Font: var(--pdf-head) / var(--pdf-body) (mặc định Be Vietnam Pro / Inter, tự host)
   Tiền tố lớp: cn-
   ═══════════════════════════════════════════════════════════════ */
:root {
  --cn-ink: var(--pdc-primary, #0f2a44);
  --cn-ink-2: var(--pdc-primary-2, #173d61);
  --cn-blue: var(--pdc-accent, #0775af);
  --cn-blue-l: var(--pdc-accent-l, #4fb3e8);
  --cn-blue-p: var(--pdc-accent-pale, #e6f3fb);
  --cn-red: var(--pdc-cta, #d71920);
  --cn-red-d: var(--pdc-cta-d, #b0121a);
  --cn-bg: #f4f7fa;
  --cn-line: #e2e8ef;
  --cn-text: #1d2b3a;
  --cn-muted: #5d6b7c;
  --cn-r: 6px;
  --cn-shadow: 0 10px 30px rgba(15, 42, 68, .08);
  --cn-shadow-lg: 0 18px 48px rgba(15, 42, 68, .16);
  /* đồng bộ token của main.css cho các trang dùng lại (blog, bài viết, tìm kiếm…) */
  --radius: 8px;
  --off: #f4f7fa;
  --off2: #e9eef3;
  --border: #e2e8ef;
  --text: #1d2b3a;
  --muted: #5d6b7c;
}
body { font-family: var(--pdf-body, 'Inter'), system-ui, sans-serif; color: var(--cn-text); }
h1, h2, h3, h4, .cn-title { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; }
.pd-ic { width: 1em; height: 1em; flex-shrink: 0; }

/* ── Nút ── */
.cn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--cn-r); font-weight: 700; font-size: 15px; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; text-decoration: none; }
.cn-btn:hover { transform: translateY(-1px); }
.cn-btn:focus-visible { outline: 3px solid var(--cn-blue-l); outline-offset: 2px; }
.cn-btn--red { background: var(--cn-red); color: #fff; }
.cn-btn--red:hover { background: var(--cn-red-d); color: #fff; }
.cn-btn--navy { background: var(--cn-ink); color: #fff; }
.cn-btn--navy:hover { background: var(--cn-ink-2); color: #fff; }
.cn-btn--white { background: #fff; color: var(--cn-red); }
.cn-btn--white:hover { background: #fff5f5; color: var(--cn-red-d); }
.cn-btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.cn-btn--ghost:hover { background: #fff; color: var(--cn-ink); }
.cn-btn--outline { border-color: var(--cn-ink); color: var(--cn-ink); background: transparent; }
.cn-btn--outline:hover { background: var(--cn-ink); color: #fff; }
.cn-btn--lg { padding: 15px 28px; font-size: 16px; }
.cn-btn--block { width: 100%; }
.cn-btn.is-loading { opacity: .7; pointer-events: none; }
.cn-more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--cn-red); font-size: 14.5px; }
.cn-more:hover { color: var(--cn-red-d); gap: 10px; }
.cn-chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--cn-line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--cn-ink); background: #fff; }
.cn-chip:hover { border-color: var(--cn-red); color: var(--cn-red); }
.cn-center { text-align: center; margin-top: 32px; }
.cn-checks { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.cn-checks li { display: flex; gap: 10px; align-items: flex-start; }
.cn-checks .pd-ic { color: #fff; background: var(--cn-red); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 2px; }

/* ── Tiêu đề section ── */
.cn-sec { padding: 84px 0; }
.cn-head { margin-bottom: 40px; max-width: 760px; }
.cn-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cn-red); margin-bottom: 10px; }
.cn-label::before { content: ''; width: 28px; height: 3px; background: var(--cn-red); border-radius: 2px; }
.cn-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; font-weight: 800; color: var(--cn-ink); margin: 0 0 12px; letter-spacing: -.3px; }
.cn-title em { font-style: normal; color: var(--cn-blue); }
.cn-desc { color: var(--cn-muted); font-size: 16.5px; margin: 0; }
.cn-head--light .cn-title { color: #fff; }
.cn-head--light .cn-title em { color: var(--cn-blue-l); }
.cn-head--light .cn-desc { color: rgba(255,255,255,.75); }
.cn-head--light .cn-label { color: #ff8a8f; }
.cn-head--light .cn-label::before { background: #ff8a8f; }

/* ═════ HEADER V3 ═════ */
.cn-topbar { background: var(--cn-ink); color: rgba(255,255,255,.82); font-size: 13px; }
.cn-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; max-width: 1400px; }
.cn-topbar__msg { margin: 0; display: flex; align-items: center; gap: 8px; }
.cn-topbar__msg .pd-ic { color: var(--cn-blue-l); }
.cn-topbar__info { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.cn-topbar__info li, .cn-topbar__info a { display: flex; align-items: center; gap: 6px; color: inherit; }
.cn-topbar__info a:hover { color: #fff; }
.hdr-v3 { --hdr-top-h: 96px; border-bottom: 0; }
.hdr-v3 .hdr-inner { gap: 22px; }
.hdr-v3 .logo { flex-shrink: 0; }
.hdr-v3 .logo-txt { display: none !important; }
.hdr-v3 .custom-logo, .hdr-v3 img.logo-img { max-height: 72px; width: auto; }
.cn-brand { display: flex; flex-direction: column; line-height: 1.2; text-transform: uppercase; margin-right: auto; }
.cn-brand__1 { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .6px; color: var(--cn-ink); }
.cn-brand__2 { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; font-weight: 800; font-size: 24px; color: var(--cn-red); letter-spacing: .2px; }
.hdr-v3 .cn-search-m { display: none; }
.hdr-v3 .hdr-phone { border-radius: var(--cn-r); }
.hdr-v3 .hdr-quote { border-radius: var(--cn-r); background: var(--cn-red); }
.hdr-v3 .hdr-nav { background: var(--cn-red); }
.cn-navrow { display: flex; align-items: center; gap: 16px; }
.hdr-v3 nav.main { flex: 1 1 auto; }
.hdr-v3 nav.main > ul > li > a { color: #fff; font-weight: 600; padding: 15px 16px; }
.hdr-v3 nav.main > ul > li > a:hover,
.hdr-v3 nav.main > ul > li:focus-within > a { background: rgba(0,0,0,.14); color: #fff; }
.hdr-v3 nav.main > ul > li > a.active { background: var(--cn-red-d); color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.hdr-v3 nav.main > ul > li > a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.cn-navsearch { position: relative; flex: 0 0 240px; }
.cn-navsearch input { width: 100%; height: 38px; border: 0; border-radius: 999px; padding: 0 42px 0 16px; font: inherit; font-size: 14px; background: rgba(255,255,255,.95); color: var(--cn-text); }
.cn-navsearch input:focus { outline: 2px solid #fff; background: #fff; }
.cn-navsearch button { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--cn-ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 1180px) {
  .cn-brand__1 { font-size: 12.5px; } .cn-brand__2 { font-size: 19px; }
  .cn-navsearch { flex-basis: 180px; }
  .hdr-v3 nav.main > ul > li > a { padding: 14px 11px; font-size: 14px; }
}
@media (max-width: 1024px) { .cn-topbar__msg { display: none; } .cn-topbar__in { justify-content: center; } .cn-brand { display: none; } }
@media (max-width: 900px) {
  .cn-topbar { display: none; }
  .hdr-v3 .cn-search-m { display: flex; order: 2; flex: 1 1 100%; max-width: none; margin: 0; }
  .hdr-v3 .cn-search-m input { height: 44px; font-size: 16px; }
  .hdr-v3 .custom-logo, .hdr-v3 img.logo-img { max-height: 54px; }
}

/* ═════ HERO TRANG CHỦ ═════ */
.cn-hero { position: relative; padding: 0; color: #fff; overflow: hidden; background: var(--cn-ink); }
.cn-hero__bg, .cn-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(var(--pdc-primary-rgb, 15,42,68), .96) 0%, rgba(var(--pdc-primary-rgb, 15,42,68), .86) 48%, rgba(var(--pdc-primary-rgb, 15,42,68), .45) 100%); }
.cn-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.cn-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin: 0 0 20px; }
.cn-hero__badge .pd-ic { color: var(--cn-blue-l); }
.cn-hero h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.18; font-weight: 800; margin: 0 0 18px; color: #fff; letter-spacing: -.5px; }
.cn-hero h1 em { font-style: normal; color: #ff6b70; display: block; }
.cn-hero__sub { font-size: 17px; color: rgba(255,255,255,.82); max-width: 580px; margin: 0 0 28px; }
.cn-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.cn-hero__stats { list-style: none; margin: 0; padding: 22px 0 0; display: flex; gap: 40px; border-top: 1px solid rgba(255,255,255,.18); }
.cn-hero__stats strong { display: block; font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.cn-hero__stats span { font-size: 13.5px; color: rgba(255,255,255,.7); }
.cn-hero__form { scroll-margin-top: 90px; }
.cn-hero__form .cn-form { box-shadow: var(--cn-shadow-lg); border-top: 5px solid var(--cn-red); }

/* ── Form ── */
.cn-form { background: #fff; color: var(--cn-text); border-radius: 10px; padding: 26px; }
.cn-form__title { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; font-size: 21px; font-weight: 800; color: var(--cn-ink); margin: 0 0 16px; }
.cn-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.cn-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--cn-muted); }
.cn-field--full { grid-column: 1 / -1; }
.cn-field input, .cn-field select, .cn-field textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--cn-text); border: 1.5px solid var(--cn-line); border-radius: var(--cn-r); padding: 10px 12px; background: #fbfcfd; width: 100%; }
.cn-field input:focus, .cn-field select:focus, .cn-field textarea:focus { outline: none; border-color: var(--cn-blue); background: #fff; box-shadow: 0 0 0 3px rgba(var(--pdc-accent-rgb, 7,117,175), .15); }
.cn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cn-form__msg { margin: 10px 0 0; font-size: 14px; min-height: 1.2em; }
.cn-form__msg.is-ok { color: #1b7f3b; }
.cn-form__msg.is-err { color: var(--cn-red-d); }

/* ═════ SẢN PHẨM ═════ */
.cn-products { background: var(--cn-bg); }
.cn-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cn-prod { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 var(--cn-line); border: 1px solid var(--cn-line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.cn-prod:hover { box-shadow: var(--cn-shadow-lg); transform: translateY(-4px); }
.cn-prod__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.cn-prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cn-prod:hover .cn-prod__img img { transform: scale(1.06); }
.cn-prod__ic { position: absolute; left: 14px; bottom: -20px; width: 44px; height: 44px; border-radius: 10px; background: var(--cn-red); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 16px rgba(var(--pdc-cta-rgb, 215,25,32), .35); }
.cn-prod__img { overflow: visible; }
.cn-prod__img picture { position: absolute; inset: 0; overflow: hidden; }
.cn-prod__img img { position: absolute; inset: 0; }
.cn-prod__ic { z-index: 1; }
.cn-prod__body { padding: 30px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.cn-prod h3 { font-size: 18px; margin: 0 0 8px; color: var(--cn-ink); }
.cn-prod h3 a:hover { color: var(--cn-red); }
.cn-prod p { font-size: 14.5px; color: var(--cn-muted); margin: 0 0 14px; flex: 1; line-height: 1.6; }

/* ═════ GIỚI THIỆU ═════ */
.cn-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cn-about__media { position: relative; }
.cn-about__media img { border-radius: 10px; width: 100%; height: auto; box-shadow: var(--cn-shadow-lg); }
.cn-about__media::before { content: ''; position: absolute; left: -18px; top: -18px; width: 45%; height: 55%; border: 4px solid var(--cn-red); border-radius: 10px; z-index: -1; }
.cn-about__tag { position: absolute; right: -16px; bottom: 28px; background: var(--cn-red); color: #fff; padding: 16px 22px; border-radius: 10px; box-shadow: var(--cn-shadow-lg); text-align: center; }
.cn-about__tag strong { display: block; font-size: 30px; font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; line-height: 1; }
.cn-about__tag span { font-size: 13px; opacity: .9; }
.cn-about .cn-head { margin-bottom: 18px; }
.cn-about__txt > p { color: var(--cn-muted); font-size: 16px; }
.cn-about__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ═════ DỊCH VỤ ═════ */
.cn-services { background: linear-gradient(135deg, var(--cn-ink) 0%, var(--cn-ink-2) 100%); position: relative; overflow: hidden; }
.cn-services::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.03); }
.cn-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.cn-svc { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 28px 24px; color: rgba(255,255,255,.78); position: relative; transition: background .25s, border-color .25s; }
.cn-svc:hover { background: rgba(255,255,255,.09); border-color: var(--cn-red); }
.cn-svc__no { position: absolute; right: 20px; top: 16px; font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; font-size: 34px; font-weight: 800; color: rgba(255,255,255,.08); }
.cn-svc__ic { width: 52px; height: 52px; border-radius: 10px; background: var(--cn-red); color: #fff; display: grid; place-items: center; font-size: 25px; margin-bottom: 18px; }
.cn-svc h3 { color: #fff; font-size: 19px; margin: 0 0 8px; }
.cn-svc h3 a:hover { color: #ff9ea2; }
.cn-svc p { font-size: 14.5px; margin: 0; line-height: 1.65; }

/* ═════ QUY TRÌNH ═════ */
.cn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: none; position: relative; }
.cn-steps::before { content: ''; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--cn-line) 0 8px, transparent 8px 14px); }
.cn-step { text-align: center; position: relative; }
.cn-step__n { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 2px solid var(--cn-red); color: var(--cn-red); font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; font-weight: 800; font-size: 22px; display: grid; place-items: center; position: relative; transition: background .2s, color .2s; }
.cn-step:hover .cn-step__n { background: var(--cn-red); color: #fff; }
.cn-step h3 { font-size: 16px; color: var(--cn-ink); margin: 0 0 6px; }
.cn-step p { font-size: 13.5px; color: var(--cn-muted); margin: 0; line-height: 1.55; }

/* ═════ LÝ DO CHỌN ═════ */
.cn-why { background: var(--cn-bg); }
.cn-why__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.cn-why__intro { position: sticky; top: 90px; }
.cn-why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cn-why__item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--cn-line); border-radius: 10px; padding: 22px; transition: box-shadow .25s; }
.cn-why__item:hover { box-shadow: var(--cn-shadow); }
.cn-why__ic { flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--cn-blue-p); color: var(--cn-blue); display: grid; place-items: center; font-size: 22px; }
.cn-why__item h3 { font-size: 16.5px; color: var(--cn-ink); margin: 0 0 6px; }
.cn-why__item p { font-size: 14.5px; color: var(--cn-muted); margin: 0; line-height: 1.6; }

/* ═════ DỰ ÁN ═════ */
.cn-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cn-proj { position: relative; display: block; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cn-ink); }
.cn-proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.cn-proj picture { display: block; height: 100%; }
.cn-proj:hover img { transform: scale(1.06); opacity: .85; }
.cn-proj__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(10,22,38,.92), transparent); color: #fff; display: flex; flex-direction: column; }
.cn-proj__cap strong { font-size: 17px; }
.cn-proj__cap small { font-size: 13px; color: #ffb3b6; }

/* ═════ ĐỐI TÁC (khối có sẵn) ═════ */
.pd-partners { background: var(--cn-bg); }
.pd-partners .pd-section-title { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; color: var(--cn-ink); }
.pd-partners .pd-section-label { color: var(--cn-red); }

/* ═════ TIN TỨC ═════ */
.cn-news__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.cn-news__head .cn-head { margin: 0; }
.cn-news__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.cn-news__main { border-radius: 10px; overflow: hidden; border: 1px solid var(--cn-line); background: #fff; }
.cn-news__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.cn-news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cn-news__main:hover .cn-news__img img { transform: scale(1.04); }
.cn-news__body { padding: 22px 24px 26px; }
.cn-news__body h3 { font-size: 22px; line-height: 1.35; margin: 6px 0 10px; color: var(--cn-ink); }
.cn-news__body p { color: var(--cn-muted); margin: 0; }
.cn-news__list { display: grid; gap: 16px; align-content: start; }
.cn-news__item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--cn-line); }
.cn-news__item:last-child { border-bottom: 0; }
.cn-news__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.cn-news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cn-news__item h3 { font-size: 16px; line-height: 1.4; margin: 0 0 6px; color: var(--cn-ink); }
.cn-news h3 a:hover { color: var(--cn-red); }
.cn-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cn-muted); margin: 0; }

/* ═════ TRANG NỘI DUNG (page.php) ═════ */
.cn-pagehero { background: linear-gradient(120deg, var(--cn-ink) 0%, var(--cn-ink-2) 70%, var(--cn-blue) 140%); color: #fff; padding: 34px 0 40px; position: relative; overflow: hidden; }
.cn-pagehero::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 8px; background: var(--cn-red); }
.cn-bc ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.cn-bc li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.cn-bc a { color: rgba(255,255,255,.85); }
.cn-bc a:hover { color: #fff; text-decoration: underline; }
.cn-bc [aria-current] { color: #fff; font-weight: 600; }
.cn-pagehero__title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; font-weight: 800; margin: 0; color: #fff; }
.cn-pagehero__sub { margin: 12px 0 0; color: rgba(255,255,255,.8); max-width: 760px; font-size: 16.5px; }
.cn-pagehero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cn-page { padding: 48px 0 72px; background: #fff; }
.cn-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.cn-page__grid.is-full { grid-template-columns: minmax(0, 1fr); max-width: 940px; }
.cn-page__thumb { margin: 0 0 28px; border-radius: 10px; overflow: hidden; }
.cn-page__thumb img { width: 100%; height: auto; }
.cn-content h2 { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; color: var(--cn-ink); border-bottom: 0; padding: 0 0 0 14px; border-left: 4px solid var(--cn-red); font-size: 25px; }
.cn-content h3 { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; color: var(--cn-ink); }
.cn-content a { color: var(--cn-blue); text-decoration: underline; text-underline-offset: 2px; }
.cn-content a:hover { color: var(--cn-red); }
.cn-content img { border-radius: 8px; height: auto; }
.cn-content a.cn-btn { text-decoration: none; color: #fff; }
.cn-fs-box { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; margin: 18px 0; padding: 16px; border: 1px solid var(--cn-line); border-radius: 10px; }
.cn-fs-box img { width: 100%; }
@media (max-width: 600px) { .cn-fs-box { grid-template-columns: 1fr; } }

.cn-page-quote { margin-top: 44px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; padding: 30px; border-radius: 12px; background: var(--cn-bg); border: 1px solid var(--cn-line); scroll-margin-top: 90px; }
.cn-page-quote h2 { font-size: 24px; color: var(--cn-ink); margin: 0 0 10px; }
.cn-page-quote p { color: var(--cn-muted); margin: 0; }
.cn-page-quote .cn-form { padding: 22px; box-shadow: var(--cn-shadow); }
.cn-related { margin-top: 44px; }
.cn-related__title { font-size: 22px; color: var(--cn-ink); margin: 0 0 18px; }
.cn-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cn-related__item { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--cn-line); background: #fff; transition: box-shadow .2s; }
.cn-related__item:hover { box-shadow: var(--cn-shadow); }
.cn-related__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cn-related__item span { display: block; padding: 10px 12px; font-weight: 700; font-size: 14.5px; color: var(--cn-ink); }
.cn-related__item:hover span { color: var(--cn-red); }

.cn-side { position: sticky; top: 76px; display: grid; gap: 20px; }
.cn-side__box { border: 1px solid var(--cn-line); border-radius: 10px; padding: 20px; background: #fff; }
.cn-side__title { font-size: 16px; text-transform: uppercase; letter-spacing: .5px; color: var(--cn-ink); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--cn-line); position: relative; }
.cn-side__title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--cn-red); }
.cn-side__call { background: linear-gradient(135deg, var(--cn-red) 0%, var(--cn-red-d) 100%); color: #fff; border: 0; text-align: center; }
.cn-side__call-t { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; opacity: .9; }
.cn-side__call-num { display: flex; justify-content: center; align-items: center; gap: 8px; font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; font-size: 26px; font-weight: 800; color: #fff; margin: 6px 0; }
.cn-side__call-d { margin: 0 0 14px; font-size: 13px; opacity: .85; }
.cn-side__menu { list-style: none; margin: 0; padding: 0; }
.cn-side__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: var(--cn-text); }
.cn-side__menu .pd-ic { color: var(--cn-blue); font-size: 17px; }
.cn-side__menu a:hover, .cn-side__menu a.is-active { background: var(--cn-blue-p); color: var(--cn-ink); font-weight: 700; }
.cn-side__menu a.is-active { box-shadow: inset 3px 0 0 var(--cn-red); }
.cn-side__posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cn-side__posts a { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--cn-text); }
.cn-side__posts a:hover { color: var(--cn-red); }
.cn-side__posts img { width: 70px; height: 56px; object-fit: cover; border-radius: 6px; }
.cn-side__posts small { display: block; font-weight: 400; color: var(--cn-muted); font-size: 12.5px; margin-top: 3px; }

/* ═════ FOOTER ═════ */
.cn-footer { background: #0b1f33; color: rgba(255,255,255,.72); font-size: 14.5px; margin-top: 0; }
.cn-ft-cta { background: var(--cn-red); color: #fff; }
.cn-ft-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.cn-ft-cta__t { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; font-size: 24px; font-weight: 800; margin: 0; color: #fff; }
.cn-ft-cta__d { margin: 4px 0 0; opacity: .9; }
.cn-ft-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cn-ft-main { padding: 60px 0 40px; }
.cn-ft-grid { display: grid; grid-template-columns: 1.3fr .9fr 1fr 1.4fr; gap: 40px; }
.cn-ft-name { font-family: var(--pdf-head, 'Be Vietnam Pro'), sans-serif; color: #fff; font-weight: 800; font-size: 17px; text-transform: uppercase; line-height: 1.4; margin: 0 0 12px; }
.cn-ft-brand p { margin: 0 0 16px; line-height: 1.7; }
.cn-ft-badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cn-ft-badges li { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; }
.cn-ft-badges .pd-ic { color: var(--cn-blue-l); font-size: 18px; }
.cn-ft-title { font-size: 15.5px; color: #fff; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 18px; padding-bottom: 10px; position: relative; }
.cn-ft-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--cn-red); border-radius: 2px; }
.cn-ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cn-ft-links a { color: rgba(255,255,255,.72); transition: color .2s, padding .2s; }
.cn-ft-links a:hover { color: #fff; padding-left: 4px; }
.cn-ft-contact { font-style: normal; display: grid; gap: 11px; }
.cn-ft-contact p { display: flex; gap: 10px; margin: 0; line-height: 1.55; }
.cn-ft-contact .pd-ic { color: var(--cn-blue-l); font-size: 17px; margin-top: 3px; }
.cn-ft-contact strong { color: #fff; font-weight: 600; }
.cn-ft-contact a { color: rgba(255,255,255,.85); overflow-wrap: anywhere; }
.cn-ft-contact a:hover { color: #fff; }
.cn-ft-social { display: inline-block; margin-top: 16px; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); }
.cn-ft-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.cn-ft-bottom__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.cn-ft-legal { display: flex; gap: 18px; }
.cn-ft-legal a:hover { color: #fff; }

/* ═════ RESPONSIVE ═════ */
@media (max-width: 1100px) {
  .cn-prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cn-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .cn-steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .cn-steps::before { display: none; }
  .cn-ft-grid { grid-template-columns: 1fr 1fr; }
  .cn-page__grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
@media (max-width: 900px) {
  .cn-sec { padding: 60px 0; }
  .cn-hero__grid, .cn-about__grid, .cn-why__grid, .cn-news__grid, .cn-page-quote { grid-template-columns: 1fr; gap: 36px; }
  .cn-hero__grid { padding-top: 44px; padding-bottom: 44px; }
  .cn-hero::after { background: rgba(var(--pdc-primary-rgb, 15,42,68), .9); }
  .cn-why__intro { position: static; }
  .cn-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cn-proj-grid { grid-template-columns: repeat(2, 1fr); }
  .cn-page__grid { grid-template-columns: 1fr; }
  .cn-side { position: static; }
  .cn-related__grid { grid-template-columns: repeat(2, 1fr); }
  .cn-ft-cta__in { flex-direction: column; align-items: flex-start; }
  .cn-about__media::before { display: none; }
  .cn-about__tag { right: 12px; }
}
@media (max-width: 600px) {
  .cn-prod-grid, .cn-why__list, .cn-svc-grid { grid-template-columns: 1fr; }
  .cn-steps { grid-template-columns: repeat(2, 1fr); }
  .cn-proj-grid { grid-template-columns: 1fr; }
  .cn-form__grid { grid-template-columns: 1fr; }
  .cn-form { padding: 20px; }
  .cn-hero__stats { gap: 14px 22px; flex-wrap: wrap; }
  .cn-hero__stats strong { font-size: 23px; }
  .cn-hero__btns .cn-btn { width: 100%; }
  .cn-news__head { flex-direction: column; align-items: flex-start; }
  .cn-news__item { grid-template-columns: 110px 1fr; }
  .cn-ft-grid { grid-template-columns: 1fr; gap: 32px; }
  .cn-page-quote { padding: 18px; }
  .cn-field input, .cn-field select, .cn-field textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cn-prod, .cn-prod__img img, .cn-proj img, .cn-news__img img, .cn-btn { transition: none; }
}
.cn-related { padding: 0; }

/* Form PD Contact Pro bên trong khung .cn-form (hero, trang sản phẩm): bỏ khung/bóng lồng nhau của plugin */
.cn-form--pdc form, .cn-form--pdc [class*="pdc-form"] { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; max-width: none; width: 100%; }
.cn-form--pdc input, .cn-form--pdc select, .cn-form--pdc textarea { max-width: 100%; }
.cn-form--pdc button[type="submit"] { background: var(--cn-red); border-color: var(--cn-red); }
.cn-form--pdc button[type="submit"]:hover { background: var(--cn-red-d); }

/* Quy trình: hiệu ứng ring khi hover vào số bước (2 vòng sóng lan ra + vòng xoay viền đứt) */
.cn-step__n { z-index: 1; }
.cn-step__n::before, .cn-step__n::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--cn-red); opacity: 0; pointer-events: none; z-index: -1;
}
.cn-step__n::after { inset: -9px; border: 2px dashed rgba(var(--pdc-cta-rgb, 215,25,32), .55); }
.cn-step:hover .cn-step__n, .cn-step:focus-within .cn-step__n { transform: scale(1.08); box-shadow: 0 8px 22px rgba(var(--pdc-cta-rgb, 215,25,32), .35); }
.cn-step:hover .cn-step__n::before, .cn-step:focus-within .cn-step__n::before { animation: cnRing 1.4s ease-out infinite; }
.cn-step:hover .cn-step__n::after, .cn-step:focus-within .cn-step__n::after { opacity: 1; animation: cnSpin 6s linear infinite; }
.cn-step__n { transition: background .2s, color .2s, transform .25s, box-shadow .25s; }
@keyframes cnRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes cnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cn-step:hover .cn-step__n::before, .cn-step:hover .cn-step__n::after { animation: none; }
  .cn-step:hover .cn-step__n::before { opacity: .4; transform: scale(1.25); }
}

/* ═════ MOBILE FIX ═════ */
/* Cột nội dung không bị bảng / ảnh 900px / caption có width cố định kéo giãn → chữ bị cắt mép phải trên điện thoại */
.cn-page__main, .cn-side, .cn-page__grid > * { min-width: 0; }
.cn-content { overflow-wrap: break-word; word-wrap: break-word; }
.cn-content img, .cn-content video, .cn-content iframe, .cn-content embed, .cn-content object { max-width: 100%; }
.cn-content iframe { width: 100%; }
.wp-caption, .cn-content figure, .article-body figure { max-width: 100% !important; height: auto; }
.wp-caption img { max-width: 100%; height: auto; }
.cn-content .alignleft, .cn-content .alignright { max-width: 50%; }
.cn-content pre { overflow-x: auto; max-width: 100%; white-space: pre-wrap; }
html, body { overflow-x: clip; }
@media (max-width: 900px) {
  .cn-page__grid, .cn-page__grid.is-full { grid-template-columns: minmax(0, 1fr); }
  .cn-page { padding: 28px 0 48px; }
  .cn-pagehero { padding: 24px 0 28px; }
  .cn-pagehero::after { width: 5px; }
  .cn-content h2 { font-size: 22px; }
  .cn-content h3 { font-size: 19px; }
  .story-badge { right: 8px !important; bottom: -16px !important; }
}
@media (max-width: 600px) {
  .article-body, .cn-content { font-size: 16px; text-align: left; }
  .cn-content .alignleft, .cn-content .alignright { float: none; max-width: 100%; margin: 12px 0; }
  .cn-pagehero__btns .cn-btn { flex: 1 1 auto; }
  .cn-pagehero__title { font-size: 25px; }
  .cn-page-quote { padding: 16px; gap: 18px; }
  .cn-page-quote h2 { font-size: 21px; }
  .cn-related__grid { gap: 10px; }
  .cn-related__item span { font-size: 13.5px; padding: 8px 10px; }
  .cn-side__box { padding: 16px; }
  .cn-side__call-num { font-size: 23px; }
  .cn-sec { padding: 48px 0; }
  .cn-head { margin-bottom: 26px; }
  .cn-title { font-size: 25px; }
  .cn-hero h1 { font-size: 29px; }
  .cn-hero__sub { font-size: 15.5px; }
  .cn-prod__body { padding: 26px 16px 18px; }
  .cn-about__grid { gap: 28px; }
  .cn-about__tag { padding: 10px 14px; bottom: 14px; }
  .cn-about__tag strong { font-size: 22px; }
  .cn-svc { padding: 22px 18px; }
  .cn-why__item { padding: 16px; }
  .cn-news__body { padding: 16px; }
  .cn-news__body h3 { font-size: 19px; }
  .cn-ft-cta__btns { width: 100%; }
  .cn-ft-cta__btns .cn-btn { flex: 1 1 auto; }
  .cn-ft-cta__t { font-size: 20px; }
  .cn-ft-main { padding: 40px 0 24px; }
  .cn-ft-bottom__in { flex-direction: column; text-align: center; align-items: center; }
}

/* ═════ BLOG: chuyển Lưới / Danh sách (archive.php) ═════ */
.cn-list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; min-height: 40px; }
.cn-view-toggle { display: inline-flex; border: 1px solid var(--cn-line); border-radius: 8px; overflow: hidden; background: #fff; flex-shrink: 0; margin-left: auto; }
.cn-view-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; background: transparent; color: var(--cn-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.cn-view-btn + .cn-view-btn { border-left: 1px solid var(--cn-line); }
.cn-view-btn:hover { color: var(--cn-ink); background: var(--cn-bg); }
.cn-view-btn.is-active { background: var(--cn-ink); color: #fff; }
.cn-view-btn:focus-visible { outline: 2px solid var(--cn-blue); outline-offset: -2px; }

.blog-list.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-list.is-grid .blog-row-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.blog-list.is-grid .blog-row-card:hover { transform: translateY(-4px); box-shadow: var(--cn-shadow-lg); }
.blog-list.is-grid .blog-row-card > img,
.blog-list.is-grid .blog-row-card > div[aria-hidden] { width: 100% !important; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-list.is-grid .blog-row-body { padding: 16px 18px 18px; display: flex; flex-direction: column; }
.blog-list.is-grid .blog-row-body h2 { font-size: 17px; line-height: 1.4; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-list.is-grid .blog-row-body p { font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-list.is-grid .blog-meta-row { margin-top: auto; padding-top: 10px; font-size: 12.5px; gap: 10px; flex-wrap: wrap; }
.blog-list.is-grid .blog-meta-row > span:nth-child(3) { display: none; } /* bỏ tên tác giả cho gọn */
.blog-list.is-grid .blog-row-card-skeleton { display: block; }
@media (max-width: 1180px) { .blog-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .blog-list.is-grid { grid-template-columns: 1fr; gap: 16px; }
  .cn-view-btn span { display: none; }
  .cn-view-btn { padding: 8px 12px; }
}
/* Điện thoại – Danh sách: ảnh nhỏ bên trái, chữ bên phải (gọn, xem được nhiều bài) */
@media (max-width: 600px) {
  .blog-list:not(.is-grid) { gap: 12px; }
  .blog-list:not(.is-grid) .blog-row-card { grid-template-columns: 112px 1fr; }
  .blog-list:not(.is-grid) .blog-row-card > img,
  .blog-list:not(.is-grid) .blog-row-card > div[aria-hidden] { width: 112px !important; height: 100%; min-height: 96px; object-fit: cover; }
  .blog-list:not(.is-grid) .blog-row-body { padding: 10px 12px; }
  .blog-list:not(.is-grid) .blog-row-body h2 { font-size: 15px; line-height: 1.35; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .blog-list:not(.is-grid) .blog-row-body p, .blog-list:not(.is-grid) .blog-cat-tag { display: none; }
  .blog-list:not(.is-grid) .blog-meta-row { font-size: 12px; gap: 8px; }
  .blog-list:not(.is-grid) .blog-meta-row > span:nth-child(3) { display: none; }
}

/* Trang nội dung (page.php): khung rộng hơn → cột bài viết bên trái rộng ~920px thay vì ~800px */
.cn-page > .c, .cn-pagehero > .c { max-width: 1320px; }
.cn-page__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
@media (max-width: 1100px) { .cn-page__grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; } }
@media (max-width: 900px) { .cn-page__grid { grid-template-columns: minmax(0, 1fr); } }
