/* Rail Logistic - Modern Custom CSS */
:root {
  --color-primary: #001f4d;
  --color-secondary: #ff8c00;
  --color-dark: #1a1a1a;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --sticky-offset: 60px;
  --header-height: 52px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05); /* Softer */
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05); /* Softer, more spread */
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius: 4px; /* Slightly sharper for minimal look */
  --transition: all 0.3s ease;
  --font-main: "Inter", sans-serif;
  --font-ar: "Cairo", sans-serif;
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --glass-blur: blur(12px);
}

/* ... Reset & Base ... */

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: #f5f7fa; /* Slightly cooler background for glass effect */
  background-image: radial-gradient(circle at 10% 20%, rgba(216, 241, 230, 0.4) 0%, rgba(233, 226, 226, 0.1) 90.1%); /* Subtle depth gradient */
  color: #333;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
}

/* ... Typography ... */

/* Components */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 12px; /* Softer Radius */
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth springy transition */
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15); /* Deep shadow on hover */
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.85); /* More opaque on hover */
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

.rtl-flip {
  display: inline-block;
  transition: transform 0.25s ease;
}

[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
}

/* Header */
.main-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
  margin-top: var(--sticky-offset);
}

/* Sticky Wrapper (handled via inline style for robustness) */
.sticky-wrapper {
  z-index: 1001;
  /* Add glass effect to sticky header container if needed, 
     though currently it contains opaque children (top-bar, ribbon).
     We can make them semi-transparent to show the effect. */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.contact-ribbon {
  background: #f1f1f1;
  border-bottom: 1px solid #e0e0e0;
  padding: 4px 0;
  display: block;
}

.top-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 5px 0;
  font-size: 0.8rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flash-infos {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 24px;
  justify-content: flex-end;
  display: flex;
}

.ticker-wrap {
  position: absolute;
  right: 0;
  white-space: nowrap;
  animation: marquee 10s linear infinite;
  display: inline-block;
}

.ticker-separator {
  margin: 0 16px;
  color: rgba(255, 255, 255, 0.5);
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin: 0 1.25rem;
  font-weight: 600;
}

.ticker-link {
  color: var(--color-white);
  transition: color 0.2s ease;
}

.ticker-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.lang-switch a {
  margin: 0 5px;
  color: var(--color-white);
  font-weight: bold;
}

.lang-switch a.active {
  color: var(--color-secondary);
}

.lang-switch button {
  margin: 0 5px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-white);
  font-weight: bold;
  cursor: pointer;
}

.lang-switch button.active {
  color: var(--color-secondary);
}

.contact-ribbon {
  background: #f1f1f1;
  border-bottom: 1px solid #e0e0e0;
  padding: 4px 0;
  display: block;
}

.contact-ribbon .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  color: var(--color-secondary);
}

.main-nav-container {
  padding: 0.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links .btn {
  padding: 6px 16px;
  font-size: 0.85rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-secondary);
}
.nav-link:hover::after {
  width: 100%;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-header p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #e07b00;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Components */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--color-secondary);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.icon-box {
  width: auto;
  height: auto;
  display: block;
  background: transparent;
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover .icon-box {
  background: transparent;
  color: var(--color-secondary);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-tag {
  background: var(--color-secondary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Footer */
.main-footer {
  background-color: var(--color-dark);
  color: #aaa;
  padding: 60px 0 20px;
  margin-top: auto;
}

.main-footer h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-inline-start: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: var(--color-white);
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.table th {
  background-color: var(--color-light);
  font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .contact-ribbon {
    display: block;
  }

  .contact-ribbon .container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .contact-item {
    font-size: 0.85rem;
  }

  .contact-item span {
    overflow-wrap: anywhere;
  }

  .hero {
    height: 400px;
  }

  h1 {
    font-size: 2rem;
  }
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

/* Utilities & Helpers */
.text-center {
  text-align: center;
}
.text-white {
  color: var(--color-white);
}
.text-primary {
  color: var(--color-primary);
}
.text-secondary {
  color: var(--color-secondary);
}
.bg-light {
  background-color: var(--color-light);
}
.bg-white {
  background-color: var(--color-white);
}
.bg-primary {
  background-color: var(--color-primary);
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.py-large {
  padding: 4rem 0;
}

/* Full Width Hero */
.hero-full {
  position: relative;
  width: 100%;
  height: 85vh; /* Taller for impact */
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.hero-full .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* Smooth Fade */
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-full .slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 3;
}

.hero-content-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: flex-end; /* Align right to leave space on left */
  padding-right: 5%; /* Spacing from edge */
}

/* RTL Support for hero alignment */
[dir="rtl"] .hero-content-wrapper {
  justify-content: flex-start; /* Align left in RTL (which is start) */
  padding-right: 0;
  padding-left: 5%;
}

.hero-text-box {
  text-align: left; /* Align text inside to left */
  color: white;
  max-width: 600px; /* narrower to allow space on left */
  padding: 40px;
  
  /* Glassmorphism for Hero Box */
  background: rgba(0, 31, 77, 0.65); /* Darker glass for contrast with white text */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  border-radius: 12px;
  margin-right: 50px;
}

[dir="rtl"] .hero-text-box {
  text-align: right;
  margin-right: 0;
  margin-left: 50px;
}

/* Slide Animations */
.hero-full .slide.active .hero-text-box h1,
.hero-full .slide.active .hero-text-box p,
.hero-full .slide.active .hero-text-box .btn {
  animation: fadeInUp 1s ease-out forwards;
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.dot.active {
  background: var(--color-secondary);
  transform: scale(1.2);
  border-color: white;
}

.dot:hover {
  background: white;
}
    /* Removed old overlay style */
    display: none; 
}
  justify-content: center;
  flex-wrap: wrap;
}

/* References */
.references-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.ref-logo {
  height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.ref-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.ref-text {
  font-weight: bold;
  color: #ccc;
  border: 1px solid #eee;
  padding: 0.5rem 1rem;
}

/* Call to Action */
.cta-section {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
}
.cta-section h2 {
  color: white;
}

.btn-white-outline {
  border: 2px solid white;
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
}
.btn-white-outline:hover {
  background: white;
  color: var(--color-primary);
}

/* Glassmorphism Overrides */
.contact-ribbon { background: transparent !important; border-color: rgba(0,0,0,0.05) !important; }
.main-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-bar { background: rgba(0, 31, 77, 0.9); } /* Semi-transparent primary */
/* Testimonials */
.testimonial-card { text-align: left; display: flex; flex-direction: column; height: 100%; position: relative; }
.testimonial-rating { color: var(--color-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-quote { font-style: italic; color: #555; margin-bottom: 2rem; flex-grow: 1; font-size: 1.05rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 1.5rem; }
.author-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-light); }
.author-placeholder { width: 50px; height: 50px; border-radius: 50%; background: var(--color-primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.author-info h4 { margin: 0; font-size: 1rem; color: var(--color-primary); }
.author-info span { font-size: 0.85rem; color: #888; }
.text-warning { color: #ffc107; }
.text-muted { color: #e0e0e0; }

:root { --font-main: 'IBM Plex Sans', sans-serif; --font-display: 'Space Grotesk', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; }

/* --- CREATIVE FLOATING NAVBAR & CENTERED CONTENT --- */
.main-header { position: sticky; top: 20px; width: 95%; max-width: 1200px; margin: 0 auto; z-index: 1000; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 50px; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 8px 32px rgba(0, 31, 77, 0.15); padding: 0.5rem 2rem; transition: all 0.3s ease; }
.main-header.scrolled { background: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 40px rgba(0, 31, 77, 0.2); }
.main-nav-container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; width: 100%; gap: 1rem; }
.logo { justify-self: start; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 2rem; margin: 0; justify-self: center; }
.mobile-menu-btn { justify-self: end; }
.logo img { height: 40px; width: auto; transition: transform 0.3s; }
.logo:hover img { transform: scale(1.05); }
.nav-link { font-family: var(--font-display); font-weight: 600; color: var(--color-primary); position: relative; padding: 0.5rem 1rem; border-radius: 20px; transition: all 0.3s ease; }
.nav-link:hover { background: rgba(0, 31, 77, 0.05); color: var(--color-secondary); transform: translateY(-1px); }
.nav-link::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 0; height: 2px; background: var(--color-secondary); transition: all 0.3s; transform: translateX(-50%); }
.nav-link:hover::after { width: 60%; }
.btn-primary { border-radius: 50px; padding: 0.6rem 1.5rem; font-family: var(--font-display); letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3); transition: all 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5); }
/* Mobile adjustments */
@media (max-width: 900px) { .main-header { width: 100%; top: 0; border-radius: 0; padding: 1rem; } .nav-links { display: none; } .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: white; padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-radius: 0 0 20px 20px; clip-path: inset(0 0 -50px 0); } }

/* Mobile menu popup fixes */
@media (max-width: 900px) {
  .main-header { padding-inline: 0 !important; }
  .main-nav-container { position: relative; }

  .nav-links.active {
    position: fixed !important;
    top: calc(var(--sticky-offset) + var(--header-height)) !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 100vw;
    margin: 0 !important;
    padding: 1.25rem 1rem !important;
    box-sizing: border-box;
    border-radius: 0 0 24px 24px !important;
    max-height: calc(100vh - (var(--sticky-offset) + var(--header-height)));
    overflow: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 10000;
    scrollbar-width: none; /* Firefox */
  }
  .nav-links.active::-webkit-scrollbar { display: none; } /* WebKit */

  .nav-links.active .nav-link,
  .nav-links.active .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem !important;
    border-radius: 16px;
    white-space: normal;
    word-break: break-word;
  }

  .nav-links.active .nav-link::after { display: none; }
}

/* --- EXTRA THIN NAVBAR OVERRIDES --- */
.main-header { padding: 0.2rem 1.2rem !important; min-height: 48px !important; }
.logo img { height: 28px !important; }
.nav-link { font-size: 0.85rem !important; padding: 0.3rem 0.6rem !important; }
.btn-primary { padding: 0.3rem 0.8rem !important; font-size: 0.85rem !important; min-height: auto !important; }
.nav-links { gap: 1rem !important; }

/* --- FULL WIDTH SQUARE NAVBAR OVERRIDES --- */
.main-header { width: 100% !important; max-width: 100% !important; border-radius: 0 !important; top: 0 !important; left: 0 !important; margin-left: 0 !important; margin-right: 0 !important; margin-top: var(--sticky-offset) !important; border-left: none !important; border-right: none !important; border-top: none !important; }
.main-nav-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

@media (max-width: 768px) {
  :root { --sticky-offset: 32px; --header-height: 52px; }
}

/* --- VERTICAL ALIGNMENT FIX --- */
.main-header { display: flex !important; align-items: center !important; }
.main-nav-container { display: flex !important; align-items: center !important; height: 100% !important; }

/* --- LANDING PAGE MOBILE FIXES --- */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-text-box { margin: 1rem; padding: 1.5rem; width: auto; max-width: 100%; }
  .hero-text-box h1 { font-size: 2rem !important; }
  .carousel-dots { bottom: 1rem; }

  /* Trust/Credibility Row */
  section[style*='background: var(--color-primary)'] .container > div {
    grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    gap: 1rem;
  }
  section[style*='background: var(--color-primary)'] .container > div > div {
    flex-direction: column;
    text-align: center;
  }
  section[style*='background: var(--color-primary)'] .container > div > div > div {
    text-align: center !important;
  }

  /* Cards & Grid */
  .grid-3 { grid-template-columns: 1fr; }
  .card { margin-bottom: 1rem; }

  /* Section Spacing */
  .section { padding: 3rem 0; }
  h2 { font-size: 1.8rem; }
}

/* --- HOME CAROUSEL & SLOGAN MOBILE FIXES --- */
@media (max-width: 900px) {
  /* Stack Static Slogan on Top */
  .hero-full { display: flex; flex-direction: column; min-height: auto !important; height: auto !important; }
  
  /* 1. Static Slogan Section */
  .hero-full > div[style*='position: absolute'] {
    position: relative !important;
    background: var(--color-primary);
    height: auto !important;
    padding: 2rem 1rem;
    z-index: 10;
  }
  .hero-full > div[style*='position: absolute'] > .container {
    justify-content: center !important;
    text-align: center;
    height: auto !important;
  }
  .hero-full > div[style*='position: absolute'] div[style*='max-width: 450px'] {
    max-width: 100% !important;
    text-align: center !important;
  }
  .hero-full img[src*='logo.png'] { margin: 0 auto 1.5rem auto; display: block; }
  .hero-full h1 { font-size: 1.8rem !important; text-shadow: none !important; }
  .hero-full p { margin: 0 auto; text-shadow: none !important; }
  .hero-full div[style*='width: 60px'] { margin: 1rem auto !important; }

  /* 2. Carousel / News Slider */
  .slide {
    width: 100%;
    height: 75vh !important; /* Extended height */
    position: relative !important; /* Stack below intro */
    display: none;
  }
  .slide.active { display: block; }
  .hero-content-wrapper { justify-content: center !important; align-items: flex-end !important; padding-right: 0 !important; padding-left: 0 !important; padding-bottom: 0 !important; height: 100%; }
  .hero-text-box { margin: 0 !important; width: 100% !important; bottom: 0; border-radius: 0 !important; border-left: none !important; border-right: none !important; border-bottom: none !important; padding: 1.5rem !important; }
  .hero-text-box h1 { font-size: 1.6rem !important; margin-bottom: 0.5rem !important; }
  .hero-text-box p { display: block !important; font-size: 0.95rem !important; margin-bottom: 1rem !important; color: #444 !important; }
  .carousel-dots { max-width: calc(100% - 2rem); flex-wrap: wrap; bottom: 12px !important; }
}

@media (max-width: 600px) {
  .slide { height: 62vh !important; }
  .home-map-placeholder { height: 280px !important; }
}

/* --- TENDERS PAGE --- */
.tenders-hero .tenders-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.tenders-hero .tenders-hero-subtitle {
  margin: 0 auto;
  max-width: 70ch;
  opacity: 0.9;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.tenders-page .tenders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tenders-page .tenders-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.tenders-page .tenders-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.75;
  transition: var(--transition);
  white-space: nowrap;
}

.tenders-page .tenders-tab:hover {
  opacity: 1;
  background: rgba(0, 31, 77, 0.06);
}

.tenders-page .tenders-tab.is-active {
  opacity: 1;
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.25);
}

.tenders-page .tenders-help {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667085;
  font-weight: 600;
}

.tenders-page .tenders-right {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tenders-page .tenders-scope {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.tenders-page .tenders-scope-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.75;
  transition: var(--transition);
  white-space: nowrap;
}

.tenders-page .tenders-scope-tab:hover {
  opacity: 1;
  background: rgba(0, 31, 77, 0.06);
}

.tenders-page .tenders-scope-tab.is-active {
  opacity: 1;
  background: rgba(0, 31, 77, 0.9);
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(0, 31, 77, 0.18);
}

.tenders-page .tenders-help i {
  color: #e11d48;
}

.tenders-page .tenders-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.tenders-page .tender-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.tenders-page .tender-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), rgba(255, 140, 0, 0.25));
}

.tenders-page .tender-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}

.tenders-page .tender-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.tenders-page .tender-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.badge--neutral {
  background: rgba(0, 31, 77, 0.06);
  color: var(--color-primary);
}

.badge--success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.badge--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.badge--info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.tenders-page .tender-ref {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: #667085;
  font-weight: 700;
}

.tenders-page .tender-ref-value {
  color: var(--color-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
}

.tenders-page .tender-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.tenders-page .tender-related {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: -0.3rem 0 1rem;
  color: #667085;
  font-weight: 800;
}

.tenders-page .tender-related-label {
  opacity: 0.9;
}

.tenders-page .tender-related-value {
  color: var(--color-primary);
  font-weight: 800;
}

.tenders-page .tender-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.tenders-page .tender-meta-item {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 31, 77, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tenders-page .tender-meta-item.is-urgent {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.18);
}

.tenders-page .tender-meta-item.is-expired {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
}

.tenders-page .tender-meta-item dt {
  color: #667085;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.tenders-page .tender-meta-item dd {
  margin: 0;
  font-weight: 800;
  color: var(--color-primary);
}

.tenders-page .tender-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tenders-page .tender-download {
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
}

.tenders-page .tender-open {
  font-weight: 800;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tenders-page .tender-open:hover {
  color: var(--color-secondary);
}

.tenders-page .tenders-pagination {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-hero-title > span:first-child:not(.page-hero-highlight) {
  background-color: rgba(224, 123, 0, 0.5);
  padding: 2px 10px;
  display:inline
}
.tenders-page .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  color: var(--color-primary);
}

.tenders-page .page-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.tenders-page .page-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tenders-page .page-current {
  color: #667085;
  font-weight: 800;
}

@media (max-width: 900px) {
  .tenders-page .tenders-list {
    grid-template-columns: 1fr;
  }
  .tenders-page .tender-meta {
    grid-template-columns: 1fr;
  }
}

/* --- SERVICES LIST PAGE --- */
.services-hero .services-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.services-hero .services-hero-subtitle {
  margin: 0 auto;
  max-width: 70ch;
  opacity: 0.9;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.services-page .services-page-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(12, 1fr);
}

.services-page .service-card {
  grid-column: span 4;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services-page .service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}

.services-page .service-card:focus-visible {
  outline: 3px solid rgba(255, 140, 0, 0.65);
  outline-offset: 4px;
}

.services-page .service-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 140, 0, 0.18),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(0, 31, 77, 0.95), rgba(0, 31, 77, 0.55));
}

.services-page .service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.services-page .service-card:hover .service-card-media img {
  transform: scale(1.08);
}

.services-page .service-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.services-page .service-card-placeholder i {
  font-size: 2.2rem;
  opacity: 0.9;
}

.services-page .service-card-badge {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.services-page .service-card-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.services-page .service-card-badge i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.services-page .service-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.services-page .service-card-title {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.services-page .service-card-desc {
  margin: 0;
  color: #667085;
}

.services-page .service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.services-page .service-card-cta span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.services-page .service-card:hover .service-card-cta span {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .services-page .service-card {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .services-page .service-card {
    grid-column: span 12;
  }
}

/* --- NEWS LIST PAGE --- */
.news-hero .news-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.news-hero .news-hero-subtitle {
  margin: 0 auto;
  max-width: 75ch;
  opacity: 0.9;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.news-page .news-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.news-page .news-filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.news-page .news-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.75;
  transition: var(--transition);
  white-space: nowrap;
}

.news-page .news-filter:hover {
  opacity: 1;
  background: rgba(0, 31, 77, 0.06);
}

.news-page .news-filter.is-active {
  opacity: 1;
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.25);
}

.news-page .news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.news-page .news-card {
  grid-column: span 4;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-page .news-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}

.news-page .news-card:focus-visible {
  outline: 3px solid rgba(255, 140, 0, 0.65);
  outline-offset: 4px;
}

.news-page .news-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 140, 0, 0.18),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(0, 31, 77, 0.95), rgba(0, 31, 77, 0.55));
}

.news-page .news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.news-page .news-card:hover .news-card-media img {
  transform: scale(1.08);
}

.news-page .news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.news-page .news-card-placeholder i {
  font-size: 2.2rem;
  opacity: 0.9;
}

.news-page .news-card-badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 900;
  font-size: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.news-page .news-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.news-page .news-card-date {
  color: #667085;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.news-page .news-card-title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.news-page .news-card-desc {
  margin: 0;
  color: #667085;
}

.news-page .news-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.news-page .news-card-cta span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.news-page .news-card:hover .news-card-cta span {
  transform: translateX(3px);
}

.news-page .news-pagination {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .news-page .news-card {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .news-page .news-card {
    grid-column: span 12;
  }
}

/* --- NEWS DETAIL PAGE --- */
.news-detail-hero .news-detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  opacity: 0.9;
  font-weight: 700;
  margin-bottom: 1rem;
}

.news-detail-hero .news-detail-breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-detail-hero .news-detail-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.news-detail-hero .news-detail-meta {
  margin: 0;
  opacity: 0.92;
  font-weight: 700;
}

.news-detail-hero .news-detail-meta i {
  margin-inline-end: 8px;
  opacity: 0.9;
}

.news-detail-page .news-detail-container {
  max-width: 1150px;
}

.news-detail-page .news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.news-detail-page .news-article {
  border-radius: 16px;
  padding: 1.75rem;
}

.news-detail-page .news-article-content {
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.85;
}

.news-detail-page .news-article-content p {
  margin-bottom: 1.1rem;
}

.news-detail-page .news-article-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: flex-start;
}

.news-detail-page .news-back {
  font-weight: 900;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.news-detail-page .news-back:hover {
  color: var(--color-secondary);
}

.news-detail-page .news-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.news-detail-page .news-side-card {
  border-radius: 16px;
  padding: 1.25rem;
}

.news-detail-page .news-side-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.news-detail-page .news-side-text {
  margin: 0;
  color: #667085;
}

/* Carousel */
.news-detail-page .news-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 140, 0, 0.18),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(0, 31, 77, 0.95), rgba(0, 31, 77, 0.55));
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  touch-action: pan-y;
}

.news-detail-page .news-carousel-viewport {
  overflow: hidden;
}

.news-detail-page .news-carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.45s ease;
}

.news-detail-page .news-carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-detail-page .news-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.news-detail-page .news-carousel-btn {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}

.news-detail-page .news-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

.news-detail-page .news-carousel-btn.is-prev {
  inset-inline-start: 14px;
}

.news-detail-page .news-carousel-btn.is-next {
  inset-inline-end: 14px;
}

.news-detail-page .news-carousel-dots {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 12px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 16px;
  z-index: 5;
  overflow-x: auto;
  scrollbar-width: none;
}

.news-detail-page .news-carousel-dots::-webkit-scrollbar {
  display: none;
}

.news-detail-page .news-carousel-thumb {
  width: 92px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition);
  flex: 0 0 auto;
  padding: 0;
}

.news-detail-page .news-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.news-detail-page .news-carousel-thumb:hover {
  transform: translateY(-2px);
}

.news-detail-page .news-carousel-thumb.is-active {
  outline: 3px solid rgba(255, 140, 0, 0.7);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .news-detail-page .news-carousel-thumb {
    width: 76px;
    height: 52px;
  }
}

.news-related {
  margin-top: 2.75rem;
}

.news-related .news-related-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.news-related .news-related-card {
  grid-column: span 4;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-related .news-related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}

.news-related .news-related-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 31, 77, 0.08);
}

.news-related .news-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.news-related .news-related-card:hover .news-related-media img {
  transform: scale(1.08);
}

.news-related .news-related-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 31, 77, 0.85);
}

.news-related .news-related-body {
  padding: 1rem 1.1rem 1.2rem;
}

.news-related .news-related-date {
  color: #667085;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.news-related .news-related-title {
  font-weight: 900;
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .news-detail-page .news-detail-layout {
    grid-template-columns: 1fr;
  }
  .news-related .news-related-card {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .news-related .news-related-card {
    grid-column: span 12;
  }
}

/* --- SERVICE DETAIL PAGE --- */
.service-detail-hero {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 5.25rem 0 4rem;
  overflow: hidden;
}

.service-detail-hero.has-media {
  padding: 6.25rem 0 4.75rem;
}

.service-detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}

.service-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 140, 0, 0.22),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(0, 31, 77, 0.75) 0%,
      rgba(0, 31, 77, 0.95) 100%
    );
}

.service-detail-hero-inner {
  position: relative;
  z-index: 2;
}

.service-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  opacity: 0.9;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.service-detail-breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-detail-breadcrumb-current {
  opacity: 0.95;
}

.service-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.service-detail-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  margin-bottom: 1.15rem;
}

.service-detail-hero-badge img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-detail-hero-badge i {
  color: var(--color-primary);
  font-size: 1.4rem;
}

.service-detail-title {
  color: white;
  margin: 0 0 0.75rem;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
}

.service-detail-subtitle {
  margin: 0;
  max-width: 70ch;
  font-size: 1.1rem;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
}

.service-detail-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.service-detail-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.service-detail-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-detail-hero-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem;
}

.service-detail-hero-card-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.service-detail-hero-card-items {
  display: grid;
  gap: 0.65rem;
}

.service-detail-contact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
}

.service-detail-contact:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.service-detail-contact-ic {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.service-detail-contact-ic i {
  color: var(--color-white);
}

.service-detail-contact-label {
  display: block;
  opacity: 0.85;
  font-weight: 800;
  font-size: 0.85rem;
}

.service-detail-contact-value {
  display: block;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-top: 0.1rem;
}

.service-detail-contact.is-cta {
  background: rgba(255, 140, 0, 0.2);
  border-color: rgba(255, 140, 0, 0.35);
}

.service-detail-page .service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.service-detail-page .service-detail-article {
  border-radius: 16px;
  padding: 1.75rem;
}

.service-detail-article-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.service-detail-article-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 31, 77, 0.06);
  color: var(--color-primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 900;
  font-size: 0.8rem;
}

.service-detail-content {
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.85;
}

.service-detail-content p {
  margin-bottom: 1.1rem;
}

.service-detail-article-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-detail-back {
  font-weight: 900;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.service-detail-back:hover {
  color: var(--color-secondary);
}

.service-detail-page .service-detail-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.service-detail-page .service-detail-side-card {
  border-radius: 16px;
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}

.service-detail-side-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.service-detail-points {
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.service-detail-points li {
  display: flex;
  gap: 0.65rem;
  color: #334155;
  font-weight: 700;
}

.service-detail-points i {
  color: var(--color-secondary);
  margin-top: 3px;
}

.service-detail-other-grid {
  display: grid;
  gap: 0.6rem;
}

.service-detail-other {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(0, 31, 77, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.service-detail-other:hover {
  background: rgba(0, 31, 77, 0.06);
  transform: translateY(-2px);
}

.service-detail-other-ic {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-detail-other-ic img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.service-detail-other-ic i {
  color: var(--color-primary);
}

.service-detail-other-title {
  font-weight: 900;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .service-detail-hero-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-page .service-detail-layout {
    grid-template-columns: 1fr;
  }
  .service-detail-page .service-detail-side-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 600px) {
  .service-detail-title {
    font-size: 2rem;
  }
}

/* --- FOOTER REDESIGN --- */
.main-footer {
  background: radial-gradient(
      circle at 15% 20%,
      rgba(255, 140, 0, 0.14),
      transparent 55%
    ),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.07), transparent 50%),
    linear-gradient(135deg, #00122e, #001f4d 55%, #06162f);
  color: rgba(255, 255, 255, 0.86);
  padding: 0;
}

.main-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.main-footer a:hover {
  color: var(--color-secondary);
}

.main-footer .footer-top {
  padding: 70px 0 40px;
}

.main-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.main-footer .footer-brand {
  padding-right: 1rem;
}

.main-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.1rem;
}

.main-footer .footer-logo img {
  height: 40px;
  width: auto;
}

.main-footer .footer-desc {
  margin: 0 0 1.2rem;
  max-width: 55ch;
  color: rgba(255, 255, 255, 0.82);
}

.main-footer .footer-title {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.main-footer .footer-links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.main-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.9;
}

.main-footer .footer-links a:hover {
  opacity: 1;
  transform: translateX(2px);
}

.main-footer .footer-social {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.main-footer .footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: var(--transition);
}

.main-footer .footer-social-link:hover {
  background: rgba(255, 140, 0, 0.22);
  border-color: rgba(255, 140, 0, 0.35);
  transform: translateY(-2px);
}

.main-footer .footer-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.main-footer .footer-note-label {
  font-weight: 900;
  opacity: 0.95;
}

.main-footer .footer-placeholder {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.main-footer .footer-mini-card {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.main-footer .footer-mini-card-title {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.4rem;
}

.main-footer .footer-mini-card-text {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.main-footer .footer-contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.65rem;
}

.main-footer a.footer-contact-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.main-footer .footer-contact-ic {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.main-footer .footer-contact-label {
  display: block;
  font-weight: 900;
  opacity: 0.95;
  margin-bottom: 0.15rem;
}

.main-footer .footer-contact-value {
  display: block;
  opacity: 0.9;
}

.main-footer .footer-legal {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.main-footer .footer-legal-title {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.65rem;
}

.main-footer .footer-legal-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.84);
}

.main-footer .footer-legal-k {
  color: rgba(255, 255, 255, 0.95);
}

.main-footer .footer-legal-hint {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.main-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
}

.main-footer .footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-footer .footer-bottom-left {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}

.main-footer .footer-bottom-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 800;
}

.main-footer .footer-bottom-links a {
  opacity: 0.85;
}

.main-footer .footer-bottom-links a:hover {
  opacity: 1;
}

@media (max-width: 1000px) {
  .main-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .main-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .main-footer .footer-brand {
    padding-right: 0;
  }
}

/* --- NAVBAR (REIMPLEMENTATION) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: var(--sticky-offset);
  margin-top: var(--sticky-offset);
  z-index: 12000;
  width: 100%;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 31, 77, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 6px 10px;
}

.site-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.site-nav__toggle,
.site-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
}

.site-nav__toggle:hover,
.site-nav__close:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.14);
}

.site-nav__overlay[hidden] {
  display: none;
}

.site-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 12010;
}

.site-nav__drawer {
  position: fixed;
  top: calc(var(--sticky-offset) + var(--header-height));
  bottom: 0;
  inset-inline-end: 0;
  width: min(420px, 90vw);
  height: calc(100vh - (var(--sticky-offset) + var(--header-height)));
  background: rgba(255, 255, 255, 0.92);
  border-inline-start: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  z-index: 12020;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.35s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem;
  overflow: hidden;
  overflow-x: hidden;
  box-sizing: border-box;
  border-top-left-radius: 24px;
}

[dir="rtl"] .site-nav__drawer {
  inset-inline-end: auto;
  inset-inline-start: 0;
  transform: translate3d(-100%, 0, 0);
  border-top-left-radius: 0;
  border-top-right-radius: 24px;
}

.site-nav__drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.site-nav__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-nav__drawer-head,
.site-nav__cta {
  box-sizing: border-box;
}

.site-nav__drawer-title {
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.site-nav__links {
  padding: 1rem 0;
  display: grid;
  gap: 0.5rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  overflow-x: hidden;
}

.site-nav__links::-webkit-scrollbar {
  display: none;
}

.site-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font-weight: 800;
  color: var(--color-primary);
  background: rgba(0, 31, 77, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.site-nav__link:hover {
  background: rgba(0, 31, 77, 0.06);
  transform: translateY(-1px);
}

.site-nav__cta {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 901px) {
  .site-header__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .site-nav__toggle,
  .site-nav__overlay,
  .site-nav__close,
  .site-nav__cta {
    display: none !important;
  }

  .site-nav__drawer {
    position: static;
    transform: none !important;
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: block;
    overflow: visible;
  }

  .site-nav__links {
    overflow: visible;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav__link {
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
  }

  .site-nav__link:hover {
    background: rgba(0, 31, 77, 0.06);
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 44px 1fr 44px;
    padding: 0.55rem 0.75rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .site-logo {
    grid-column: 2;
    justify-self: center;
  }

  .site-nav {
    grid-column: 3;
    justify-self: end;
  }

  [dir="rtl"] .site-nav {
    grid-column: 1;
    justify-self: start;
  }

  /* Mobile: use a full-screen sheet to avoid "menu inside navbar" visuals */
  .site-nav__overlay {
    inset: 0;
  }

  .site-nav__drawer {
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    max-width: none;
    border-radius: 0;
    border-inline-start: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    padding-inline: 1rem;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  }

  [dir="rtl"] .site-nav__drawer {
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  }
}

body.nav-open {
  overflow: hidden !important;
}
