/* ==========================================================================
   VizhinjamConnect - Modern "Future Imperfect" Maritime Design System
   Pure CSS3 - Responsive, Accessible, High Performance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Palette - Deep Maritime & Crisp Slate */
  --color-navy-dark: #071324;
  --color-navy-deep: #0b1e36;
  --color-navy-slate: #162c46;
  --color-ocean-blue: #0284c7;
  --color-ocean-bright: #0ea5e9;
  --color-teal: #0d9488;
  --color-amber: #d97706;
  --color-emerald: #10b981;
  --color-crimson: #ef4444;

  /* Neutrals */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #334155;

  /* Typography Colors */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  /* Fonts */
  --font-heading: 'Outfit', 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Source Sans 3', 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Elevations */
  --header-height: 72px;
  --max-width: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-ocean-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-ocean-bright);
}

/* ==========================================================================
   Header & Navigation ("Future Imperfect" Aesthetic)
   ========================================================================== */

#top-ticker {
  background: var(--color-navy-dark);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticker-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

#header {
  background: linear-gradient(90deg, #071529 0%, #0c2a52 40%, #0c2a52 70%, #081a33 100%);
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(7, 21, 41, 0.25);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  background-color: #07162c;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.4);
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  background-color: #07162c;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text h1 span {
  color: #38bdf8;
}

.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 600;
}

/* Nav Links & Dropdown Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link,
.dropdown-toggle {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.nav-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
  color: #94a3b8;
  display: inline-block;
}

.has-dropdown:hover .nav-arrow,
.has-dropdown.open .nav-arrow {
  transform: rotate(180deg);
  color: #38bdf8;
}

.nav-link:hover,
.dropdown-toggle:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active,
.dropdown-toggle.active {
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.12);
}

.nav-link.active::after,
.dropdown-toggle.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: #38bdf8;
  border-radius: 2px 2px 0 0;
}

/* Dropdown Menu Panel */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: #091e3a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -4px rgba(2, 6, 23, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  z-index: 1050;
  margin-top: 8px;
}

/* Invisible bridge so mouse hover doesn't drop between trigger and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.has-dropdown:hover > .nav-dropdown-menu,
.has-dropdown:focus-within > .nav-dropdown-menu,
.has-dropdown.open > .nav-dropdown-menu {
  display: flex !important;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.nav-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-left-color: #38bdf8;
  padding-left: 16px;
}

.nav-dropdown-item.active-item {
  background: rgba(56, 189, 248, 0.18);
  border-left-color: #38bdf8;
}

.dropdown-item-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-item-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
  font-family: var(--font-body);
}

.nav-dropdown-item:hover .dropdown-item-desc {
  color: #cbd5e1;
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
}

.lang-select-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.lang-select-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #38bdf8;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: white;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  display: none;
  z-index: 100;
  overflow: hidden;
}

.lang-dropdown.show {
  display: block;
}

.lang-option {
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.lang-option:hover {
  background: var(--bg-card-subtle);
  color: var(--color-ocean-blue);
}

.lang-option.active {
  font-weight: 700;
  color: var(--color-ocean-blue);
  background: #f0f9ff;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-banner {
  background: 
    linear-gradient(100deg, rgba(7, 19, 36, 0.94) 0%, rgba(11, 30, 54, 0.86) 42%, rgba(11, 30, 54, 0.5) 75%, rgba(7, 19, 36, 0.65) 100%),
    url('../assets/hero-banner.jpg') center right / cover no-repeat;
  color: white;
  padding: 72px 24px;
  border-bottom: 3px solid var(--color-ocean-blue);
  position: relative;
  overflow: hidden;
}

.hero-image-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 19, 36, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 860px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--color-ocean-blue);
  color: white;
  border-color: var(--color-ocean-blue);
}

.btn-primary:hover {
  background-color: var(--color-ocean-bright);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

.btn-outline-dark {
  background: white;
  color: var(--color-navy-deep);
  border-color: var(--border-medium);
}

.btn-outline-dark:hover {
  background: var(--bg-card-subtle);
  border-color: var(--color-ocean-blue);
  color: var(--color-ocean-blue);
}

/* ==========================================================================
   Main Grid Layout ("Future Imperfect" 2-Column Structure)
   ========================================================================== */

.page-wrapper {
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 0 24px;
  width: 100%;
}

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.layout-full {
  width: 100%;
}

/* Cards & Editorial Blocks */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fafbfc;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 24px;
}

/* Sidebar Styling ("Future Imperfect" Style) */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-navy-deep);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Live Port News & Media Watch Widget (Homepage Sidebar)
   ========================================================================== */

.news-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--color-ocean-blue);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-widget:hover {
  box-shadow: var(--shadow-md);
}

.news-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.news-widget-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: newsPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

@keyframes newsPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  }
  50% {
    transform: scale(1.2);
    opacity: 0.85;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05);
  }
}

.news-widget-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.news-refresh-btn {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  transition: var(--transition);
}

.news-refresh-btn:hover {
  background: var(--bg-card-subtle);
  color: var(--color-ocean-blue);
  border-color: var(--color-ocean-blue);
}

.news-refresh-btn.spinning svg {
  animation: spin 0.8s linear infinite;
}

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

.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

.news-item:hover {
  background: #ffffff;
  border-color: var(--color-ocean-bright);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
  transform: translateY(-1px);
}

.news-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 6px;
}

.news-source-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-ocean-blue);
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 3px;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-time-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.news-item-link {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-navy-deep);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.news-item:hover .news-item-link {
  color: var(--color-ocean-blue);
}

.news-link-icon {
  display: inline-block;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.news-item:hover .news-link-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.news-widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  gap: 8px;
}

.news-toggle-btn {
  background: none;
  border: none;
  color: var(--color-ocean-blue);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-body);
  transition: var(--transition);
}

.news-toggle-btn:hover {
  color: var(--color-navy-deep);
  text-decoration: underline;
}

.news-google-link {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.news-google-link:hover {
  color: var(--color-ocean-blue);
}

/* Skeleton Loading Shimmer */
.news-skeleton-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-skeleton-badge {
  width: 60px;
  height: 14px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: newsShimmer 1.5s infinite;
  border-radius: 3px;
}

.news-skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: newsShimmer 1.5s infinite;
  border-radius: 3px;
  width: 100%;
}

.news-skeleton-line.short {
  width: 70%;
}

@keyframes newsShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Metric Display Blocks */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--color-ocean-blue);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  line-height: 1.2;
}

.metric-unit {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-ocean-blue);
  margin-left: 4px;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 4px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-emerald { background: #d1fae5; color: #065f46; }
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-navy { background: #e2e8f0; color: #0f172a; }

/* ==========================================================================
   Table & Grid Styling (DataTables & Schedule)
   ========================================================================== */

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 0.9rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: white;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-ocean-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: block;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy-deep);
  border-bottom: 2px solid var(--border-medium);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: #f1f8fe;
}

.data-table .vessel-name-cell {
  font-weight: 700;
  color: var(--color-navy-deep);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.data-table .mono-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
}

/* ==========================================================================
   Tracking Interactive Module
   ========================================================================== */

.tracking-hero-box {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--color-ocean-blue);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-ocean-blue);
}

.tracking-query-row {
  display: flex;
  gap: 12px;
}

.tracking-query-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-mono);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-sm);
}

.tracking-query-input:focus {
  outline: none;
  border-color: var(--color-ocean-blue);
}

.consignment-result {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
  display: none;
}

.consignment-result.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

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

/* ==========================================================================
   Container Tracking Telematics Suite
   ========================================================================== */
.ct-result-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  background: white;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--color-ocean-blue);
  box-shadow: var(--shadow-sm);
}

.ct-meta-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ct-container-id {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy-deep);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.ct-carrier-tag {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ct-status-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

@media (max-width: 600px) {
  .ct-status-wrapper {
    align-items: flex-start;
  }
}

.ct-pulse-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #e0f2fe;
  color: #0369a1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #bae6fd;
}

.ct-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #0284c7;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  animation: ct-pulse 1.8s infinite;
}

@keyframes ct-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.ct-sync-time {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

/* Corridor / Journey Stepper */
.ct-corridor {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.ct-corridor-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy-deep);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-corridor-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .ct-corridor-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ct-flow-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }
}

.ct-port-node {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  position: relative;
  transition: var(--transition);
}

.ct-port-node.active-hub {
  border-color: #38bdf8;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.ct-port-node.completed-node {
  border-left: 3px solid var(--color-emerald);
}

.ct-port-node.in-transit-node {
  border-left: 3px solid var(--color-ocean-blue);
}

.ct-node-role {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ct-node-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-navy-deep);
  line-height: 1.3;
}

.ct-node-country {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ct-node-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-ocean-blue);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-flow-arrow {
  color: var(--color-ocean-blue);
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  user-select: none;
}

/* Map Card */
.ct-map-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ct-map-header {
  padding: 12px 18px;
  background: var(--color-navy-deep);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-map-view {
  height: 320px;
  width: 100%;
  background: #0b1e36;
  position: relative;
  z-index: 1;
}

.ct-svg-fallback-map {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #071324 0%, #0b1e36 50%, #162c46 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: white;
  position: relative;
}

/* Telemetry Grid */
.ct-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.ct-telem-card {
  background: white;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.ct-telem-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ct-telem-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-navy-deep);
}

.ct-telem-sub {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--color-ocean-blue);
  margin-top: 3px;
}

/* Events Timeline */
.ct-timeline-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.ct-timeline-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #cbd5e1;
}

.ct-timeline-item {
  position: relative;
}

.ct-timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--color-ocean-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ct-timeline-item.actual .ct-timeline-dot {
  border-color: var(--color-emerald);
  background: #ecfdf5;
}

.ct-timeline-item.vizhinjam-milestone .ct-timeline-dot {
  border-color: #0284c7;
  background: #e0f2fe;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.ct-timeline-content {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
}

.ct-timeline-content:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ct-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.ct-item-desc {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy-deep);
}

.ct-item-time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.ct-item-sub {
  font-size: 0.84rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.ct-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Voyage Plan Card */
.ct-plan-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* No Result / Error Message State */
.ct-no-result {
  background: white;
  border: 1px solid #fed7aa;
  border-left: 5px solid var(--color-amber);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s ease-out;
}

.ct-no-result-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ct-no-result-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.ct-no-result-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #9a3412;
  margin: 0;
}

.ct-no-result-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ct-no-result-body {
  padding-left: 48px;
}

@media (max-width: 600px) {
  .ct-no-result-body {
    padding-left: 0;
  }
}

.ct-no-result-msg {
  font-size: 0.96rem;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.5;
}

.ct-no-result-tips {
  margin: 0 0 16px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ct-no-result-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Loading Box */
.ct-loading-box {
  padding: 40px 20px;
  text-align: center;
  background: white;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.ct-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--color-ocean-blue);
  border-radius: 50%;
  animation: ct-spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

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

.ct-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ct-spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

.btn.btn-loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

/* ==========================================================================
   Directory Vendor Cards & Filters
   ========================================================================== */

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-pill {
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
  background: var(--color-navy-deep);
  color: white;
  border-color: var(--color-navy-deep);
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.vendor-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.vendor-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-ocean-blue);
}

.vendor-card-header {
  margin-bottom: 12px;
}

.vendor-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 4px;
}

.vendor-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-ocean-blue);
  text-transform: uppercase;
}

.vendor-services {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vendor-services li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.vendor-services li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--color-ocean-blue);
}

.vendor-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

/* ==========================================================================
   CSS Vertical Timeline (Phase 2 Expansion Tracker)
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-medium);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  right: -9px;
  background-color: white;
  border: 4px solid var(--color-ocean-blue);
  top: 22px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::after {
  left: -9px;
}

.timeline-item.completed::after {
  border-color: var(--color-emerald);
  background-color: var(--color-emerald);
}

.timeline-item.active::after {
  border-color: var(--color-ocean-bright);
  box-shadow: 0 0 10px var(--color-ocean-bright);
}

.timeline-content {
  padding: 20px;
  background-color: white;
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ocean-blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 8px;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Form Styles ("Submit Your Business")
   ========================================================================== */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-navy-deep);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: white;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-ocean-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

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

/* ==========================================================================
   Crew Hub Styles
   ========================================================================== */

.procedure-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.step-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-ocean-blue);
  margin-bottom: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
  margin-top: auto;
  background: var(--color-navy-dark);
  color: #94a3b8;
  padding: 48px 24px 24px;
  border-top: 3px solid var(--color-ocean-blue);
  font-size: 0.88rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.25fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: white;
}

/* Footer Contact Styles */
.footer-contact .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact .contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.footer-contact .contact-value {
  color: #f1f5f9;
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact .contact-value:hover {
  color: #38bdf8;
}

.footer-contact .contact-value.highlight {
  color: #38bdf8;
  font-weight: 600;
}

.footer-contact .contact-value.whatsapp-link {
  color: #4ade80;
  font-weight: 600;
}

.footer-contact .contact-value.whatsapp-link:hover {
  color: #86efac;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
}

/* ==========================================================================
   FAQ & GEO Answer-First Component Styling
   ========================================================================== */

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--color-ocean-blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  background: var(--bg-card-subtle);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-ocean-blue);
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--color-teal);
}

.faq-answer {
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.geo-quickfact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.geo-fact-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg-card-subtle);
  border-left: 3px solid var(--color-ocean-blue);
}

.geo-fact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-ocean-blue);
}

.geo-fact-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy-deep);
  margin: 4px 0 2px;
}

.geo-fact-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .layout-2col {
    grid-template-columns: 1fr;
  }
  
  .timeline::after {
    left: 24px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
  }
  
  .timeline-item.right {
    left: 0%;
  }
  
  .timeline-item::after, .timeline-item.right::after {
    left: 15px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 992px) {
  #header {
    height: 64px;
  }

  .header-container {
    padding: 0 14px;
    gap: 8px;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .brand-link {
    gap: 8px;
    min-width: 0;
  }

  .brand-text h1 {
    font-size: 1.12rem;
    white-space: nowrap;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .lang-select-btn {
    padding: 5px 9px;
    font-size: 0.76rem;
    gap: 4px;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
  }

  .mobile-toggle:hover,
  .mobile-toggle:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: #38bdf8;
    color: #38bdf8;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: #091e3a;
    flex-direction: column;
    padding: 16px 18px 24px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    gap: 8px;
    z-index: 9999;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 0.92rem;
  }

  .nav-link.active::after,
  .dropdown-toggle.active::after {
    display: none;
  }

  .has-dropdown .nav-dropdown-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(7, 19, 36, 0.65);
    border-left: 2px solid #38bdf8;
    margin: 4px 0 8px 10px;
    padding: 6px 10px;
    min-width: 0;
    width: auto;
  }

  .has-dropdown.open .nav-dropdown-menu {
    display: flex !important;
  }

  .hero-banner {
    padding: 44px 18px;
    background: 
      linear-gradient(180deg, rgba(7, 19, 36, 0.94) 0%, rgba(11, 30, 54, 0.88) 55%, rgba(7, 19, 36, 0.95) 100%),
      url('../assets/hero-banner.jpg') 70% center / cover no-repeat;
  }

  .hero-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  /* Ticker */
  #top-ticker {
    padding: 5px 10px;
    font-size: 0.7rem;
    overflow: hidden;
  }

  #top-ticker > div:first-child {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  #ticker-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100vw - 120px);
    vertical-align: middle;
  }

  /* Page Wrapper & Cards */
  .page-wrapper {
    padding: 0 12px;
    margin: 16px auto;
    width: 100%;
    max-width: 100%;
  }

  .layout-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
  }

  .card-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .card-body {
    padding: 16px 12px;
  }

  /* Full width CTA buttons on mobile */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 18px;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
  }

  .hero-title {
    font-size: 1.48rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Collapse multi-column inline grids into 1 column to stop horizontal overflow */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vendor-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    display: block !important;
    margin-bottom: 14px;
  }

  /* Prevent grid/flex parents from expanding beyond screen width */
  .layout-2col,
  .layout-2col > *,
  .main-content,
  .card,
  .card-body,
  .tracking-hero-box {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Table Controls on Mobile */
  .table-controls {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .search-input-wrapper {
    min-width: 100% !important;
    width: 100% !important;
  }

  .search-input {
    width: 100% !important;
    font-size: 0.88rem !important;
  }

  /* Vessels Expected Schedule - Mobile View Optimization:
     Only show Vessel Name, ETA Date, and Status (hide SBU / Service & Movement).
     Fits 100% width with zero overflow and prevents breaking content below. */
  .vessels-table th.col-sbu,
  .vessels-table td.col-sbu,
  .vessels-table th.col-movement,
  .vessels-table td.col-movement,
  #vessels-table th:nth-child(1),
  #vessels-table td:nth-child(1):not([colspan]),
  #vessels-table th:nth-child(3),
  #vessels-table td:nth-child(3):not([colspan]),
  #index-vessels-card table th:nth-child(1),
  #index-vessels-card table td:nth-child(1):not([colspan]),
  #index-vessels-card table th:nth-child(3),
  #index-vessels-card table td:nth-child(3):not([colspan]) {
    display: none !important;
  }

  .vessels-table,
  #vessels-table,
  #index-vessels-card table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .vessels-table th,
  .vessels-table td,
  #vessels-table th,
  #vessels-table td,
  #index-vessels-card table th,
  #index-vessels-card table td {
    padding: 10px 8px !important;
  }

  /* Col 2: Vessel Name takes ~48% width */
  .vessels-table th.col-vessel,
  .vessels-table td.col-vessel,
  #vessels-table th:nth-child(2),
  #vessels-table td:nth-child(2),
  #index-vessels-card table th:nth-child(2),
  #index-vessels-card table td:nth-child(2) {
    width: 48% !important;
    text-align: left !important;
    word-break: break-word;
  }

  .vessels-table td.col-vessel strong,
  #vessels-table td:nth-child(2) strong,
  #index-vessels-card table td:nth-child(2) strong {
    font-size: 0.86rem !important;
    display: block;
    line-height: 1.25;
    color: var(--color-navy-deep);
  }

  .vessels-table .vessel-subtext,
  #vessels-table td:nth-child(2) div,
  #index-vessels-card table td:nth-child(2) div {
    font-size: 0.70rem !important;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
  }

  /* Col 4: ETA Date takes ~28% width */
  .vessels-table th.col-eta,
  .vessels-table td.col-eta,
  #vessels-table th:nth-child(4),
  #vessels-table td:nth-child(4),
  #index-vessels-card table th:nth-child(4),
  #index-vessels-card table td:nth-child(4) {
    width: 28% !important;
    font-size: 0.76rem !important;
    font-family: var(--font-mono) !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  /* Col 5: Status takes ~24% width */
  .vessels-table th.col-status,
  .vessels-table td.col-status,
  #vessels-table th:nth-child(5),
  #vessels-table td:nth-child(5),
  #index-vessels-card table th:nth-child(5),
  #index-vessels-card table td:nth-child(5) {
    width: 24% !important;
    text-align: right !important;
  }

  .vessels-table td.col-status .badge,
  #vessels-table td:nth-child(5) .badge,
  #index-vessels-card table td:nth-child(5) .badge {
    font-size: 0.68rem !important;
    padding: 3px 6px !important;
    display: inline-block !important;
    white-space: nowrap !important;
    text-align: center;
  }

  /* Other tables across the site (Comparison, Tariffs, SSR) on mobile:
     Preserves legibility with minimum width and clean touch momentum scrolling
     while keeping parent card/layout contained */
  .comparison-table,
  #ssr-table,
  .tariff-table {
    min-width: 560px !important;
  }

  /* Tracking queries & result cards */
  .tracking-query-row {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .tracking-query-row .btn,
  .tracking-query-input {
    width: 100%;
  }

  .ct-header-card {
    padding: 14px 12px;
  }

  .ct-container-id {
    font-size: 1.35rem;
    word-break: break-all;
  }

  .ct-telemetry-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .location-container {
    padding: 0 12px;
  }

  .location-header {
    margin-bottom: 24px;
  }

  .location-title {
    font-size: 1.5rem;
  }

  .location-details-bar {
    padding: 16px 12px;
  }

  .location-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .location-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-container {
    padding: 28px 14px;
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  #header {
    height: 58px;
  }

  .header-container {
    padding: 0 10px;
    gap: 6px;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .brand-link {
    gap: 6px;
  }

  .brand-text h1 {
    font-size: 1.0rem;
  }

  /* Hide long secondary portal tagline on mobile so logo + brand title + language + menu 3 lines fit seamlessly */
  .brand-tag {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-select-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
    gap: 3px;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.25rem;
  }

  .nav-menu {
    top: 58px;
    max-height: calc(100vh - 58px);
    padding: 12px 14px 20px;
  }
}

@media (max-width: 380px) {
  .header-container {
    padding: 0 6px;
    gap: 4px;
  }

  .brand-text h1 {
    font-size: 0.92rem;
  }

  .brand-logo-img {
    width: 30px;
    height: 30px;
  }

  .lang-select-btn {
    padding: 3px 6px;
    font-size: 0.68rem;
  }

  .mobile-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   Top Ticker Contact Bar
   ========================================================================== */

.top-ticker-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
}

.ticker-contact-link {
  color: #94a3b8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.ticker-contact-link:hover {
  color: #38bdf8;
}

.ticker-contact-link.ticker-whatsapp {
  color: #4ade80;
  font-weight: 600;
}

.ticker-contact-link.ticker-whatsapp:hover {
  color: #86efac;
}

.ticker-sep {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .top-ticker-contact {
    display: none;
  }
}

/* ==========================================================================
   Floating WhatsApp Quick Connect Widget
   ========================================================================== */

.floating-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
}

.floating-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
  background: #20ba5a;
  color: #ffffff;
}

.floating-whatsapp-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .floating-whatsapp-btn span.label-text {
    display: none;
  }
  .floating-whatsapp-btn {
    padding: 12px;
    border-radius: 50%;
  }
}

/* ==========================================================================
   Contact Modal Dialog
   ========================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 21, 41, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--color-ocean-blue);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-navy-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
}

.modal-close-btn:hover {
  color: var(--color-navy-deep);
  background: rgba(0,0,0,0.05);
}

.modal-body {
  padding: 24px;
}

/* --------------------------------------------------
   HUMAN VERIFICATION CAPTCHA & ANTI-SPAM STYLING
-------------------------------------------------- */
.captcha-container {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.captcha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.captcha-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.captcha-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #06182c;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 1px;
  border: 1px solid #0284c7;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  min-width: 96px;
  user-select: none;
}

.captcha-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-input {
  width: 90px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 10px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--color-navy-deep);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.captcha-input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.captcha-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.captcha-refresh-btn:hover {
  background: #e2e8f0;
  color: var(--color-navy-deep);
  border-color: #94a3b8;
}

.captcha-refresh-btn svg {
  transition: transform 0.3s ease;
}

.captcha-refresh-btn:hover svg {
  transform: rotate(180deg);
}

.captcha-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Port Location & Map Section
   ========================================================================== */
.port-location-section {
  padding: 60px 0 70px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf4fc 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.location-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.location-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #0284c7;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.location-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.location-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.location-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(12, 42, 82, 0.1);
  box-shadow: 0 12px 35px -8px rgba(12, 42, 82, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card:hover {
  box-shadow: 0 16px 40px -10px rgba(12, 42, 82, 0.14);
}

.map-embed-wrapper {
  position: relative;
  width: 100%;
  height: 440px;
  background: #e2e8f0;
}

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

.location-details-bar {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.location-meta-grid {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-ocean-blue);
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary.location-btn {
  background: var(--color-ocean-blue);
  color: #ffffff;
  border: 1px solid var(--color-ocean-blue);
}

.btn-primary.location-btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.btn-outline.location-btn {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid rgba(12, 42, 82, 0.2);
}

.btn-outline.location-btn:hover {
  background: rgba(12, 42, 82, 0.05);
  border-color: var(--color-ocean-blue);
  color: var(--color-ocean-blue);
}

@media (max-width: 992px) {
  .port-location-section {
    padding: 44px 0 54px;
  }
  .map-embed-wrapper {
    height: 360px;
  }
  .location-details-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .location-meta-grid {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .location-actions {
    width: 100%;
    flex-direction: column;
  }
  .location-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Tariff Page & Interactive Estimator (Web & Mobile)
   ========================================================================== */

/* Tariff Hero Banner */
.tariff-hero-banner {
  background: linear-gradient(180deg, #071324 0%, #0c203b 100%);
  color: #ffffff;
  padding: 44px 24px;
  border-bottom: 2px solid var(--color-ocean-blue);
}

.tariff-hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.tariff-hero-info {
  flex: 1;
  min-width: 300px;
}

.tariff-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tariff-hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.tariff-hero-desc {
  color: #94a3b8;
  font-size: 1.02rem;
  max-width: 780px;
  margin: 0;
  line-height: 1.55;
}

.tariff-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* 4 Value Banners Grid */
.tariff-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.tariff-highlight-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tariff-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tariff-highlight-card .stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.tariff-highlight-card .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-navy-deep);
  margin: 6px 0;
  font-family: var(--font-heading);
  line-height: 1.15;
}

.tariff-highlight-card .stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Interactive Calculator Layout */
.tariff-calculator-card {
  border-top: 4px solid var(--color-teal) !important;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tariff-calculator-header {
  background: linear-gradient(135deg, #091e3a 0%, #0d284f 100%) !important;
  color: #ffffff !important;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tariff-calculator-body {
  padding: 28px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: start;
}

.calculator-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.calc-reefer-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.calc-ssr-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}

.calc-output-card {
  background: linear-gradient(180deg, #06182c 0%, #0d284f 100%);
  color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid #1e3a5f;
}

.calc-grand-total {
  font-size: 2.3rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono);
  line-height: 1;
}

/* Tabs Navigation */
.tabs-container {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.tab-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--color-navy-deep);
  background: #f1f5f9;
}

.tab-btn.active {
  border-bottom-color: var(--color-ocean-blue) !important;
  color: var(--color-ocean-blue) !important;
  background: #f8fafc;
}

/* Mobile Scroll Indicator Hint */
.mobile-scroll-hint {
  display: none;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

/* Tariff Tables Clean Styling */
.tariff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.90rem;
  background: #ffffff;
}

.tariff-table th {
  background: #f1f5f9;
  border-bottom: 2px solid var(--border-medium);
  padding: 12px 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-navy-deep);
  font-size: 0.80rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}

.tariff-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.tariff-table tbody tr:hover {
  background-color: #f8fafc;
}

/* SSR Table Specifics */
#ssr-search-input {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.85rem;
  width: 280px;
  transition: var(--transition);
}

#ssr-search-input:focus {
  border-color: var(--color-ocean-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Responsive Breakpoints for Tariff Page */
@media (max-width: 900px) {
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Tariff Hero Banner on Mobile */
  .tariff-hero-banner {
    padding: 28px 14px !important;
  }
  .tariff-hero-title {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }
  .tariff-hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  .tariff-hero-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }
  .tariff-hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 0.90rem !important;
  }

  /* 4 Highlights on Mobile */
  .tariff-highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
  }
  .tariff-highlight-card {
    padding: 14px 16px !important;
  }
  .tariff-highlight-card .stat-value {
    font-size: 1.55rem !important;
  }

  /* Calculator on Mobile */
  .tariff-calculator-header {
    padding: 14px 14px !important;
  }
  .tariff-calculator-header h3 {
    font-size: 1.1rem !important;
  }
  .tariff-calculator-body {
    padding: 16px 14px !important;
  }
  .calculator-form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .calc-grand-total {
    font-size: 1.85rem !important;
  }
  .calc-output-card {
    padding: 18px 14px !important;
  }

  /* Mobile Scroll Hint for Tables */
  .mobile-scroll-hint {
    display: block !important;
  }

  /* SSR search full-width on mobile */
  #ssr-search-input {
    width: 100% !important;
    margin-top: 8px !important;
  }

  /* Tariff Tables on Mobile */
  .tariff-table {
    min-width: 580px !important;
    font-size: 0.82rem !important;
  }
  .tariff-table th,
  .tariff-table td {
    padding: 9px 10px !important;
  }
}

@media (max-width: 480px) {
  .tariff-hero-title {
    font-size: 1.35rem !important;
  }
  .calc-grand-total {
    font-size: 1.65rem !important;
  }
}


