:root {
  --oe-primary: #F7931E;
  --oe-primary-dark: #E8821A;
  --oe-secondary: #2C3E73;
  --oe-dark: #1A1A2E;
  --oe-muted: #6c757d;
  --oe-light: #F8F9FA;
  --oe-white: #FFFFFF;
  --oe-border: #E9ECEF;
  --oe-shadow: 0 18px 48px rgba(17, 24, 39, 0.18);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(10, 18, 32, 0.56);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-close {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(247, 147, 30, 0.12);
  color: var(--oe-primary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
}

.hamburger {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--oe-dark);
  transition: transform 260ms ease, opacity 260ms ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  header nav,
  header nav.active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1002 !important;
    width: min(84vw, 380px) !important;
    height: 100dvh !important;
    min-height: -webkit-fill-available;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: max(18px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)) !important;
    background: var(--oe-white) !important;
    box-shadow: var(--oe-shadow) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
  }

  html[dir="rtl"] header nav {
    right: 0 !important;
    left: auto !important;
    transform: translateX(105%) !important;
  }

  html[dir="ltr"] header nav {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-105%) !important;
  }

  html[dir="ltr"] header nav.active,
  html[dir="rtl"] header nav.active {
    transform: translateX(0) !important;
  }

  header nav::before {
    content: "Orange Express";
    display: block;
    color: var(--oe-primary);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 6px 54px 18px 0;
  }

  html[dir="ltr"] header nav::before {
    margin: 6px 0 18px 54px;
  }

  header nav a {
    width: 100%;
    padding: 14px 4px !important;
    border-bottom: 1px solid rgba(233, 236, 239, 0.9);
    font-size: 1.02rem !important;
  }

  header nav a::after {
    display: none !important;
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    inset-inline-end: 18px;
  }

  .article-page nav {
    display: none;
  }

  .article-page .hamburger {
    display: flex;
  }

  .article-page .top-bar .container {
    justify-content: center;
  }

  .article-page .top-bar a {
    display: none;
  }
}

.article-page {
  background: var(--oe-light);
  color: var(--oe-dark);
  font-family: 'Cairo', 'Inter', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

html[lang="en"] .article-page {
  font-family: 'Inter', 'Cairo', sans-serif;
}

.article-page *,
.article-page *::before,
.article-page *::after {
  box-sizing: border-box;
}

.article-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-page .ar-only { display: block; }
.article-page .en-only { display: none; }
html[lang="en"] .article-page .ar-only { display: none; }
html[lang="en"] .article-page .en-only { display: block; }

.article-page .top-bar {
  background: var(--oe-secondary);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
}

.article-page .top-bar .container,
.article-page .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.article-page .top-bar a {
  color: white;
  text-decoration: none;
  margin-inline-end: 18px;
}

.article-page header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}

.article-page .navbar {
  padding: 14px 0;
}

.article-page .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--oe-dark);
}

.article-page .logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.article-page .brand {
  color: var(--oe-primary);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
}

.article-page .tagline {
  color: var(--oe-secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-page nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.article-page nav a {
  color: var(--oe-dark);
  text-decoration: none;
  font-weight: 800;
}

.article-page nav a:hover,
.article-page nav a.active {
  color: var(--oe-primary);
}

.article-page .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-page .lang-switch {
  display: flex;
  padding: 4px;
  background: #f0f2f5;
  border-radius: 8px;
}

.article-page .lang-btn {
  border: 0;
  background: transparent;
  color: var(--oe-muted);
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.article-page .lang-btn.active {
  background: var(--oe-primary);
  color: white;
}

.article-page .hamburger {
  display: none;
}

.article-hero {
  background: linear-gradient(135deg, rgba(44, 62, 115, 0.94), rgba(26, 26, 46, 0.9));
  color: white;
  padding: 82px 0 46px;
}

.article-hero .container,
.article-main .container {
  max-width: 1120px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: white;
  text-decoration: none;
}

.article-hero h1 {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 850px;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}

.article-main {
  padding: 46px 0 76px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.article-content,
.article-sidebar,
.related-articles,
.seo-note {
  background: white;
  border: 1px solid rgba(233, 236, 239, 0.9);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.article-content {
  padding: clamp(22px, 4vw, 42px);
}

.article-content img.featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 6px 0 26px;
}

.article-content h2 {
  margin: 34px 0 14px;
  color: var(--oe-secondary);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.3;
}

.article-content h3 {
  margin: 24px 0 10px;
  color: var(--oe-dark);
  font-size: 1.25rem;
}

.article-content p {
  margin: 0 0 16px;
  color: #2f3542;
  font-size: 1.04rem;
  line-height: 1.9;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-inline-start: 22px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 8px;
}

.article-table th,
.article-table td {
  border: 1px solid var(--oe-border);
  padding: 13px;
  text-align: start;
  vertical-align: top;
}

.article-table th {
  background: var(--oe-secondary);
  color: white;
}

.article-cta {
  margin: 28px 0;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(247,147,30,0.14), rgba(44,62,115,0.1));
  border: 1px solid rgba(247,147,30,0.3);
}

.article-cta strong {
  display: block;
  color: var(--oe-secondary);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.btn-seo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--oe-primary);
  color: white;
  text-decoration: none;
  font-weight: 800;
  transition: background 220ms ease, transform 220ms ease;
}

.btn-seo:hover {
  background: var(--oe-primary-dark);
  transform: translateY(-2px);
}

.article-sidebar {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.article-sidebar h2 {
  font-size: 1.15rem;
  color: var(--oe-secondary);
  margin: 0 0 12px;
}

.article-sidebar a {
  display: block;
  color: var(--oe-dark);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--oe-border);
  font-weight: 700;
}

.article-sidebar a:hover {
  color: var(--oe-primary);
}

.faq-block details {
  border: 1px solid var(--oe-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}

.faq-block summary {
  cursor: pointer;
  color: var(--oe-secondary);
  font-weight: 800;
}

.related-articles {
  margin-top: 28px;
  padding: 28px;
}

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

.related-card {
  display: block;
  border: 1px solid var(--oe-border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--oe-dark);
  text-decoration: none;
  background: white;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
}

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

.related-card span {
  display: block;
  padding: 12px;
  font-weight: 800;
}

.archive-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

@media (max-width: 920px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .article-hero {
    padding: 54px 0 32px;
  }

  .article-content {
    padding: 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-page .hamburger {
    display: flex;
  }
}
