/*
Theme Name: NTS Theme
Theme URI: https://rackmountnts.com
Author: New Tech Solutions
Author URI: https://rackmountnts.com
Description: Custom WooCommerce theme for New Tech Solutions - AI & HPC Infrastructure
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nts-theme
Tags: woocommerce, custom-theme, e-commerce, technology
*/

/* ===================================
   CSS VARIABLES (matching rackmountnts.com)
   =================================== */
:root {
  --blue-900: #003b86;
  --blue-700: #004b9d;
  --blue-500: #1f67be;
  --blue-100: #e8effa;
  --line: #d4dbe8;
  --text: #1b2431;
  --muted: #5f6e82;
  --green: #9caf3b;
  --green-dark: #85972f;
  --bg: #f6f8fc;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(17, 49, 95, 0.08);
  --shadow-lg: 0 16px 40px rgba(17, 49, 95, 0.1);
}

/* ===================================
   RESET & BASE
   =================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-900);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--muted); }

ul, ol { padding-left: 1.2em; }

/* ===================================
   PAGE WRAPPER
   =================================== */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.container {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

/* ===================================
   HEADER / TOPBAR
   =================================== */
.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(17,49,95,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-branding img {
  height: 50px;
  width: auto;
}

.site-branding .brand-text strong {
  display: block;
  font-size: 18px;
  color: var(--blue-900);
  line-height: 1.1;
}

.site-branding .brand-text span {
  font-size: 11px;
  color: var(--muted);
}

/* Main Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}

.main-navigation ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #455972;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-page-ancestor > a {
  color: var(--blue-700);
  background: var(--blue-100);
}

/* Dropdown */
.main-navigation ul li {
  position: relative;
}

.main-navigation ul ul,
.main-navigation ul .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17,49,95,0.14);
  min-width: 230px;
  padding: 6px;
  gap: 0;
  z-index: 200;
  /* smooth open */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateX(-50%) translateY(6px);
}

/* arrow pointer at top */
.main-navigation ul ul::before,
.main-navigation ul .sub-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top: 0;
  border-bottom-color: var(--line);
}

.main-navigation ul ul::after,
.main-navigation ul .sub-menu::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li:hover > .sub-menu,
.main-navigation ul li:focus-within > ul,
.main-navigation ul li:focus-within > .sub-menu {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.main-navigation ul ul li,
.main-navigation ul .sub-menu li {
  width: 100%;
}

.main-navigation ul ul li a,
.main-navigation ul .sub-menu li a {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  color: var(--text);
  white-space: nowrap;
}

.main-navigation ul ul li a:hover,
.main-navigation ul .sub-menu li a:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

/* keep first-level dropdowns left-aligned when near edge */
.main-navigation ul > li:first-child > ul,
.main-navigation ul > li:first-child > .sub-menu,
.main-navigation ul > li:nth-child(2) > ul,
.main-navigation ul > li:nth-child(2) > .sub-menu {
  left: 0;
  transform: translateX(0);
}

.main-navigation ul > li:first-child > ul::before,
.main-navigation ul > li:nth-child(2) > ul::before,
.main-navigation ul > li:first-child > .sub-menu::before,
.main-navigation ul > li:nth-child(2) > .sub-menu::before {
  left: 24px;
  transform: none;
}

.main-navigation ul > li:first-child > ul::after,
.main-navigation ul > li:nth-child(2) > ul::after,
.main-navigation ul > li:first-child > .sub-menu::after,
.main-navigation ul > li:nth-child(2) > .sub-menu::after {
  left: 25px;
  transform: none;
}

/* right-align last dropdowns */
.main-navigation ul > li:last-child > ul,
.main-navigation ul > li:last-child > .sub-menu,
.main-navigation ul > li:nth-last-child(2) > ul,
.main-navigation ul > li:nth-last-child(2) > .sub-menu {
  left: auto;
  right: 0;
  transform: none;
}

.main-navigation ul > li:hover:nth-last-child(2) > ul,
.main-navigation ul > li:hover:last-child > ul {
  transform: none;
}

.main-navigation ul > li:last-child > ul::before,
.main-navigation ul > li:nth-last-child(2) > ul::before,
.main-navigation ul > li:last-child > .sub-menu::before,
.main-navigation ul > li:nth-last-child(2) > .sub-menu::before {
  left: auto;
  right: 24px;
  transform: none;
}

.main-navigation ul > li:last-child > ul::after,
.main-navigation ul > li:nth-last-child(2) > ul::after,
.main-navigation ul > li:last-child > .sub-menu::after,
.main-navigation ul > li:nth-last-child(2) > .sub-menu::after {
  left: auto;
  right: 25px;
  transform: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-cart a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--blue-100);
  text-decoration: none;
  transition: all 0.18s ease;
}

.header-cart a:hover {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
}

.header-cart .cart-count {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--blue-900);
  font-size: 16px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn,
button.button,
input[type="submit"],
a.button {
  display: inline-block;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  line-height: 1.4;
}

.btn:hover,
button.button:hover,
input[type="submit"]:hover,
a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17, 51, 92, 0.18);
}

.btn-primary,
button.button,
input[type="submit"],
a.button {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  color: #fff !important;
}

.btn-primary:hover,
button.button:hover,
input[type="submit"]:hover,
a.button:hover {
  background: var(--blue-700);
  color: #fff !important;
}

.btn-green {
  background: var(--green);
  color: #fff !important;
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: #24436f !important;
}

.btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-700) !important;
}

.btn-dark {
  background: #0e2f62;
  color: #fff !important;
}

/* Add to Cart buttons */
.single_add_to_cart_button,
.add_to_cart_button {
  background: var(--green) !important;
  color: #fff !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  transition: all 0.18s ease !important;
}

.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(133, 151, 47, 0.3) !important;
}

/* ===================================
   HERO SECTION (Home / Knowledge base Banner)
   =================================== */
.hero-section {
  background: radial-gradient(circle at 80% 20%, #eef4ff 0%, #ffffff 55%);
  padding: 48px 40px;
  border-bottom: 1px solid var(--line);
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-section h1 {
  font-size: clamp(28px, 3vw, 44px);
  color: var(--blue-900);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-section h2 {
  font-size: clamp(16px, 1.6vw, 22px);
  color: #1d4583;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-visual {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(90deg, #111 0 6px, #171717 6px 12px), linear-gradient(#222, #111);
  border-radius: 6px;
  border: 3px solid #333;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

.server-visual::before {
  content: "";
  position: absolute;
  inset: 20px 18px auto;
  height: 36px;
  background: repeating-linear-gradient(90deg, #2a2a2a 0 4px, #0f0f0f 4px 7px);
  border: 1px solid #444;
}

.server-visual::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 18px;
  right: 18px;
  height: 10px;
  background: repeating-linear-gradient(90deg, #1f3a6e 0 3px, #0a1a3a 3px 6px);
  border-radius: 2px;
}

/* ===================================
   PAGE LAYOUT
   =================================== */
.page-wrap-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 20px;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.content-full {
  width: 100%;
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.woocommerce-breadcrumb a,
.breadcrumbs a {
  color: var(--blue-500);
}

/* ===================================
   WOOCOMMERCE SHOP PAGE
   =================================== */
.woocommerce-products-header {
  margin-bottom: 24px;
}

.woocommerce-products-header__title {
  font-size: 28px;
  color: var(--blue-900);
}

/* Knowledge base toolbar */
.woocommerce-ordering,
.woocommerce-result-count {
  font-size: 13px;
  color: var(--muted);
}

.woocommerce-ordering select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
  background: #fff;
  font-family: "Inter", Arial, sans-serif;
}

/* Products Grid */
ul.products,
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.products li.product,
.products .product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

ul.products li.product:hover,
.products .product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17, 49, 95, 0.14);
}

/* Product Image */
ul.products li.product .woocommerce-loop-product__link,
.products .product .woocommerce-loop-product__link {
  display: block;
  text-decoration: none;
}

ul.products li.product img,
.products .product img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8fafd;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.product-inner {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Product Title */
ul.products li.product .woocommerce-loop-product__title,
.products .product h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 14px 16px 0;
}

/* Product Category */
.product-category-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  padding: 8px 16px 0;
}

/* Price */
ul.products li.product .price,
.products .product .price {
  color: var(--blue-900);
  font-size: 15px;
  font-weight: 700;
  padding: 4px 16px 10px;
}

ul.products li.product .price del,
.products .product .price del {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-right: 6px;
}

ul.products li.product .price ins,
.products .product .price ins {
  text-decoration: none;
  color: var(--blue-900);
}

/* Add to Cart on loop */
ul.products li.product .button,
.products .product .button {
  margin: auto 16px 16px !important;
  display: block !important;
  text-align: center !important;
  width: calc(100% - 32px) !important;
  padding: 9px 14px !important;
}

/* Product badges */
.onsale {
  background: var(--green) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
}

/* ===================================
   SINGLE PRODUCT PAGE
   =================================== */
.single-product .product {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.woocommerce-product-gallery {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.woocommerce-product-gallery img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.summary .product_title {
  font-size: clamp(18px, 2vw, 26px);
  color: var(--blue-900);
  margin-bottom: 12px;
}

.summary .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 16px;
  display: block;
}

.summary .price del {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  margin-right: 8px;
}

.woocommerce-product-details__short-description {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.woocommerce-product-details__short-description ul {
  margin: 8px 0;
}

.woocommerce-product-details__short-description li {
  margin-bottom: 4px;
  color: var(--muted);
}

/* Quantity */
.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.quantity label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.qty {
  width: 70px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  text-align: center;
}

/* Product meta */
.product_meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.product_meta span {
  display: block;
  margin-bottom: 4px;
}

.product_meta a {
  color: var(--blue-500);
}

/* Product tabs */
.woocommerce-tabs {
  margin-top: 40px;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid var(--line);
  gap: 0;
}

.woocommerce-tabs ul.tabs li {
  margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  transition: all 0.18s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--blue-700);
  border-color: var(--line);
  border-bottom-color: #fff;
  background: #fff;
}

.woocommerce-tabs .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px;
}

.woocommerce-tabs .panel h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

/* Related products */
.related.products,
.upsells.products {
  margin-top: 48px;
  clear: both;
}

.related.products > h2,
.upsells.products > h2 {
  font-size: 22px;
  color: var(--blue-900);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

/* ===== RELATED PRODUCTS — CUSTOM NTS GRID ===== */

.nts-related-section {
  margin-top: 48px;
  clear: both;
}

.nts-related-section > h2 {
  font-size: 22px;
  color: var(--blue-900);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.nts-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.nts-related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nts-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17, 49, 95, 0.14);
}

.nts-related-img-link {
  display: block;
  text-decoration: none;
}

.nts-related-img-link img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 16px;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
  display: block;
  transition: opacity 0.2s ease;
}

.nts-related-card:hover .nts-related-img-link img {
  opacity: 0.88;
}

.nts-related-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nts-related-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 4px;
  display: block;
}

.nts-related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nts-related-title a {
  color: inherit;
  text-decoration: none;
}

.nts-related-title a:hover {
  color: var(--blue-500);
}

.nts-related-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
}

.nts-related-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  font-size: 12px;
  padding: 8px 10px;
}

@media (max-width: 960px) {
  .nts-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .nts-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar .widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.sidebar .widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* WooCommerce widget styles */
.widget_product_search .woocommerce-product-search {
  display: flex;
  gap: 6px;
}

.widget_product_search input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: "Inter", Arial, sans-serif;
}

.widget_product_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_product_categories ul li {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.widget_product_categories ul li:last-child {
  border-bottom: none;
}

.widget_product_categories ul li a {
  font-size: 13px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget_product_categories ul li a:hover {
  color: var(--blue-700);
}

.widget_price_filter .price_slider_wrapper {
  padding: 10px 0;
}

/* ===================================
   CART PAGE
   =================================== */
.woocommerce-cart .woocommerce {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

table.knowledge base_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.knowledge base_table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--line);
}

table.knowledge base_table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.knowledge base_table tr:last-child td {
  border-bottom: none;
}

.product-thumbnail img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f8fafd;
  border-radius: 6px;
  padding: 6px;
  border: 1px solid var(--line);
}

a.remove {
  color: #c0392b !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* Cart totals */
.cart_totals {
  background: var(--blue-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}

.cart_totals h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--blue-900);
}

/* ===================================
   CHECKOUT PAGE
   =================================== */
.woocommerce-checkout .woocommerce {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading {
  font-size: 18px;
  color: var(--blue-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  transition: border-color 0.18s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(31, 103, 190, 0.12);
}

/* ===================================
   CARDS (generic)
   =================================== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 16px;
  color: var(--blue-900);
  margin-bottom: 10px;
}

.card h3 i {
  margin-right: 8px;
  color: var(--blue-500);
}

.card p, .card li {
  font-size: 13px;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card li {
  margin-bottom: 5px;
}

/* ===================================
   HOME PAGE SECTIONS
   =================================== */
.section-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-section {
  padding: 40px 20px;
  border-bottom: 1px solid var(--line);
  max-width: 1300px;
  margin: 0 auto;
}

.home-section h2 {
  font-size: 24px;
  color: var(--blue-900);
  margin-bottom: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.icon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-900);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.icon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 49, 95, 0.12);
}

.icon-card span {
  display: block;
  font-size: 26px;
  color: var(--blue-500);
  margin-bottom: 10px;
}

/* Bottom CTA */
.bottom-cta {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
}

.bottom-cta h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 10px;
}

.bottom-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 24px;
}

.bottom-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================================
   NOTICES
   =================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.woocommerce-message {
  background: #f0f9e8;
  border: 1px solid var(--green);
  color: #3a5213;
}

.woocommerce-info {
  background: var(--blue-100);
  border: 1px solid var(--blue-500);
  color: var(--blue-900);
}

.woocommerce-error {
  background: #fff0f0;
  border: 1px solid #e74c3c;
  color: #c0392b;
  list-style: none;
  margin: 0 0 20px;
  padding: 14px 18px;
}

/* ===================================
   PAGINATION
   =================================== */
.woocommerce-pagination ul,
nav.woocommerce-pagination ul {
  display: flex;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  gap: 6px;
  justify-content: center;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.18s ease;
  background: #fff;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 0;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand-col img {
  height: 50px;
  width: auto;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-domain {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.3;
  margin-top: 16px;
}
.footer-brand-col p {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.footer-col h5 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 7px;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-bottom-info span {
  display: inline-flex;
  align-items: center;
}
.footer-bottom-info span + span::before {
  content: "|";
  color: rgba(255,255,255,0.15);
  margin-right: 8px;
}
.footer-bottom-info a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-bottom-info a:hover {
  color: #fff;
}

/* ===================================
   FORMS
   =================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(31, 103, 190, 0.12);
}

/* ===================================
   WOOCOMMERCE ACCOUNT
   =================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 11px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: all 0.18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--blue-100);
  color: var(--blue-700);
}

.woocommerce-account .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ===================================
   LOADING & MISC
   =================================== */
.blockUI.blockOverlay {
  background: rgba(246, 248, 252, 0.7) !important;
}

.woocommerce-loop-category__title {
  font-size: 15px;
  color: var(--blue-900);
  font-weight: 600;
}

/* Category cards */
ul.product-categories li.product-cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

ul.product-categories li.product-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(17, 49, 95, 0.14);
}

/* Star rating */
.star-rating {
  color: var(--green) !important;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 900px) {
  .hero-section .container {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    display: none;
  }

  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .single-product .product {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout .woocommerce {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .two-col, .three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .main-navigation {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  ul.products,
  .products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  ul.products,
  .products {
    grid-template-columns: 1fr 1fr;
  }

  .hero-section {
    padding: 28px 20px;
  }
}

/* ===================================================
   SINGLE PRODUCT PAGE — NTS Layout  (v2)
   =================================================== */

/* Breadcrumb */
.sp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  padding: 8px 0 6px;
  margin: 0 0 8px;
}
.sp-breadcrumb a { color: var(--blue-500); }
.sp-breadcrumb a:hover { text-decoration: underline; }
.sp-breadcrumb span { color: var(--muted); }
.sp-breadcrumb-current { color: var(--blue-900); font-weight: 600; }

/* Section eyebrow */
.sp-section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-500);
  margin-bottom: 6px;
}
.sp-center { text-align: center; }
.sp-section-sub.sp-center { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Section with light bg */
.sp-section-bg {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--line);
}

/* Quick specs below subtitle */
.sp-quick-specs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
}
.sp-qs-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.sp-qs-item i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* Hero badge */
.sp-hero-image { position: relative; }
.sp-hero-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-900);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-hero-badge i { color: #f9c74f; }

/* Cat tag */
.sp-cat-tag {
  display: inline-flex;
  align-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Badge colours */
.sp-badge-blue   { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.sp-badge-green  { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.sp-badge-yellow { background: #fefce8; color: #854d0e; border-color: #fde68a; }

/* CTA row gap */
.sp-cta-row { gap: 12px; }
.sp-cta-row .btn i { margin-right: 7px; }
.sp-cta-row .btn {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Feature body */
.sp-feature-body strong { font-size: 14px; color: var(--blue-900); display: block; margin-bottom: 3px; }
.sp-feature-body p { font-size: 12px; color: var(--muted); margin: 0; }
.sp-feature-body strong { font-size: 16px; font-weight: 800; line-height: 1.3; }
.sp-feature-body p { font-size: 13px; line-height: 1.65; }

/* Workload icon circle */
.sp-workload-icon {
  width: 38px;
  height: 38px;
  background: var(--blue-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--blue-500);
  flex-shrink: 0;
}

/* Service list icon colours */
.sp-service-list li i { color: var(--green); }

/* Knowledge base links block */
.sp-kb-section {
  margin-top: 10px;
  margin-bottom: 28px;
}
.sp-kb-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sp-kb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--blue-900);
  font-weight: 600;
  text-decoration: none;
}
.sp-kb-link i { color: var(--blue-500); font-size: 14px; }
.sp-kb-link em { margin-left: auto; font-style: normal; color: var(--muted); }
.sp-kb-link:hover {
  border-color: #b9c8df;
  box-shadow: 0 4px 14px rgba(17,49,95,.08);
}

/* Hero section (match provided reference) */
.sp-hero {
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: stretch;
  padding: 26px 0 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding-left: 42px;
  padding-right: 42px;
}
.sp-hero-text {
  padding-right: 8px;
}
.sp-hero-side {
  padding-left: 8px;
}
.sp-title {
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 10px;
}
.sp-part-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  color: #365274;
}
.sp-part-number span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #4f6b8c;
}
.sp-part-number strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f3d77;
}
.sp-hero-h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f2f46;
  margin: 0 0 14px;
  max-width: 760px;
}
.sp-subtitle {
  max-width: 500px;
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.sp-hero-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 14px;
  color: #334155;
  width: 100%;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-hero-footnote i {
  color: var(--blue-500);
  font-size: 13px;
  flex: 0 0 auto;
}
.sp-hero-footnote span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-cta-row {
  margin-bottom: 18px;
}
.sp-cta-main,
.sp-cta-sec {
  min-height: 50px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-hero-guides {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.sp-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
}
.sp-guide-link i {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--blue-700);
  background: #f8fbff;
}
.sp-guide-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  max-width: 100%;
}
.sp-guide-tagline i {
  font-size: 11px;
  color: var(--blue-400);
}

.sp-hero-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.sp-hero-availability-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px 16px 12px;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}
.sp-hero-availability-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.sp-hero-availability-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.sp-hero-availability-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f2f46;
  margin-bottom: 0;
  white-space: nowrap;
}
.sp-hero .sp-hero-availability-card .sp-hero-availability-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.sp-hero .sp-hero-availability-card .sp-hero-availability-list li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.sp-hero-side .sp-hero-availability-card {
  margin-top: 2px;
  margin-bottom: 2px;
}
.sp-hero-availability-card li i {
  color: var(--green);
  font-size: 12px;
}
.sp-hero-availability-card p {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.sp-hero-image {
  border: none;
  background: transparent;
  min-height: 260px;
  padding: 0;
  align-items: flex-end;
  justify-content: center;
}
.sp-hero-image img {
  max-height: 330px;
}

.sp-mini-title {
  font-size: 14px;
  color: var(--blue-900);
  margin: 10px 0;
}

.sp-inline-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.sp-inline-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
}
.sp-inline-divider {
  color: #9aa9bf;
  font-size: 14px;
  font-weight: 500;
}

.sp-arch-section {
  padding-top: 8px;
}
.sp-arch-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sp-arch-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sp-arch-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--blue-900);
  width: 100%;
}
.sp-arch-card i {
  color: var(--blue-500);
  font-size: 18px;
  width: 26px;
  text-align: center;
}
.sp-arch-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-arch-card-text strong {
  font-size: 16px;
  line-height: 1.2;
  color: var(--blue-900);
}
.sp-arch-card-text small {
  font-size: 12px;
  color: var(--muted);
}
.sp-arch-connector {
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8ca6;
  font-size: 11px;
}

.sp-compare-faq .sp-section-bg {
  margin-bottom: 0;
  border-radius: 0;
  border-color: #dce4f0;
  padding: 22px 24px;
}
.sp-compare-box .sp-section-title,
.sp-faq-box .sp-section-title {
  font-size: 40px;
  margin-bottom: 8px;
}
.sp-compare-box .sp-section-sub {
  margin-bottom: 12px;
}
.sp-compare-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.sp-compare-list li {
  border-bottom: 1px solid #e4ebf5;
  padding: 0;
}
.sp-compare-list li:last-child {
  border-bottom: none;
}
.sp-compare-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}
.sp-compare-link::after {
  content: "›";
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease, color .15s ease;
}
.sp-compare-link:hover::after {
  transform: translateX(2px);
  color: var(--blue-500);
}
.sp-compare-link:hover strong {
  color: var(--blue-500);
}
.sp-compare-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #c5d1e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  font-size: 13px;
  flex-shrink: 0;
}
.sp-compare-list strong {
  display: block;
  font-size: 14px;
  color: var(--blue-900);
}
.sp-compare-list small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.sp-faq-list {
  margin: 0 0 10px;
  padding: 0;
}
.sp-faq-item {
  border: 1px solid #e4ebf5;
  border-top: 0;
  background: #fff;
}
.sp-faq-item:first-child {
  border-top: 1px solid #e4ebf5;
}
.sp-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  position: relative;
  padding-right: 34px;
}
.sp-faq-item summary::-webkit-details-marker {
  display: none;
}
.sp-faq-item summary::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  transition: transform .2s ease;
  font-size: 16px;
}
.sp-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.sp-faq-item summary:hover {
  background: #f8fbff;
}
.sp-faq-answer {
  padding: 0 14px 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* Hero */
.sp-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: stretch;
  padding: 30px 42px 26px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 32px;
}
.sp-hero-text .sp-breadcrumb-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue-500);
  margin-bottom: 10px;
}
.sp-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--blue-900);
  line-height: 1.1;
  margin: 0 0 16px;
}
.sp-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 26px;
}
.sp-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sp-cta-main { padding: 13px 22px; font-size: 14px; }
.sp-cta-sec  { padding: 12px 20px; font-size: 14px; }
.sp-avail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.sp-avail-label { font-weight: 600; }
.sp-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #166534;
}
.sp-hero-image {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 300px;
}
.sp-hero-image img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

/* Specs strip */
.sp-specs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--blue-900);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 48px;
}
.sp-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  min-width: 160px;
}
.sp-spec-icon { color: var(--blue-400, #60a5fa); font-size: 14px; }

/* Generic section */
.sp-section {
  margin-bottom: 56px;
}
.sp-section-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--blue-900);
  margin: 0 0 10px;
}
.sp-section-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 600px;
}

/* Two-column layout */
.sp-two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Use Cases */
.sp-usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.sp-usecase-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sp-usecase-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-50, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  color: var(--blue-500);
}
.sp-usecase-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0;
  line-height: 1.35;
  text-align: center;
  max-width: 480px;
}
.sp-usecase-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.sp-usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  justify-content: center;
}
.sp-usecase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #003b86;
  background: #e8effa;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .02em;
}

/* Use-cases panel: white frame + tighter spacing */
.sp-usecases-section {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
}
.sp-usecases-section .sp-section-sub {
  margin-bottom: 18px;
  text-align: center;
  max-width: 100%;
}
.sp-usecases-section .sp-usecases-grid {
  margin-top: 2px;
}
.sp-usecases-section .sp-usecase-card {
  border: 1px solid #e8effa;
  border-radius: 8px;
  padding: 20px 16px;
  background: #fafcff;
}
.sp-usecases-section .sp-usecase-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.45;
}
.sp-usecases-section .sp-usecase-card {
  border: 1px solid #e8effa;
  border-radius: 8px;
  padding: 24px 20px;
  background: #fafcff;
}
.sp-usecases-section .sp-inline-links {
  margin-top: 14px;
}

/* Features */
.sp-features-list-clean {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.sp-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sp-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #c5d1e4;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--blue-500);
  flex-shrink: 0;
}
.sp-link-arrow { font-size: 13px; color: var(--blue-500); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 4px; }
.sp-link-arrow:hover { text-decoration: underline; }
.sp-feature-row .sp-feature-body strong {
  font-size: 17px;
  color: var(--blue-900);
  display: block;
  margin-bottom: 2px;
  line-height: 1.2;
}
.sp-feature-row .sp-feature-body p {
  font-size: 14px;
  color: #1b2431;
  margin: 0;
  line-height: 1.55;
  font-weight: 500;
}

/* Procurement */
.sp-procurement-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 20px 22px;
}
.sp-procurement-panel .sp-section-title {
  font-size: 38px;
  margin-bottom: 8px;
}
.sp-procurement-panel .sp-section-sub {
  margin-bottom: 14px;
}
.sp-procurement-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e4ebf5;
  margin-top: 8px;
}
.sp-procurement-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #e4ebf5;
}
.sp-procurement-emblem {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #c5d1e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  flex-shrink: 0;
  background: #fff;
}
.sp-procurement-emblem.ites { color: #8b6a18; border-color: #d9c28c; }
.sp-procurement-emblem.sewp { color: #577585; border-color: #b9c9d1; }
.sp-procurement-emblem.sled { color: #9d1f39; border-color: #d7afba; }
.sp-procurement-item strong {
  font-size: 15px;
  color: var(--blue-900);
  display: block;
  font-weight: 800;
}
.sp-procurement-item p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 3px 0 0;
}

/* Specs / Description */
.sp-desc-content {
  font-size: 14px;
  line-height: 1.9;
  color: #22324a;
  letter-spacing: 0.001em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.sp-desc-content h2,
.sp-desc-content h3 {
  font-size: 20px;
  color: var(--blue-900);
  margin: 26px 0 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  letter-spacing: -0.01em;
}
.sp-desc-content ul {
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 24px;
  margin: 10px 0 16px;
}
.sp-desc-content ul li {
  font-size: 13px;
  color: #1f2f46;
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  line-height: 1.55;
}
.sp-desc-content ul li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.sp-desc-content p {
  font-size: 14px;
  color: #2b3d58;
  line-height: 1.9;
  margin: 0 0 12px;
}

/* Full specs block specific spacing */
#sp-full-specs .sp-section-title {
  font-size: 34px;
  margin-bottom: 12px;
}
#sp-full-specs .sp-section-eyebrow {
  margin-bottom: 4px;
}

.sp-spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; list-style: none; padding: 0; }
.sp-spec-list li { font-size: 13px; color: var(--text); padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); position: relative; }
.sp-spec-list li::before { content: "✓"; color: var(--green); font-weight: 700; position: absolute; left: 0; }

/* WooCommerce additional information tab */
.woocommerce-tabs { margin-top: 24px; }
.woocommerce-tabs .tabs { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 -1px; }
.woocommerce-tabs .tabs li a { display: block; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-bottom: none; border-radius: 6px 6px 0 0; background: #f1f5f9; }
.woocommerce-tabs .tabs li.active a { background: #fff; color: var(--blue-900); border-color: var(--line); }
.woocommerce-tabs .panel { background: #fff; border: 1px solid var(--line); border-radius: 0 6px 6px 6px; padding: 20px; font-size: 13px; }
.woocommerce-tabs table { width: 100%; border-collapse: collapse; }
.woocommerce-tabs table th,
.woocommerce-tabs table td { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: left; }
.woocommerce-tabs table th { background: #f8fafd; color: var(--blue-900); font-weight: 600; width: 200px; }

/* Services */
.sp-service-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-service-list li { font-size: 14px; color: var(--text); display: flex; gap: 10px; align-items: center; }
.sp-service-list li { font-weight: 500; letter-spacing: 0.002em; }
.sp-service-list li i { color: var(--green); font-size: 16px; }
.sp-service-panel,
.sp-workload-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 22px 20px;
}
.sp-service-panel .sp-section-title,
.sp-workload-panel .sp-section-title {
  font-size: 38px;
  margin-bottom: 8px;
}
.sp-service-panel .sp-section-sub,
.sp-workload-panel .sp-section-sub {
  margin-bottom: 14px;
}

/* Workloads */
.sp-workloads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-workload-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.sp-workload-item i { font-size: 18px; color: var(--blue-500); margin-top: 2px; }
.sp-workload-item strong { font-size: 12px; font-weight: 700; color: var(--blue-900); display: block; }
.sp-workload-item span { font-size: 11px; color: var(--muted); }
.sp-workload-item strong { font-size: 14px; font-weight: 800; line-height: 1.3; }
.sp-workload-item span { font-size: 12px; line-height: 1.55; }

/* Bottom CTA */
.sp-bottom-cta {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  border-radius: var(--radius);
  padding: 48px 40px;
  margin: 48px 0;
  color: #fff;
}

/* -------------------------------------------------------
   AI Section Styles
------------------------------------------------------- */
.ai-section h2 {
    color: var(--blue-900) !important;
    margin-top: 0 !important;
    font-size: 1.8em !important;
    font-weight: 600 !important;
}

/* -------------------------------------------------------
   Filter Bar Styles
------------------------------------------------------- */
.nts-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    align-items: center;
}

.nts-filter-cats,
.nts-filter-ff {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nts-filter-label {
    font-weight: 600;
    color: #003b86;
    margin-right: 8px;
    font-size: 14px;
}

.nts-filter-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d4dbe8;
    border-radius: 4px;
    color: #5f6e82;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nts-filter-btn:hover {
    background: #e8ecf3;
    border-color: #003b86;
    color: #003b86;
}

.nts-filter-btn.active {
    background: #003b86;
    border-color: #003b86;
    color: #fff;
}

.nts-ff-btn {
    font-size: 13px;
    padding: 6px 12px;
}

/* ===================================
   PAGINATION
   =================================== */
.nts-pagination {
    margin: 40px 0;
    text-align: center;
}

.woocommerce-pagination {
    display: inline-block;
}

.woocommerce-pagination ul,
nav.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.woocommerce-pagination ul li,
.woocommerce-pagination .page-numbers li {
    display: inline-block;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d4dbe8;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6e82;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination .page-numbers:hover {
    background: #e8ecf3;
    border-color: #003b86;
    color: #003b86;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination .page-numbers.current {
    background: #003b86;
    border-color: #003b86;
    color: #fff;
}

.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next {
    font-size: 12px;
    min-width: auto;
    padding: 0 14px;
}

.woocommerce-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #999;
    min-width: auto;
    padding: 0 4px;
}

/* Screen-reader-only utility (for pagination headings, etc) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Blog pagination (WordPress default .navigation.pagination) */
.navigation.pagination {
    margin: 40px 0;
    text-align: center;
}
.navigation.pagination .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d4dbe8;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6e82;
    text-decoration: none;
    transition: all 0.3s ease;
}
.navigation.pagination .page-numbers:hover {
    background: #e8ecf3;
    border-color: #003b86;
    color: #003b86;
}
.navigation.pagination .page-numbers.current {
    background: #003b86;
    border-color: #003b86;
    color: #fff;
}
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    font-size: 12px;
    min-width: auto;
    padding: 0 14px;
}
.navigation.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #999;
    min-width: auto;
    padding: 0 4px;
}

/* Mobile Responsive for Pagination */
@media (max-width: 768px) {
    .woocommerce-pagination ul li a,
    .woocommerce-pagination ul li span,
    .woocommerce-pagination .page-numbers,
    .navigation.pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .woocommerce-pagination ul,
    nav.woocommerce-pagination ul,
    .woocommerce-pagination ul.page-numbers,
    .navigation.pagination .nav-links {
        gap: 6px;
    }
}

/* Mobile Responsive for Filter Bar */
@media (max-width: 768px) {
    .nts-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nts-filter-cats,
    .nts-filter-ff {
        width: 100%;
    }
    
    .woocommerce-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

.sp-bottom-cta-inner {
  flex-wrap: wrap;
}
.sp-cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sp-cta-left > div {
  display: flex;
  flex-direction: column;
}
.sp-cta-mark {
  color: var(--green);
  font-size: 26px;
  display: inline-flex;
  gap: 2px;
  min-width: 42px;
}
.sp-bottom-cta h2 { font-size: 22px; color: #fff; margin: 0 0 8px; }
.sp-bottom-cta p  { color: rgba(255,255,255,.75); font-size: 14px; margin: 0; }
.sp-bottom-cta h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.sp-bottom-cta p  { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.7; }
.sp-bottom-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cta-green,
.btn-cta-blue {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: 7px;
  padding: 0 16px;
}
.btn-cta-green {
  background: #7d902f;
  color: #fff !important;
  border: 1px solid #8fa23c;
}
.btn-cta-green:hover { background: #6f8129; }
.btn-cta-blue {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.45);
}
.btn-cta-blue:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

/* ===================================================
   CONFIGURATOR PAGE
   =================================================== */
.cfg-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.cfg-hero-img {
  width: 160px;
  height: 120px;
  object-fit: contain;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  flex-shrink: 0;
}
.cfg-form { width: 100%; }
.cfg-columns {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.cfg-sticky-panel {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.cfg-field-group { margin-bottom: 20px; }
.cfg-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.cfg-select,
.cfg-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
  font-family: inherit;
}
.cfg-select:focus,
.cfg-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
textarea.cfg-input { resize: vertical; }
.cfg-single-option {
  font-size: 13px;
  color: var(--text);
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.cfg-summary-box {
  background: var(--blue-50, #eff6ff);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}
.cfg-summary-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

/* Responsive single product */
@media (max-width: 960px) {
  .sp-hero,
  .sp-two-col-section,
  .cfg-columns { grid-template-columns: 1fr; }
  .sp-title { font-size: 40px; }
  .sp-subtitle { font-size: 16px; }
  .sp-hero-availability-card {
    max-width: 100%;
    align-self: stretch;
  }
  .sp-hero .sp-hero-availability-card .sp-hero-availability-list {
    flex-wrap: wrap !important;
  }
  .sp-hero {
    padding-left: 22px;
    padding-right: 22px;
  }
  .sp-usecases-grid { grid-template-columns: repeat(3, 1fr); }
  .sp-hero-image { max-width: 480px; }
  .sp-bottom-cta-inner { flex-direction: column; align-items: flex-start; }
  .sp-cta-left { align-items: flex-start; }
  .cfg-sticky-panel { position: static; }
  .sp-section-bg { padding: 24px; }
  .sp-usecases-section { padding: 22px; }
}
@media (max-width: 600px) {
  .sp-usecases-grid,
  .sp-features-grid,
  .sp-workloads-grid { grid-template-columns: 1fr; }
  .sp-usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-spec-list,
  .sp-desc-content ul { grid-template-columns: 1fr; }
  .sp-cta-row { flex-direction: column; }
  .sp-title { font-size: 31px; }
  .sp-hero-h2 { font-size: 18px; }
  .sp-section-title { font-size: 24px; }
  .sp-subtitle { font-size: 15px; }
  .sp-section-bg { padding: 16px; }
  .sp-usecases-section { padding: 14px; }
  .sp-inline-links { justify-content: flex-start; gap: 10px; }
  .sp-compare-box .sp-section-title,
  .sp-faq-box .sp-section-title { font-size: 30px; }
  .sp-kb-links { grid-template-columns: 1fr; }
}

/* ===================================================
   KNOWLEDGE BASE PAGE STYLING
   =================================================== */

/* GPU Server vs GPU Cluster page */
.gsvc-page .page-wrap-inner {
  max-width: 1180px;
}
.gsvc-hero {
  background: linear-gradient(120deg, #f4f8ff 0%, #eef6ff 100%);
  border: 1px solid #d9e7fb;
  border-radius: 14px;
  padding: 34px;
  margin-bottom: 24px;
}
.gsvc-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1e5ca8;
}
.gsvc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  color: #0f2f5d;
}
.gsvc-hero p {
  margin: 0;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}
.gsvc-hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.gsvc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.gsvc-card,
.gsvc-section,
.gsvc-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.gsvc-card h2,
.gsvc-section h2,
.gsvc-cta h2 {
  margin: 0 0 10px;
  color: #0f2f5d;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
}
.gsvc-card p,
.gsvc-section p,
.gsvc-cta p {
  margin: 0 0 10px;
  color: #334155;
  line-height: 1.75;
}
.gsvc-card ul {
  margin: 0;
  padding-left: 18px;
}
.gsvc-card li {
  margin-bottom: 8px;
  color: #334155;
}
.gsvc-compare-table {
  border: 1px solid #d8e5f8;
  border-radius: 12px;
  overflow: hidden;
}
.gsvc-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
}
.gsvc-row > div {
  padding: 13px 14px;
  border-bottom: 1px solid #e8eef9;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
}
.gsvc-row > div:not(:last-child) {
  border-right: 1px solid #e8eef9;
}
.gsvc-row.gsvc-head > div {
  background: #f3f8ff;
  color: #0f2f5d;
  font-weight: 700;
}
.gsvc-row:last-child > div {
  border-bottom: 0;
}
.gsvc-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gsvc-check {
  border: 1px solid #deead8;
  background: #f7fdf5;
  border-radius: 10px;
  padding: 12px 13px;
  color: #1f4d2a;
  font-weight: 600;
}
.gsvc-check::before {
  content: "✓";
  margin-right: 8px;
  color: #1f8f45;
}
.gsvc-faq details {
  border: 1px solid #d8e5f8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fbfdff;
}
.gsvc-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f2f5d;
}
.gsvc-faq p {
  margin: 10px 0 0;
}
.gsvc-cta {
  margin-top: 18px;
  background: linear-gradient(120deg, #0f3d77 0%, #1558a8 100%);
  border-color: #0f3d77;
}
.gsvc-cta h2,
.gsvc-cta p {
  color: #fff;
}

@media (max-width: 900px) {
  .gsvc-grid-2,
  .gsvc-checklist,
  .gsvc-row {
    grid-template-columns: 1fr;
  }
  .gsvc-row > div {
    border-right: 0 !important;
  }
  .gsvc-hero,
  .gsvc-card,
  .gsvc-section,
  .gsvc-cta {
    padding: 18px;
  }
}

/* AI Workloads page */
.aiw-page .page-wrap-inner {
  max-width: 1180px;
}
.aiw-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  padding: 34px;
  border-radius: 16px;
  border: 1px solid #d8e6fb;
  background: linear-gradient(120deg, #f4f8ff 0%, #eef5ff 60%, #e9f2ff 100%);
  margin-bottom: 20px;
}
.aiw-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1b57a3;
}
.aiw-hero h1 {
  margin: 0 0 12px;
  color: #0d2f5f;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.14;
}
.aiw-hero p {
  margin: 0;
  color: #2f4460;
  line-height: 1.78;
}
.aiw-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.aiw-hero-visual {
  position: relative;
  border: 1px solid #d3e2f8;
  border-radius: 14px;
  min-height: 260px;
  background: #f8fbff;
  overflow: hidden;
}
.aiw-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.aiw-section,
.aiw-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}
.aiw-section h2,
.aiw-cta h2 {
  margin: 0 0 10px;
  color: #0d2f5f;
  font-size: clamp(22px, 2.2vw, 32px);
}
.aiw-intro {
  margin-bottom: 16px;
}
.aiw-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.aiw-card {
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  padding: 16px;
  background: #fbfdff;
}
.aiw-letter {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: #edf5ff;
  color: #144d8f;
  font-weight: 800;
  margin-bottom: 8px;
}
.aiw-card h3 {
  margin: 0 0 6px;
  color: #0f2f5d;
  font-size: 18px;
}
.aiw-card p {
  margin: 0;
  color: #30445f;
  line-height: 1.7;
}
.aiw-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.aiw-metric {
  border: 1px solid #d8e8d4;
  background: #f7fdf5;
  border-radius: 10px;
  padding: 10px 12px;
}
.aiw-metric strong {
  display: block;
  font-size: 14px;
  color: #1e4a2a;
  margin-bottom: 3px;
}
.aiw-metric span {
  font-size: 12px;
  color: #40644a;
}
.aiw-industry {
  border-top: 1px solid #e5edf9;
  padding-top: 16px;
  margin-top: 16px;
}
.aiw-industry:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.aiw-industry h3 {
  margin: 0 0 8px;
  color: #0f2f5d;
  font-size: 21px;
}
.aiw-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.aiw-tags span {
  border: 1px solid #cfe1f9;
  background: #f2f8ff;
  color: #174e8c;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}
.aiw-industry p,
.aiw-cta p {
  margin: 0;
  color: #2f4460;
  line-height: 1.8;
}
.aiw-cta {
  background: linear-gradient(125deg, #0f3d77 0%, #1558a8 100%);
  border-color: #0f3d77;
}
.aiw-cta h2,
.aiw-cta p {
  color: #fff;
}

@media (max-width: 980px) {
  .aiw-hero,
  .aiw-pillars,
  .aiw-metrics {
    grid-template-columns: 1fr;
  }
  .aiw-hero {
    padding: 20px;
  }
  .aiw-section,
  .aiw-cta {
    padding: 18px;
  }
}

/* About page */
.about-page .page-wrap-inner {
  max-width: 1140px;
}
.about-hero {
  background: linear-gradient(120deg, #f4f8ff 0%, #edf4ff 100%);
  border: 1px solid #d9e7fb;
  border-radius: 16px;
  padding: 34px;
  margin-bottom: 20px;
}
.about-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1b57a3;
}
.about-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.1;
  color: #0f2f5d;
}
.about-hero p {
  margin: 0 0 10px;
  color: #2f4561;
  line-height: 1.8;
  font-size: 16px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.about-card,
.about-section,
.about-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.about-card h2,
.about-section h2,
.about-cta h2 {
  margin: 0 0 10px;
  color: #0f2f5d;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.2;
}
.about-card p,
.about-section p,
.about-cta p {
  margin: 0;
  color: #30445f;
  line-height: 1.8;
}
.about-card p + p {
  margin-top: 10px;
}
.about-section {
  margin-bottom: 18px;
}
.about-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-tags span {
  border: 1px solid #cfe1f9;
  background: #f3f8ff;
  color: #144d8c;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.about-list {
  margin: 0;
  padding-left: 18px;
}
.about-list li {
  margin-bottom: 8px;
  color: #30445f;
  line-height: 1.75;
}
.about-cta {
  background: linear-gradient(125deg, #0f3d77 0%, #1558a8 100%);
  border-color: #0f3d77;
}
.about-cta h2,
.about-cta p {
  color: #fff;
}
.about-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-hero,
  .about-card,
  .about-section,
  .about-cta {
    padding: 18px;
  }
}

/* Contact page */
.contact-page .page-wrap-inner {
  max-width: 1140px;
}
.contact-hero {
  background: linear-gradient(120deg, #f4f8ff 0%, #edf4ff 100%);
  border: 1px solid #d9e7fb;
  border-radius: 16px;
  padding: 30px 34px;
  margin-bottom: 20px;
}
.contact-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1b57a3;
}
.contact-hero h1 {
  margin: 0 0 10px;
  color: #0f2f5d;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
}
.contact-hero p {
  margin: 0;
  color: #30445f;
  line-height: 1.75;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
.contact-form-card,
.contact-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.contact-form-card h2,
.contact-info-card h2 {
  margin: 0 0 12px;
  color: #0f2f5d;
  font-size: 28px;
}
.contact-form-grid {
  display: grid;
  gap: 10px;
}
.contact-form-grid label {
  font-size: 13px;
  font-weight: 700;
  color: #1f3653;
}
.contact-form-grid input[type="text"],
.contact-form-grid input[type="email"],
.contact-form-grid textarea {
  width: 100%;
  border: 1px solid #d3deee;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #20334c;
  background: #fff;
}
.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
  outline: none;
  border-color: #4f87d7;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.contact-fieldset {
  margin: 6px 0 2px;
  border: 1px solid #dbe7f8;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  background: #fbfdff;
}
.contact-fieldset legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #204875;
}
.contact-fieldset label {
  font-size: 13px;
  font-weight: 500;
  color: #30455f;
}
.contact-fieldset input[type="checkbox"] {
  margin-right: 7px;
}
.contact-form-grid .btn {
  margin-top: 8px;
  width: fit-content;
  min-width: 140px;
}
.contact-info-block {
  border-top: 1px solid #e6edf8;
  padding-top: 12px;
  margin-top: 12px;
}
.contact-info-block:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.contact-info-block h3 {
  margin: 0 0 8px;
  color: #0f2f5d;
  font-size: 20px;
}
.contact-info-block p {
  margin: 0;
  color: #30445f;
  line-height: 1.8;
}
.contact-info-block p + p {
  margin-top: 8px;
}
.contact-info-block a {
  color: #1758a6;
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-hero,
  .contact-form-card,
  .contact-info-card {
    padding: 18px;
  }
}
.kb-page .page-wrap-inner {
  max-width: 1100px;
}
.kb-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.kb-entry-header {
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
}
.kb-entry-title {
  font-size: clamp(28px, 3vw, 42px) !important;
  letter-spacing: -0.02em;
  margin-bottom: 0 !important;
}
.kb-content {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: #24344b !important;
}
.kb-content h2 {
  font-size: 24px;
  color: var(--blue-900);
  margin: 28px 0 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  letter-spacing: -0.01em;
}
.kb-content h3 {
  font-size: 19px;
  color: var(--blue-900);
  margin: 20px 0 8px;
}
.kb-content p {
  margin: 0 0 14px;
  color: #2f4058;
}
.kb-content ul,
.kb-content ol {
  margin: 0 0 16px 1.2em;
  padding-left: 0.6em;
}
.kb-content li {
  margin-bottom: 6px;
  color: #2a3a51;
}
.kb-content a {
  color: var(--blue-500);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-content a:hover {
  color: var(--blue-700);
}
.kb-content blockquote {
  margin: 16px 0;
  border-left: 4px solid var(--blue-100);
  background: #f8fbff;
  padding: 12px 14px;
  color: #33465f;
}
/* Entry content tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9e5f6;
  margin: 14px 0 18px;
  font-size: 14px;
  background: #fff;
}
.entry-content th,
.entry-content td {
  border: 1px solid #e2ebf8;
  padding: 10px 12px;
  text-align: left;
}
.entry-content th {
  background: #f3f8ff;
  color: var(--blue-900);
  font-weight: 700;
}
.entry-content tr:nth-child(even) td {
  background: #fafcff;
}
.entry-content .comparison-highlight {
  border-left: 4px solid var(--blue-100);
  background: #f8fbff;
  padding: 12px 14px;
  margin: 14px 0;
  color: #33465f;
}
.entry-content .comparison-highlight h4 {
  margin: 0 0 6px;
  color: var(--blue-900);
}

.kb-content .kb-table-wrap,
.entry-content .kb-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 18px;
}
.kb-content table,
.entry-content table.gsg-table {
  width: 100%;
  border-collapse: collapse !important;
  border: 1px solid #d9e5f6 !important;
  margin: 0 !important;
  font-size: 14px;
  background: #fff;
}
.kb-content th,
.kb-content td,
.entry-content table.gsg-table th,
.entry-content table.gsg-table td {
  border: 1px solid #e2ebf8 !important;
  padding: 9px 10px;
  text-align: left;
}
.kb-content th,
.entry-content table.gsg-table th {
  background: #f3f8ff !important;
  color: var(--blue-900);
  font-weight: 700;
}
.kb-content p > strong:first-child {
  color: var(--blue-900);
}
.kb-content .kb-qa-item {
  border: 1px solid #e4ebf5;
  border-top: 0;
  background: #fff;
}
.kb-content .kb-qa-item:first-of-type {
  border-top: 1px solid #e4ebf5;
}
.kb-content .kb-qa-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  position: relative;
  padding-right: 34px;
}
.kb-content .kb-qa-item summary::-webkit-details-marker {
  display: none;
}
.kb-content .kb-qa-item summary::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 18px;
  transition: transform .2s ease;
}
.kb-content .kb-qa-item[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.kb-content .kb-qa-item summary:hover {
  background: #f8fbff;
}
.kb-content .kb-qa-answer {
  padding: 0 14px 12px;
}
.kb-content .kb-qa-answer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* Knowledge-base folder explorer */
.kb-content .kb-folders {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}
.kb-content .kb-folder {
  border: 1px solid #dbe6f6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.kb-content .kb-folder summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 12px 14px;
  background: #f4f8ff;
}
.kb-content .kb-folder summary::-webkit-details-marker {
  display: none;
}
.kb-content .kb-folder summary:hover {
  background: #edf4ff;
}
.kb-content .kb-folder-icon {
  color: #1a5ba7;
  font-size: 15px;
}
.kb-content .kb-folder-title {
  color: #0f2f5d;
  font-size: 15px;
  font-weight: 700;
}
.kb-content .kb-folder-count {
  color: #46658b;
  font-size: 12px;
  font-weight: 600;
}
.kb-content .kb-folder-desc {
  margin: 0;
  padding: 10px 14px 0;
  color: #4c627f;
  font-size: 13px;
}
.kb-content .kb-folder-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px 14px;
}
.kb-content .kb-folder-link {
  border: 1px solid #e4ecf8;
  background: #fbfdff;
  border-radius: 8px;
  padding: 9px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1f3653;
  font-size: 13px;
  font-weight: 600;
}
.kb-content .kb-folder-link:hover {
  border-color: #c9daf3;
  background: #f5f9ff;
}
.kb-content .kb-folder-link i {
  color: #316cb6;
  font-size: 13px;
}
.kb-child-index {
  margin-top: 24px;
  border-top: 1px solid #e2eaf5;
  padding-top: 18px;
}
.kb-child-index h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--blue-900);
}
.kb-child-index-meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: #4c617c;
}
.kb-child-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.kb-child-card {
  border: 1px solid #e3ebf7;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}
.kb-child-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.kb-child-card p {
  margin: 0;
  color: #526983;
  font-size: 12px;
  line-height: 1.6;
}
.kb-child-index-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f3653;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.kb-child-index-link:hover {
  background: #f4f8ff;
  border-color: #ccdcf2;
}
.kb-child-index-link i {
  color: #2b66b1;
}
.kb-article-block {
  margin-top: 20px;
  border-top: 1px solid #e4ebf6;
  padding-top: 16px;
}
.kb-article-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--blue-900);
}
.kb-article-meta {
  margin: 8px 0 0;
  color: #607793;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.kb-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9f1fb;
  color: #1f4b86;
  font-size: 11px;
  letter-spacing: .04em;
}
.kb-type-comparison { background: #fff1e6; color: #8a4b1d; }
.kb-type-sizing { background: #e8f5ee; color: #1f5d3a; }
.kb-type-deployment { background: #eef0fc; color: #2c3a8a; }
.kb-type-troubleshooting { background: #fde8ea; color: #8a1d2a; }
.kb-type-overview { background: #eaf3ff; color: #1f4b86; }
.kb-type-decision { background: #e9f1fb; color: #1f4b86; }
.kb-answer-snapshot {
  border: 1px solid #d9e7fb;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.kb-answer-snapshot h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #113766;
}
.kb-answer-snapshot p {
  margin: 0;
  color: #2e4763;
}
.kb-snapshot-objective {
  margin-bottom: 10px !important;
}
.kb-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.kb-snapshot-item {
  border: 1px solid #d5e4f9;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}
.kb-snapshot-item h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #173f6f;
}
.kb-snapshot-item p {
  font-size: 13px;
  line-height: 1.65;
}
.kb-snapshot-risk {
  margin-top: 6px !important;
  color: #7b3f19 !important;
}
.kb-snapshot-outcome {
  margin-top: 6px !important;
  color: #1e5e36 !important;
}
.kb-checklist {
  margin: 0;
  padding-left: 18px;
}
.kb-checklist li {
  margin-bottom: 8px;
  color: #2f455f;
}
.kb-faq-list .kb-qa-item + .kb-qa-item {
  margin-top: 8px;
}
.kb-related-grid,
.kb-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.kb-related-link,
.kb-product-link {
  border: 1px solid #dde8f8;
  border-radius: 10px;
  background: #fbfdff;
  padding: 9px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f3653;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.kb-related-link:hover,
.kb-product-link:hover {
  background: #f4f8ff;
  border-color: #ccdcf2;
}
.kb-related-link i {
  color: #2d69b3;
}
.kb-product-link i {
  color: #1f8f45;
}
.kb-product-link em {
  margin-left: auto;
  color: #7c92ae;
  font-style: normal;
}
@media (max-width: 700px) {
  .kb-article {
    padding: 16px 14px;
  }
  .kb-content {
    font-size: 14px !important;
  }
  .kb-content h2 {
    font-size: 20px;
  }
  .kb-content .kb-folder-links {
    grid-template-columns: 1fr;
  }
  .kb-child-index-grid {
    grid-template-columns: 1fr;
  }
  .kb-related-grid,
  .kb-products-grid {
    grid-template-columns: 1fr;
  }
  .kb-snapshot-grid {
    grid-template-columns: 1fr;
  }
}

/* Knowledge base modern landing */
.kbx-page .page-wrap-inner {
  max-width: 1180px;
}
.kbx-hero {
  background: linear-gradient(125deg, #f4f8ff 0%, #edf4ff 100%);
  border: 1px solid #d9e7fb;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
}
.kbx-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1b57a3;
}
.kbx-hero h1 {
  margin: 0 0 10px;
  color: #0f2f5d;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
}
.kbx-hero p {
  margin: 0;
  color: #30445f;
  line-height: 1.8;
  max-width: 900px;
}
.kbx-hero-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.kbx-hero-meta span {
  border: 1px solid #cfe0f8;
  background: #f6faff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #174b87;
}
.kbx-hero-meta i {
  margin-right: 6px;
}
.kbx-search {
  margin-top: 14px;
}
.kbx-search input {
  width: 100%;
  max-width: 680px;
  border: 1px solid #cfe0f8;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: #1f3653;
  font-size: 14px;
}
.kbx-search input:focus {
  outline: none;
  border-color: #9ec0ee;
  box-shadow: 0 0 0 3px rgba(88, 141, 212, .14);
}
.kbx-section,
.kbx-ai-snippets {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
}
.kbx-section h2,
.kbx-ai-snippets h2 {
  margin: 0 0 12px;
  color: #0f2f5d;
  font-size: clamp(22px, 2.1vw, 30px);
}
.kbx-snip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.kbx-snip-card {
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
}
.kbx-snip-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #113766;
}
.kbx-snip-card p {
  margin: 0;
  font-size: 13px;
  color: #32465f;
  line-height: 1.7;
}
.kbx-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.kbx-folder-card {
  border: 1px solid #dde8f8;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}
.kbx-folder-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.kbx-folder-head i {
  color: #1b5ca9;
}
.kbx-folder-head h3 {
  margin: 0;
  font-size: 18px;
}
.kbx-folder-head a {
  color: #0f2f5d;
}
.kbx-folder-desc {
  margin: 0 0 8px;
  color: #435b78;
  font-size: 13px;
  line-height: 1.65;
}
.kbx-folder-links {
  margin: 0;
  padding-left: 18px;
}
.kbx-folder-links li {
  margin-bottom: 6px;
}
.kbx-folder-links a {
  color: #1d4f8a;
  font-size: 13px;
  font-weight: 600;
}
.kbx-view-all {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #1b5ca9;
}
.kbx-chip-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kbx-chip-links a {
  border: 1px solid #d7e4f6;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f8fbff;
  color: #1d4f8a;
  font-size: 12px;
  font-weight: 700;
}
.kbx-trending-chips a {
  cursor: default;
}
.kbx-related-products {
  margin-top: 10px;
  border-top: 1px dashed #d7e3f4;
  padding-top: 10px;
}
.kbx-related-products strong {
  color: #244362;
  font-size: 12px;
}
.kbx-product-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kbx-product-links a {
  border: 1px solid #dbe8f9;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f8fbff;
  color: #1d4f8a;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .kbx-snip-grid,
  .kbx-folder-grid {
    grid-template-columns: 1fr;
  }
  .kbx-hero,
  .kbx-section,
  .kbx-ai-snippets {
    padding: 18px;
  }
}

/* GPU sizing guide page table polish */
.entry-content .gsg-table,
.kb-content .gsg-table {
  width: 100%;
  border-collapse: collapse !important;
  border: 1px solid #d9e5f6 !important;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 16px;
  font-size: 13px;
  background: #fff;
}
.entry-content .gsg-table th,
.entry-content .gsg-table td,
.kb-content .gsg-table th,
.kb-content .gsg-table td {
  border: 1px solid #e2ebf8 !important;
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.entry-content .gsg-table th,
.kb-content .gsg-table th {
  background: #f4f8ff;
  color: #153c70;
  font-weight: 700;
}
.entry-content .gsg-note,
.kb-content .gsg-note {
  border-left: 4px solid #2d69b3;
  background: #f6faff;
  padding: 10px 12px;
  border-radius: 8px;
  color: #274663;
}


/* AI Infrastructure Guide Page Styles */
.ai-infrastructure-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}
.ai-infrastructure-hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
}
.ai-infrastructure-hero .lead {
    font-size: 1.3em;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}
.ai-guide-content {
    max-width: 1200px;
    margin: 0 auto;
}
.ai-guide-content section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}
.ai-guide-content h2 {
    color: #1e3c72;
    margin-top: 0;
    font-size: 1.8em;
}
.ai-guide-content h3 {
    color: #2a5298;
    margin-top: 25px;
    font-size: 1.3em;
}
.ai-guide-content ul {
    margin-left: 20px;
}
.ai-guide-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.ai-guide-content strong {
    color: #1e3c72;
}
.ai-guide-content #cta {
    text-align: center;
    padding: 40px;
    background: #f0f0f0;
    border-radius: 8px;
}
.ai-button {
    display: inline-block;
    background: #2a5298;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px;
}
.ai-button:hover {
    background: #1e3c72;
}
.ai-button-secondary {
    display: inline-block;
    background: #00d4ff;
    color: #1e3c72;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px;
    font-weight: bold;
}
.ai-button-secondary:hover {
    background: #00b8e6;
}


/* ===================================
   AI Infrastructure Page Styles
   =================================== */
.ai-hero-section {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%) !important;
    color: var(--white) !important;
    padding: 60px 40px !important;
    border-radius: var(--radius) !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}
.ai-hero-section h1 {
    font-size: clamp(24px, 3vw, 40px) !important;
    margin-bottom: 20px !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
.ai-hero-section p {
    font-size: 1.2em !important;
    opacity: 0.95 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    color: var(--white) !important;
}

.ai-content-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.ai-section {
    margin-bottom: 40px !important;
    padding: 30px !important;
    background: var(--white) !important;
    border-radius: var(--radius) !important;
    border-left: 4px solid var(--blue-700) !important;
    box-shadow: var(--shadow) !important;
}
.ai-section h2 {
    color: var(--blue-900) !important;
    margin-top: 0 !important;
    font-size: 1.8em !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}
.ai-section h3 {
    color: var(--blue-700) !important;
    margin-top: 25px !important;
    font-size: 1.3em !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}
.ai-section ul {
    margin-left: 20px !important;
    padding-left: 0 !important;
    list-style-position: outside !important;
}
.ai-section li {
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
    color: var(--text) !important;
}
.ai-section p {
    line-height: 1.6 !important;
    color: var(--text) !important;
    margin-bottom: 15px !important;
}
.ai-section strong {
    color: var(--blue-700) !important;
    font-weight: 600 !important;
}

.ai-cta-section {
    text-align: center !important;
    padding: 50px 40px !important;
    background: var(--bg) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 40px !important;
    box-shadow: var(--shadow) !important;
}
.ai-cta-section h2 {
    color: var(--blue-900) !important;
    margin-top: 0 !important;
    font-size: 1.8em !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}
.ai-cta-section p {
    margin-bottom: 30px !important;
    font-size: 1.1em !important;
    color: var(--text) !important;
}

/* Buttons */
.ai-button,
a.ai-button {
    display: inline-block !important;
    background: var(--blue-700) !important;
    color: var(--white) !important;
    padding: 15px 30px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    margin: 10px !important;
    font-weight: 600 !important;
    transition: background 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}
.ai-button:hover,
a.ai-button:hover {
    background: var(--blue-900) !important;
    color: var(--white) !important;
    text-decoration: none !important;
}

.ai-button-secondary,
a.ai-button-secondary {
    display: inline-block !important;
    background: var(--green) !important;
    color: var(--white) !important;
    padding: 15px 30px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    margin: 10px !important;
    font-weight: 600 !important;
    transition: background 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}
.ai-button-secondary:hover,
a.ai-button-secondary:hover {
    background: var(--green-dark) !important;
    color: var(--white) !important;
    text-decoration: none !important;
}

/* Entry content overrides for this page */
.page-ai-infrastructure-guide .entry-content {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--text) !important;
}
.page-ai-infrastructure-guide .entry-content h2 {
    color: var(--blue-900) !important;
}
.page-ai-infrastructure-guide .entry-content h3 {
    color: var(--blue-700) !important;
}

/* ===================================
   PRODUCT LOOP — NTS Card (refactored from inline styles)
   =================================== */
.nts-product-images {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  cursor: pointer;
}

.nts-slider-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.nts-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  display: none;
}

.nts-slide.active {
  display: block;
}

.nts-slider-nav {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}

.nts-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.nts-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  transition: background .15s;
}

.nts-dot.active {
  background: var(--blue-900);
}

.nts-no-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafd;
  color: var(--muted);
  font-size: 14px;
  min-height: 200px;
  border-bottom: 1px solid var(--line);
}

.nts-product-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nts-product-cats {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.nts-product-title {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 600;
  line-height: 1.4;
}

.nts-product-title a {
  text-decoration: none;
  color: inherit;
}

.nts-product-title a:hover {
  color: var(--blue-700);
}

.nts-product-excerpt {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
  line-height: 1.5;
}

.nts-product-price {
  margin-top: 10px;
}

.nts-product-price .amount {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}

/* Override existing product image styles for slider cards */
ul.products li.product .nts-product-images img,
.products .product .nts-product-images img {
  height: auto;
  border-bottom: none;
  padding: 0;
  background: transparent;
}

/* ── Filter bar ── */
.nts-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.nts-filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.nts-filter-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
.nts-filter-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
  background: var(--blue-100);
}
.nts-filter-btn.active {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
}
.nts-filter-ff {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nts-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .nts-filter-bar { flex-direction: column; align-items: stretch; }
  .nts-filter-ff { flex-wrap: wrap; }
}
