/* Site-specific overrides for the clean static rebuild. */

.cf-field-error {
  color: #b00020;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.35;
}

#butnuidsss {
  display: none;
}

.logobox .gallery-item img {
  max-height: 40px;
  width: auto;
  display: block;
}

/* Category pages: ensure banner highlight bullets are readable */
#banner-block-text ul,
#banner-block-text ol,
#banner-block-text li {
  color: #fff;
}

/* Category pages: images inside the 4 main blocks */
.cf-cat-box-img {
  display: block;
  width: 100%;
  height: 170px;
  margin: 0 0 12px 0;
  object-fit: cover;
}

/* Category pages: inquiry form spacing */
.cf-category-form {
  padding: 60px 0;
}

/* Products page: category cards (icons + hover effect). */
.sboxex .sbox {
  background: #fff;
  /* border: 1px solid #e3e6ea; soften theme border */
  border-radius: 0;
  box-shadow: none;
  transition: background-color 180ms ease;
}

.sboxex a.sbox {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sboxex a.sbox:hover {
  text-decoration: none;
}

.sboxex .row .sbox + .sbox {
  border-left: 1px solid #e3e6ea; /* override theme's darker border */
}

.sboxex .rowtwo {
  border-top: 1px solid #e3e6ea; /* override theme's darker border */
}

.sboxex .sbox-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 40px;
  height: 40px;
}

.sboxex .sbox-icon svg {
  display: block;
}

.sboxex .sbox-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.sboxex .sbox:hover {
  background: #fffbe9;
  box-shadow: none;
  transform: none;
}

.sboxex .sbox:hover .sbox-icon {
  color: #325699;
}

.sboxex .sbox:focus-within {
  outline: 2px solid rgba(50, 86, 153, 0.35);
  outline-offset: 2px;
}

/* Products page: "More than Alibaba" + report sections. */
.cf-more-than-alibaba .commoncon {
  width: 920px;
  max-width: 100%;
}

.cf-more-than-alibaba .fouboxcon {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  padding: 28px;
  height: 100%;
}

.cf-more-than-alibaba .fouboxcon h3 {
  color: #325699;
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 10px;
}

.cf-more-than-alibaba .fouboxcon p {
  color: #595959;
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 0;
}

.cf-advantages {
  margin-top: 25px;
  align-items: stretch;
}

.cf-monthly-report {
  margin-top: 20px;
}

.cf-monthly-report .commoncon {
  width: 920px;
  max-width: 100%;
}

.cf-report-form {
  margin-top: 20px;
}

.cf-report-form input {
  width: 100%;
  border: 1px solid #d6dbe2;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 20px;
  outline: none;
}

.cf-report-form input:focus {
  border-color: rgba(50, 86, 153, 0.6);
  box-shadow: 0 0 0 3px rgba(50, 86, 153, 0.12);
}

.cf-report-form button {
  width: 100%;
  border: 2px solid #325699;
  border-radius: 8px;
  background: #325699;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cf-report-form button:hover {
  background: #fff;
  color: #325699;
  transform: translateY(-1px);
}

.cf-report-form .row > div {
  margin-bottom: 12px;
}

/* Header dropdown fix:
   - Prevent nested submenus from showing "by default" when hovering parent.
   - Make nested submenu open only on hover of its parent item (desktop). */
@media (min-width: 992px) {
  /* Undo overly-broad theme rule: `.site-nav li:hover .sub-menu { display:block; }` */
  .site-nav li:hover .sub-menu {
    display: none;
  }

  /* Only open the immediate submenu for the hovered item */
  .site-nav li:hover > .sub-menu {
    display: block;
  }

  /* Nested (3rd-level) flyout */
  .site-nav .sub-menu li.menu-item-has-children {
    position: relative;
  }

  /* Theme sets `.sub-menu ul { position: relative; }` (mobile behavior).
     On desktop that causes layout shift (looks like extra bottom margin) when the flyout opens. */
  .site-nav .sub-menu ul {
    position: absolute;
    top: 0;
    left: 100% !important;
  }

  .site-nav .sub-menu li.menu-item-has-children > .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
  }

  .site-nav .sub-menu li.menu-item-has-children:hover > .sub-menu {
    display: block;
  }

  /* When hovering a top-level item (e.g., Services), theme sets ALL descendant <a> to white.
     Keep submenu links dark by default; only the hovered submenu item becomes white. */
  .site-nav li:hover > .sub-menu a {
    color: #616161;
  }
  .site-nav li:hover > .sub-menu li:hover > a {
    color: #fff;
  }
}

/* Logo image used in header + footer */
.klg-logo-img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header sizing */
.site-header .site-logo .klg-logo-img {
  max-height: 84px;
}

/* Footer sizing */
.site-footer .site-logo .klg-logo-img {
  max-height: 90px;
}

@media (max-width: 575.98px) {
  .site-header .site-logo .klg-logo-img {
    max-height: 68px;
  }
}

/* Import Tutorial: Episode Guide list (not a real <ol>, but styled like resource rows) */
.cf-episode-guide .por-title a {
  color: inherit;
  text-decoration: none;
}

.cf-episode-guide .por-title a:hover {
  text-decoration: underline;
}

.cf-import-chapter .cf-chapter-content h3 {
  margin-top: 22px;
}

/* Import Tutorial: Chapter Table of Contents */
.cf-import-chapter .cf-chapter-toc-inner {
  border: 1px solid #e3e6ea;
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
}

.cf-import-chapter .cf-chapter-toc-title {
  font-weight: 700;
  color: #325699;
  margin-bottom: 10px;
}

.cf-import-chapter .cf-chapter-toc-list {
  margin: 0;
  padding-left: 18px;
}

.cf-import-chapter .cf-chapter-toc-list a {
  color: #325699;
  text-decoration: none;
}

.cf-import-chapter .cf-chapter-toc-list a:hover {
  text-decoration: underline;
}

/* Native PHP forms: focus card + theme-aligned border */
.formcode > .alert,
.aboutcontent.quotepage > .alert {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  border: 1px solid #e8b4b4;
  margin-bottom: 14px;
}

.formcode .cf-form {
  margin-top: 8px;
}

.cf-form {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px 32px 36px;
  background: linear-gradient(180deg, #fbfcff 0%, #f1f6ff 100%);
  border: 3px solid rgba(50, 86, 153, 0.55);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 4px 24px rgba(50, 86, 153, 0.12),
    0 0 40px rgba(50, 86, 153, 0.08);
}

.cf-form h3 {
  color: #325699;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cf-form h3:not(:first-child) {
  margin-top: 8px;
}

.cf-form hr {
  border: 0;
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(50, 86, 153, 0.35) 15%,
    rgba(50, 86, 153, 0.35) 85%,
    transparent
  );
}

.cf-form label {
  display: block;
  font-weight: 600;
  color: #03559f;
  margin-bottom: 6px;
}

/* Inline choice labels (radio / checkbox) */
.cf-form label:has(> input[type="radio"]),
.cf-form label:has(> input[type="checkbox"]) {
  display: inline-block;
  font-weight: 500;
  color: #595959;
  margin-bottom: 0;
  margin-right: 18px;
  margin-top: 4px;
  cursor: pointer;
}

.cf-form label:has(> input[type="radio"]) input,
.cf-form label:has(> input[type="checkbox"]) input {
  margin-right: 6px;
  vertical-align: middle;
}

.cf-form .form-control {
  border-color: #c5d0e8;
  border-radius: 8px;
}

.cf-form .form-control:focus {
  border-color: #325699;
  box-shadow: 0 0 0 3px rgba(50, 86, 153, 0.2);
}

.cf-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Get a Quote: Ship from country is fixed to China */
.cf-ship-from-country-fixed {
  padding: 10px 14px;
  background: rgba(50, 86, 153, 0.07);
  border: 1px solid #c5d0e8;
  border-radius: 8px;
  color: #325699;
  font-weight: 600;
}

/* Bootstrap grid: remove left gutter inside forms only */
.cf-form .row {
  margin-left: 0;
  margin-right: 0;
}

.cf-form .col-md-6 {
  padding-left: 0;
}

.cf-form .col-md-6 + .col-md-6 {
  padding-left: 15px;
}

@media (max-width: 767px) {
  .cf-form {
    padding: 20px 18px 24px;
    border-radius: 12px;
  }

  .cf-form .col-md-6 + .col-md-6 {
    padding-left: 0;
    margin-top: 12px;
  }
}

.cf-form .btn-primary {
  background-color: #325699;
  border-color: #325699;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 24px;
}

.cf-form .btn-primary:hover,
.cf-form .btn-primary:focus {
  background-color: #2a4a82;
  border-color: #2a4a82;
}

/* Tom Select (searchable country) — control sits in form, dropdown is portaled to body */
.cf-form .ts-wrapper.single .ts-control {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #c5d0e8;
  box-shadow: none;
  padding: 6px 10px;
}

.cf-form .ts-wrapper.single.focus .ts-control {
  border-color: #325699;
  box-shadow: 0 0 0 3px rgba(50, 86, 153, 0.2);
}

.cf-form .ts-wrapper .ts-control input {
  min-width: 8ch;
}

body .ts-dropdown {
  border-radius: 8px;
  border: 1px solid #c5d0e8;
  box-shadow: 0 8px 28px rgba(50, 86, 153, 0.18);
  z-index: 5000;
}

body .ts-dropdown .option {
  padding: 8px 12px;
}

body .ts-dropdown .active {
  background: rgba(50, 86, 153, 0.12);
  color: #325699;
}


