:root {
  --nd-inner-max: 1200px;
  --nd-side-pad: clamp(16px, 3vw, 36px);
  --nd-gap-y: clamp(18px, 3vh, 28px);

  --nd-title-size: clamp(28px, 5vw, 56px);
  --nd-body-max: 980px;
  --nd-body-fs: clamp(16px, 1.2vw, 20px);
  --nd-body-lh: 1.75;

  --nd-fig-radius: 12px;
  --nd-fig-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);

  --nd2-gap: clamp(14px, 2vw, 20px);
  --nd2-thumb-w: clamp(140px, 28vw, 320px);
  --nd2-thumb-ratio: 16 / 10;
  --nd2-title-size: clamp(18px, 2.2vw, 26px);
  --nd2-text-size: clamp(14px, 1.2vw, 16px);
}

/* ====== Hero Banner ====== */
.nd-hero {
  position: relative;
  z-index: 30;
  min-height: clamp(300px, 40vh, 500px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nd-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.nd-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 20, 56, 0.85) 0%, rgba(15, 20, 56, 0.65) 100%);
  z-index: 2;
}

.nd-hero .container-xxl {
  position: relative;
  z-index: 3;
  max-width: var(--nd-inner-max);
  padding-inline: var(--nd-side-pad);
}

.nd-hero-content {
  max-width: 800px;
  padding: clamp(40px, 8vh, 80px) 0;
}

.nd-hero-label {
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  opacity: 0.9;
}

.nd-hero-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

/* ====== Breadcrumb ====== */
.nd-breadcrumb {
  position: relative;
  z-index: 30;
  background: #fff;
  padding: clamp(16px, 2.5vh, 24px) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nd-breadcrumb .container-xxl {
  max-width: var(--nd-inner-max);
  padding-inline: var(--nd-side-pad);
}

.nd-breadcrumb .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  font-size: clamp(14px, 1.1vw, 16px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nd-breadcrumb .breadcrumb-item:first-child a {
  display: flex;
  align-items: center;
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nd-breadcrumb .breadcrumb-item:first-child a:hover {
  color: var(--brand-orange);
}

.nd-breadcrumb .breadcrumb-item:first-child a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nd-breadcrumb .breadcrumb-item a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nd-breadcrumb .breadcrumb-item a:hover {
  color: var(--brand-orange);
}

.nd-breadcrumb .breadcrumb-item.active {
  color: #6b7280;
}

.nd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #9ca3af;
  padding: 0;
  margin: 0;
}

/* ====== SECTION 1 ====== */
.nd1 {
  position: relative;
  z-index: 30;
  background: #fff;
  padding: clamp(28px, 6vh, 60px) 0;
}
.nd1-inner {
  max-width: var(--nd-inner-max);
  padding-inline: var(--nd-side-pad);
}
.nd1-title {
  margin: 0;
  color: var(--brand-navy);
  font: 900 var(--nd-title-size) / 1.08 system-ui, -apple-system, Segoe UI,
    Roboto, sans-serif;
  letter-spacing: 0.02em;
}
.nd1-figure {
  margin: var(--nd-gap-y) 0;
}
.nd1-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--nd-fig-radius);
  box-shadow: var(--nd-fig-shadow);
}
.nd1-body {
  width: 100%;
  max-width: 100%;
  margin: var(--nd-gap-y) 0 0;
  font-size: var(--nd-body-fs);
  line-height: var(--nd-body-lh);
  color: #1d2040;
  letter-spacing: 0.1px;
}
.nd1-body p {
  margin: 0 0 1em 0;
}
.nd1-body p:last-child {
  margin-bottom: 0;
}
/* Đảm bảo tất cả ảnh trong nội dung: Desktop giữ kích thước CKEditor, Mobile responsive */
.nd1-body img,
.nd1-body p img,
.nd1-body div img,
.nd1-body article img,
.nd1-body section img {
  display: block;
  margin: 1em auto;
  border-radius: 8px;
  /* Desktop: giữ nguyên kích thước từ CKEditor (không set width/height ở đây) */
  /* Mobile: sẽ override bằng media query */
}
/* Chỉ set height: auto cho ảnh KHÔNG có height trong inline style */
.nd1-body img:not([style*="height"]),
.nd1-body p img:not([style*="height"]),
.nd1-body div img:not([style*="height"]),
.nd1-body article img:not([style*="height"]),
.nd1-body section img:not([style*="height"]) {
  height: auto;
}
.nd1-body figure {
  margin: 1em 0;
  max-width: 100%;
}
.nd1-body figure img {
  display: block;
}
.nd1-body figure img:not([style*="height"]) {
  height: auto;
}

/* Responsive: Mobile - ảnh tự điều chỉnh */
@media (max-width: 991.98px) {
  .nd1-body img,
  .nd1-body p img,
  .nd1-body div img,
  .nd1-body article img,
  .nd1-body section img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .nd1-body figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* ====== SECTION 2 ====== */
.nd2 {
  position: relative;
  z-index: 30;
  background: #fff;
  padding: clamp(24px, 6vh, 64px) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.nd2-inner {
  max-width: var(--nd-inner-max);
  padding-inline: var(--nd-side-pad);
}
.nd2-title {
  margin: 0 0 clamp(12px, 2vh, 20px) 0;
  color: var(--brand-navy);
  font: 800 clamp(18px, 3vw, 28px) / 1.1 system-ui, -apple-system, Segoe UI,
    Roboto, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nd2-list {
  display: grid;
  gap: var(--nd2-gap);
}
.nd-card {
  display: grid;
  grid-template-columns: var(--nd2-thumb-w) 1fr;
  gap: var(--nd2-gap);
  padding: clamp(12px, 1.6vw, 16px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.nd-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--nd2-thumb-w);
  border-radius: 8px;
  overflow: hidden;
}
.nd-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: var(--nd2-thumb-ratio);
  object-fit: cover;
  transform: translateZ(0);
}
.nd-info {
  display: grid;
  align-content: center;
  gap: 8px;
}
.nd-h3 {
  margin: 0;
  font: 800 var(--nd2-title-size) / 1.2 system-ui, -apple-system, Segoe UI,
    Roboto, sans-serif;
}
.nd-h3 a {
  color: var(--brand-navy);
  text-decoration: none;
}
.nd-h3 a:hover {
  text-decoration: underline;
}
.nd-excerpt {
  margin: 0;
  color: #2a2e57;
  font-size: var(--nd2-text-size);
  line-height: 1.6;
}
.nd-more {
  justify-self: start;
  display: inline-block;
  margin-top: 6px;
  font: 800 14px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--brand-orange);
  text-decoration: none;
  border-bottom: 0;
}
.nd-more:hover,
.nd-more:focus {
  text-decoration: underline;
}

/* ====== Responsive ====== */
@media (max-width: 991.98px) {
  .nd-card {
    grid-template-columns: 1fr;
  }
  .nd-thumb {
    max-width: 100%;
  }
}
@media (max-width: 575.98px) {
  .nd1-title {
    letter-spacing: 0.01em;
  }
}
