/* Web Nhanh 247 (VietLamCoder) — lớp tùy biến đặt sau main.css của giao diện mẫu.
   Giữ nguyên mọi hiệu ứng của mẫu (reveal-type, anim-uni-in-up, animate-card-*, parallax, xếp chồng, ghim cuộn):
   KHÔNG thêm luật opacity / transform !important cho các lớp đó, KHÔNG khóa overflow-x trên html / body. */

:root {
  --accent--light: #016bca;
  --accent-rgb--light: 1, 107, 202;
  --additional--light: #0095d9;
  --additional-rgb--light: 0, 149, 217;
  --accent--dark: #00b1ee;
  --accent-rgb--dark: 0, 177, 238;
  --additional--dark: #38bdf8;
  --additional-rgb--dark: 56, 189, 248;
  --wn-navy: #061f38;
  --wn-navy-2: #093760;
  --wn-surface-light: #ffffff;
  --wn-border-light: rgba(15, 23, 42, 0.12);
  --wn-border-dark: rgba(255, 255, 255, 0.14);
}

/* ---------- 1. Header & Mobile Navigation Overlap Guard ---------- */
.mxd-header {
  align-items: center;
  gap: 1.2rem;
}

.mxd-header__logo {
  flex: 1 1 auto;
  min-width: 0;
}

.mxd-logo {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
  max-width: 100%;
}

.wn-logo-img {
  height: 3.6rem;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
}

.mxd-logo__text {
  line-height: 1.05;
  white-space: nowrap;
}

.mxd-header__controls {
  flex: 0 0 auto;
  align-items: center;
}

@media (max-width: 767px) {
  .mxd-header {
    left: 2rem;
    width: calc(100% - 9.8rem);
    padding-top: 2rem;
  }
  .mxd-nav__contain {
    padding: 0 2rem;
    margin-top: 2rem;
  }
  .wn-logo-img {
    height: 3rem;
  }
  .mxd-logo__text {
    font-size: 1.35rem;
  }
  .mxd-header .mxd-header__controls {
    gap: 0.8rem;
  }
  .mxd-header .btn-mobile-icon {
    width: 4.4rem;
    height: 4.4rem;
    min-width: 4.4rem;
    padding: 0;
    justify-content: center;
  }
  .mxd-header .btn-mobile-icon .btn-caption {
    display: none;
  }
  .mxd-color-switcher {
    width: 4.4rem;
    height: 4.4rem;
  }
}

@media (min-width: 768px) {
  .wn-logo-img {
    height: 4.4rem;
  }
}

/* ---------- Ảnh dùng chung ---------- */
.wn-bg { background-size: cover; background-position: center top; background-repeat: no-repeat; }
.wn-cover { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Ảnh nhỏ cạnh tiêu đề trang con (mẫu gốc là ô xám) -> ảnh dự án thật */
.headline-img-01::before { background-image: url(../assets/projects/lamweb-thumb.webp); background-position: top center; }
.headline-img-02::before { background-image: url(../assets/projects/vietlamcodercms-thumb.webp); background-position: top center; }
.headline-img-03::after  { background-image: url(../assets/projects/showcase-phu-quy-furniture.webp); background-position: top center; }
.headline-img-04::before { background-image: url(../assets/projects/kdk-thumb.webp); background-position: top center; }
.headline-img-05::before { background-image: url(../assets/projects/vietlamedu-thumb.webp); background-position: top center; }

/* Ảnh dự án trong các khối của mẫu (hero nổi, thẻ dịch vụ, băng ảnh chạy, kêu gọi liên hệ) */
.hero-01-image img, .services-stack__image img, .marquee__item.image img, .mxd-promo__images .promo-image {
  object-fit: cover; object-position: top center;
}
.mxd-hero-01__video { object-fit: cover; }

/* Khối kêu gọi cuối trang: nền navy thương hiệu thay ảnh xám (hiệu ứng thu phóng của mẫu giữ nguyên) */
.mxd-promo__bg {
  background-image: linear-gradient(rgba(6, 31, 56, 0.35), rgba(6, 31, 56, 0.6)), url(../assets/projects/showcase-grand-marina.webp) !important;
  background-color: var(--wn-navy); background-position: center top;
}
/* Nền chỉ chiếm nửa phải (thiết kế gốc): giữ chữ trong nửa trái để không đè lên ảnh */
@media (min-width: 1200px) { .mxd-promo__content { max-width: 50%; } }
.mxd-promo__icon img { background: #fff; border-radius: 50%; padding: 0.6rem; object-fit: contain; }
.mxd-promo__images .promo-image { border-radius: var(--_radius-m); }

/* Dải ngăn cách có ảnh */
.divider-image-1 { background-image: url(../assets/projects/lamweb-thumb.webp); }
.divider-image-2 { background-image: url(../assets/projects/vietlamcodercms-thumb.webp); }
.divider-image-3 { background-image: url(../assets/projects/kdk-thumb.webp); }
.divider-image-1, .divider-image-2, .divider-image-3 { background-position: top center; }

/* Thẻ số liệu: ảnh minh họa của mẫu bị bỏ, chừa chỗ cho chữ */
.mxd-stats-cards__inner.wn-stat { min-height: 26rem; }

/* Ô chống spam ẩn (honeypot) */
.wn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Thông báo lỗi của form */
.form__error { margin-top: 1.2rem; padding: 1.2rem 1.6rem; border: 1px solid #e5484d; border-radius: var(--_radius-s); color: var(--t-bright); font-size: 1.5rem; }
.form__error[hidden] { display: none; }

/* Phân trang */
.wn-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.8rem; margin-top: 5rem; }
.wn-pager__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.4rem; height: 4.4rem; padding: 0 1.4rem;
  border: 1px solid var(--st-muted); border-radius: 999px;
  color: var(--t-bright); font-size: 1.5rem; text-decoration: none;
  transition: border-color var(--_animspeed-medium), background-color var(--_animspeed-medium);
}
a.wn-pager__item:hover { border-color: var(--accent); }
.wn-pager__item.is-current { background: var(--accent); border-color: var(--accent); color: var(--t-opp-bright); font-weight: 700; }
.wn-pager__item.is-disabled { opacity: 0.35; }
.wn-pager__gap { color: var(--t-muted); padding: 0 0.4rem; }

/* Thanh lọc chuyên mục / tìm kiếm */
.wn-filter { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.wn-filter .tag { text-decoration: none; }
.wn-search { display: flex; gap: 0.8rem; margin-bottom: 2.4rem; max-width: 56rem; }
.wn-search input {
  flex: 1; min-width: 0; height: 5rem; padding: 0 1.8rem; border-radius: 999px;
  border: 1px solid var(--st-muted); background: var(--base-tint); color: var(--t-bright); font: inherit; font-size: 1.6rem;
}
.wn-search button { flex: none; }
.wn-count { color: var(--t-muted); font-size: 1.5rem; margin: 0 0 2rem; }

/* Thẻ bài viết / dự án trong lưới */
.wn-card { height: 100%; display: flex; flex-direction: column; background: var(--base-tint); border-radius: var(--_radius-m); overflow: hidden; border: 1px solid var(--st-muted); }
.wn-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--base-shade); }
.wn-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--_animbezier); }
.wn-card:hover .wn-card__media img { transform: scale(1.04); }
.wn-card__body { padding: 2rem 2.2rem 2.4rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.wn-card__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; font-size: 1.4rem; color: var(--t-muted); }
.wn-card__title { font-size: 2rem; line-height: 1.35; margin: 0; font-weight: 700; }
.wn-card__title a { color: var(--t-bright); text-decoration: none; }
.wn-card__title a:hover { color: var(--accent); }
.wn-card__excerpt { font-size: 1.5rem; line-height: 1.6; color: var(--t-medium); margin: 0; flex: 1; }
.wn-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2.4rem; }
@media (min-width: 768px) { .wn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .wn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tác giả cuối bài */
.wn-author { display: flex; gap: 2rem; align-items: center; padding: 2.4rem; border-radius: var(--_radius-m); background: var(--base-tint); border: 1px solid var(--st-muted); margin: 4rem 0; }
.wn-author img { width: 7.2rem; height: 7.2rem; border-radius: 50%; object-fit: cover; flex: none; }
.wn-author h4 { margin: 0 0 0.4rem; font-size: 2rem; }
.wn-author p { margin: 0; color: var(--t-medium); font-size: 1.5rem; }

/* Thông tin dự án */
.wn-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 3rem 0; }
@media (min-width: 992px) { .wn-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wn-facts dt { font-size: 1.4rem; color: var(--t-muted); margin-bottom: 0.4rem; font-weight: 400; }
.wn-facts dd { margin: 0; font-size: 1.8rem; color: var(--t-bright); font-weight: 600; }
.wn-shot { border-radius: var(--_radius-m); overflow: hidden; border: 1px solid var(--st-muted); background: var(--base-shade); }
.wn-shot img, .wn-shot video { width: 100%; height: auto; display: block; }

/* Liên hệ: danh sách kênh */
.wn-contact-list { display: grid; gap: 1.6rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .wn-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wn-contact-item { padding: 2.4rem; border-radius: var(--_radius-m); background: var(--base-tint); border: 1px solid var(--st-muted); }
.wn-contact-item p { margin: 0; }
.wn-contact-item .wn-contact-label { font-size: 1.4rem; color: var(--t-muted); margin-bottom: 0.6rem; }
.wn-contact-item .wn-contact-value { font-size: 1.9rem; font-weight: 600; color: var(--t-bright); overflow-wrap: anywhere; }
.wn-contact-item a { color: inherit; text-decoration: none; }
.wn-contact-item a:hover { color: var(--accent); }

/* Bảng giá */
.wn-group-title { margin: 0 0 2.4rem; text-transform: none; }
.pricing-data__amount { font-size: clamp(3.2rem, 4vw, 4.8rem); }

/* Số thứ tự trong danh sách "Cách tôi làm việc" */
.wn-approach-num { display: flex; align-items: center; color: var(--accent); font: normal 700 3.2rem/1 var(--_font-accent); }

@media (prefers-reduced-motion: reduce) {
  .wn-card__media img { transition: none; }
}

/* ---------- Tag trên ảnh dự án & thẻ dự án xếp chồng (tương phản) ---------- */
.mxd-project-item__tags {
  z-index: 2;
}

.mxd-project-item__tags .tag-permanent,
.mxd-blog-preview__tags .tag-permanent {
  background-color: rgba(6, 20, 40, 0.88) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

/* Works stack full scrim & restrained headline over screenshots */
.mxd-projects-stack__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 20, 40, 0.72) 0%,
    rgba(6, 20, 40, 0.16) 38%,
    rgba(6, 20, 40, 0.90) 82%,
    rgba(6, 20, 40, 0.96) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.mxd-projects-stack__tags,
.mxd-projects-stack__title {
  position: relative;
  z-index: 2;
}

.mxd-projects-stack__tags .tag-outline-permanent {
  background-color: rgba(6, 20, 40, 0.82) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.mxd-projects-stack__title {
  max-width: 72rem;
}

.mxd-projects-stack__title h2.permanent-light {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 2.8vw, 3.8rem) !important;
  line-height: 1.22 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- 7. Expertise SVG + Phosphor Icons ---------- */
.wn-approach-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--accent);
}

.wn-approach-icon svg {
  width: 4.4rem;
  height: 4.4rem;
  display: block;
}

/* ---------- 11. Article Typography & macOS One Dark Code Cards ---------- */
.mxd-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--_radius-s);
  margin: 2rem 0;
}

.mxd-article__body h2,
.mxd-article__body h3,
.mxd-article__body h4 {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  color: var(--t-bright);
}

.mxd-article__body p {
  margin-bottom: 1.6rem;
  line-height: 1.75;
}

.mxd-article__body ul,
.mxd-article__body ol {
  margin: 0 0 1.8rem 2.2rem;
  line-height: 1.7;
}

.mxd-article__body :not(pre) > code {
  padding: 0.2rem 0.65rem;
  border-radius: 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--t-bright);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.wn-code-card {
  margin: 2.4rem 0;
  border-radius: 1.4rem;
  background: #1e222a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.35);
}

.wn-code-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.6rem;
  background: #171a21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wn-code-card__chrome {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.wn-code-card__dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: inline-block;
}

.wn-code-card__dot--red { background: #ff5f56; }
.wn-code-card__dot--yellow { background: #ffbd2e; }
.wn-code-card__dot--green { background: #27c93f; }

.wn-code-card__lang {
  margin-left: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: #9da5b4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wn-code-card__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #e5e9f0;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wn-code-card__copy:hover {
  background: rgba(0, 177, 238, 0.22);
  border-color: #00b1ee;
  color: #ffffff;
}

.wn-code-card__copy.is-copied {
  background: #27c93f;
  border-color: #27c93f;
  color: #07190c;
}

.wn-code-card pre,
.mxd-article__body pre {
  margin: 0;
  padding: 1.8rem 2rem;
  background: #1e222a;
  color: #e5e9f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.45rem;
  line-height: 1.65;
  overflow-x: auto;
  border-radius: 1.2rem;
}

.wn-code-card pre {
  border-radius: 0;
}

.wn-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
}

.mxd-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
}

.mxd-article__body th,
.mxd-article__body td {
  padding: 1rem 1.2rem;
  border: 1px solid var(--wn-border-light);
}

[color-scheme="dark"] .mxd-article__body th,
[color-scheme="dark"] .mxd-article__body td {
  border-color: var(--wn-border-dark);
}

/* ---------- Ô chọn trong form liên hệ ---------- */
.form select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--st-bright);
  background: transparent;
  color: var(--t-bright);
  padding: 1.3rem 0.4rem;
  font-size: 1.7rem;
  outline: none;
}

.form select option {
  background: #161616;
  color: #ffffff;
}

[color-scheme="light"] .form select option {
  background: #ffffff;
  color: #161616;
}

/* ---------- 13. Footer Wordmark & Column Contrast ---------- */
.mxd-footer__fullwidth-text {
  overflow: visible !important;
}

.wn-wordmark {
  width: 100%;
  height: auto;
  overflow: visible;
}

.wn-wordmark text {
  font-family: var(--_font-accent);
  font-weight: 700;
  font-size: 68px;
  letter-spacing: -0.025em;
  fill: currentColor;
}

/* Dịch vụ và Blog: các bản vẽ giao diện và sổ tay đi cùng tiêu đề. */
.wn-section-intro { padding-block: clamp(3.2rem, 5vw, 9rem) clamp(3rem, 4.5vw, 7rem); }
.wn-section-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 24%);
  grid-template-areas: "label art" "copy art";
  column-gap: clamp(2rem, 5vw, 9rem);
  row-gap: 1.8rem;
  align-items: center;
  padding-bottom: clamp(2.8rem, 3.5vw, 6rem);
  border-bottom: 1px solid var(--st-muted);
}
.wn-section-intro__eyebrow {
  grid-area: label;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--t-bright);
}
.wn-section-intro__eyebrow svg { color: var(--accent); fill: currentColor; width: 1.6rem; height: 1.6rem; }
.wn-section-intro__copy { grid-area: copy; min-width: 0; }
.wn-section-intro__copy h1 {
  font-size: clamp(3.6rem, 5.3vw, 9rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.wn-section-intro__continuation { display: block; }
.wn-section-intro--layout .wn-section-intro__grid { padding-bottom: 0; border-bottom: 0; }
.wn-services-list .mxd-services-list__inner { padding-block: clamp(2.8rem, 3.5vw, 6rem); }
.wn-services-list .mxd-services-list__title p { font-size: clamp(3rem, 3.1vw, 5.6rem); line-height: 1.16; }
.wn-section-intro__copy p {
  margin-top: clamp(1.6rem, 1.8vw, 2.8rem);
  max-width: 60ch;
  color: var(--t-medium);
  font-size: clamp(1.65rem, 1.35vw, 2.15rem);
  line-height: 1.55;
}
.wn-section-intro__art {
  grid-area: art;
  position: relative;
  justify-self: center;
  font-size: clamp(1.05rem, 1.4vw, 2.4rem);
  width: 11em;
  height: 9em;
  color: var(--accent);
  --art-paper: color-mix(in srgb, var(--accent) 8%, var(--base));
  --art-line: color-mix(in srgb, var(--accent) 52%, var(--base));
}
.wn-art-window, .wn-art-phone, .wn-art-journal {
  display: block;
  position: absolute;
  border: max(1px, .08em) solid var(--art-line);
  background: var(--art-paper);
}
.wn-art-window {
  inset: 14% 12% 17% 4%;
  border-radius: .5em;
  transform: rotate(-5deg);
  box-shadow: -.25em .3em 0 var(--base), -.31em .36em 0 var(--art-line);
}
.wn-art-window__bar {
  display: flex;
  align-items: center;
  height: 21%;
  padding-inline: .55em;
  border-bottom: 1px solid var(--art-line);
}
.wn-art-window__bar i {
  width: .21em; height: .21em; border-radius: 50%; background: currentColor;
  box-shadow: .42em 0 currentColor, .84em 0 currentColor;
}
.wn-art-window__layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: .4em;
  height: 79%;
  padding: .6em;
}
.wn-art-window__layout i, .wn-art-window__layout b, .wn-art-phone i {
  border-radius: .15em;
  background: color-mix(in srgb, currentColor 18%, transparent);
}
.wn-art-window__layout b {
  background: linear-gradient(to bottom, currentColor 0 37%, transparent 37% 47%, var(--art-line) 47% 55%, transparent 55% 65%, var(--art-line) 65% 73%, transparent 73%);
}
.wn-art-phone {
  right: 4%; bottom: 2%; width: 24%; height: 54%;
  border-radius: .38em;
  padding: .45em .22em;
  transform: rotate(7deg);
}
.wn-art-phone i { display: block; height: 100%; border-top: .95em solid currentColor; }
.wn-art-journal {
  inset: 6% 21% 7% 24%;
  border-radius: .2em .45em .45em .2em;
  border-left: .48em solid var(--art-line);
  transform: rotate(9deg);
  box-shadow: .12em .14em 0 var(--base), .19em .21em 0 var(--art-line), .31em .32em 0 var(--base), .37em .39em 0 var(--art-line);
}
.wn-art-journal__ribbon {
  position: absolute; top: -1px; right: 15%; width: 16%; height: 26%;
  background: currentColor; clip-path: polygon(0 0,100% 0,100% 100%,50% 77%,0 100%);
}
.wn-art-journal .ph-light { position: absolute; left: 14%; top: 27%; font-size: 2.8em; }
.wn-art-journal__rule {
  position: absolute; left: 14%; bottom: 20%; width: 49%; height: .11em;
  background: var(--art-line); box-shadow: 0 .45em 0 var(--art-line);
}
@media (max-width: 639px) {
  .wn-section-intro__grid {
    grid-template-columns: 1fr auto;
    grid-template-areas: "label art" "copy copy";
    row-gap: 1.2rem;
  }
  .wn-section-intro__art { font-size: .66rem; }
}

/* ---------- Tiêu đề trang con có từ dài (vd "LamWeb.com.vn") ----------
   Mẫu dùng cỡ 6rem (mobile) / 8rem (tablet): từ 13 ký tự rộng ~495px > màn 390px, làm điện thoại thu nhỏ cả trang.
   --wn-longest = số ký tự của từ dài nhất (partial inner-headline tự tính). Desktop >= 1200px giữ cỡ của mẫu. */
@media (max-width: 767px) {
  .inner-headline__title.wn-long-word { font-size: min(6rem, calc((100vw - 6rem) / (var(--wn-longest) * 0.64))); line-height: 1.12; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .inner-headline__title.wn-long-word { font-size: min(8rem, calc((100vw - 12rem) / (var(--wn-longest) * 0.64))); line-height: 1.12; }
}
.inner-headline__title, .hero-01-title, .mxd-article__title h1 { overflow-wrap: break-word; }

/* ---------- Bài viết cũ (WordPress) không được làm tràn ngang trên mobile ----------
   URL dài, bảng, iframe trong nội dung cũ: chặn bằng CSS, không chờ wn247.js bọc bảng
   (điện thoại tính bề rộng trang ngay lần dựng đầu tiên, trước khi JS chạy). */
.mxd-article-container, .mxd-article__content, .mxd-article__body { min-width: 0; max-width: 100%; }
.mxd-article__body { overflow-wrap: anywhere; }
.mxd-article__body table { display: block; max-width: 100%; overflow-x: auto; }
.mxd-article__body img { height: auto; }
.mxd-article__body iframe, .mxd-article__body video, .mxd-article__body embed, .mxd-article__body object { max-width: 100%; }
.mxd-article__body pre { max-width: 100%; overflow-x: auto; overflow-wrap: normal; }

/* Căn giữa nút dưới lưới dự án */
.wn-center { display: flex; justify-content: center; }

/* Nút / nhãn nền màu phụ (xanh nhạt): mẫu dùng chữ var(--t-bright) = trắng ở chế độ Tối -> 2,14:1.
   Chữ navy: 7,77:1 trên #38bdf8 (Tối), 5,0:1 trên #0095d9 (Sáng). */
.btn.btn-additional, .btn.btn-additional i, .tag.tag-additional { color: #061f38; }

/* ---------- Thẻ dịch vụ xếp chồng: ảnh chụp website (khối đặc) không được che chữ ----------
   Mẫu đặt vật thể 3D nền trong suốt cao 110% khung (được phép đè chữ). Ảnh 16:10 của ta đặc nên thu về
   cột phải (36%), nghiêng nhẹ như vật thể của mẫu; chữ giữ ở 60% bên trái (width-60). Đo 26/11/2026. */
@media only screen and (min-width: 992px) {
  .services-stack__image .service-img {
    top: 50%; bottom: auto; right: 4rem; left: auto;
    width: 36%; height: auto; max-height: 78%;
    aspect-ratio: 16 / 10; object-fit: cover; object-position: top center;
    transform: translateY(-50%) rotate(-3deg);
    border-radius: 1.6rem; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  }
}
@media only screen and (max-width: 991px) {
  .services-stack__image .service-img-s { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: 1.6rem; margin-top: 2.4rem; }
}

/* Cột đọc và phân cấp tiêu đề của bài blog, gồm nội dung WordPress cũ. */
.wn-post .mxd-article__content,
.wn-post .wn-author {
  max-width: 72rem;
  margin-inline: auto;
}
.wn-post .mxd-article__thumb {
  max-width: 96rem;
  margin-inline: auto;
}
.wn-post .mxd-article__content { padding-top: clamp(1.6rem, 2.4vw, 3.6rem); }
.wn-post .mxd-article__body { line-height: 1.75; }
.wn-post .mxd-article__body :is(h2, h3, h4) {
  margin: 1.5em 0 .5em;
  line-height: 1.3;
  text-wrap: pretty;
  scroll-margin-top: 8rem;
}
.wn-post .mxd-article__body h2 { font-size: clamp(2.5rem, 2.5vw, 3.4rem); }
.wn-post .mxd-article__body h3 { font-size: clamp(2.1rem, 2vw, 2.6rem); }
.wn-post .mxd-article__body h4 { font-size: clamp(1.9rem, 1.6vw, 2.2rem); }
.wn-post .mxd-article__body .sapo p {
  color: var(--t-bright);
  font-size: clamp(1.9rem, 1.6vw, 2.2rem);
  line-height: 1.55;
}
.wn-post .mxd-article__body .toc-table.card.border {
  border: 0 !important; /* Bootstrap .border uses !important. */
  background: transparent;
}
.wn-post .mxd-article__body .toc-table > .card-header-toc {
  display: block !important; /* Imported markup also uses Bootstrap .d-flex. */
  padding: 0;
  background: transparent;
}
.wn-post .mxd-article__body .wct-figure { margin: 2.4rem 0; }
.wn-post .mxd-article__body .wct-figure img { display: block; margin: 0 auto; }
.wn-post .mxd-article__body .wct-figcaption {
  margin-top: .8rem;
  font-size: 1.5rem;
  line-height: 1.5;
  text-align: center;
}

.wn-home-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(3rem, 5vw, 9rem);
  width: min(100%, 176rem);
  margin-inline: auto;
  padding: clamp(12rem, 16vh, 18rem) clamp(2rem, 5vw, 9rem) clamp(6rem, 8vw, 12rem);
}
.wn-home-intro h1 {
  font-size: clamp(5rem, 6.4vw, 10.2rem);
  letter-spacing: -.044em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}
.wn-home-intro h1 > * { display: block; }
.wn-home-intro strong { color: var(--accent); font-weight: inherit; }
.wn-intro-copy p {
  max-width: 48ch;
  margin: 2.4rem 0;
  font-size: clamp(1.7rem, 1.34vw, 2.1rem);
  line-height: 1.6;
  color: var(--t-bright);
}
.wn-intro-link {
  display: inline-flex; align-items: center; gap: 1.4rem;
  min-height: 4.4rem; padding: 0 1.8rem;
  border: 1px solid var(--st-muted); border-radius: 3rem;
  color: var(--t-bright); font-size: 1.6rem;
}
.wn-intro-link:hover { border-color: var(--accent); }
.wn-intro-studio {
  position: relative; isolation: isolate; aspect-ratio: 1.36;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .24) 1px, transparent 1.3px) center / 17px 17px;
}
.wn-intro-window {
  position: absolute; inset: 4% 2% auto auto; width: 88%;
  background: #142634; border: 1px solid #526875; border-radius: 1.2rem;
  overflow: hidden; box-shadow: 0 1.1rem 2.8rem rgb(2 12 19 / 22%);
  transform: rotate(1.7deg);
}
.wn-window-toolbar {
  display: block; height: clamp(1.2rem, 1.3vw, 2rem);
  background: radial-gradient(circle, #a6b7c1 1.5px, transparent 2px) .8rem center / .7rem .7rem repeat-x;
  width: 2.1rem; margin-left: .8rem;
}
.wn-intro-window img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: top; }
.wn-window-front { inset: auto auto 3% 1.5%; width: 54%; transform: rotate(-3deg); }
.wn-intro-pointer {
  position: absolute; bottom: 16%; left: 58%;
  font-size: clamp(2.6rem, 3vw, 4.5rem); color: var(--accent);
  filter: drop-shadow(0 1px 1px #06253a);
}
@media (prefers-reduced-motion: no-preference) {
  .wn-intro-pointer { animation: wn-pointer-drift 3s ease-in-out 2 alternate; }
  @keyframes wn-pointer-drift { to { transform: translate(-.6rem, -.7rem) rotate(-8deg); } }
}
@media (max-width: 767px) {
  .wn-home-intro { grid-template-columns: 1fr; gap: 3rem; padding-block: 10rem 5rem; }
  .wn-home-intro h1 { font-size: clamp(4.3rem, 10.8vw, 7rem); line-height: 1.08; }
  .wn-intro-copy p { margin: 1.7rem 0; }
  .wn-intro-studio { width: min(100%, 48rem); justify-self: center; }
}

/* Số bài cạnh tên chuyên mục */
.wn-tag-count { opacity: 0.55; margin-left: 0.2em; font-size: 0.86em; }

/* Thẻ số liệu: mẫu cao 600px để chứa hình minh họa; ta không dùng hình -> thu gọn, chữ dàn đều trên / dưới */
.mxd-stats-cards__item { height: auto !important; }
.mxd-stats-cards__inner.wn-stat { min-height: 24rem; justify-content: space-between; gap: 2.4rem; }
@media only screen and (min-width: 1200px) { .mxd-stats-cards__inner.wn-stat { min-height: 26rem; } }

/* Chú thích số liệu / mô tả ngắn: cân dòng, tránh chữ mồ côi */
.mxd-counter__descr, .mxd-demo-cards__descr p, .menu-promo__caption { text-wrap: balance; }

/* Nhãn / nút nền màu nhấn: chữ theo màu đối nghịch của chế độ (Sáng: trắng trên #016bca 5,31:1; Tối: #161616 trên #00b1ee 7,3:1).
   Mẫu dùng chữ trắng cố định -> chế độ Tối chỉ 2,46:1. */
.tag.tag-accent { color: var(--t-opp-bright); }

/* ---------- Hero trang chủ: 2 khung trình duyệt chứa ảnh dự án thay vật thể 3D của mẫu ----------
   Đặt vào 2 khoảng trống hai bên dòng "✦ chữ 3" (không che chữ), không thò ra ngoài mép (tránh thanh cuộn ngang).
   Dưới 1200px ẩn như mẫu ẩn vật thể dưới 768px vì chữ chiếm hết bề ngang. */
.hero-00-image.wn-hero-frame { display: none; }
@media only screen and (min-width: 1200px) {
  .hero-00-image.wn-hero-frame { display: block; z-index: 0; }
  .hero-00-image.wn-hero-frame.image-01 { top: auto; bottom: -6%; left: 0; width: 16.5%; }
  .hero-00-image.wn-hero-frame.image-02 { top: auto; bottom: -10%; right: 1.5%; left: auto; width: 16%; }
}
.wn-hero-frame__win {
  background: #142634; border: 1px solid #526875; border-radius: 1.2rem;
  overflow: hidden; box-shadow: 0 1.4rem 3.2rem rgb(2 12 19 / 28%);
}
.wn-hero-frame.image-01 .wn-hero-frame__win { rotate: -4deg; }
.wn-hero-frame.image-02 .wn-hero-frame__win { rotate: 3deg; }
.wn-hero-frame__win img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: top; }
.wn-hero-frame__pointer {
  position: absolute; left: 14%; bottom: -1.4rem;
  font-size: clamp(2.6rem, 2.4vw, 4rem); color: var(--accent);
  filter: drop-shadow(0 1px 1px #06253a);
}
@media (prefers-reduced-motion: no-preference) {
  .wn-hero-frame__pointer { animation: wn-pointer-drift 3s ease-in-out infinite alternate; }
}

/* ---------- Chặn thanh cuộn ngang ở mọi khổ màn hình ----------
   clip (không phải hidden): cắt phần tử thò ra mép nhưng KHÔNG biến html/body thành vùng cuộn riêng,
   nên khối ghim cuộn (pinned), thẻ xếp chồng và position: sticky của mẫu vẫn chạy. Đo 26/11/2026. */
html, body { overflow-x: clip; }

/* ---------- Menu mở (≥1200px): mọi mục luôn vừa màn hình, không màn nào bị hụt ----------
   Mẫu cố định mỗi mục cao 6,5rem / chữ 5,6rem -> màn thấp (laptop 1366×768 trừ thanh trình duyệt ~650px) mất mục cuối.
   Chiều cao 1 mục = (chiều cao màn − 28rem phần đầu/chân menu) ÷ số mục − 2rem khoảng cách; chặn trong [3,2rem ; 6,5rem].
   Đính chính 27/11/2026: bản 25rem / tối thiểu 4,2rem cắt nửa mục cuối ở 1280×600 (cột trái cao 463px, nội dung 494px);
   đo thật phần đầu+chân ≈ 27rem. Màn ≥ 900px cao vẫn ra 6,5rem như mẫu.
   --wn-menu-items do nav.blade.php in theo số mục menu thật trong trang quản trị. */
@media only screen and (min-width: 1200px) {
  .main-menu__accordion {
    --wn-menu-h: clamp(3.2rem, calc((100vh - 28rem) / var(--wn-menu-items, 6) - 2rem), 6.5rem);
    --wn-menu-h: clamp(3.2rem, calc((100dvh - 28rem) / var(--wn-menu-items, 6) - 2rem), 6.5rem);
  }
  .main-menu__accordion .main-menu__link,
  .main-menu__accordion .main-menu__link .btn-caption { height: var(--wn-menu-h); line-height: var(--wn-menu-h); }
  .main-menu__accordion .main-menu__link { font-size: calc(var(--wn-menu-h) * 0.86); }
}

/* ---------- Ảnh nhỏ cạnh tiêu đề trang con, dính liền với chữ (27/11/2026) ----------
   partials/inner-headline.blade.php gói từ đầu / từ cuối + ảnh trong .wn-hl-glue (không xuống dòng) nên ảnh không bao giờ
   đứng một mình một dòng. Kích thước theo đúng mẫu (main.css .headline-img-before/after). */
.wn-hl-glue { white-space: nowrap; }
.wn-hl-pill {
  display: inline-block; width: 8rem; height: 4.3rem; border-radius: 4.2rem;
  background-repeat: no-repeat; background-size: cover; background-position: top center;
}
.wn-hl-pill--before { margin-right: 1.6rem; }
.wn-hl-pill--after { margin-left: 1.6rem; }
@media only screen and (min-width: 768px) {
  .wn-hl-pill { width: 11rem; height: 5.8rem; }
  .wn-hl-pill--before { margin-right: 2.2rem; } .wn-hl-pill--after { margin-left: 2.2rem; }
}
@media only screen and (min-width: 1200px) {
  .wn-hl-pill { width: 14rem; height: 7rem; }
  .wn-hl-pill--before { margin-right: 2.6rem; } .wn-hl-pill--after { margin-left: 2.6rem; }
}
@media only screen and (min-width: 1600px) {
  .wn-hl-pill { width: 16rem; height: 8.4rem; }
  .wn-hl-pill--before { margin-right: 3.3rem; } .wn-hl-pill--after { margin-left: 3.3rem; }
}
.wn-hl-pill.headline-img-01 { background-image: url(../assets/projects/lamweb-thumb.webp); }
.wn-hl-pill.headline-img-02 { background-image: url(../assets/projects/vietlamcodercms-thumb.webp); }
.wn-hl-pill.headline-img-03 { background-image: url(../assets/projects/showcase-phu-quy-furniture.webp); }
.wn-hl-pill.headline-img-04 { background-image: url(../assets/projects/kdk-thumb.webp); }
.wn-hl-pill.headline-img-05 { background-image: url(../assets/projects/vietlamedu-thumb.webp); }

/* ---------- Bảng giá: giá + nút thẳng hàng giữa các thẻ (27/11/2026) ----------
   wn247.js alignPricingRows() cân chiều cao .pricing-data__header theo hàng rồi bật lớp .wn-price-aligned trên <html>.
   Khi đó giá đi ngay sau mô tả (không đẩy xuống đáy theo độ dài danh sách), danh sách "Bao gồm" chiếm phần còn lại.
   Không có JS: giữ nguyên cách của mẫu. */
@media only screen and (min-width: 1200px) {
  .wn-price-aligned .mxd-pricing-table__data { flex: none; justify-content: flex-start; }
  .wn-price-aligned .mxd-pricing-table__plan { flex: 1; }
}

/* Trang Dịch vụ: mỗi tính năng một dòng, không gãy giữa cụm chữ (cột đã nới 2 -> 3/12 trong services.blade.php, 27/11/2026). */
@media only screen and (min-width: 1200px) {
  .wn-services-list .mxd-services-list__tagslist li p { white-space: nowrap; }
  .wn-services-list .mxd-services-list__tagslist { padding-left: 2rem; }
}

/* ---------- Trang Giới thiệu (27/11/2026) ----------
   "Cách tôi làm việc": mẫu canh phải tiêu đề trong cột 4/12 -> tiêu đề xa số thứ tự, gãy dòng để lại 1 chữ ("dụng", "hành").
   Ở đây số 1/12 + tiêu đề 5/12 canh trái (about-us.blade.php), tiêu đề lớn hơn h6 của mẫu một bậc. */
@media only screen and (min-width: 1200px) {
  .wn-approach-left .mxd-approach-list__title { text-align: left; padding: 0 3rem 0 0; }
}
.wn-approach-left .mxd-approach-list__title h6 { font-size: clamp(2rem, 1.6vw, 2.6rem); line-height: 1.25; }
/* "Người thực hiện": thẻ tác giả cỡ lớn (thẻ nhỏ .wn-author vẫn dùng cho hộp tác giả cuối bài viết). */
.wn-author--lg { gap: 3.2rem; padding: 4rem; margin: 2rem 0 0; }
.wn-author--lg img { width: 14rem; height: 14rem; }
.wn-author--lg h4 { font-size: clamp(2.6rem, 2.4vw, 3.6rem); margin-bottom: 0.6rem; }
.wn-author--lg p { font-size: 1.8rem; }
.wn-author--lg p + p { margin-top: 1.4rem; max-width: 68rem; color: var(--t-bright); line-height: 1.6; }
@media only screen and (max-width: 767px) {
  .wn-author--lg { flex-direction: column; align-items: flex-start; padding: 2.8rem; gap: 2rem; }
  .wn-author--lg img { width: 10rem; height: 10rem; }
}

/* ---------- Khối kêu gọi liên hệ cuối trang (27/11/2026) ----------
   Mẫu giới hạn tiêu đề 60–70% của khung chữ, mà khung chữ ở đây chỉ 50% (dòng 122) -> chữ 100px trong 424px, mỗi dòng 1–2 từ
   ("Trao / đổi về / dự án / của / bạn!"). Cho tiêu đề dùng hết khung chữ, cỡ chữ theo bề ngang màn (1600px ≈ 64px). */
@media only screen and (min-width: 1200px) {
  .mxd-promo__title { width: 100%; font-size: clamp(5.2rem, 4vw, 7.2rem); line-height: 1.12; }
}

/* Ảnh bìa bài viết: hiện đúng cỡ thật, căn giữa, không phóng to / không cắt (posts/show.blade.php, 27/11/2026). */
/* Mẫu đặt khung ảnh bìa cao cố định 460/600/760/930px (main.css) cho ảnh lớn -> ảnh cũ 168px để lại khoảng trống ~760px dưới ảnh. */
.wn-post .mxd-article__thumb { width: fit-content; max-width: min(96rem, 100%); height: auto; margin-bottom: clamp(2.4rem, 3vw, 4.8rem); }
.wn-post .wn-post-cover { display: block; width: auto; max-width: 100%; height: auto; max-height: 54rem; object-fit: contain; }

/* Trang Dự án (thẻ xếp chồng): nhãn nằm đè lên thanh menu của ảnh chụp website -> chữ nhãn lẫn vào chữ menu (27/11/2026).
   Cho nhãn nền tối đặc + mờ nền phía sau để tách khỏi ảnh, giữ vị trí của mẫu. */
.mxd-projects-stack__tags .tag { background: rgb(8 12 18 / 78%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Tiêu đề nhiều dòng chia dòng đều nhau, không để một chữ lẻ ở dòng cuối ("chuẩn / SEO", "PHP / 8.4", "Gọi / cho tôi!") — 27/11/2026. */
.wn-services-list .mxd-services-list__title p,
.wn-approach-left .mxd-approach-list__title h6,
.mxd-promo__caption,
.pricing-header__title { text-wrap: balance; }

/* ---------- Nút có hiệu ứng chữ (.btn-anim) bị mất đuôi nhãn (27/11/2026) ----------
   app.js tách nhãn thành từng chữ inline-block trong khung cao 1 dòng + overflow:hidden (main.css .btn-anim .btn-caption).
   Nút hẹp -> khung nhãn co lại, chữ xuống dòng 2 bị giấu: "Đăng Ký Gói Nà", "Bảng giá đầy đủ (gồm". Đo: 25 nút ở 360/390/1280px.
   Giữ chữ một dòng, khung nhãn không co; nút full-width trong thẻ hẹp thì thu khoảng cách chữ–mũi tên. */
.btn-anim .btn-anim__block { white-space: nowrap; }
.btn-anim .btn-caption { flex-shrink: 0; }
@media only screen and (max-width: 767px) {
  .btn-fullwidth.btn-anim { gap: 0.8rem; padding-inline: 1.8rem; }
}
/* Điện thoại hẹp (≤ 400px): nhãn nút một dòng cần chỗ -> chữ nút nhỏ một bậc, đệm hai bên gọn lại. */
@media only screen and (max-width: 400px) {
  .btn-anim.btn-default { font-size: 1.6rem; padding-inline: 1.8rem; gap: 0.8rem; }
}

/* Tiêu đề hero trang chủ ở 768–1199px: mẫu cố định 8rem + nowrap -> hàng "Website ✦ nhanh 247" rộng 852px, trang cuộn ngang 42px ở 768px
   (đo 27/11/2026). Cỡ chữ theo bề ngang trong dải này, tối đa vẫn 8rem như mẫu. */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  /* Hệ số co = 7.2vw / 80px. Ô trống giữ chỗ + dải chữ chạy màu xanh (mẫu đặt cứng 484×88px) co cùng hệ số để luôn khớp nhau. */
  .hero-00-title { font-size: min(8rem, 7.2vw); }
  .hero-00-title__item.title-item-transparent { padding: 0 min(5rem, 4.5vw); border-radius: min(4.4rem, 3.96vw); }
  .hero-00-title__item.title-item-image svg { width: min(5.1rem, 4.59vw); height: min(5.1rem, 4.59vw); }
  .mxd-hero-00__marquee { width: min(484px, 43.56vw); height: min(88px, 7.92vw); border-radius: min(4.4rem, 3.96vw); }
  .mxd-hero-00__marquee .marquee__item.item-regular p { font-size: min(8rem, 7.2vw); }
  .mxd-hero-00__marquee .marquee__item.item-regular svg { width: min(5.1rem, 4.59vw); height: min(5.1rem, 4.59vw); }
}
/* Cùng lỗi ở 1200px: mẫu nhảy lên 12rem -> tràn 38px. Từ ~1305px trở lên vẫn đúng 12rem của mẫu. */
@media only screen and (min-width: 1200px) and (max-width: 1599px) {
  /* Hệ số co = 9.2vw / 120px; dải chữ chạy (mẫu 719×132px) co cùng hệ số. */
  .hero-00-title { font-size: min(12rem, 9.2vw); }
  .hero-00-title__item.title-item-transparent { padding: 0 min(7rem, 5.37vw); border-radius: min(6.6rem, 5.06vw); }
  .hero-00-title__item.title-item-image svg { width: min(8.5rem, 6.52vw); height: min(8.5rem, 6.52vw); }
  .mxd-hero-00__marquee { width: min(719px, 55.12vw); height: min(132px, 10.12vw); border-radius: min(6.6rem, 5.06vw); }
  .mxd-hero-00__marquee .marquee__item.item-regular p { font-size: min(12rem, 9.2vw); }
  .mxd-hero-00__marquee .marquee__item.item-regular svg { width: min(8.5rem, 6.52vw); height: min(8.5rem, 6.52vw); }
}
