/* === XXDQ Blocks styles (hero, category-grid, hot-products, etc.) === */

.xxdq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ────────────────────────────────────────────────── */
.xxdq-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B263B 60%, #11243a 100%);
  color: #fff;
  text-align: center;
}
.xxdq-hero--industrial-dark {
  background:
    linear-gradient(135deg, rgba(13,27,42,.85) 0%, rgba(27,38,59,.82) 60%, rgba(17,36,58,.85) 100%),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat,
    linear-gradient(135deg, #0D1B2A 0%, #1B263B 60%, #11243a 100%);
}
.xxdq-hero--light { background: linear-gradient(135deg, #f5f7fa 0%, #e9eef5 100%); color: #1A202C; }
.xxdq-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.xxdq-hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #F57C00;
  background: rgba(245, 124, 0, 0.10);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.xxdq-hero__title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}
.xxdq-hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0 0 36px;
}
.xxdq-hero--light .xxdq-hero__subtitle { color: #4A5568; }
.xxdq-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.xxdq-hero__btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all .2s;
  border: 2px solid transparent;
}
.xxdq-hero__btn--primary {
  background: #F57C00;
  color: #fff;
  border-color: #F57C00;
}
.xxdq-hero__btn--primary:hover {
  background: #E65100;
  border-color: #E65100;
  color: #fff;
}
.xxdq-hero__btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.xxdq-hero--light .xxdq-hero__btn--secondary {
  color: #1565C0;
  border-color: #1565C0;
}
.xxdq-hero__btn--secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.10);
}
.xxdq-hero--light .xxdq-hero__btn--secondary:hover {
  background: #1565C0;
  color: #fff;
}

/* ── STATS BAR ─────────────────────────────────────────── */
.xxdq-stats-bar {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 32px 0;
}
.xxdq-stats-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.xxdq-stats-bar__item {
  text-align: center;
  padding: 8px;
}
.xxdq-stats-bar__item strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #1565C0;
  margin-bottom: 4px;
}
.xxdq-stats-bar__item span {
  font-size: 14px;
  color: #4A5568;
}

/* ── SECTION TITLE ─────────────────────────────────────── */
.xxdq-section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 36px;
  color: #1A202C;
  position: relative;
  padding-bottom: 14px;
}
.xxdq-section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #F57C00;
  margin: 14px auto 0;
}

/* ── CATEGORY GRID ─────────────────────────────────────── */
.xxdq-category-grid {
  padding: 64px 0;
  background: #F4F6FA;
}
.xxdq-category-grid--sidebar { padding: 0; background: transparent; }
.xxdq-category-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.xxdq-category-grid--sidebar {
  grid-template-columns: 1fr;
  padding: 0;
}
.xxdq-category-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  text-decoration: none;
  color: #1A202C;
  text-align: left;
  transition: all .25s;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.xxdq-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  border-color: #1565C0;
}
.xxdq-category-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}
.xxdq-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.xxdq-category-card:hover .xxdq-category-card__media img {
  transform: scale(1.04);
}
.xxdq-category-card__body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.xxdq-category-card__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #1A202C;
}
.xxdq-category-card__desc {
  font-size: 13px;
  color: #4A5568;
  margin: 0 0 6px;
  line-height: 1.5;
  flex: 1;
}
.xxdq-category-card__arrow {
  display: inline-block;
  font-size: 22px;
  color: #1565C0;
  transition: transform .2s;
  align-self: flex-end;
}
.xxdq-category-card:hover .xxdq-category-card__arrow {
  transform: translateX(4px);
}

/* ── PRODUCT GRID ──────────────────────────────────────── */
.xxdq-hot-products,
.xxdq-category-archive {
  padding: 64px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.xxdq-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .xxdq-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .xxdq-product-grid { grid-template-columns: 1fr; }
}
.xxdq-product-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: #1A202C;
  text-align: center;
  transition: all .25s;
  border: 1px solid #E2E8F0;
  display: block;
}
.xxdq-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.xxdq-product-card img {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}
.xxdq-product-card__noimg {
  display: block;
  background: #F4F6FA;
  height: 160px;
  line-height: 160px;
  color: #999;
  margin-bottom: 12px;
  border-radius: 6px;
}
.xxdq-product-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

/* ── PROCESS STEPS ─────────────────────────────────────── */
.xxdq-process-steps {
  padding: 64px 0;
  background: #fff;
}
.xxdq-process-steps__list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
}
.xxdq-process-steps__item {
  text-align: center;
  padding: 24px 12px;
  background: #F4F6FA;
  border-radius: 10px;
  position: relative;
}
.xxdq-process-steps__num {
  display: block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  margin: 0 auto 12px;
  background: #1565C0;
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}
.xxdq-process-steps__label {
  font-size: 15px;
  font-weight: 600;
}

/* ── WHY US ────────────────────────────────────────────── */
.xxdq-why-us {
  padding: 64px 0;
  background: #F4F6FA;
}
.xxdq-why-us__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.xxdq-why-us__item {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.xxdq-why-us__icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.xxdq-why-us__item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.xxdq-why-us__item p {
  font-size: 14px;
  color: #4A5568;
  margin: 0;
}

/* ── CTA ───────────────────────────────────────────────── */
.xxdq-cta {
  padding: 60px 24px;
  margin: 60px auto;
  max-width: 1100px;
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: #fff;
  text-align: center;
  border-radius: 16px;
}
.xxdq-cta h2 { font-size: 32px; margin: 0 0 12px; }
.xxdq-cta p { font-size: 16px; opacity: 0.9; margin: 0 0 24px; }
.xxdq-cta__btn {
  display: inline-block;
  padding: 14px 36px;
  background: #F57C00;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all .2s;
}
.xxdq-cta__btn:hover { background: #E65100; }

/* ── In-page sections ────────────────────────────────── */
.xxdq-selector-tool,
.xxdq-pdf-aggregator,
.xxdq-tech-docs,
.xxdq-about,
.xxdq-contact-cards,
.xxdq-series-accordion,
.xxdq-catalog-hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}
.xxdq-about {
  background: #fff;
  border-radius: 12px;
  padding: 48px 32px;
}
.xxdq-contact-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.xxdq-contact-card {
  background: #F4F6FA;
  padding: 24px;
  border-radius: 10px;
}
.xxdq-contact-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #1565C0;
}
.xxdq-contact-card p {
  margin: 0;
  color: #4A5568;
}

/* ── Inquiry form ─────────────────────────────────────── */
.xxdq-inquiry-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.xxdq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.xxdq-inquiry-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1A202C;
  margin-bottom: 16px;
}
.xxdq-inquiry-form input,
.xxdq-inquiry-form textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  margin-top: 6px;
  box-sizing: border-box;
  font-family: inherit;
}
.xxdq-inquiry-form textarea { resize: vertical; min-height: 100px; }
.xxdq-form-submit {
  display: block;
  margin: 16px auto 0;
  padding: 14px 48px;
  background: #F57C00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.xxdq-form-submit:hover { background: #E65100; }

/* ── Empty / placeholder ─────────────────────────────── */
.xxdq-empty {
  text-align: center;
  padding: 60px 24px;
  color: #999;
  font-size: 16px;
}
.xxdq-empty::before { content: '📦 '; }

/* ── Product detail ──────────────────────────────────── */
.xxdq-product { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.xxdq-product h1 { font-size: 32px; margin: 0 0 8px; }
.xxdq-product__model { color: #4A5568; margin: 0 0 16px; }
.xxdq-product__tech, .xxdq-product__real {
  text-align: center;
  margin: 32px 0;
}
.xxdq-product__tech img, .xxdq-product__real img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}
.xxdq-product__specs {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
}
.xxdq-product__specs caption {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: left;
}
.xxdq-product__specs th, .xxdq-product__specs td {
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  text-align: left;
  font-size: 14px;
}
.xxdq-product__specs th {
  background: #F4F6FA;
  width: 30%;
  font-weight: 600;
  color: #4A5568;
}
.xxdq-product__pdf { text-align: center; margin: 32px 0; }
.xxdq-btn--pdf {
  display: inline-block;
  padding: 14px 32px;
  background: #1565C0;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}
.xxdq-btn--pdf:hover { background: #0D47A1; color: #fff; }
.xxdq-product__back {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}
.xxdq-product__back a {
  color: #1565C0;
  text-decoration: none;
}

/* ── Archive layout ─────────────────────────────────── */
/*
 * GeneratePress sets `.site-content { display: flex }` on every page so it can
 * lay out the optional left/right widget-area sidebars next to <main>. Our
 * product archive template does NOT use the WP widget sidebars — the sidebar
 * is built into the template itself (xxdq-product-archive__layout grid).
 * If we leave the page-level flex in place, the hero block and the layout
 * block become flex children side-by-side, crushing the hero into ~240px and
 * pushing the layout grid off to the right. Force the archive page back to
 * block flow so the hero spans full width and the layout sits below it.
 *
 * IMPORTANT: only override `.site-content` itself — the layout's own
 * `display: grid` (220px + 1fr) must remain intact, otherwise sidebar and
 * main collapse into a single column.
 */
.xxdq-product-page .site-content {
  display: block;
}
.xxdq-product-archive__hero {
  /* Full-width dark hero with a workshop / electrical-assembly photo
   * background. Matches the news / page hero treatment so every section
   * page shares the same chrome, while each picks its own subject.
   *
   * Background photo lives at /wp-content/uploads/2026/09/hero-products.jpg
   * (pre-downloaded, no third-party calls). The CSS keeps a gradient
   * fallback in case the file is missing. */
  text-align: left;
  padding: 110px 24px 90px;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13,27,42,.78) 0%, rgba(27,38,59,.50) 45%, rgba(17,36,58,.15) 100%),
    url('/wp-content/uploads/2026/09/hero-products.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0D1B2A 0%, #1B263B 60%, #11243a 100%);
  margin-bottom: 32px;
}
.xxdq-product-archive__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,0,0,0.30), transparent 55%);
  pointer-events: none;
}
.xxdq-product-archive__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.xxdq-product-archive__hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.15;
}
.xxdq-product-archive__lede {
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}
.xxdq-product-archive__layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .xxdq-product-archive__layout { grid-template-columns: 1fr; }
}

/* Breadcrumb wrapper — same 1200px cap as .xxdq-product-archive__layout
 * so the trail aligns with the sidebar/main grid below it. */
.xxdq-product-archive__bc,
.xxdq-product__bc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 16px;
}
.xxdq-product-archive__bc .xxp-breadcrumb,
.xxdq-product__bc .xxp-breadcrumb {
  margin-bottom: 0;            /* wrapper owns the bottom spacing */
}
.xxdq-product-archive__sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  height: fit-content;
}
.xxdq-product-archive__sidebar ul { list-style: none; margin: 0; padding: 0; }
.xxdq-product-archive__sidebar li {
  padding: 8px 0;
}
.xxdq-product-archive__sidebar a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #1A202C;
  font-size: 14px;
  font-weight: 500;
}
.xxdq-product-archive__sidebar li.is-active a {
  background: #1565C0;
  color: #fff;
}
.xxdq-product-archive__sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 4px 14px 12px;
  border-bottom: 1px solid #E2E8F0;
  color: #1A202C;
}
.xxdq-product-archive__count {
  float: right;
  color: #999;
  font-size: 12px;
  font-weight: 400;
}
.xxdq-product-archive__sidebar li.is-active .xxdq-product-archive__count {
  color: rgba(255,255,255,0.7);
}

/* ── Product list (grid cards) ──────────────────────── */
.xxdq-product-archive__main {
  min-width: 0;
}
.xxdq-product-group {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}
.xxdq-product-group__title {
  margin: 0;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  background: #F4F6FA;
  border-bottom: 1px solid #E2E8F0;
  color: #1A202C;
  position: relative;
}
.xxdq-product-group__title::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 4px;
  background: #1565C0;
  border-radius: 2px;
}
.xxdq-product-list {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.xxdq-product-list__item {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.xxdq-product-list__item:hover {
  border-color: #1565C0;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.12);
  transform: translateY(-2px);
}
.xxdq-product-list__item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1A202C;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.xxdq-product-list__item a:hover {
  background: #fff;
}
.xxdq-product-list__item a:hover .xxdq-product-list__arrow {
  color: #1565C0;
  transform: translateX(4px);
}

/* Thumbnail (top of card) */
.xxdq-product-list__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  background: #F4F6FA;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #F1F3F7;
}
.xxdq-product-list__thumb img,
.xxdq-product-list__thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text info block */
.xxdq-product-list__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  min-width: 0;
}
.xxdq-product-list__name {
  font-size: 14px;
  font-weight: 600;
  color: #1A202C;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xxdq-product-list__model {
  font-size: 12px;
  color: #1A202C;
  background: #E2E8F0;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xxdq-product-list__desc {
  display: none; /* hidden in grid mode — too cramped */
}
.xxdq-product-list__arrow {
  display: none; /* hidden in grid mode */
}

@media (max-width: 480px) {
  .xxdq-product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .xxdq-product-list__info { padding: 10px; gap: 4px; }
  .xxdq-product-list__name { font-size: 13px; }
}

/* ── Breadcrumb ─────────────────────────────────────── */
.xxdq-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13px;
  color: #718096;
}
.xxdq-breadcrumb a {
  color: #4A5568;
  text-decoration: none;
}
.xxdq-breadcrumb a:hover {
  color: #1565C0;
}
.xxdq-breadcrumb span {
  margin: 0 6px;
  color: #CBD5E0;
}
.xxdq-breadcrumb__current {
  color: #1A202C;
  font-weight: 500;
}

/* ── Product detail (2-column layout) ──────────────── */
.xxdq-product__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  border: 1px solid #E2E8F0;
  margin-bottom: 32px;
}
@media (max-width: 800px) {
  .xxdq-product__hero { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
}
.xxdq-product__gallery {
  position: sticky;
  top: 20px;
}
.xxdq-product__mainimg {
  display: block;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  overflow: hidden;
}
.xxdq-product__mainimg img {
  max-width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  display: inline-block;
}
.xxdq-product__mainimg--empty {
  height: 280px;
  line-height: 280px;
  color: #999;
  font-size: 14px;
}
.xxdq-product__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.xxdq-product__thumb {
  width: 70px;
  height: 70px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  padding: 4px;
  overflow: hidden;
}
.xxdq-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.xxdq-product__thumb.is-active {
  border-color: #1565C0;
}

.xxdq-product__title {
  font-size: 28px;
  margin: 0 0 8px;
  line-height: 1.3;
}
.xxdq-product__model {
  color: #4A5568;
  margin: 0 0 16px;
  font-size: 15px;
}
.xxdq-product__intro {
  color: #4A5568;
  margin: 0 0 20px;
  line-height: 1.7;
}
.xxdq-product__highlights {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.xxdq-product__highlights li {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1A202C;
}
.xxdq-product__highlights li span {
  display: block;
  font-size: 11px;
  color: #718096;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.xxdq-product__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.xxdq-btn--outline {
  background: #fff;
  border: 1px solid #1565C0;
  color: #1565C0;
}
.xxdq-btn--outline:hover {
  background: #1565C0;
  color: #fff;
}

/* ── Product detail: section blocks ─────────────────── */
.xxdq-product__section {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 24px 32px;
  margin-bottom: 24px;
}
.xxdq-product__section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
  color: #1A202C;
}
.xxdq-product__tech {
  margin: 0;
  text-align: center;
}
.xxdq-product__tech img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}
.xxdq-product__content {
  font-size: 15px;
  line-height: 1.8;
  color: #2D3748;
}

/* Prev / Next within category. */
.xxdq-product__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.xxdq-product__nav > div {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px 20px;
}
.xxdq-product__nav-prev { text-align: left; }
.xxdq-product__nav-next { text-align: right; }
.xxdq-product__nav a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.xxdq-product__nav-label {
  display: block;
  font-size: 12px;
  color: #718096;
  margin-bottom: 4px;
}
.xxdq-product__nav-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1565C0;
}
.xxdq-product__nav a:hover .xxdq-product__nav-title {
  text-decoration: underline;
}


/* ── Nav dropdown ────────────────────────────────────── */
.xxp-nav__has-sub { position: relative; }
.xxp-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 180px;
  padding: 8px 0;
  z-index: 100;
}
.xxp-nav__has-sub:hover .xxp-nav__dropdown { display: block; }
.xxp-nav__dropdown a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: #1A202C;
  font-size: 14px;
  white-space: nowrap;
}
.xxp-nav__dropdown a:hover {
  background: #F4F6FA;
  color: #1565C0;
}
.xxp-nav__caret { font-size: 10px; margin-left: 4px; }

/* ── Buttons (used in nav too) ─────────────────────── */
.xxdq-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all .2s;
  border: 2px solid transparent;
}
.xxdq-btn--primary { background: #F57C00; color: #fff; }
.xxdq-btn--primary:hover { background: #E65100; color: #fff; }
.xxdq-btn--sm { padding: 8px 18px; font-size: 13px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .xxdq-hero__title { font-size: 36px; }
  .xxdq-stats-bar__inner,
  .xxdq-why-us__grid,
  .xxdq-category-grid { grid-template-columns: repeat(2, 1fr); }
  .xxdq-process-steps__list { grid-template-columns: repeat(2, 1fr); }
  .xxdq-form-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   Phase 9 — Homepage rebuild blocks
   ════════════════════════════════════════════════════════════════════ */

/* HERO SLIDER ─────────────────────────────────────── */
.xxdq-hero-slider {
  position: relative;
  overflow: hidden;
  height: 540px;
  background: #0D1B2A;
}
.xxdq-hero-slider__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.xxdq-hero-slider__slide--active {
  opacity: 1;
}
.xxdq-hero-slider__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,11,13,.7), rgba(0,0,0,.4));
}
.xxdq-hero-slider__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding: 0 24px;
}
.xxdq-hero-slider__title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}
.xxdq-hero-slider__subtitle {
  font-size: 18px;
  margin: 0 0 32px;
  opacity: .9;
  line-height: 1.6;
}
.xxdq-hero-slider__btn {
  display: inline-block;
  padding: 14px 32px;
  background: #F57C00;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s;
}
.xxdq-hero-slider__btn:hover {
  background: #E65100;
  color: #fff;
  text-decoration: none;
}
.xxdq-hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,.4);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}
.xxdq-hero-slider__arrow:hover { background: rgba(0,0,0,.65); }
.xxdq-hero-slider__arrow--prev { left: 24px; }
.xxdq-hero-slider__arrow--next { right: 24px; }
.xxdq-hero-slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.xxdq-hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s;
}
.xxdq-hero-slider__dot--active { background: #F57C00; }

@media (max-width: 768px) {
  .xxdq-hero-slider { height: 380px; }
  .xxdq-hero-slider__title { font-size: 28px; }
  .xxdq-hero-slider__subtitle { font-size: 14px; }
  .xxdq-hero-slider__arrow { width: 36px; height: 36px; font-size: 18px; }
  .xxdq-hero-slider__arrow--prev { left: 12px; }
  .xxdq-hero-slider__arrow--next { right: 12px; }
}

/* APPLICATION FIELDS ──────────────────────────────── */
.xxdq-app-fields {
  padding: 80px 24px;
  background: #f7f8fa;
}
.xxdq-app-fields__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.xxdq-app-fields__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.xxdq-app-fields__card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #e5e7eb;
}
.xxdq-app-fields__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.xxdq-app-fields__icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}
.xxdq-app-fields__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1565C0;
}
.xxdq-app-fields__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 768px) {
  .xxdq-app-fields { padding: 48px 16px; }
  .xxdq-app-fields__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .xxdq-app-fields__card { padding: 24px 16px; }
  .xxdq-app-fields__icon { font-size: 36px; }
  .xxdq-app-fields__title { font-size: 16px; }
}

/* NEWS SECTION ────────────────────────────────────── */
.xxdq-news-section {
  padding: 80px 24px;
}
.xxdq-news-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.xxdq-news-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.xxdq-news-section__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.xxdq-news-section__card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.xxdq-news-section__date {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}
.xxdq-news-section__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.4;
}
.xxdq-news-section__title a {
  color: #1a1a1a;
  text-decoration: none;
}
.xxdq-news-section__title a:hover { color: #F57C00; }
.xxdq-news-section__excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.xxdq-news-section__more {
  display: inline-block;
  color: #F57C00;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}
.xxdq-news-section__more:hover { color: #E65100; }
.xxdq-news-section__footer {
  text-align: center;
  margin-top: 40px;
}
.xxdq-news-section__viewmore {
  display: inline-block;
  padding: 12px 32px;
  background: #1565C0;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.xxdq-news-section__viewmore:hover {
  background: #0D47A1;
  color: #fff;
  text-decoration: none;
}
.xxdq-news-section__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  font-size: 16px;
  padding: 40px 0;
}
@media (max-width: 768px) {
  .xxdq-news-section { padding: 48px 16px; }
  .xxdq-news-section__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* FOOTER 3-COLUMN (Phase 9) ──────────────────────── */
.xxdq-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 60px 24px 24px;
}
.xxdq-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.xxdq-footer__brand h4 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 16px;
  font-weight: 700;
}
.xxdq-footer__brand p {
  line-height: 1.8;
  margin: 0;
  font-size: 14px;
}
.xxdq-footer__col h5 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.xxdq-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.xxdq-footer__col li {
  margin-bottom: 10px;
}
.xxdq-footer__col a {
  color: #ccc;
  text-decoration: none;
  transition: color .2s;
  font-size: 14px;
}
.xxdq-footer__col a:hover { color: #F57C00; }
.xxdq-footer__products {
  line-height: 2;
  font-size: 14px;
  color: #999;
}
.xxdq-footer__bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.xxdq-footer__icp a {
  color: #999;
  text-decoration: none;
}
.xxdq-footer__icp a:hover { color: #F57C00; }
@media (max-width: 768px) {
  .xxdq-footer { padding: 40px 16px 20px; }
  .xxdq-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .xxdq-footer__bottom { flex-direction: column; gap: 4px; }
}

/* Section title (shared utility) ──────────────────── */
.xxdq-section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 48px;
  color: #1a1a1a;
}
@media (max-width: 768px) {
  .xxdq-section-title { font-size: 24px; margin-bottom: 32px; }
}

/* ── NEWS ARCHIVE PAGE (/news/) ─────────────────────
 * Template: plugins/xxdq-blocks/templates/archive-news.php
 * Same banner palette as the homepage hero (xxdq-hero--industrial-dark)
 * so the news page reads as part of the same brand.
 */

/* Suppress GeneratePress's flex container on news pages so the
 * banner can span the full content width and the list sits below
 * it (not side-by-side with it). Mirrors the xxdq-product-page trick. */
.xxdq-news-page .site-content {
  display: block !important;
}
.xxdq-news-page .right-sidebar,
.xxdq-news-page #right-sidebar {
  display: none !important;
}

/* Hero / banner ────────────────────────────────────────
 * All site heroes share the same dark-gradient + background-photo
 * treatment so the brand stays consistent. The CSS multi-layer
 * pattern is: photo (loaded from /wp-content/uploads/2026/09/hero-*.jpg
 * — pre-cached locally, no third-party calls) → solid gradient
 * fallback → 88% opaque dark overlay for white-text legibility.
 * If the local photo 404s, the gradient still renders cleanly.
 * Each hero also has min-height so the banner feels like a real
 * banner, and a left-aligned inner container that mirrors the
 * 1200px cap of the content below for visual rhythm.
 */
.xxdq-news-archive__hero {
  background:
    /* Directional overlay: darker on the left (where the title sits, for
     * white-text legibility), fading to near-transparent on the right so
     * the photo (the warehouse shot) actually shows. The radial ::before
     * below adds a soft top-left vignette on top. */
    linear-gradient(90deg, rgba(13,27,42,.78) 0%, rgba(27,38,59,.50) 45%, rgba(17,36,58,.15) 100%),
    url('/wp-content/uploads/2026/09/hero-news.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0D1B2A 0%, #1B263B 60%, #11243a 100%);
  color: #fff;
  padding: 110px 24px 90px;
  min-height: 360px;
  display: flex;
  align-items: center;
  text-align: left;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.xxdq-news-archive__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,0,0,0.30), transparent 55%);
  pointer-events: none;
}
.xxdq-news-archive__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.xxdq-news-archive__hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 1px;
  line-height: 1.15;
}
.xxdq-news-archive__lede {
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  margin: 0;
  line-height: 1.7;
  max-width: 720px;
}

/* Container + main layout */
.xxdq-news-archive__container {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.xxdq-news-archive__layout {
  margin-top: 28px;
}

/* News card list */
.xxdq-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xxdq-news-list__item {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  transition: all .2s ease;
  overflow: hidden;
}
.xxdq-news-list__item:hover {
  border-color: #1565C0;
  box-shadow: 0 6px 20px rgba(21,101,192,0.12);
  transform: translateY(-2px);
}
.xxdq-news-list__inner {
  display: grid;
  grid-template-columns: 100px 1fr 32px;
  gap: 24px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.xxdq-news-list__date {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  color: #fff;
  padding: 12px 8px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
}
.xxdq-news-list__day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.xxdq-news-list__year {
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}
.xxdq-news-list__title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1A202C;
  font-weight: 600;
  line-height: 1.4;
  transition: color .2s ease;
}
.xxdq-news-list__item:hover .xxdq-news-list__title {
  color: #1565C0;
}
.xxdq-news-list__excerpt {
  margin: 0;
  color: #4A5568;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xxdq-news-list__arrow {
  color: #CBD5E0;
  font-size: 32px;
  text-align: center;
  line-height: 1;
  transition: all .2s ease;
}
.xxdq-news-list__item:hover .xxdq-news-list__arrow {
  color: #1565C0;
  transform: translateX(4px);
}

/* Pagination */
.xxdq-pagination {
  margin-top: 40px;
  text-align: center;
}
.xxdq-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  color: #1A202C;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  transition: all .2s ease;
}
.xxdq-pagination .page-numbers:hover {
  border-color: #1565C0;
  color: #1565C0;
}
.xxdq-pagination .page-numbers.current {
  background: #1565C0;
  color: #fff;
  border-color: #1565C0;
}

/* Empty state */
.xxdq-news-empty {
  background: #fff;
  border-radius: 10px;
  padding: 80px 24px;
  text-align: center;
  color: #4A5568;
  border: 1px solid #E2E8F0;
  font-size: 16px;
}

@media (max-width: 640px) {
  .xxdq-news-archive__hero { padding: 70px 20px 50px; min-height: 280px; }
  .xxdq-news-archive__hero h1 { font-size: 32px; }
  .xxdq-news-single__hero { padding: 60px 20px 44px; }
  .xxdq-product-archive__hero { padding: 70px 20px 50px; min-height: 280px; }
  .xxdq-product-archive__hero h1 { font-size: 32px; }
  .xxdq-page-hero { padding: 70px 20px 50px; min-height: 240px; }
  .xxdq-page-hero h1 { font-size: 32px; }
  .xxdq-news-archive__container { padding: 0 16px 60px; }
  .xxdq-news-list__inner {
    grid-template-columns: 64px 1fr 24px;
    gap: 14px;
    padding: 16px;
  }
  .xxdq-news-list__day { font-size: 22px; }
  .xxdq-news-list__year { font-size: 10px; }
  .xxdq-news-list__date { min-height: 60px; }
  .xxdq-news-list__title { font-size: 15px; }
  .xxdq-news-list__excerpt {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }
}

/* ── GENERIC PAGE HERO (/about/, /contact/, /inquiry/, etc.) ──────
 * Template: plugins/xxdq-blocks/templates/page.php
 * Same dark gradient brand as the news hero — every page on the site
 * (except the home page) wears the same hero so the look stays consistent.
 *
 * The background photo is set per-page via an inline `style="background-image:url(...)"`
 * (the template picks from /wp-content/uploads/2026/09/hero-about.jpg,
 *  hero-contact.jpg, hero-inquiry.jpg based on the page slug), so the
 * CSS below only ships the gradient fallback and overlay. */

/* GeneratePress wraps every page in `.site-content { display: flex }` so it
 * can place optional widget-area sidebars next to <main>. We don't want any
 * sidebars on these pages, but we still need the hero to be a normal block
 * child (not a flex item crushed against the main column). Force the
 * parent back to block layout and neutralize the GP sidebar columns. */
.xxdq-page,
.xxdq-page .site-content { display: block; }
.xxdq-page #left-sidebar,
.xxdq-page #right-sidebar { display: none !important; }
.xxdq-page .content-area { width: 100%; margin: 0; padding: 0; }

/* News archive + single + product archive + taxonomy templates use their
 * own templates (no `xxdq-page` body class) so we duplicate the same
 * neutralisation here. We also have to break the GP `.site-content` 1200px
 * max-width container — otherwise the dark hero renders as a 1200px-wide
 * block in the middle of the page instead of spanning edge-to-edge like
 * the other section heroes. */
.xxdq-news-page .site-content,
.xxdq-product-page .site-content {
  display: block;
  max-width: 100%;
  width: 100%;
  padding: 0;
}
.xxdq-news-page #left-sidebar,
.xxdq-news-page #right-sidebar,
.xxdq-product-page #left-sidebar,
.xxdq-product-page #right-sidebar { display: none !important; }
.xxdq-news-page .content-area,
.xxdq-news-page .inside-article,
.xxdq-product-page .content-area,
.xxdq-product-page .inside-article { width: 100%; max-width: 100%; margin: 0; padding: 0; }

.xxdq-page-hero {
  /* Inline `style="background-image:linear-gradient(...),url('...')"` from
   * page.php sets the per-page photo. CSS below is the fallback gradient
   * for cases when the inline style is missing or the photo 404s. */
  background:
    linear-gradient(90deg, rgba(13,27,42,.78) 0%, rgba(27,38,59,.50) 45%, rgba(17,36,58,.15) 100%),
    linear-gradient(135deg, #0D1B2A 0%, #1B263B 60%, #11243a 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 110px 24px 90px;
  min-height: 360px;
  display: flex;
  align-items: center;
  text-align: left;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.xxdq-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,0,0,0.30), transparent 55%);
  pointer-events: none;
}
.xxdq-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.xxdq-page-hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.15;
}
.xxdq-page-hero__lede {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 720px;
}
@media (max-width: 640px) {
  .xxdq-page-hero { padding: 60px 20px 40px; min-height: 240px; }
  .xxdq-page-hero h1 { font-size: 30px; }
  .xxdq-page-hero__lede { font-size: 15px; }
}

/* Breadcrumb wrapper below the page hero — same 1200px cap as news/product. */
.xxp-page-bc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
}
.xxp-page-bc .xxp-breadcrumb {
  margin-bottom: 0;
}

/* Page content area — give blocks breathing room and consistent max-width
 * for page-only blocks (xxdq-about, xxdq-why-us, xxdq-contact-cards,
 * xxdq-cta). Blocks already carry their own padding/margin, so this wrapper
 * mostly exists to constrain the inquiry form which would otherwise
 * stretch full-width. */
.xxdq-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
@media (max-width: 640px) {
  .xxdq-page-content { padding: 0 16px 40px; }
}

/* The hero already shows the page title (h1). The first block in the page
 * body (xxdq-about / xxdq-contact-cards / xxdq-inquiry-form) repeats that
 * title as an h2 — visually redundant. Hide it so the block content starts
 * with the lead paragraph / contact cards directly.  Scoped to the page
 * content wrapper so it never bleeds into the news/product templates. */
.xxdq-page-content .xxdq-about > h2:first-child,
.xxdq-page-content .xxdq-contact-cards > h2:first-child,
.xxdq-page-content .xxdq-inquiry-form > h2:first-child { display: none; }


/* ── NEWS SINGLE PAGE (/news/{slug}/) ─────────────────────
 * Template: plugins/xxdq-blocks/templates/single-news.php
 * Reuses the archive's dark gradient hero (same brand) but switches to a
 * centered reading column for the article body.
 */
.xxdq-news-single__hero {
  /* Override archive hero for the single-article view. Same dark gradient
   * + new warehouse photo (matches the archive hero so the two pages feel
   * related, just with a tighter padding for an article header). */
  padding: 80px 24px 56px;
  margin-bottom: 24px;
  background:
    linear-gradient(90deg, rgba(13,27,42,.78) 0%, rgba(27,38,59,.50) 45%, rgba(17,36,58,.15) 100%),
    url('/wp-content/uploads/2026/09/hero-news.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0D1B2A 0%, #1B263B 60%, #11243a 100%);
}

.xxdq-news-single__container {
  max-width: 820px;            /* narrower column for readable prose */
  margin: 0 auto 80px;
  padding: 0 24px;
}

.xxdq-news-single {
  background: #fff;
  border-radius: 10px;
  padding: 48px 56px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.xxdq-news-single__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
  color: #1A202C;
}

.xxdq-news-single__meta {
  font-size: 14px;
  color: #4A5568;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E2E8F0;
}
.xxdq-news-single__sep { color: #CBD5E0; }

.xxdq-news-single__hero-img {
  margin: 0 0 32px;
  border-radius: 8px;
  overflow: hidden;
  background: #F4F6FA;
}
.xxdq-news-single__hero-img img {
  width: 100%;
  height: auto;
  display: block;
}
.xxdq-news-single__caption {
  font-size: 13px;
  color: #4A5568;
  text-align: center;
  padding: 10px 12px;
  background: rgba(244, 246, 250, 0.6);
}

.xxdq-news-single__content {
  font-size: 16px;
  line-height: 1.85;
  color: #2D3748;
}
.xxdq-news-single__content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: #1A202C;
  line-height: 1.4;
}
.xxdq-news-single__content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #1A202C;
  line-height: 1.4;
}
.xxdq-news-single__content h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: #1A202C;
}
.xxdq-news-single__content p {
  margin: 0 0 18px;
}
.xxdq-news-single__content ul,
.xxdq-news-single__content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.xxdq-news-single__content li {
  margin-bottom: 8px;
}
.xxdq-news-single__content a {
  color: #1565C0;
  text-decoration: none;
  border-bottom: 1px solid rgba(21, 101, 192, 0.3);
  transition: border-color .2s ease;
}
.xxdq-news-single__content a:hover {
  border-bottom-color: #1565C0;
}
.xxdq-news-single__content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 24px auto;
}
.xxdq-news-single__content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: #F4F6FA;
  border-left: 4px solid #1565C0;
  color: #4A5568;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}
.xxdq-news-single__content code {
  background: #F4F6FA;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: #C7254E;
  font-family: Consolas, Monaco, monospace;
}
.xxdq-news-single__content pre {
  background: #1a1a1a;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 24px 0;
}
.xxdq-news-single__content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.xxdq-news-single__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.xxdq-news-single__content th,
.xxdq-news-single__content td {
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  text-align: left;
}
.xxdq-news-single__content th {
  background: #F4F6FA;
  font-weight: 600;
}

.xxdq-news-single__pages {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed #E2E8F0;
  font-size: 14px;
  color: #4A5568;
}
.xxdq-news-single__page-num {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 4px;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  background: #fff;
}

.xxdq-news-single__footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #E2E8F0;
}
.xxdq-news-single__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.xxdq-news-single__nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  text-decoration: none;
  color: #1A202C;
  transition: all .2s ease;
  background: #fff;
  min-height: 64px;
  justify-content: center;
}
.xxdq-news-single__nav-link--next {
  text-align: right;
}
.xxdq-news-single__nav-link:hover {
  border-color: #1565C0;
  color: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.10);
}
.xxdq-news-single__nav-link--empty {
  background: transparent;
  border: 1px dashed #E2E8F0;
  cursor: default;
}
.xxdq-news-single__nav-link--empty:hover {
  transform: none;
  border-color: #E2E8F0;
  box-shadow: none;
}
.xxdq-news-single__nav-label {
  font-size: 12px;
  color: #4A5568;
  font-weight: 500;
}
.xxdq-news-single__nav-link:hover .xxdq-news-single__nav-label,
.xxdq-news-single__nav-link:hover .xxdq-news-single__nav-title {
  color: #1565C0;
}
.xxdq-news-single__nav-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
}
.xxdq-news-single__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: #1565C0;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 64px;
  transition: background .2s ease;
}
.xxdq-news-single__back:hover {
  background: #0D47A1;
}

@media (max-width: 768px) {
  .xxdq-news-single__hero { padding: 50px 20px 36px; }
  .xxdq-news-single__container { padding: 0 16px 60px; }
  .xxdq-news-single { padding: 28px 20px; }
  .xxdq-news-single__title { font-size: 24px; }
  .xxdq-news-single__nav {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .xxdq-news-single__nav-link--next { text-align: center; }
  .xxdq-news-single__back {
    justify-self: center;
    order: -1;
    margin-bottom: 8px;
  }
}
