/* ---------------------------------------------
   Rail Telecom — Design System
   Modern telecom/rail visual language: deep navy,
   brand blue + green, cyan "signal" accent, glass
   surfaces, soft shadows, generous radius.
--------------------------------------------- */

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

:root {
  --navy-950: #060b1f;
  --navy-900: #0a1440;
  --navy-800: #0f1b56;
  --blue-700: #180ac8;
  --blue-600: #2a2ae0;
  --blue-500: #3d5bff;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --green-600: #198754;
  --green-500: #22a866;

  --ink-900: #0f1424;
  --ink-700: #313a4f;
  --ink-500: #5c6579;
  --ink-300: #97a0b3;

  --surface: #ffffff;
  --surface-soft: #f4f6fb;
  --surface-alt: #eef1f9;
  --border: #e3e7f1;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 6px 18px rgba(15, 27, 76, 0.06);
  --shadow-md: 0 14px 36px rgba(15, 27, 76, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 27, 76, 0.16);

  --container: 1260px;
  --header-h: 102px;
  --font-sans: 'Poppins', 'Segoe UI', sans-serif;
}

/* ---------------------------------------------
   Reset & base
--------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  font-family: var(--font-sans);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-500);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

button {
  font-family: inherit;
}

::selection {
  background: var(--cyan-400);
  color: var(--navy-950);
}

.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

body {
  padding-top: var(--header-h);
}

/* RTL: use Cairo for Arabic text, keep Latin/brand names & icons untouched */
html[dir="rtl"] body,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] p, html[dir="rtl"] a, html[dir="rtl"] li,
html[dir="rtl"] span, html[dir="rtl"] label, html[dir="rtl"] input,
html[dir="rtl"] select, html[dir="rtl"] textarea, html[dir="rtl"] button {
  font-family: 'Cairo', var(--font-sans);
}

html[dir="rtl"] i.fa-solid, html[dir="rtl"] i.fa-brands,
html[dir="rtl"] i.fa-regular, html[dir="rtl"] i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* ---------------------------------------------
   Section scaffolding
--------------------------------------------- */

.section {
  padding: 110px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-title .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: rgba(24, 10, 200, 0.07);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-title .eyebrow i {
  color: var(--cyan-400);
}

.section-title h2 {
  font-size: 38px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.section-title h2 em {
  font-style: normal;
  color: var(--blue-700);
}

.section-title p {
  margin-top: 16px;
  font-size: 16.5px;
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--green-600));
  color: #fff;
  box-shadow: 0 12px 26px rgba(24, 10, 200, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(24, 10, 200, 0.32);
}

.btn-dark {
  background: var(--navy-950);
  color: #fff;
}

.btn-dark:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--blue-700);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-700);
}

.btn-outline:hover {
  background: var(--blue-700);
  color: #fff;
}

.btn-sm {
  padding: 11px 22px;
  font-size: 14px;
  border-radius: 12px;
}

/* ---------------------------------------------
   Popup / lightbox styles (legacy hook kept clean)
--------------------------------------------- */

.popup {
  display: none;
}

/* ---------------------------------------------
   Header
--------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 27, 76, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .brand img {
  width: auto;
  object-fit: contain;
}

/* Enlarged Rail Telecom logos in both language versions */
.site-header .brand img.brand-logo-ar {
  height: 88px;
}

.site-header .brand img.brand-logo-fr {
  height: 94px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(24, 10, 200, 0.08);
  color: var(--blue-700);
}

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

.lang-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: 100px;
}

.lang-switch a {
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  transition: all 0.25s ease;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--blue-700);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink-900);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav .mobile-actions {
  display: none;
}

@media (max-width: 991px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 14px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .main-nav .mobile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 88px;
  }

  .header-actions .lang-switch,
  .header-actions > .btn-dark {
    display: none;
  }

  .site-header .brand img.brand-logo-ar {
    height: 72px;
  }

  .site-header .brand img.brand-logo-fr {
    height: 74px;
  }
}

/* ---------------------------------------------
   Flash / news ticker
--------------------------------------------- */

.ticker-bar {
  position: relative;
  top: 0;
  display: flex;
  align-items: stretch;
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 22px;
  background: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ticker-label i {
  color: var(--cyan-300);
}

.ticker-viewport {
  overflow: hidden;
  flex: 1;
}

.ticker-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  padding: 10px 30px 10px 0;
  animation: ticker-scroll 26s linear infinite;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */

.hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, var(--blue-600), var(--navy-900) 55%), var(--navy-950);
  overflow: hidden;
  padding: 96px 0 110px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 30% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, black, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
}

.hero-glow.g1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
  top: -140px;
  right: -100px;
}

.hero-glow.g2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(25, 135, 84, 0.3), transparent 70%);
  bottom: -160px;
  left: -80px;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cyan-300);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--cyan-300);
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--cyan-300), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16.5px;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stats .stat strong {
  display: block;
  font-size: 28px;
  color: #fff;
  font-weight: 800;
}

.hero-stats .stat span {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.hero-media {
  position: relative;
}

.hero-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}

.hero-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .float-card {
  position: absolute;
  bottom: -26px;
  left: -26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.hero-media .float-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hero-media .float-card strong {
  display: block;
  font-size: 15px;
  color: var(--ink-900);
}

.hero-media .float-card span {
  font-size: 12.5px;
  color: var(--ink-500);
}

@media (max-width: 991px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge, .hero-actions, .hero-stats {
    justify-content: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-media {
    max-width: 420px;
    margin: 20px auto 0;
  }
  .hero-media .float-card {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 34px;
  }
  .hero-stats {
    gap: 24px;
  }
}

/* ---------------------------------------------
   Services
--------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
  grid-column: span 3;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
}

@media (min-width: 992px) {
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3) {
    grid-column: span 2;
  }
}

.service-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-400), var(--green-500));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.service-card .icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24, 10, 200, 0.1), rgba(34, 211, 238, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.service-card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
}

html[dir="rtl"] .service-card:hover .icon {
  transform: scale(1.08) rotate(4deg);
}

.service-card .icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.service-card .index {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-300);
}

.service-card h4 {
  font-size: 20px;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.75;
}

.service-card .features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card .features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
}

.service-card .features li i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(25, 135, 84, 0.12);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.service-card .card-bottom {
  margin-top: auto;
}

.service-card a.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-700);
}

.service-card a.file-link:hover {
  color: var(--green-600);
}

@media (min-width: 992px) {
  .service-card.wide {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 44px;
    padding: 38px 40px;
  }

  .service-card.wide .card-top {
    grid-column: 1;
    grid-row: 1;
  }

  .service-card.wide h4 {
    grid-column: 1;
    grid-row: 2;
  }

  .service-card.wide p {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }

  .service-card.wide .features {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    margin-top: 0;
    padding-top: 0;
    padding-inline-start: 36px;
    border-top: none;
    border-inline-start: 1px dashed var(--border);
  }

  .service-card.wide .card-bottom {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------
   Clients marquee
--------------------------------------------- */

.clients-band {
  background: var(--navy-950);
  padding: 70px 0;
}

.clients-band .section-title h2,
.clients-band .section-title p {
  color: #fff;
}

.clients-band .section-title p {
  color: rgba(255, 255, 255, 0.65);
}

.clients-band .section-title .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan-300);
}

.marquee {
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track .logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 28px;
  height: 78px;
}

.marquee-track img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------
   Partners
--------------------------------------------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.partner-card {
  position: relative;
  height: 150px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.partner-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-700), var(--green-600));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.partner-card .overlay h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.partner-card .overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  line-height: 1.55;
}

.partner-card:hover img {
  opacity: 0;
}

.partner-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ---------------------------------------------
   News & careers
--------------------------------------------- */

.news-careers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.panel-heading h3 {
  font-size: 22px;
  color: var(--ink-900);
}

.panel-heading a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.job-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-700);
  background: rgba(24, 10, 200, 0.07);
  padding: 6px 12px;
  border-radius: 100px;
}

.job-card h4 {
  font-size: 18px;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.job-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item .thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.news-item .date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 6px;
}

.news-item h4 {
  font-size: 16px;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.news-item p {
  font-size: 13.5px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .news-careers {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------
   Contact
--------------------------------------------- */

.contact-section {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900), var(--blue-700) 130%);
  padding: 110px 0;
  overflow: hidden;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-grid h2 {
  font-size: 34px;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.35;
}

.contact-grid > div:first-child > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info .label {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

.contact-info a, .contact-info span.value {
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

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

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 14.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink-900);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(24, 10, 200, 0.1);
  background: #fff;
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6579' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

html[dir="rtl"] .field select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.field .error-msg {
  font-size: 12.5px;
  color: #dc3545;
  margin-top: 5px;
  display: none;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.success-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeInUp 0.5s ease forwards;
}

.success-overlay.show {
  display: flex;
}

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

.success-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--green-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

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

.checkmark {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s ease 0.55s forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 10px;
}

.success-sub {
  font-size: 14.5px;
  color: var(--ink-500);
  max-width: 380px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 26px;
  }
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  max-width: 340px;
}

.footer-col h5 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan-300);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
