:root {
  --ink: #111827;
  --muted: #4b5563;
  --line: #d7dde7;
  --paper: #f7f4ed;
  --panel: #ffffff;
  --steel: #334155;
  --hazard: #b42318;
  --amber: #f59e0b;
  --teal: #0f766e;
  --green: #166534;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body[dir="rtl"] {
  font-family: Tahoma, Arial, ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #111827;
  background: var(--amber);
  font-weight: 900;
  border: 2px solid #111827;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: #243041;
}

body[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--hazard);
}

.language-select {
  min-width: 148px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  padding: 0 10px;
}

.search-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.search-toggle:hover,
.search-toggle:focus-visible {
  border-color: var(--hazard);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.search-glyph {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.search-glyph::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 3px;
  right: -8px;
  bottom: -5px;
  border-radius: 4px;
  background: currentColor;
  transform: rotate(45deg);
}

body.search-open {
  overflow: hidden;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 86px 20px 28px;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.58);
  cursor: pointer;
}

.search-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
  padding: 24px;
}

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

.search-head h2 {
  margin: 0;
  font-size: 26px;
}

.search-close {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.search-close::before,
.search-close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  width: 18px;
  height: 3px;
  border-radius: 4px;
  background: var(--ink);
}

.search-close::before {
  transform: rotate(45deg);
}

.search-close::after {
  transform: rotate(-45deg);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.search-form .search-glyph {
  color: var(--muted);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.search-help,
.search-empty,
.search-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.search-result {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: var(--hazard);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.1);
}

.search-result strong {
  font-size: 17px;
  line-height: 1.25;
}

.search-result span:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.search-result-type {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #78350f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: min(720px, 82vh);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.2)),
    url("https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.hero .section-inner {
  padding: 80px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--amber);
  border-radius: 4px;
}

.hero h1,
.page-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  margin: 22px 0 0;
  color: #e5e7eb;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.2;
}

.button.primary {
  background: var(--amber);
  color: #111827;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.button.dark {
  background: var(--ink);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -42px;
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-item {
  background: #fff;
  padding: 20px;
  min-height: 96px;
}

.trust-item strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.trust-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

section {
  padding: 76px 0;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--hazard);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading {
  max-width: 840px;
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-lead {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-visual {
  display: block;
  width: min(860px, 100%);
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.section-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumb-link {
  color: inherit;
}

.thumb-link img {
  transition: transform 180ms ease, filter 180ms ease;
}

.thumb-link:hover img,
.thumb-link:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.06);
}

.thumb-link:focus-visible {
  outline: 3px solid rgba(180, 35, 24, 0.42);
  outline-offset: 3px;
}

.compliance-layout .section-visual,
.quote-layout .section-visual {
  width: 100%;
}

.section-visual + .service-grid,
.section-visual + .commodity-grid,
.section-visual + .cargo-grid,
.section-visual + .process-list,
.section-visual + .lane-grid,
.section-visual + .port-grid,
.section-visual + .document-grid,
.section-visual + .keyword-grid,
.section-visual + .guide-grid,
.section-visual + .quote-points {
  margin-top: 24px;
}

.service-grid,
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.service-card,
.commodity-card,
.lane-card,
.document-card,
.dg-class-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.service-card {
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-thumb {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-card-body,
.port-card-body,
.cargo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.service-card-body {
  padding: 22px;
}

.card-index {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fef3c7;
  font-weight: 900;
}

.service-card h3,
.lane-card h3,
.document-card h3 {
  margin: 16px 0 8px;
  font-size: 21px;
  line-height: 1.22;
}

.service-card p,
.lane-card p,
.document-card p {
  margin: 0;
  color: var(--muted);
}

.service-card ul,
.detail-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #263244;
}

body[dir="rtl"] .service-card ul,
body[dir="rtl"] .detail-list {
  padding-left: 0;
  padding-right: 18px;
}

.service-card li + li,
.detail-list li + li {
  margin-top: 8px;
}

.card-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--hazard);
  font-weight: 900;
}

.split-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compliance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: start;
}

.compliance-note {
  margin-top: 24px;
  border-left: 4px solid var(--amber);
  padding: 14px 16px;
  background: #fffbeb;
  color: #713f12;
  font-weight: 700;
}

body[dir="rtl"] .compliance-note {
  border-left: 0;
  border-right: 4px solid var(--amber);
}

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

.dg-class-card {
  min-height: 92px;
  padding: 14px;
}

.dg-class-card strong {
  display: block;
  color: var(--hazard);
  font-size: 20px;
}

.dg-class-card span {
  display: block;
  margin-top: 4px;
  color: var(--steel);
  font-weight: 800;
}

.commodity-grid,
.lane-grid,
.document-grid,
.keyword-grid,
.guide-grid,
.cargo-grid,
.special-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.commodity-card {
  min-height: 88px;
  padding: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  border-top: 4px solid var(--teal);
}

.process {
  counter-reset: process;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.process-step {
  position: relative;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.process-step::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.process-step h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.lane-card,
.document-card {
  min-height: 170px;
  padding: 20px;
}

.lane-card {
  border-top: 4px solid var(--green);
}

.document-card {
  border-top: 4px solid var(--hazard);
}

.keyword-section {
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.keyword-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.keyword-card,
.guide-card,
.port-card,
.cargo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cargo-section {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cargo-card {
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--hazard);
}

.cargo-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.25;
}

.cargo-card p {
  margin: 0;
  color: var(--muted);
}

.special-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.special-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.special-card {
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.special-thumb {
  display: block;
  margin: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.special-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.special-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.special-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.22;
}

.special-card p {
  margin: 0;
  color: var(--muted);
}

.resource-hero {
  background-position: center 48%;
}

.resource-overview {
  background: #f8fafc;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.resource-toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.resource-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--hazard);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-toc nav {
  display: grid;
  gap: 8px;
}

.resource-toc a {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--steel);
  font-weight: 800;
  background: #f8fafc;
}

.resource-toc a:hover,
.resource-toc a:focus-visible {
  color: var(--hazard);
  border-color: rgba(180, 35, 24, 0.35);
  background: #fff7ed;
}

.resource-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.resource-block {
  scroll-margin-top: 104px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.resource-block h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.18;
}

.resource-block h3 {
  margin: 20px 0 12px;
  font-size: 20px;
  line-height: 1.22;
}

.resource-stat-grid,
.decision-grid,
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.resource-stat,
.decision-card,
.checklist-panel,
.container-profile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.resource-stat {
  border-top: 4px solid var(--amber);
}

.decision-card {
  border-top: 4px solid var(--teal);
}

.resource-stat h3,
.decision-card h3,
.checklist-panel h3,
.container-profile h3 {
  margin-top: 0;
}

.resource-stat p,
.decision-card p,
.container-profile p {
  margin: 0;
  color: var(--muted);
}

.decision-card p + p {
  margin-top: 10px;
}

.visual-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.visual-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.visual-image-link {
  display: block;
  overflow: hidden;
}

.visual-card figcaption {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.visual-card strong {
  color: var(--ink);
  font-size: 16px;
}

.visual-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.container-profile-list {
  display: grid;
  gap: 14px;
}

.container-profile {
  border-left: 4px solid var(--hazard);
}

body[dir="rtl"] .container-profile {
  border-left: 1px solid var(--line);
  border-right: 4px solid var(--hazard);
}

.container-profile ul,
.checklist-panel ul,
.source-note ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #263244;
  font-weight: 700;
}

body[dir="rtl"] .container-profile ul,
body[dir="rtl"] .checklist-panel ul,
body[dir="rtl"] .source-note ul {
  padding-left: 0;
  padding-right: 20px;
}

.container-profile li + li,
.checklist-panel li + li,
.source-note li + li {
  margin-top: 8px;
}

.comparison-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

body[dir="rtl"] .comparison-table th,
body[dir="rtl"] .comparison-table td {
  text-align: right;
}

.comparison-table th {
  background: #111827;
  color: #fff;
  font-size: 14px;
}

.comparison-table td:first-child {
  color: var(--hazard);
  font-weight: 900;
}

.resource-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-timeline li {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.resource-timeline strong {
  color: var(--hazard);
}

.resource-timeline span {
  color: var(--muted);
  font-weight: 700;
}

.accordion-list {
  display: grid;
  gap: 10px;
}

.resource-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.resource-accordion summary {
  cursor: pointer;
  padding: 15px 18px;
  color: var(--ink);
  font-weight: 900;
}

.resource-accordion p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.source-note {
  background: #fffbeb;
  border-color: #fde68a;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--steel);
  font-weight: 900;
}

.related-links a:hover,
.related-links a:focus-visible {
  color: var(--hazard);
  border-color: rgba(180, 35, 24, 0.35);
  background: #fff;
}

.port-section {
  background: #fff;
}

.port-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.port-card {
  min-height: 286px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--green);
}

.port-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.25;
}

.port-card p {
  margin: 0;
  color: var(--muted);
}

.keyword-card {
  min-height: 190px;
  padding: 20px;
  border-top: 4px solid var(--amber);
}

.keyword-card h3,
.guide-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.25;
}

.keyword-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--steel);
  font-weight: 700;
}

body[dir="rtl"] .keyword-card ul {
  padding-left: 0;
  padding-right: 18px;
}

.keyword-card li + li {
  margin-top: 8px;
}

.guide-section {
  background: var(--paper);
}

.guide-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.guide-card {
  min-height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--teal);
}

.guide-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #e5e7eb;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card .guide-meta,
.guide-card h3,
.guide-card p,
.guide-card .card-link {
  margin-left: 20px;
  margin-right: 20px;
}

.guide-card .guide-meta {
  margin-top: 18px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
}

.guide-meta {
  min-height: 34px;
  margin-bottom: 12px;
  color: var(--hazard);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-hero .article-tags {
  max-width: 900px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.article-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.article-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.18;
}

.article-section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.detail-visual,
.article-section-visual,
.resource-block-visual {
  display: block;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.detail-visual img,
.article-section-visual img,
.resource-block-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-section ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #263244;
  font-weight: 700;
}

body[dir="rtl"] .article-section ul {
  padding-left: 0;
  padding-right: 20px;
}

.article-section li + li {
  margin-top: 8px;
}

.quote-section {
  background: var(--ink);
  color: #fff;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.quote-section .section-kicker {
  color: #fde68a;
}

.quote-section .section-lead {
  color: #d1d5db;
}

.quote-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.quote-points li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #f3f4f6;
  font-weight: 700;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 900;
  color: #263244;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.form-status {
  min-height: 22px;
  color: var(--hazard);
  font-weight: 800;
}

.page-hero {
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.62)),
    var(--page-hero-image, url("https://images.unsplash.com/photo-1494412651409-8963ce7935a7?auto=format&fit=crop&w=1800&q=82"));
  background-position: center;
  background-size: cover;
}

.page-hero .section-inner {
  padding: 86px 0;
}

.page-hero p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: start;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.detail-panel h2,
.detail-panel h3 {
  margin-top: 0;
}

.site-footer {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.whatsapp-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(22, 101, 52, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.22);
}

body[dir="rtl"] .whatsapp-widget {
  right: auto;
  left: 20px;
}

.whatsapp-copy {
  min-width: 0;
}

.whatsapp-copy strong,
.whatsapp-copy span {
  display: block;
}

.whatsapp-copy strong {
  color: var(--green);
  font-size: 14px;
  line-height: 1.2;
}

.whatsapp-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
  background: #15803d;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.28);
}

.whatsapp-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  letter-spacing: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  gap: 28px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
}

.footer-inner p,
.footer-inner li {
  color: var(--muted);
}

.footer-inner ul {
  margin: 0;
  padding-left: 18px;
}

body[dir="rtl"] .footer-inner ul {
  padding-left: 0;
  padding-right: 18px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1020px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body[dir="rtl"] .nav-links {
    margin-right: 0;
  }

  .trust-strip,
  .service-grid,
  .commodity-grid,
  .lane-grid,
  .document-grid,
  .keyword-grid,
  .guide-grid,
  .cargo-grid,
  .special-grid,
  .port-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compliance-layout,
  .quote-layout,
  .detail-grid,
  .resource-layout {
    grid-template-columns: 1fr;
  }

  .resource-toc {
    position: static;
  }

  .resource-toc nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 86px;
  }

  .nav-wrap,
  .section-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .nav-wrap {
    gap: 12px;
  }

  .language-select {
    flex: 1 1 100%;
    min-width: 100%;
    height: 44px;
  }

  .search-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
  }

  body[dir="rtl"] .search-toggle {
    margin-left: 0;
    margin-right: auto;
  }

  .search-panel {
    padding: 70px 14px 18px;
  }

  .search-dialog {
    max-height: calc(100vh - 88px);
    padding: 18px;
  }

  .search-head h2 {
    font-size: 22px;
  }

  .search-form {
    min-height: 52px;
    padding: 0 12px;
  }

  .search-form input {
    font-size: 16px;
  }

  .nav-links {
    gap: 8px;
    font-size: 13px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    white-space: nowrap;
  }

  .hero,
  .page-hero {
    min-height: 0;
  }

  .hero .section-inner,
  .page-hero .section-inner {
    padding: 56px 0 72px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-copy,
  .page-hero p {
    font-size: 16px;
  }

  .section-heading {
    font-size: 28px;
  }

  .section-visual {
    margin-top: 18px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  }

  section {
    padding: 54px 0;
  }

  .trust-strip,
  .service-grid,
  .dg-grid,
  .commodity-grid,
  .lane-grid,
  .document-grid,
  .keyword-grid,
  .guide-grid,
  .cargo-grid,
  .special-grid,
  .port-grid,
  .process-list,
  .resource-stat-grid,
  .decision-grid,
  .visual-gallery,
  .checklist-grid,
  .quote-form,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: 0;
  }

  .service-card,
  .process-step,
  .lane-card,
  .document-card,
  .keyword-card,
  .guide-card,
  .cargo-card,
  .special-card,
  .port-card {
    min-height: 0;
  }

  .resource-block {
    padding: 20px;
  }

  .resource-block h2 {
    font-size: 24px;
  }

  .resource-toc nav {
    grid-template-columns: 1fr;
  }

  .resource-timeline li {
    grid-template-columns: 1fr;
  }

  .whatsapp-widget {
    left: auto;
    right: 14px;
    bottom: 14px;
    width: auto;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body[dir="rtl"] .whatsapp-widget {
    left: 14px;
    right: auto;
  }

  .whatsapp-link {
    min-height: 46px;
    padding: 11px 14px;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.34);
  }

  .whatsapp-copy {
    display: none;
  }

  .whatsapp-copy span {
    display: none;
  }
}
