/* ============================================
   METRO STARCARE METRO MEDICAL GROUP — DESIGN SYSTEM
   Theme: White + Pinkish Maroon / Rose-Maroon
   ============================================ */

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

:root {
  --maroon: #8b1a4a;
  --maroon-dark: #6a1238;
  --maroon-deep: #4a0d28;
  --maroon-light: #b8426a;
  --rose: #e8c4d4;
  --rose-pale: #f7eef3;
  --rose-blush: #f2d9e6;
  --white: #ffffff;
  --off-white: #fdfaf9;
  --text-dark: #1a0a12;
  --text-mid: #5a3048;
  --text-soft: #8b6070;
  --border: #e8d0dc;
  --gold: #c9a96e;
  --gold-light: #e8d4a8;
  --shadow-sm: 0 2px 12px rgba(139, 26, 74, 0.08);
  --shadow-md: 0 8px 32px rgba(139, 26, 74, 0.14);
  --shadow-lg: 0 20px 60px rgba(139, 26, 74, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}
body {
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--rose-pale);
}
::-webkit-scrollbar-thumb {
  background: var(--maroon-light);
  border-radius: 3px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 48px;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-right: 10px;
}
.nav-logo-text .brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--maroon);
}
.nav-logo-text .sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: right;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-emergency {
  display: flex;
  align-items: center;
  gap: 16px;
}
.emergency-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--maroon);
  color: white;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.emergency-badge:hover {
  background: var(--maroon-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139, 26, 74, 0.3);
}
.emergency-badge .pulse {
  width: 8px;
  height: 8px;
  background: #ff6b6b;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
  }
}
.nav-socials {
  display: flex;
  gap: 10px;
}
.nav-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}
.nav-social-icon:hover {
  background: var(--maroon);
  color: white;
  border-color: var(--maroon);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 120px 32px 72px;
  background: linear-gradient(
    135deg,
    var(--maroon-deep) 0%,
    var(--maroon) 50%,
    var(--maroon-light) 100%
  );
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--rose);
  opacity: 0.85;
}
.page-hero-breadcrumb a {
  color: var(--rose);
  text-decoration: none;
}
.page-hero-breadcrumb span {
  opacity: 0.5;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1rem;
  color: var(--rose);
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- SECTION ---- */
.section {
  padding: 88px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--maroon-dark);
  line-height: 1.25;
}
.section-title em {
  color: var(--maroon-light);
  font-weight: 400;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-sub::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--maroon-light);
}
.section-desc {
  color: var(--text-mid);
  font-size: 1.02rem;
  max-width: 560px;
  line-height: 1.75;
  margin-top: 12px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--maroon);
  color: white;
}
.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 26, 74, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}
.btn-outline:hover {
  background: var(--maroon);
  color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--maroon);
}
.btn-white:hover {
  background: var(--rose-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ---- DOCTOR CARD ---- */
.doctor-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rose);
}
.doctor-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--rose-blush), var(--rose));
  position: relative;
  overflow: hidden;
}
.doctor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}
.doctor-card:hover .doctor-img-wrap img {
  transform: scale(1.04);
}
.doctor-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--rose-blush) 0%, var(--rose) 100%);
}
.doctor-placeholder .icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(139, 26, 74, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.doctor-placeholder svg {
  color: var(--maroon);
}
.doctor-placeholder span {
  font-size: 0.78rem;
  color: var(--text-soft);
}
.doctor-info {
  padding: 20px 22px 22px;
}
.doctor-specialty-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--rose-pale);
  padding: 4px 10px;
  border-radius: 999px;
}

.doctor-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.doctor-deg {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.doctor-exp {
  font-size: 0.78rem;
  color: var(--maroon-deep); /* soft gray */
  margin-top: 4px;
  font-weight: 500;
}
.doctor-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between; /* KEY CHANGE */
  margin-bottom: 8px;
}

.doctor-exp {
  font-size: 0.72rem;
  color: var(--maroon-deep); /* lighter = less visual tension */
  font-weight: 500;
}
.doctor-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.director-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}

/* ---- SERVICE CARD ---- */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rose);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--maroon);
}
.service-card:hover .service-icon svg {
  color: white !important;
}
.service-card h3 {
  font-size: 1.1rem;
  color: var(--maroon-dark);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---- STAT BOX ---- */
.stat-box {
  text-align: center;
  padding: 32px 20px;
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- INSURANCE BAND ---- */
.insurance-band {
  background: linear-gradient(to bottom, #fff, var(--rose-pale));
  padding: 32px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.insurance-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 20px;
}

/* Ticker */
.ticker-wrap {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.ticker-track-ar {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-right 30s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes scroll-right {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* Cards */
.insurance-card {
  flex-shrink: 0;
  background: white;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  transition: var(--transition);
}

.insurance-card img {
  max-height: 50px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--transition);
}

/* Hover effect */
.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ---- FOOTER ---- */
footer {
  background: var(--maroon-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 72px 32px 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.75;
  opacity: 0.7;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.8);
}
.footer-col h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  text-decoration: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a:hover {
  color: var(--rose);
}
.footer-col ul a::before {
  content: "›";
  color: var(--maroon-light);
}
.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}
.footer-contact li .contact-icon {
  color: var(--rose);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
    color: #fff;
    font-size: 0.8rem;
    opacity: 0.65;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}
.footer-social:hover {
  background: var(--maroon-light);
  border-color: var(--maroon-light);
  color: white;
}

/* ---- UTILITIES ---- */
.text-center {
  text-align: center;
}
.text-center .section-sub {
  justify-content: center;
}
.text-center .section-sub::before {
  display: none;
}
.text-center .section-sub::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--maroon-light);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rose-pale);
  color: var(--maroon);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}
.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
  border-radius: 2px;
  margin: 16px 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- FADE-IN ANIMATION ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .hamburger {
    display: flex;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 60px 20px;
  }
  .page-hero {
    padding: 100px 20px 56px;
  }
}
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    padding: 0 20px;
  }
}

/* WhatsApp floating button */
.floating-btn {
  position: fixed;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float::after {
  content: "Chat with us";
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--maroon);
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.call-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.call-float::after {
  content: "Call us";
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--maroon);
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.call-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.call-float:active {
  transform: scale(0.95);
}

#backToTop {
  display: none;
}

#backToTop:hover {
  background: var(--maroon-light);
}

/* WhatsApp */
.whatsapp-float {
  bottom: 20px;
  background: #25d366;
}

/* Call */
.call-float {
  bottom: 90px; /* stacked above */
  background: #8b1a4a;
}

/* Scroll to top */
.scroll-top {
  bottom: 160px;
  background: #8b1a4a;
}

/* Hover */
.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* english/arabic toggler */
.nav-lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(139, 26, 74, 0.1);
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid var(--rose-pale);
  transition: all 0.2s ease;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: all 0.2s ease;
  color: var(--text-soft);
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--maroon);
  background: rgba(139, 26, 74, 0.05);
}

.lang-btn.active {
  color: var(--maroon);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.lang-divider {
  color: var(--text-soft);
  font-size: 0.8rem;
}

/* Desktop - normal flow */
.nav-lang-switch {
  margin-left: 12px;
}

body.rtl .nav-lang-switch {
  margin-left: 0;
  margin-right: 12px;
}
/* Mobile Styles */
@media (max-width: 900px) {
  .nav-logo-text {
    display: none;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1003;
    position: relative;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    display: block;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--maroon);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--maroon);
  }

  /* Hide desktop elements */
  .nav-emergency {
    display: none;
  }

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

  /* Mobile Menu - Slide from Right */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: 280px !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 100px 24px 30px !important;
    margin: 0 !important;
    gap: 0 !important;
    transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1) !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2) !important;
    z-index: 1002 !important;
    border-left: 4px solid var(--maroon) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    display: flex !important;
    overflow-y: auto !important;
    visibility: visible !important;
  }

  .nav-links.active {
    right: 0 !important;
  }

  /* Menu items styling */
  .nav-links li {
    width: 100% !important;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    transition-delay: calc(0.05s * var(--i, 0));
    list-style: none !important;
    border-bottom: 1px solid rgba(139, 26, 74, 0.1);
  }

  .nav-links.active li {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }

  .nav-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 16px 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--maroon-dark) !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
  }

  .nav-links a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--maroon);
    transition: width 0.3s ease;
  }

  .nav-links a:hover::before,
  .nav-links a.active::before {
    width: 30px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--maroon) !important;
    padding-left: 8px !important;
  }

  /* Arrow indicator on hover */
  .nav-links a::after {
    content: "→";
    opacity: 0;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    color: var(--maroon-light);
  }

  .nav-links a:hover::after {
    opacity: 1;
    transform: translateX(4px);
  }

  /* Menu header indicator */
  .nav-links::before {
    content: "MENU";
    position: absolute;
    top: 28px;
    left: 24px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--maroon);
    background: rgba(139, 26, 74, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
  }

  /* Language switch - INSIDE the menu panel at the bottom */
  .nav-lang-switch {
    position: absolute !important;
    bottom: 15px !important;
    right: 140px !important;
    transform: none !important;
    background: white !important;
    border: 1px solid var(--border) !important;
    padding: 10px 16px !important;
    border-radius: 40px !important;
    z-index: 10 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    gap: 12px !important;
    margin: 0 !important;
    width: auto !important;
    justify-content: center;
  }

  /* Scrollbar styling */
  .nav-links::-webkit-scrollbar {
    width: 4px;
  }

  .nav-links::-webkit-scrollbar-track {
    background: var(--rose-pale);
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: var(--maroon-light);
    border-radius: 4px;
  }

  /* Active link styling */
  .nav-links a.active {
    color: var(--maroon) !important;
    font-weight: 600 !important;
  }

  .nav-links a.active::before {
    width: 30px !important;
  }

  /* Language buttons */
  .lang-btn {
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 30px;
  }

  .lang-btn.active {
    background: var(--maroon);
    color: white;
    box-shadow: none;
  }

  .lang-btn.active:hover {
    background: var(--maroon-dark);
  }

  /* Ensure body doesn't scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* For RTL, the order remains the same since it's flexbox */
  body.rtl .nav-lang-switch {
    position: static;
    right: auto;
    left: auto;
    margin: 0;
  }

  body.rtl .nav-logo {
    order: 3;
  }

  body.rtl .hamburger {
    order: 1;
  }

  body.rtl .nav-lang-switch {
    order: 2;
  }
}

/* Additional touch-friendly improvements for mobile */
@media (max-width: 600px) {
  .nav-lang-switch {
    padding: 4px 8px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .lang-divider {
    font-size: 0.7rem;
  }
}
