/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Basic Variables and Reset */
:root {
  font-size: 88%; /* Global compact scaling for laptop screens */
  --primary-navy: #2A306D;
  --primary-navy-light: #3D4485;
  --accent-orange: #F26938;
  --accent-orange-hover: #D95627;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-color: rgba(10, 37, 64, 0.08);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Futuristic Soft Glowing Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.02);
  --shadow-md: 0 12px 30px rgba(10, 37, 64, 0.04), 0 2px 4px rgba(10, 37, 64, 0.01);
  --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.06), 0 4px 8px rgba(10, 37, 64, 0.02);
  --shadow-xl: 0 30px 60px rgba(10, 37, 64, 0.1), 0 10px 20px rgba(10, 37, 64, 0.03);
  --shadow-orange-glow: 0 8px 25px rgba(255, 90, 31, 0.25);
  --shadow-navy-glow: 0 8px 25px rgba(10, 37, 64, 0.15);
  
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Header & Navigation - Floating Glassmorphism Compact */
header {
  position: fixed;
  top: 10px;
  left: 8%;
  right: 8%;
  width: 84%;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(42, 48, 109, 0.08);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  transition: var(--transition-smooth);
}

header:hover {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: 44px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary-navy) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-title);
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--primary-navy);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.nav-link:hover {
  background-color: rgba(10, 37, 64, 0.04);
  color: var(--accent-orange);
}

.nav-link.active {
  background-color: var(--primary-navy);
  color: #fff;
  box-shadow: var(--shadow-navy-glow);
}

.cta-nav {
  background-color: var(--accent-orange);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-orange-glow);
}

.cta-nav:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 90, 31, 0.4);
}

/* Page Section Base - Compact Padding */
.page-section {
  display: none;
  padding: 85px 4% 30px 4%;
  min-height: auto;
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.active {
  display: block;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Titles Compact */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 10px auto 25px auto;
}

.section-header h1 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* HOME PAGE STYLING */
#home-page {
  padding: 0;
}

.hero-container {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.88) 0%, rgba(10, 37, 64, 0.55) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 20px;
  color: #fff;
}

.hero-tag {
  background-color: rgba(255, 90, 31, 0.15);
  border: 1px solid rgba(255, 90, 31, 0.4);
  color: #ffa180;
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 900px;
  
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #00f3ff 50%, #ffffff 60%, #ffffff 100%);
  background-size: 300% auto;
  color: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neon-sweep 12s linear infinite;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-orange) 40%, #00f3ff 50%, var(--accent-orange) 60%, var(--accent-orange) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neon-sweep 12s linear infinite;
}

@keyframes neon-sweep {
  0% { background-position: 300% center; }
  100% { background-position: -100% center; }
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 38px;
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* BUTTONS - Futuristic Minimalistic */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff763d 100%);
  color: #fff;
  box-shadow: var(--shadow-orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 12px 30px rgba(255, 90, 31, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-2.5px);
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8e63 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(255, 90, 31, 0.4);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 90, 31, 0.6);
  filter: brightness(1.1);
  color: white;
}

.btn-hero-ai {
  background: rgba(10, 37, 64, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 2px solid #00f3ff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.25);
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-ai:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.7);
  background: rgba(0, 243, 255, 0.15);
  color: white;
}

/* Featured Section on Homepage */
.home-featured-section {
  padding: 90px 5%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.home-section-title {
  font-family: var(--font-title);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-navy);
  text-align: center;
  margin-bottom: 45px;
}

/* Category Grid on Home */
.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-strip-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  padding: 35px 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.tools-page-tab-card {
  padding: 15px 10px;
  width: 100%;
  max-width: none;
}

.category-strip-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 90, 31, 0.3);
  box-shadow: var(--shadow-lg);
}

.category-strip-card.active {
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-orange-glow);
  background-color: rgba(255, 90, 31, 0.03);
}

.category-strip-icon {
  font-size: 2.8rem;
  margin-bottom: 15px;
  display: block;
  transition: var(--transition-smooth);
}

.category-strip-card:hover .category-strip-icon {
  transform: scale(1.15);
}

.category-strip-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-navy);
}

/* Featured Boards image layout card */
.featured-boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.board-image-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 310px;
}

.board-image-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 90, 31, 0.25);
}

.board-image-wrapper {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
  border-bottom: 1.5px solid var(--border-color);
}

.board-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.board-image-card:hover .board-image-wrapper img {
  transform: scale(1.06);
}

.board-image-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.board-image-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.3;
}

.board-image-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.board-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50px;
  background-color: rgba(10, 37, 64, 0.05);
  color: var(--primary-navy);
  text-transform: uppercase;
}

.board-image-card:hover .board-badge {
  background-color: rgba(255, 90, 31, 0.12);
  color: var(--accent-orange);
}


.see-more-btn {
  padding: 15px 40px;
}

/* Popular Guide Teasers styling */
.popular-guide-teaser {
  text-align: left;
  border-left: 4px solid var(--accent-orange);
}

/* LEARNING HUB STYLING */
.search-container {
  max-width: 600px;
  margin: -25px auto 45px auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 24px 16px 56px;
  font-size: 1.05rem;
  border-radius: 50px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--primary-navy);
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 10px 25px rgba(255, 90, 31, 0.12);
}

.search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--text-muted);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1.5px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 90, 31, 0.2);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.category-icon {
  font-size: 2.2rem;
  background-color: rgba(10, 37, 64, 0.03);
  height: 56px;
  width: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.category-card:hover .category-icon {
  background-color: rgba(255, 90, 31, 0.1);
  color: var(--accent-orange);
}

.category-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.category-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}


.subtopics-list {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subtopic-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  color: var(--primary-navy);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.subtopic-item:hover {
  background-color: var(--bg-white);
  border-color: rgba(255, 90, 31, 0.2);
  color: var(--accent-orange);
  transform: translateX(4px);
}

.subtopic-item::before {
  content: '✦';
  color: var(--accent-orange);
  font-size: 0.85rem;
}

/* INTERACTIVE TOOLS STYLING */
.tools-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.tool-tab-btn {
  padding: 12px 26px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--primary-navy);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.tool-tab-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-1.5px);
}

.tool-tab-btn.active {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #fff;
  box-shadow: var(--shadow-navy-glow);
}

.tool-panel {
  display: none;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

.tool-panel.active {
  display: block;
}

/* 1. Incoterms responsibility matrix styles */
.incoterms-matrix-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.incoterms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom Scrollbars */
.incoterms-list::-webkit-scrollbar, .chat-message-area::-webkit-scrollbar {
  width: 6px;
}
.incoterms-list::-webkit-scrollbar-thumb, .chat-message-area::-webkit-scrollbar-thumb {
  background-color: rgba(10, 37, 64, 0.15);
  border-radius: 3px;
}
.incoterms-list::-webkit-scrollbar-track, .chat-message-area::-webkit-scrollbar-track {
  background-color: transparent;
}

.incoterm-selector-btn {
  padding: 14px 18px;
  text-align: left;
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-navy);
}

.incoterm-selector-btn:hover {
  background: var(--bg-white);
  border-color: rgba(255, 90, 31, 0.25);
  color: var(--accent-orange);
}

.incoterm-selector-btn.active {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-orange-glow);
}

.incoterm-code {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
}

.incoterm-name {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.incoterms-details-panel {
  background: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: 35px;
  border: 1px solid var(--border-color);
}

.incoterm-header-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.incoterm-title-large {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.incoterm-mode-tag {
  background-color: var(--primary-navy);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
}

.responsibility-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 25px;
  background: var(--bg-white);
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.step-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-navy);
}

.step-bar-container {
  height: 20px;
  background-color: #E2E8F0;
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.step-bar {
  height: 100%;
  width: 0;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50px;
}

.step-bar.seller {
  background: linear-gradient(90deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
}

.step-bar.buyer {
  background: linear-gradient(90deg, var(--accent-orange) 0%, #ff8652 100%);
}

.matrix-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.legend-color {
  height: 14px;
  width: 14px;
  border-radius: 50%;
}

.legend-color.seller { background-color: var(--primary-navy); }
.legend-color.buyer { background-color: var(--accent-orange); }

/* 2. Container Spec and CBM calculator style */
.container-calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.container-selector {
  margin-bottom: 25px;
}

.container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.container-btn {
  padding: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: var(--transition-smooth);
  color: var(--primary-navy);
}

.container-btn:hover {
  border-color: rgba(255, 90, 31, 0.3);
  background-color: var(--bg-white);
}

.container-btn.active {
  background-color: var(--primary-navy);
  color: #fff;
  border-color: var(--primary-navy);
}

.container-visualizer {
  height: 190px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.container-box-graphic {
  width: 270px;
  height: 95px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.container-box-graphic::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255,255,255,0.08);
  box-shadow: 22px 0 rgba(255,255,255,0.08), 44px 0 rgba(255,255,255,0.08), 66px 0 rgba(255,255,255,0.08), 88px 0 rgba(255,255,255,0.08), 110px 0 rgba(255,255,255,0.08), 132px 0 rgba(255,255,255,0.08), 154px 0 rgba(255,255,255,0.08), 176px 0 rgba(255,255,255,0.08), 198px 0 rgba(255,255,255,0.08), 220px 0 rgba(255,255,255,0.08), 242px 0 rgba(255,255,255,0.08);
}

.container-label-overlay {
  z-index: 5;
  background-color: var(--accent-orange);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(255, 90, 31, 0.3);
}

.calculator-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--border-radius-md);
}

.calc-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.form-input {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.1);
}

.calc-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.results-display {
  margin-top: 20px;
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 600;
}

.result-row:last-child {
  border-bottom: none;
}

.result-val {
  font-weight: 800;
  color: var(--accent-orange);
}

/* 3. Aircraft Hotspot Viewer styling */
.aircraft-panel-container {
  position: relative;
  width: 100%;
}

.aircraft-svg-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: 30px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.aircraft-image-bg {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: var(--accent-orange);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5);
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  z-index: 10;
  transition: var(--transition-smooth);
}

.hotspot:hover {
  background-color: var(--primary-navy);
  transform: scale(1.15);
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

.hotspot-info-card {
  margin-top: 30px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  min-height: 120px;
  border-left: 6px solid var(--accent-orange);
}

.hotspot-info-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

/* 4. Logistics grid styling */
.logistics-interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.logistic-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.logistic-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 31, 0.25);
  box-shadow: var(--shadow-md);
}

.logistic-card-num {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 2.2rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: rgba(10, 37, 64, 0.05);
}

.logistic-card-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.logistic-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.logistic-card-detail {
  display: none;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  color: var(--text-dark);
  margin-top: 12px;
}

.logistic-card.active {
  background-color: var(--bg-light);
}

.logistic-card.active .logistic-card-detail {
  display: block;
}

/* NEXUS AI CHAT STYLING */
.chat-container-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  height: 650px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.chat-sidebar {
  background-color: var(--bg-light);
  border-right: 1px solid var(--border-color);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-sidebar-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-navy);
}

.chat-preset-query {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-preset-query:hover {
  border-color: var(--accent-orange);
  background-color: rgba(255, 90, 31, 0.05);
  color: var(--accent-orange);
}

.api-key-setting {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.api-key-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.82rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  outline: none;
  margin-top: 5px;
  transition: var(--transition-smooth);
}

.api-key-input:focus {
  border-color: var(--accent-orange);
}

.chat-main-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.chat-header-bar {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-light);
}

.chat-avatar {
  height: 42px;
  width: 42px;
  min-width: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar.user {
  background-color: var(--accent-orange);
  box-shadow: var(--shadow-orange-glow);
}

.chat-avatar.system {
  background-color: var(--primary-navy);
  box-shadow: var(--shadow-navy-glow);
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 0;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chat-header-info h4 {
  font-family: var(--font-title);
  color: var(--primary-navy);
  font-size: 1.15rem;
  font-weight: 800;
}

.chat-header-info p {
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-message-area {
  flex: 1 1 0%;
  min-height: 0;
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #FAFAFA;
}

.chat-message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: slideUp 0.3s ease;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.system {
  align-self: flex-start;
}

.msg-bubble {
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  line-height: 1.5;
}

/* Markdown parsing styling inside chat message bubbles */
.msg-bubble h1, .msg-bubble h2, .msg-bubble h3 {
  font-family: var(--font-title);
  color: var(--primary-navy);
  margin-top: 14px;
  margin-bottom: 8px;
  font-weight: 800;
}

.msg-bubble h1 { font-size: 1.25rem; }
.msg-bubble h2 { font-size: 1.15rem; }
.msg-bubble h3 { font-size: 1.05rem; }

.chat-message.user .msg-bubble h1,
.chat-message.user .msg-bubble h2,
.chat-message.user .msg-bubble h3 {
  color: #ffffff;
}

.msg-bubble p {
  margin-bottom: 8px;
}

.msg-bubble p:last-child {
  margin-bottom: 0;
}

.msg-bubble ul, .msg-bubble ol {
  padding-left: 20px;
  margin: 8px 0;
}

.msg-bubble li {
  margin-bottom: 4px;
}

.msg-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.82rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.msg-bubble th, .msg-bubble td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.chat-message.system .msg-bubble th {
  background-color: rgba(10, 37, 64, 0.05);
  font-weight: 700;
  color: var(--primary-navy);
}

.chat-message.system .msg-bubble tr:last-child td {
  border-bottom: none;
}

.chat-message.user .msg-bubble th {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
  color: #fff;
}

.chat-message.user .msg-bubble td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message.user .msg-bubble {
  background-color: var(--accent-orange);
  color: #fff;
  border-top-right-radius: 2px;
}

.chat-message.system .msg-bubble {
  background-color: var(--bg-white);
  color: var(--text-dark);
  border-top-left-radius: 2px;
  border: 1px solid var(--border-color);
}


.chat-input-bar {
  padding: 15px 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  background-color: var(--bg-white);
}

.chat-input-text {
  flex-grow: 1;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.chat-input-text:focus {
  border-color: var(--accent-orange);
}

.chat-send-btn {
  background-color: var(--primary-navy);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-navy-glow);
}

.chat-send-btn:hover {
  background-color: var(--accent-orange);
  transform: scale(1.05);
  box-shadow: var(--shadow-orange-glow);
}

/* CONTACT & GET IN TOUCH STYLING */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
  color: #fff;
  border-radius: var(--border-radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.contact-info-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.contact-info-desc {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-detail-icon {
  font-size: 1.6rem;
  background-color: rgba(255, 255, 255, 0.1);
  height: 48px;
  width: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-text p {
  margin: 0 0 4px 0;
}

.contact-detail-text strong {
  display: block;
  line-height: 1.4;
  word-break: break-word;
}

.contact-detail-text a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-detail-text a:hover {
  color: var(--accent-orange);
}

.contact-socials {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-btn {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background-color: var(--accent-orange);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange-glow);
}

.contact-form-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

/* MODAL / POPUP STYLING */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  animation: modalScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close:hover {
  color: var(--accent-orange);
}

.modal-header {
  padding: 30px 40px 15px 40px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  padding-right: 40px;
}

.modal-category-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 1px;
}

.modal-body {
  padding: 30px 40px;
}

/* Video embed container styles */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.kb-content-text {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.kb-content-text h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 30px 0 12px 0;
}

.kb-content-text p {
  margin-bottom: 15px;
}

.kb-content-text ul, .kb-content-text ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.kb-content-text li {
  margin-bottom: 8px;
}

.kb-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.kb-table th, .kb-table td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.kb-table th {
  background-color: var(--primary-navy);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
}

.kb-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

.highlight-box {
  background-color: rgba(255, 90, 31, 0.04);
  border-left: 4px solid var(--accent-orange);
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  margin: 20px 0;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.highlight-box p {
  margin: 0;
  font-weight: 600;
}

.demurrage-detention-graphic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.graphic-box {
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-white);
}

.graphic-box.yellow { border-top: 4px solid #F59E0B; }
.graphic-box.orange { border-top: 4px solid var(--accent-orange); }
.graphic-box.blue { border-top: 4px solid #3B82F6; }

.graphic-box h4 {
  font-family: var(--font-title);
  margin-bottom: 10px;
  font-weight: 700;
}

.roles-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.role-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  text-align: center;
  flex: 1;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

.role-box h4 {
  font-family: var(--font-title);
  color: var(--primary-navy);
  margin-bottom: 5px;
  font-weight: 700;
}

.role-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.role-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.sop-timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 25px 0;
}

.sop-step {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-white);
  padding: 15px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.step-num {
  background-color: var(--accent-orange);
  color: #fff;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-title);
  box-shadow: 0 2px 6px rgba(255, 90, 31, 0.3);
}

/* Modal Helper Watch Link */
.modal-youtube-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #FF0000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 25px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.modal-youtube-btn:hover {
  background-color: #CC0000;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
}

/* Footer Styling - Strong Accent Bottom Bar */
footer {
  background-color: var(--primary-navy);
  color: #fff;
  padding: 60px 5% 30px 5%;
  border-top: 4px solid var(--accent-orange); /* Strong accent top line */
  text-align: left; /* Align text professionally left to match logo */
  box-shadow: 0 -4px 20px rgba(10, 37, 64, 0.05);
}


.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo h4 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--primary-navy);
  font-size: 1.4rem;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-menu-btn:hover,
.mobile-menu-btn.active {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

/* FULLSCREEN IMAGE LIGHTBOX MODAL */
.image-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 25, 45, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.image-lightbox-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.image-lightbox-container {
  background: #ffffff;
  border-radius: 16px;
  max-width: 1100px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

.lightbox-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-navy);
  text-align: center;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.lightbox-back-btn {
  background: var(--bg-light);
  color: var(--primary-navy);
  border: 1.5px solid var(--border-color);
}

.lightbox-back-btn:hover {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.lightbox-download-btn {
  background: var(--accent-orange);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-orange-glow);
}

.lightbox-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 31, 0.4);
}

.image-lightbox-body {
  padding: 20px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  max-height: calc(92vh - 75px);
}

.image-lightbox-body img {
  max-width: 100%;
  max-height: 75vh;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

/* Responsive Design Adjustments */
@media(max-width: 992px) {
  header {
    width: 94%;
    left: 3%;
    right: 3%;
    padding: 0 20px;
  }
  .hero-title { font-size: 3.4rem; }
  .incoterms-matrix-container { grid-template-columns: 1fr; }
  .container-calc-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .chat-container-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
}

@media(max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  header {
    flex-wrap: wrap;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 15px 10px;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    gap: 8px;
  }

  nav.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .section-header h1 { font-size: 2.2rem; }
  .modal-content { max-height: 95vh; }
  .modal-body { padding: 20px; }
  .modal-header { padding: 20px 20px 10px 20px; }
  .timeline-step { grid-template-columns: 1fr; gap: 10px; }
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 40px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  transition: background-color 0.4s ease, width 0.4s ease;
  cursor: pointer;
}

.indicator.active {
  background-color: var(--accent-orange);
  width: 70px;
}

/* GLOBAL INDUSTRY NEWS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 90, 31, 0.3);
}

.news-card-image {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.news-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--accent-orange);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.news-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.news-card:hover .news-read-more {
  color: var(--accent-orange);
}

/* Spinner Animation */
.news-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(10, 37, 64, 0.1);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* CORE FEATURES SECTION */
.core-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-pillar-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  text-align: center;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 90, 31, 0.4);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.1) 0%, rgba(10, 37, 64, 0.1) 100%);
  width: 90px;
  height: 90px;
  line-height: 90px;
  border-radius: 50%;
}

.feature-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--primary-navy);
  margin-bottom: 15px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.feature-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.25);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.feature-pillar-card:hover .feature-btn {
  box-shadow: 0 6px 20px rgba(255, 90, 31, 0.4);
  transform: translateY(-2px);
}


/* Infographic styling for knowledge base */
.kb-infographic { width: 100%; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Enhanced Documentation Checklist Generator Styling */
.doc-generator-card {
  max-width: 900px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 35px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(42, 48, 109, 0.1);
}

.doc-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

@media (max-width: 850px) {
  .doc-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .doc-controls-grid {
    grid-template-columns: 1fr;
  }
}

.doc-route-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.doc-route-flags {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
  font-weight: 700;
}

.doc-route-arrow {
  color: #38BDF8;
  font-size: 1.4rem;
}

.doc-trade-agreement {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38BDF8;
  color: #38BDF8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.doc-progress-wrapper {
  margin: 25px 0 20px 0;
  background: #F1F5F9;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.doc-progress-text {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.doc-progress-bg {
  width: 100%;
  height: 12px;
  background: #CBD5E1;
  border-radius: 20px;
  overflow: hidden;
}

.doc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 20px;
}

.doc-filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.doc-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-pill:hover, .doc-pill.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(42, 48, 109, 0.2);
}

.doc-item-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 5px solid var(--primary-navy);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.25 ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.doc-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.doc-item-card.completed {
  border-left-color: #10B981;
  background: #F0FDF4;
  opacity: 0.88;
}

.doc-checkbox {
  width: 22px;
  height: 22px;
  accent-color: #10B981;
  cursor: pointer;
  margin-top: 3px;
}

.doc-priority-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 8px;
}

.badge-24h { background: #FEE2E2; color: #DC2626; border: 1px solid #FCA5A5; }
.badge-customs { background: #DBEAFE; color: #1D4ED8; border: 1px solid #93C5FD; }
.badge-title { background: #FEF3C7; color: #D97706; border: 1px solid #FCD34D; }
.badge-safety { background: #F3E8FF; color: #7E22CE; border: 1px solid #D8B4FE; }

.doc-detail-btn {
  background: transparent;
  border: 1px solid var(--primary-navy);
  color: var(--primary-navy);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.doc-detail-btn:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
}

/* Modal Popup for Document Guide Details */
.doc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.doc-modal-container {
  background: #FFFFFF;
  width: 100%;
  max-width: 650px;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.doc-modal-header {
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-modal-body {
  padding: 25px;
  max-height: 80vh;
  overflow-y: auto;
}

.doc-modal-section {
  margin-bottom: 20px;
}

.doc-modal-section h5 {
  font-size: 0.95rem;
  color: var(--primary-navy);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-modal-section p {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ==========================================
   SCROLL MOTION ANIMATIONS (REVEAL ON SCROLL)
   ========================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-from-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-from-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-from-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-from-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay helpers for grid items */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }


