.qdn-sn-hub,
.qdn-sn-shop-header {
  color: #102a56;
}

.qdn-sn-hub {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.qdn-sn-hub-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 26px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid #d9e7fb;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 58%, #fff7ee 100%);
}

.qdn-sn-hub-header::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 128, 0, 0.09);
  content: "";
}

.qdn-sn-hub-header h1 {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 0 12px;
  color: #102a56;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.12;
}

.qdn-sn-hub-header > p,
.qdn-sn-shop-header > p {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.72;
}

.qdn-sn-hub-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.qdn-sn-hub-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1454d8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.qdn-sn-hub-actions a + a {
  border: 1px solid #c7daf8;
  background: #fff;
  color: #1454d8;
}

.qdn-sn-jump {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  margin: 0 0 24px;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.qdn-sn-jump > span,
.qdn-sn-jump a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid #d8e5f8;
  border-radius: 999px;
  background: #fff;
  color: #174c9d;
  font-weight: 650;
  text-decoration: none;
}

.qdn-sn-jump > span {
  border-color: transparent;
  background: transparent;
  padding-left: 0;
  font-weight: 750;
}

.qdn-sn-hub section {
  scroll-margin-top: 110px;
  margin: 30px 0 40px;
}

.qdn-sn-hub section > h2 {
  margin: 0 0 8px;
  color: #102a56;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.qdn-sn-hub section > p {
  max-width: 900px;
  margin: 0 0 18px;
  line-height: 1.7;
}

.qdn-sn-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.qdn-sn-category-tile {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  min-height: 110px;
  overflow: hidden;
  border: 1px solid #dce7f7;
  border-radius: 16px;
  background: #fff;
  color: #102a56;
  box-shadow: 0 8px 22px rgba(16, 42, 86, 0.06);
  text-decoration: none;
}

.qdn-sn-category-image,
.qdn-sn-category-tile img {
  display: block;
  width: 86px;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.qdn-sn-category-copy {
  display: block;
  padding: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.qdn-sn-category-copy small {
  display: block;
  margin-top: 5px;
  color: #657794;
  font-size: 0.8rem;
  font-weight: 500;
}

.qdn-sn-link-grid,
.qdn-sn-path-grid {
  display: grid;
  gap: 14px;
}

.qdn-sn-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qdn-sn-path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qdn-sn-link-card,
.qdn-sn-path {
  border: 1px solid #dce7f7;
  border-radius: 16px;
  background: #f8fbff;
  padding: 18px;
}

.qdn-sn-link-card {
  position: relative;
  display: block;
  min-height: 140px;
  color: #102a56;
  text-decoration: none;
}

.qdn-sn-link-card strong,
.qdn-sn-path h2 {
  display: block;
  margin: 0 0 8px;
  color: #102a56;
  font-size: 1.06rem;
}

.qdn-sn-link-card span,
.qdn-sn-path p {
  display: block;
  margin: 0;
  line-height: 1.62;
}

.qdn-sn-link-card i {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: #1454d8;
  font-size: 1.15rem;
  font-style: normal;
}

.qdn-sn-link-card a,
.qdn-sn-path a,
.qdn-sn-inline-guide a,
.qdn-sn-contextual-sentence a,
.qdn-sn-next-step a {
  color: #0f55c7;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.qdn-sn-path ul {
  margin: 12px 0 0;
  padding-left: 19px;
}

.qdn-sn-path li {
  margin: 8px 0;
  line-height: 1.5;
}

.qdn-sn-path li span {
  display: block;
  margin-top: 3px;
  color: #60718d;
  font-size: 0.92rem;
}

.qdn-sn-section-heading {
  margin-bottom: 16px;
}

.qdn-sn-eyebrow {
  margin: 0 0 7px !important;
  color: #e86f00;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qdn-sn-reading-list ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: qdn-reading;
  list-style: none;
}

.qdn-sn-reading-list li {
  border-left: 3px solid #f58220;
  border-radius: 10px;
  background: #fff8f1;
  padding: 15px;
  line-height: 1.6;
}

.qdn-sn-contextual-sentence,
.qdn-sn-next-step {
  margin: 16px 0;
  color: #203b65;
  line-height: 1.7;
}

.qdn-sn-shop-header {
  margin: 0 0 22px;
}

.qdn-sn-shop-header h1 {
  margin-bottom: 10px;
}

@media (hover: hover) {
  .qdn-sn-category-tile:hover,
  .qdn-sn-link-card:hover,
  .qdn-sn-path:hover {
    border-color: #aac8f5;
    box-shadow: 0 12px 30px rgba(16, 42, 86, 0.11);
    transform: translateY(-2px);
  }
}

@media (min-width: 850px) {
  html body #header #masthead .header-nav-main > li.menu-item-1965.has-dropdown > .nav-dropdown.nav-dropdown-default,
  html body #header #masthead .header-nav-main > li.menu-item-1966.has-dropdown > .nav-dropdown.nav-dropdown-default,
  html body #header #masthead .header-nav-main > li.menu-item-1967.has-dropdown > .nav-dropdown.nav-dropdown-default {
    left: 50% !important;
    right: auto !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    padding: 10px 0 !important;
    transform: translateX(-50%) translateY(0) !important;
    border: 1px solid #dce5f4;
    border-radius: 0 0 14px 14px;
    background: #fff !important;
    box-shadow: 0 16px 35px rgba(16, 42, 86, 0.16) !important;
  }

  html body #header #masthead .header-nav-main > li.menu-item-1965.has-dropdown > .nav-dropdown.nav-dropdown-default > li > a,
  html body #header #masthead .header-nav-main > li.menu-item-1966.has-dropdown > .nav-dropdown.nav-dropdown-default > li > a,
  html body #header #masthead .header-nav-main > li.menu-item-1967.has-dropdown > .nav-dropdown.nav-dropdown-default > li > a {
    display: block;
    padding: 11px 18px;
    color: #102a56;
    line-height: 1.35;
    white-space: normal;
  }

  html body #header #masthead .header-nav-main > li.menu-item-1965.has-dropdown > .nav-dropdown.nav-dropdown-default > li > a:hover,
  html body #header #masthead .header-nav-main > li.menu-item-1966.has-dropdown > .nav-dropdown.nav-dropdown-default > li > a:hover,
  html body #header #masthead .header-nav-main > li.menu-item-1967.has-dropdown > .nav-dropdown.nav-dropdown-default > li > a:hover {
    color: #0f55c7;
    background: #f4f8ff;
  }
}

@media (max-width: 1023px) {
  .qdn-sn-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  .qdn-sn-hub {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .qdn-sn-link-grid,
  .qdn-sn-path-grid,
  .qdn-sn-reading-list ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 549px) {
  .qdn-sn-hub-header {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .qdn-sn-hub-header h1 {
    font-size: 2rem;
  }

  .qdn-sn-hub-header > p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .qdn-sn-hub-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qdn-sn-hub-actions a {
    justify-content: center;
  }

  .qdn-sn-hub section {
    margin: 24px 0 32px;
  }

  .qdn-sn-category-grid {
    gap: 10px;
  }

  .qdn-sn-category-tile {
    display: block;
    min-height: 0;
    border-radius: 13px;
  }

  .qdn-sn-category-image,
  .qdn-sn-category-tile img {
    display: block;
    width: 100%;
    height: 104px;
    min-height: 0;
  }

  .qdn-sn-category-copy {
    display: block;
    min-height: 70px;
    padding: 10px;
    font-size: 0.92rem;
  }

  .qdn-sn-category-copy small {
    font-size: 0.76rem;
  }

  .qdn-sn-link-card,
  .qdn-sn-path {
    border-radius: 13px;
    padding: 15px;
  }
}

/* Homepage decision hub: compact, scannable panels for the B2B buying journey. */
.qdn-home-decision-hub {
  --qdn-home-navy: #102a56;
  --qdn-home-blue: #1454d8;
  --qdn-home-orange: #e86f00;
  padding: clamp(24px, 3vw, 38px) 0 clamp(36px, 4vw, 54px);
}

.qdn-home-decision-hub > section {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #dce7f7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 42, 86, 0.07);
}

.qdn-home-decision-hub > section:last-child {
  margin-bottom: 0;
}

.qdn-home-decision-hub > section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--qdn-home-blue), #5f94ee 68%, #f58220);
  content: "";
}

.qdn-home-decision-hub #chon-qua-theo-nhu-cau {
  background: linear-gradient(145deg, #fff 0%, #f7faff 100%);
}

.qdn-home-decision-hub #thong-tin-bao-gia {
  background: linear-gradient(145deg, #fff 0%, #fffaf4 100%);
}

.qdn-home-decision-hub #kiem-tra-truoc-ban-giao {
  background: linear-gradient(145deg, #fff 0%, #f9fbff 100%);
}

.qdn-home-decision-hub .qdn-sn-section-heading {
  max-width: 940px;
  margin-bottom: 20px;
}

.qdn-home-decision-hub .qdn-sn-section-heading h2 {
  max-width: 880px;
  margin: 0 0 10px;
  color: var(--qdn-home-navy);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.qdn-home-decision-hub .qdn-sn-section-heading > p:not(.qdn-sn-eyebrow) {
  max-width: 900px;
  margin: 0;
  color: #405575;
  font-size: 1rem;
  line-height: 1.65;
}

.qdn-home-decision-hub .qdn-sn-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 9px !important;
  padding: 5px 10px;
  border: 1px solid #f4c99e;
  border-radius: 999px;
  background: #fff7ef;
  color: #b75400;
  font-size: 0.74rem;
  line-height: 1.2;
}

/* wpautop inserts these BR nodes around inline links; hide only the layout noise. */
.qdn-home-decision-hub .qdn-sn-path-grid > br,
.qdn-home-decision-hub .qdn-sn-link-card > br {
  display: none !important;
}

.qdn-home-decision-hub .qdn-sn-path-grid,
.qdn-home-decision-hub .qdn-sn-link-grid {
  gap: 14px;
}

.qdn-home-decision-hub .qdn-sn-link-card {
  min-height: 0;
  padding: 20px;
  border-color: #d7e4f5;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 16px rgba(16, 42, 86, 0.045);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.qdn-home-decision-hub .qdn-sn-path-grid .qdn-sn-link-card {
  display: flex;
  min-height: 146px;
  flex-direction: column;
  padding-right: 54px;
}

.qdn-home-decision-hub .qdn-sn-link-grid .qdn-sn-link-card {
  min-height: 152px;
}

.qdn-home-decision-hub .qdn-sn-link-card strong {
  margin-bottom: 8px;
  color: var(--qdn-home-navy);
  font-size: 1.02rem;
  line-height: 1.35;
}

.qdn-home-decision-hub .qdn-sn-link-card span {
  color: #405575;
  line-height: 1.58;
}

.qdn-home-decision-hub .qdn-sn-link-card i {
  right: 18px;
  bottom: 16px;
  color: var(--qdn-home-blue);
  font-size: 1.3rem;
}

.qdn-home-decision-hub .qdn-sn-next-step,
.qdn-home-decision-hub .qdn-sn-contextual-sentence {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(235, 243, 255, 0.72);
  color: #29466f;
  line-height: 1.62;
}

.qdn-home-decision-hub #thong-tin-bao-gia .qdn-sn-next-step {
  background: rgba(255, 241, 226, 0.78);
}

.qdn-home-decision-hub .qdn-sn-reading-list ol {
  gap: 14px;
}

.qdn-home-decision-hub .qdn-sn-reading-list li {
  min-height: 132px;
  padding: 17px 18px;
  border-left-width: 4px;
  background: #fff8f1;
  box-shadow: 0 5px 16px rgba(91, 52, 14, 0.045);
}

@media (hover: hover) {
  .qdn-home-decision-hub .qdn-sn-path-grid .qdn-sn-link-card:hover {
    border-color: #8eb6ee;
    box-shadow: 0 12px 26px rgba(16, 42, 86, 0.12);
  }
}

@media (max-width: 849px) {
  .qdn-home-decision-hub {
    padding: 20px 0 38px;
  }

  .qdn-home-decision-hub > section {
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 20px;
  }

  .qdn-home-decision-hub .qdn-sn-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qdn-home-decision-hub .qdn-sn-link-grid .qdn-sn-link-card {
    min-height: 142px;
  }
}

@media (max-width: 549px) {
  .qdn-home-decision-hub {
    width: calc(100% - 20px);
    padding: 14px 0 30px;
  }

  .qdn-home-decision-hub > section {
    margin-bottom: 14px;
    padding: 19px 16px;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(16, 42, 86, 0.06);
  }

  .qdn-home-decision-hub .qdn-sn-section-heading {
    margin-bottom: 16px;
  }

  .qdn-home-decision-hub .qdn-sn-section-heading h2 {
    margin-bottom: 8px;
    font-size: 1.38rem;
    line-height: 1.28;
  }

  .qdn-home-decision-hub .qdn-sn-section-heading > p:not(.qdn-sn-eyebrow) {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .qdn-home-decision-hub .qdn-sn-eyebrow {
    min-height: 26px;
    margin-bottom: 8px !important;
    padding: 4px 9px;
    font-size: 0.68rem;
  }

  .qdn-home-decision-hub .qdn-sn-link-grid {
    grid-template-columns: 1fr;
  }

  .qdn-home-decision-hub .qdn-sn-path-grid,
  .qdn-home-decision-hub .qdn-sn-link-grid,
  .qdn-home-decision-hub .qdn-sn-reading-list ol {
    gap: 10px;
  }

  .qdn-home-decision-hub .qdn-sn-link-card,
  .qdn-home-decision-hub .qdn-sn-link-grid .qdn-sn-link-card,
  .qdn-home-decision-hub .qdn-sn-path-grid .qdn-sn-link-card {
    min-height: 0;
    padding: 15px;
    border-radius: 13px;
  }

  .qdn-home-decision-hub .qdn-sn-path-grid .qdn-sn-link-card {
    padding-right: 44px;
  }

  .qdn-home-decision-hub .qdn-sn-link-card strong {
    margin-bottom: 6px;
    font-size: 0.98rem;
  }

  .qdn-home-decision-hub .qdn-sn-link-card span {
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .qdn-home-decision-hub .qdn-sn-link-card i {
    right: 14px;
    bottom: 13px;
  }

  .qdn-home-decision-hub .qdn-sn-reading-list li {
    min-height: 0;
    padding: 14px 14px 14px 15px;
    line-height: 1.52;
  }

  .qdn-home-decision-hub .qdn-sn-next-step,
  .qdn-home-decision-hub .qdn-sn-contextual-sentence {
    margin-top: 14px;
    padding: 12px 13px;
    font-size: 0.94rem;
    line-height: 1.55;
  }
}
