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

#butnuidsss {
  display: none;
}

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

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

.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 */
}

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

.sbox-icon svg {
  display: block;
}

.sboxex .sbox:hover {
  background: #fff6d8; /* light warm hover like reference */
  border-color: #ffd08a;
  box-shadow: 0 10px 22px rgba(50, 86, 153, 0.12);
  transform: translateY(-2px);
}

.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;
  }
}

/* Header: inline "KLG International" light logo */
.cf-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cf-header-logo__emblem {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: block;
}

.cf-header-logo__emblem svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cf-header-logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cf-header-logo__name {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.18em;
  line-height: 1.05;
  background: linear-gradient(135deg, #a8c6ff 0%, #325699 45%, #1e3563 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.cf-header-logo__tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: #2a4a86;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .cf-header-logo__emblem {
    width: 46px;
    height: 46px;
  }

  .cf-header-logo__name {
    font-size: 18px;
    letter-spacing: 0.14em;
  }

  .cf-header-logo__tagline {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 575.98px) {
  .cf-header-logo {
    gap: 10px;
  }

  .cf-header-logo__name,
  .cf-header-logo__tagline {
    white-space: normal;
  }
}


