/* ==================================================
   Astral Logistics – Custom Styles
   ================================================== */

/*
 * Sticky header — separated ABOVE the hero/video (not overlaid on it).
 * Theme uses overflow-x:hidden on html/body which can break sticky;
 * overflow-x:clip keeps horizontal clipping without breaking sticky.
 */
html,
body {
  overflow-x: clip;
}

/* Desktop: in-flow solid bar above hero; sticks on scroll */
header.sticky-header {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background: #ffffff !important;
  margin: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Scrolled state (desktop) */
header.sticky-header.smaller,
header.sticky-header.header-light.smaller {
  position: sticky !important;
  top: 0;
  background: #ffffff !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Header CTA — white by default, logo blue bg on hover */
header.sticky-header a.btn-main.btn-line,
header.sticky-header.header-light a.btn-main.btn-line {
  color: var(--primary-color, #003893) !important;
  background: #ffffff !important;
  border: solid 1px var(--primary-color, #003893) !important;
}

header.sticky-header a.btn-main.btn-line:hover,
header.sticky-header.header-light a.btn-main.btn-line:hover {
  color: #ffffff !important;
  background: var(--primary-color, #003893) !important;
  border-color: var(--primary-color, #003893) !important;
}

/* Keep label visible (disable fx-slide hide on hover) */
header.sticky-header a.btn-main.fx-slide:hover span {
  transform: none !important;
  opacity: 1 !important;
}

/* ----- Header main menu: underline on hover + active ----- */
#mainmenu > li > a.menu-item {
  position: relative;
  text-decoration: none;
}

#mainmenu > li > a.menu-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  width: 100%;
  background: var(--primary-color, #003893);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  pointer-events: none;
}

#mainmenu > li > a.menu-item:hover::after,
#mainmenu > li > a.menu-item:focus::after,
#mainmenu > li > a.menu-item.active::after {
  transform: scaleX(1);
}

#mainmenu > li > a.menu-item:hover,
#mainmenu > li > a.menu-item:focus,
#mainmenu > li > a.menu-item.active {
  color: var(--primary-color, #003893) !important;
}

/* Scrolled header: keep underline aligned with tighter padding */
header.smaller #mainmenu > li > a.menu-item::after {
  bottom: 14px;
}

/* Mobile/tablet/small laptop: simpler solid underline, no animated bar (theme hides :after) */
@media only screen and (max-width: 1199.98px) {
  #mainmenu > li > a.menu-item::after {
    display: none;
  }

  #mainmenu > li > a.menu-item.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--primary-color, #003893);
  }
}

/* ----- Header logo: only ONE visible at a time ----- */
/* Theme has 3 imgs (main / scroll / mobile). Never force display:block on all. */
header div#logo img.logo-main,
header div#logo img.logo-scroll,
header div#logo img.logo-mobile {
  width: 180px;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

/* Default desktop: only main logo */
header div#logo img.logo-main {
  display: block;
}

header div#logo img.logo-scroll,
header div#logo img.logo-mobile {
  display: none !important;
}

header.smaller div#logo img.logo-main {
  width: 150px;
  max-width: 150px;
}

/* #logo link must not flex-row all images into a strip */
header #logo a {
  display: inline-block;
  line-height: 0;
}

/* ==================================================
   Tablet + mobile + small laptop (≤1199px) — hamburger nav
   Theme mobile menu needs fixed + overflow clip, not sticky.
   ================================================== */
@media only screen and (max-width: 1199.98px) {

  /* Restore theme mobile shell (our sticky was breaking layout) */
  header.sticky-header,
  header.sticky-header.smaller,
  header.sticky-header.header-mobile,
  header.sticky-header.header-mobile.smaller,
  header.sticky-header.header-light.header-mobile {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: auto;
  }

  /* When hamburger opens, JS sets height to viewport */
  header.sticky-header.menu-open,
  header.sticky-header.header-mobile.menu-open {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Top bar: logo left, actions right — menu is NOT a flex peer */
  header.sticky-header .de-flex {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    min-height: 56px;
  }

  header.sticky-header .de-flex > .de-flex-col {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  /* Logo column */
  header.sticky-header .de-flex > .de-flex-col:first-child {
    flex: 0 1 auto;
    max-width: 55%;
    z-index: 2;
  }

  /* Actions column (Book + hamburger) — pin right */
  header.sticky-header .de-flex > .de-flex-col:last-child {
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 2;
  }

  /* Mid column must NOT sit beside logo — full-width panel below bar */
  header.sticky-header .header-col-mid {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0;
    overflow: visible;
    z-index: 1;
  }

  /* Menu list starts cleanly under the logo bar (not over logo) */
  header.sticky-header.header-mobile #mainmenu,
  header.sticky-header #mainmenu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 0 40px !important;
    float: none !important;
    background: #ffffff;
  }

  header.sticky-header.header-mobile #mainmenu > li,
  header.sticky-header #mainmenu > li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: solid 1px #eee;
    position: relative;
  }

  header.sticky-header.header-mobile #mainmenu a.menu-item,
  header.sticky-header #mainmenu a.menu-item {
    display: block;
    width: 100%;
    text-align: left !important;
    padding: 14px 40px 14px 0 !important;
    color: var(--heading-font-color, #181D24) !important;
    background: none !important;
  }

  /* Keep submenu toggles on the same row as the label */
  header.sticky-header.header-mobile #mainmenu > li > span,
  header.sticky-header #mainmenu > li > span,
  header.header-mobile #mainmenu > li > span {
    top: 6px !important;
    margin-top: 0 !important;
    right: 0 !important;
  }

  header.header-mobile #mainmenu > li.has-child:after,
  header.header-mobile #mainmenu > li.menu-item-has-children > a.menu-item:after,
  header.sticky-header.header-mobile #mainmenu > li.menu-item-has-children > a.menu-item:after {
    display: none !important;
    content: none !important;
  }

  header.sticky-header.header-mobile #mainmenu li ul,
  header.sticky-header #mainmenu li ul {
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 0;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    background: none !important;
    box-shadow: none !important;
  }

  header.sticky-header.header-mobile #mainmenu li ul li a,
  header.sticky-header #mainmenu li ul li a,
  header.header-light.header-mobile #mainmenu li ul li a {
    color: var(--heading-font-color, #181D24) !important;
    display: block !important;
    text-align: left !important;
    padding: 8px 12px 8px 16px !important;
    background: none !important;
  }

  /* Compact logo so bar stays one clean row — still only main logo */
  header.sticky-header div#logo img.logo-main {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
    display: block !important;
  }

  header.sticky-header div#logo img.logo-scroll,
  header.sticky-header div#logo img.logo-mobile {
    display: none !important;
  }

  header.sticky-header #logo a {
    display: inline-block;
    line-height: 0;
  }

  /* Burger + CTA contrast */
  header.sticky-header.header-mobile #menu-btn,
  header.sticky-header #menu-btn {
    color: var(--heading-font-color, #181D24) !important;
    display: block !important;
  }

  header.sticky-header .menu_side_area {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  header.sticky-header .menu_side_area .btn-main {
    white-space: nowrap;
  }

  /* Offset page content under fixed tablet header */
  #content {
    padding-top: 80px;
  }

  /* Subheader pages already use sm-mt-90 — avoid double gap */
  #content #subheader.sm-mt-90 {
    margin-top: 0 !important;
  }
}

/* Phone: slightly smaller logo + CTA — keep a single logo only */
@media only screen and (max-width: 767px) {
  header.sticky-header div#logo img.logo-main,
  header div#logo img.logo-main {
    width: 120px !important;
    max-width: 120px !important;
    display: block !important;
  }

  /* Override theme swap to logo-mobile so we never show 2–3 logos */
  header div#logo img.logo-scroll,
  header div#logo img.logo-mobile,
  header.sticky-header div#logo img.logo-scroll,
  header.sticky-header div#logo img.logo-mobile {
    display: none !important;
  }

  header.sticky-header .menu_side_area .btn-main.btn-line,
  header.sticky-header.header-mobile .menu_side_area a.btn-main {
    display: inline-flex !important;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
    line-height: 1.2;
  }

  #content {
    padding-top: 72px;
  }
}

/* ----- Footer logo sizing ----- */
footer .logo-footer {
  width: 170px;
  max-width: 170px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ----- Side panel (extra) logo sizing ----- */
#extra-content .logo-extra {
  width: 200px;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ----- Developer brand (Catalyst Tech) ----- */
.developer-brand {
  color: #B8B806 !important;
  text-decoration: none !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Icon hidden by default — only shows on hover */
.developer-brand i {
  font-size: 0.75em;
  color: #B8B806;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transform: translate(-4px, 2px);
  transition: opacity 0.3s ease, max-width 0.3s ease, margin-left 0.3s ease, transform 0.3s ease;
}

/* Underline hidden by default */
.developer-brand::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: #B8B806;
  transition: width 0.3s ease;
}

/* On hover: underline + open-in-tab icon */
.developer-brand:hover,
.developer-brand:focus {
  color: #B8B806 !important;
}

.developer-brand:hover::after,
.developer-brand:focus::after {
  width: 100%;
}

.developer-brand:hover i,
.developer-brand:focus i {
  max-width: 1.2em;
  margin-left: 6px;
  opacity: 1;
  transform: translate(0, 0);
}

/* ==================================================
   Air Freight — Seamless Process (icon cards)
   ================================================== */
.air-process-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.air-process-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--rounded-1, 10px);
  padding: 32px 28px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.air-process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 56, 147, 0.12);
  border-color: rgba(0, 56, 147, 0.18);
}

.air-process-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--primary-color, #003893);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(0, 56, 147, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}

.air-process-card:hover .air-process-icon {
  transform: scale(1.06);
}

.air-process-step {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-color, #003893);
  background: rgba(0, 56, 147, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1.4;
}

.air-process-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--heading-font-color, #181D24);
}

.air-process-card p {
  margin-bottom: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

@media only screen and (max-width: 767px) {
  .air-process-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .air-process-card {
    padding: 28px 24px 24px;
  }

  .air-process-icon {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}

/* ==================================================
   Customs Clearance Process — colorful icon cards
   ================================================== */
.customs-process-section {
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.customs-process-card {
  --accent: #003893;
  --accent-rgb: 0, 56, 147;
  --accent-2: #1a5fd4;

  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 36px 28px 30px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
  overflow: hidden;
  z-index: 1;
}

/* Colored top accent bar (grows on hover) */
.customs-process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

/* Soft glow wash on hover */
.customs-process-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(var(--accent-rgb), 0.12) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.customs-process-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 22px 48px rgba(var(--accent-rgb), 0.18),
    0 8px 18px rgba(0, 0, 0, 0.06);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.customs-process-card:hover::before {
  transform: scaleX(1);
}

.customs-process-card:hover::after {
  opacity: 1;
}

/* Accent color variants */
.customs-process-card[data-accent="blue"] {
  --accent: #003893;
  --accent-rgb: 0, 56, 147;
  --accent-2: #1a6cff;
}

.customs-process-card[data-accent="teal"] {
  --accent: #0d9488;
  --accent-rgb: 13, 148, 136;
  --accent-2: #14b8a6;
}

.customs-process-card[data-accent="orange"] {
  --accent: #ea580c;
  --accent-rgb: 234, 88, 12;
  --accent-2: #f97316;
}

.customs-process-card[data-accent="purple"] {
  --accent: #7c3aed;
  --accent-rgb: 124, 58, 237;
  --accent-2: #a78bfa;
}

.customs-process-card[data-accent="green"] {
  --accent: #059669;
  --accent-rgb: 5, 150, 105;
  --accent-2: #10b981;
}

.customs-process-card[data-accent="red"] {
  --accent: #dc2626;
  --accent-rgb: 220, 38, 38;
  --accent-2: #f87171;
}

.customs-process-card[data-accent="cyan"] {
  --accent: #0891b2;
  --accent-rgb: 8, 145, 178;
  --accent-2: #22d3ee;
}

.customs-process-card[data-accent="indigo"] {
  --accent: #4338ca;
  --accent-rgb: 67, 56, 202;
  --accent-2: #6366f1;
}

/* Large colorful icons */
.customs-process-icon {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 24px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow:
    0 14px 28px rgba(var(--accent-rgb), 0.35),
    0 4px 10px rgba(var(--accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-radius 0.4s ease;
  z-index: 1;
}

/* Soft ring behind icon */
.customs-process-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: rgba(var(--accent-rgb), 0.12);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.customs-process-icon i {
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.customs-process-card:hover .customs-process-icon {
  transform: scale(1.1) rotate(-4deg);
  border-radius: 50%;
  box-shadow:
    0 18px 36px rgba(var(--accent-rgb), 0.45),
    0 6px 14px rgba(var(--accent-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.customs-process-card:hover .customs-process-icon::before {
  opacity: 1;
  transform: scale(1);
}

.customs-process-card:hover .customs-process-icon i {
  transform: scale(1.12);
  animation: customs-icon-bounce 0.6s ease;
}

@keyframes customs-icon-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2) translateY(-4px); }
  70%  { transform: scale(1.05) translateY(0); }
  100% { transform: scale(1.12); }
}

.customs-process-card h4 {
  position: relative;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--heading-font-color, #181D24);
  z-index: 1;
  transition: color 0.3s ease;
}

.customs-process-card:hover h4 {
  color: var(--accent);
}

.customs-process-card p {
  position: relative;
  margin-bottom: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  z-index: 1;
}

@media only screen and (max-width: 991px) {
  .customs-process-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

@media only screen and (max-width: 767px) {
  .customs-process-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .customs-process-card {
    padding: 30px 24px 26px;
  }

  .customs-process-icon {
    width: 76px;
    height: 76px;
    font-size: 30px;
    border-radius: 20px;
  }
}

/* ==================================================
   Warehousing — Seamless Process Flow (snake grid)
   ================================================== */
.warehouse-process-section {
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.warehouse-process-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 22, 48, 0.72) 0%,
      rgba(0, 56, 147, 0.55) 45%,
      rgba(10, 22, 48, 0.78) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* Desktop snake layout:
   01 → 02 → 03
              ↓
   06 ← 05 ← 04
   ↓
   07 → 08
*/
.warehouse-process-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "s1 s1 s2 s2 s3 s3"
    "s6 s6 s5 s5 s4 s4"
    "s7 s7 s7 s8 s8 s8";
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.warehouse-step-1 { grid-area: s1; }
.warehouse-step-2 { grid-area: s2; }
.warehouse-step-3 { grid-area: s3; }
.warehouse-step-4 { grid-area: s4; }
.warehouse-step-5 { grid-area: s5; }
.warehouse-step-6 { grid-area: s6; }
.warehouse-step-7 { grid-area: s7; }
.warehouse-step-8 { grid-area: s8; }

.warehouse-process-cell {
  position: relative;
  padding: 36px 32px 40px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 56, 147, 0.12);
  border-bottom: 1px solid rgba(0, 56, 147, 0.12);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  min-height: 220px;
}

/* Remove outer right borders on row-end cells */
.warehouse-step-3,
.warehouse-step-4,
.warehouse-step-8 {
  border-right: none;
}

/* Remove bottom borders on last row */
.warehouse-step-7,
.warehouse-step-8 {
  border-bottom: none;
}

.warehouse-process-cell:hover {
  background: rgba(0, 56, 147, 0.04);
  z-index: 2;
}

.warehouse-process-cell::before {
  content: attr(data-step);
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary-color, #003893);
  background: rgba(0, 56, 147, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
  opacity: 0.9;
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 1;
}

.warehouse-process-cell:hover::before {
  background: var(--primary-color, #003893);
  color: #ffffff;
}

.warehouse-process-cell h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--heading-font-color, #181D24);
  padding-right: 48px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.warehouse-process-cell:hover h4 {
  color: var(--primary-color, #003893);
}

.warehouse-process-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--primary-color, #003893);
  margin-bottom: 16px;
  transition: width 0.35s ease;
  position: relative;
  z-index: 1;
}

.warehouse-process-cell:hover .warehouse-process-line {
  width: 56px;
}

.warehouse-process-cell p {
  margin-bottom: 0;
  color: #555;
  font-size: 14.5px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Directional arrows between steps */
.warehouse-process-arrow {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 56, 147, 0.25);
  color: var(--primary-color, #003893);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.warehouse-process-cell:hover .warehouse-process-arrow {
  background: var(--primary-color, #003893);
  color: #ffffff;
  border-color: var(--primary-color, #003893);
}

.warehouse-process-arrow-right {
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
}

.warehouse-process-cell:hover .warehouse-process-arrow-right {
  transform: translateY(-50%) scale(1.08);
}

.warehouse-process-arrow-left {
  top: 50%;
  left: -14px;
  transform: translateY(-50%);
}

.warehouse-process-cell:hover .warehouse-process-arrow-left {
  transform: translateY(-50%) scale(1.08);
}

.warehouse-process-arrow-down {
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.warehouse-process-cell:hover .warehouse-process-arrow-down {
  transform: translateX(-50%) scale(1.08);
}

/* Soft accent wash on hover */
.warehouse-process-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 0%,
    rgba(0, 56, 147, 0.08) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.warehouse-process-cell:hover::after {
  opacity: 1;
}

@media only screen and (max-width: 991px) {
  .warehouse-process-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  /* Stack in DOM order 01–08 */
  .warehouse-process-flow {
    grid-template-columns: 1fr;
    grid-template-areas:
      "s1"
      "s2"
      "s3"
      "s4"
      "s5"
      "s6"
      "s7"
      "s8";
  }

  .warehouse-process-cell {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 56, 147, 0.12);
    min-height: 0;
    padding: 28px 24px 36px;
  }

  .warehouse-step-8 {
    border-bottom: none;
  }

  /* All connectors sit at bottom and point down */
  .warehouse-process-arrow-right,
  .warehouse-process-arrow-left {
    top: auto;
    bottom: -14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .warehouse-process-arrow-right i {
    transform: rotate(90deg);
  }

  .warehouse-process-arrow-left i {
    transform: rotate(-90deg);
  }

  .warehouse-process-cell:hover .warehouse-process-arrow-right,
  .warehouse-process-cell:hover .warehouse-process-arrow-left {
    transform: translateX(-50%) scale(1.08);
  }
}

@media only screen and (max-width: 767px) {
  .warehouse-process-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .warehouse-process-cell h4 {
    font-size: 18px;
  }

  .warehouse-process-cell p {
    font-size: 14px;
  }
}

/* ==================================================
   Sourcing — China Wholesale Markets
   ================================================== */
.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.sourcing-categories-section {
  padding-top: 10px;
  padding-bottom: 80px;
}

.sourcing-cat-grid {
  align-items: stretch;
}

.sourcing-cat-grid > [class*="col-"] {
  display: flex;
}

.sourcing-cat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-width: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  color: var(--heading-font-color, #181D24);
}

.sourcing-cat-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  background: #eef1f6;
}

.sourcing-cat-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.sourcing-cat-card > span:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 56px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  padding: 12px 12px 14px;
  background: #ffffff;
}

.sourcing-cat-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 56, 147, 0.12);
  border-color: rgba(0, 56, 147, 0.2);
  color: var(--primary-color, #003893);
}

.sourcing-cat-card:hover .sourcing-cat-thumb img {
  transform: scale(1.05);
}

.sourcing-markets-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.sourcing-market-block {
  scroll-margin-top: 120px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sourcing-market-block:last-child {
  border-bottom: 0;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.sourcing-market-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.sourcing-market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 56, 147, 0.1);
  border-color: rgba(0, 56, 147, 0.16);
}

.sourcing-market-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--heading-font-color, #181D24);
  line-height: 1.4;
}

.sourcing-market-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 8px;
}

.sourcing-market-card p:last-child {
  margin-bottom: 0;
}

.sourcing-market-card .market-address {
  font-size: 13px;
  color: var(--primary-color, #003893);
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 0;
}

.sourcing-market-card .market-address i {
  margin-right: 6px;
  font-size: 12px;
}

@media only screen and (max-width: 991px) {
  .sticky-sidebar {
    position: static;
  }

  .sourcing-markets-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media only screen and (max-width: 767px) {
  .sourcing-categories-section {
    padding-bottom: 50px;
  }

  .sourcing-cat-card > span:last-child {
    font-size: 13px;
    min-height: 50px;
    padding: 10px 8px 12px;
  }

  .sourcing-market-card {
    padding: 20px 18px;
  }
}

/* ==================================================
   Sea Freight — FCL / LCL solution image cards
   ================================================== */
.sea-solutions-section {
  padding-bottom: 20px;
}

#fcl,
#lcl {
  scroll-margin-top: 120px;
}

.sea-solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 40, 80, 0.08);
  text-decoration: none !important;
  color: inherit;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

.sea-solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(0, 56, 147, 0.16);
  border-color: rgba(0, 56, 147, 0.18);
}

.sea-solution-media {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #0e1624;
}

.sea-solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sea-solution-card:hover .sea-solution-media img {
  transform: scale(1.08);
}

.sea-solution-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 45%,
    rgba(0, 22, 58, 0.12) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.sea-solution-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-block;
  background: var(--primary-color, #003893);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 20px;
  line-height: 1.3;
  box-shadow: 0 6px 16px rgba(0, 56, 147, 0.35);
}

.sea-solution-body {
  position: relative;
  flex: 1;
  padding: 28px 28px 30px;
  background: #ffffff;
}

.sea-solution-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color, #003893);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sea-solution-card:hover .sea-solution-body::before {
  transform: scaleX(1);
}

.sea-solution-body h3 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--heading-font-color, #181D24);
  transition: color 0.3s ease;
}

.sea-solution-card:hover .sea-solution-body h3 {
  color: var(--primary-color, #003893);
}

.sea-solution-body p {
  margin-bottom: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

@media only screen and (max-width: 767px) {
  .sea-solution-media {
    height: 220px;
  }

  .sea-solution-body {
    padding: 22px 20px 24px;
  }

  .sea-solution-body h3 {
    font-size: 20px;
  }
}

/* ==================================================
   Home � service group headings (Transport / Storage)
   ================================================== */
.home-service-group-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-font-color, #181D24);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.home-service-group-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary-color, #003893);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Footer / overlay contact details */
footer .widget h3 a,
#extra-content a {
  color: inherit;
  text-decoration: none;
}

footer .widget h3 a:hover,
#extra-content a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer .widget h3.office-address {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
}

#extra-content .d-flex a {
  flex: 1;
}

.ms-80px a {
  color: inherit;
  text-decoration: none;
}

.ms-80px a:hover {
  color: var(--primary-color, #003893);
  text-decoration: underline;
}

/* ==================================================
   Site-wide responsive layout
   Phone · tablet · laptop · desktop · large screens
   ================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
iframe,
svg,
embed,
object {
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

header div#logo img {
  object-fit: contain;
}

#wrapper,
.swiper,
.swiper-wrapper,
.mh-800,
.hero-slider {
  max-width: 100%;
  overflow: hidden;
}

.row {
  min-width: 0;
}

.row > [class*="col-"] {
  min-width: 0;
  max-width: 100%;
}

/* Long emails / addresses wrap instead of overflowing */
footer .widget h3 a,
#extra-content a,
.ms-80px a,
.office-address a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Hide theme's white dropdown arrows; use a visible chevron on light header */
header.header-light.header-mobile #mainmenu > li > span,
header.sticky-header.header-mobile #mainmenu > li > span {
  background-image: url("../images/ui/arrow-down.png") !important;
  background-repeat: no-repeat;
  background-position: center;
}

header.header-light.header-mobile #mainmenu > li > span.active,
header.sticky-header.header-mobile #mainmenu > li > span.active {
  background-image: url("../images/ui/arrow-up.png") !important;
}

/* ----- Extra side panel ----- */
#extra-wrap {
  max-width: 100%;
}

#extra-content {
  box-sizing: border-box;
}

/* ----- CTA strip ----- */
section.bg-color.pt-50 .row {
  align-items: center;
}

/* ----- Why Choose Us icon + text ----- */
.ps-100 {
  min-width: 0;
}

/* ----- FAQ tabs ----- */
.de-tab .d-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==================================================
   Large desktop (≥1600px)
   ================================================== */
@media (min-width: 1600px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1400px;
  }

  header div#logo img.logo-main {
    width: 190px;
    max-width: 190px;
  }
}

/* ==================================================
   Standard laptop / desktop (1200px–1399px)
   Keep the full menu on one row
   ================================================== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  header.sticky-header .de-flex {
    flex-wrap: nowrap;
    align-items: center;
  }

  header div#logo img.logo-main,
  header.smaller div#logo img.logo-main {
    width: 150px;
    max-width: 150px;
  }

  #mainmenu > li {
    margin-right: 14px;
  }

  #mainmenu > li > a {
    font-size: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  header.sticky-header a.btn-main.btn-line {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 13px;
  }

  #btn-extra {
    margin-left: 12px;
  }
}

/* Theme forces container to 1240px from 1000px — too wide for 1024–1199 */
@media (min-width: 1000px) and (max-width: 1199.98px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 100%;
  }
}

/* ==================================================
   Tablet + small laptop (≤1199px)
   ================================================== */
@media only screen and (max-width: 1199.98px) {
  .row.gx-5 {
    --bs-gutter-x: 1.5rem;
  }

  .mh-800 {
    height: 70svh;
    min-height: 520px;
    max-height: 760px;
  }

  .hero-slider .sw-caption h1,
  .sw-caption h1 {
    font-size: clamp(32px, 4.4vw, 52px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
  }

  .sw-caption {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 18px;
  }

  #subheader {
    padding: 80px 0 56px 0;
  }

  #subheader h1 {
    font-size: clamp(34px, 5vw, 48px) !important;
  }

  h1 {
    font-size: clamp(34px, 5vw, 52px);
  }

  h2 {
    font-size: clamp(28px, 4vw, 40px);
  }

  footer .widget h3.office-address,
  footer .widget h3 {
    font-size: 18px;
  }

  #extra-wrap {
    width: 420px;
    right: -420px;
  }

  #extra-wrap.open {
    right: 0;
  }

  #extra-content {
    padding: 40px 28px;
    right: 0;
  }

  section.bg-color.pt-50 .text-lg-end {
    text-align: left !important;
  }

  .hover .abs.p-40 {
    padding: 24px !important;
  }

  header #btn-extra {
    display: none !important;
  }

  header.sticky-header .menu_side_area a.btn-main {
    display: inline-flex !important;
  }
}

/* ==================================================
   Tablet (≤991px)
   ================================================== */
@media only screen and (max-width: 991.98px) {
  .service-side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px !important;
    margin-right: 0 !important;
  }

  .service-side-nav > a {
    margin-bottom: 0 !important;
    text-align: center;
    padding: 12px 10px !important;
  }

  .service-side-nav > a h5 {
    font-size: 14px;
    line-height: 1.35;
  }

  .warehouse-process-flow {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "s1 s2"
      "s3 s4"
      "s5 s6"
      "s7 s8";
  }

  .warehouse-process-cell {
    border-right: 1px solid rgba(0, 56, 147, 0.12);
  }

  .warehouse-step-2,
  .warehouse-step-4,
  .warehouse-step-6,
  .warehouse-step-8 {
    border-right: none;
  }

  .warehouse-process-arrow,
  .warehouse-process-arrow-right,
  .warehouse-process-arrow-left,
  .warehouse-process-arrow-down {
    display: none;
  }

  .sticky-sidebar {
    position: static;
    top: auto;
  }

  .ms-80px {
    margin-left: 70px;
  }

  .de-tab .d-tab-nav li {
    padding: 8px 14px;
    font-size: 14px;
  }

  .about-overlap-img,
  img.w-40.abs {
    max-width: 42%;
  }

  .pe-5.pb-5 {
    padding-right: 2rem !important;
    padding-bottom: 2rem !important;
  }

  footer .footer-contact-head h2 {
    font-size: 32px;
  }
}

/* ==================================================
   Phone + large phone (≤767px)
   ================================================== */
@media only screen and (max-width: 767.98px) {
  .hero-slider,
  section.m-3,
  #subheader.m-3 {
    margin: 10px !important;
  }

  .mh-800 {
    height: 62svh;
    min-height: 460px;
    max-height: 620px;
  }

  .hero-slider .sw-caption,
  .sw-caption {
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 8px;
    z-index: 3;
  }

  .hero-slider .sw-caption h1,
  .sw-caption h1 {
    font-size: clamp(26px, 8vw, 36px) !important;
    margin-bottom: 12px;
  }

  .sw-caption p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
    z-index: 4;
    opacity: 0.85;
  }

  h1,
  #subheader h1,
  h1.ultra-big,
  h1.slider-title {
    font-size: clamp(28px, 8.5vw, 36px) !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.25 !important;
  }

  h3 {
    font-size: 20px;
  }

  .fs-32 {
    font-size: 22px !important;
  }

  #subheader {
    padding: 56px 0 40px 0 !important;
  }

  .service-side-nav {
    grid-template-columns: 1fr 1fr;
  }

  .hover .abs.p-40,
  .owl-carousel .abs.p-40 {
    padding: 18px !important;
  }

  .owl-carousel .abs.w-50,
  .hover .abs.w-50 {
    width: 85% !important;
  }

  .ps-100 {
    padding-left: 84px;
  }

  .ps-100.ms-4 {
    margin-left: 0.75rem !important;
  }

  .ms-80px {
    margin-left: 64px;
  }

  .de-tab .d-tab-nav {
    flex-direction: column;
  }

  .de-tab .d-tab-nav li {
    width: 100%;
    text-align: center;
  }

  .contact-form-card,
  .bg-light.p-60,
  .p-60 {
    padding: 24px !important;
  }

  footer .footer-contact-head h2 {
    font-size: 28px;
  }

  footer .footer-contact-arrow {
    width: 40px !important;
  }

  footer .widget h3,
  footer .widget h3.office-address {
    font-size: 16px;
    line-height: 1.45;
  }

  footer .logo-footer {
    width: 140px;
    max-width: 140px;
  }

  .subfooter-copy {
    font-size: 13px;
    line-height: 1.7;
    padding: 0 8px;
  }

  #extra-wrap {
    width: 100%;
    right: -100%;
  }

  #extra-wrap.open {
    right: 0;
  }

  #extra-content {
    padding: 28px 20px 40px;
  }

  #extra-content .logo-extra {
    width: 160px;
    max-width: 160px;
  }

  #btn-close {
    top: 22px;
    right: 18px;
  }

  section.bg-color.pt-50.pb-50 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    text-align: center;
  }

  section.bg-color.pt-50 .text-lg-end {
    text-align: center !important;
  }

  .warehouse-process-flow {
    grid-template-columns: 1fr;
    grid-template-areas:
      "s1"
      "s2"
      "s3"
      "s4"
      "s5"
      "s6"
      "s7"
      "s8";
  }

  .warehouse-process-cell {
    border-right: none !important;
  }

  header #btn-extra {
    display: none !important;
  }

  /* Keep Get a Quote next to the hamburger */
  header.sticky-header .de-flex {
    gap: 8px;
  }

  header.sticky-header .menu_side_area {
    gap: 6px;
  }
}

/* ==================================================
   Small phones (≤479px)
   ================================================== */
@media only screen and (max-width: 479.98px) {
  header.sticky-header div#logo img.logo-main,
  header div#logo img.logo-main {
    width: 108px !important;
    max-width: 108px !important;
  }

  header.sticky-header .menu_side_area .btn-main.btn-line {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 11px;
  }

  .mh-800 {
    height: 58svh;
    min-height: 420px;
  }

  .hero-slider .sw-caption h1,
  .sw-caption h1 {
    font-size: 26px !important;
  }

  .sw-caption p {
    display: none;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ps-100 {
    padding-left: 72px;
  }

  i.abs.fs-40.p-4 {
    padding: 12px !important;
    font-size: 28px !important;
  }

  .service-side-nav > a h5 {
    font-size: 13px;
  }

  footer .footer-contact-head h2 {
    font-size: 24px;
  }
}

/* ==================================================
   Very small phones (≤359px)
   ================================================== */
@media only screen and (max-width: 359.98px) {
  header.sticky-header .menu_side_area .btn-main.btn-line {
    display: none !important;
  }

  header.sticky-header div#logo img.logo-main {
    width: 100px !important;
    max-width: 100px !important;
  }

  .hero-slider .sw-caption h1,
  .sw-caption h1 {
    font-size: 22px !important;
  }
}

/* About page — CTA + avatars wrap on narrow screens */
@media only screen and (max-width: 575.98px) {
  .d-flex.align-items-center.justify-content-between.border-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }

  .abs.ol-lg-12.pos-sm-relative.bottom-0 {
    position: relative !important;
    bottom: auto !important;
    margin-top: 24px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slider .sw-caption h1,
  .air-process-card,
  .customs-process-card,
  .sea-solution-card,
  .sourcing-cat-card {
    transition: none !important;
    animation: none !important;
  }
}
