/**
 * MunichTech EXPO — RTL layout & Arabic typography (dir="rtl" / lang="ar").
 */

/* Legacy global switcher — hidden (lang lives in About menu) */
.mte-global-lang {
  display: none !important;
}

/* ── Document direction & Arabic typography ── */
html.mte-rtl,
html[dir="rtl"] {
  direction: rtl;
}

html.mte-rtl body,
html[dir="rtl"] body {
  text-align: right;
}

html[lang="ar"],
html[dir="rtl"] body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.7;
  letter-spacing: normal;
}

html[lang="ar"] .mte-hp-eyebrow,
html[dir="rtl"] .mte-hp-eyebrow,
html[lang="ar"] .mte-site-header__mobile-title,
html[dir="rtl"] .mte-site-header__mobile-title,
html[lang="ar"] .mte-site-header__link,
html[dir="rtl"] .mte-site-header__link,
html[lang="ar"] .mte-site-header__drop-trigger,
html[dir="rtl"] .mte-site-header__drop-trigger {
  text-transform: none;
  letter-spacing: normal;
}

/* Keep numbers, Latin brands, and metrics LTR inside RTL text */
.mte-ltr,
.mte-bidi-ltr,
[dir="rtl"] .mte-hero-trust-bar__stat strong,
[dir="rtl"] .mte-hero-metrics__value,
[dir="rtl"] .mte-hp-package__price,
[dir="rtl"] .mte-pricing-preview__price {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* ── Site header — logo RIGHT, menu LEFT (natural RTL flex, no row-reverse) ── */
html.mte-rtl .mte-site-header__inner,
html[dir="rtl"] .mte-site-header__inner {
  flex-direction: row;
}

html.mte-rtl .mte-brand-logo-link--header,
html[dir="rtl"] .mte-brand-logo-link--header,
html.mte-rtl .mte-brand-logo-wrap--rtl,
html[dir="rtl"] .mte-brand-logo-wrap--rtl {
  justify-content: flex-end;
  flex-shrink: 0;
  max-width: min(46vw, 220px);
  overflow: hidden;
}

html.mte-rtl .mte-brand-logo--header,
html[dir="rtl"] .mte-brand-logo--header {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: center right;
}

@media (max-width: 480px) {
  html[dir="rtl"] .mte-brand-logo-link--header,
  html[dir="rtl"] .mte-brand-logo-wrap--rtl {
    max-width: min(52vw, 168px);
  }

  html[dir="rtl"] .mte-brand-logo--header {
    max-height: 46px;
  }
}

html.mte-rtl .mte-site-header__nav--desktop,
html[dir="rtl"] .mte-site-header__nav--desktop {
  flex-direction: row;
}

html.mte-rtl .mte-site-header__actions,
html[dir="rtl"] .mte-site-header__actions {
  flex-direction: row;
}

html.mte-rtl .mte-site-header__lang,
html[dir="rtl"] .mte-site-header__lang {
  flex-direction: row;
}

html.mte-rtl .mte-site-header__drop-panel,
html[dir="rtl"] .mte-site-header__drop-panel {
  left: auto;
  right: 50%;
  transform: translateX(50%);
  text-align: right;
}

html.mte-rtl .mte-site-header__mobile-head,
html[dir="rtl"] .mte-site-header__mobile-head {
  flex-direction: row;
}

html.mte-rtl .mte-site-header__mobile-title::after,
html[dir="rtl"] .mte-site-header__mobile-title::after {
  background: linear-gradient(270deg, var(--mte-accent), var(--mte-accent-3));
}

html.mte-rtl .mte-site-header__menu-btn,
html[dir="rtl"] .mte-site-header__menu-btn {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* ── Hero & CTAs ── */
html.mte-rtl .mte-hero-enhanced .relative.z-20,
html.mte-rtl .mte-hero-enhanced [class*="max-w-5xl"],
html[dir="rtl"] .mte-hero-enhanced .relative.z-20,
html[dir="rtl"] .mte-hero-enhanced [class*="max-w-5xl"] {
  text-align: right;
}

html.mte-rtl .mte-hero-cta-grid,
html[dir="rtl"] .mte-hero-cta-grid {
  direction: rtl;
}

html.mte-rtl .mte-hero-cta-card,
html[dir="rtl"] .mte-hero-cta-card {
  text-align: right;
}

html.mte-rtl .mte-hero-trust-bar,
html[dir="rtl"] .mte-hero-trust-bar {
  flex-direction: row-reverse;
  justify-content: center;
}

html.mte-rtl .mte-hero-trust-bar__stats,
html[dir="rtl"] .mte-hero-trust-bar__stats {
  flex-direction: row-reverse;
}

html.mte-rtl .mte-hero-bridge,
html[dir="rtl"] .mte-hero-bridge {
  flex-direction: row-reverse;
}

html.mte-rtl .mte-hero-investor-cue,
html[dir="rtl"] .mte-hero-investor-cue {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

html.mte-rtl .mte-hero-subhead,
html[dir="rtl"] .mte-hero-subhead {
  text-align: right;
}

/* ── Homepage sections ── */
html.mte-rtl .mte-hp-inner,
html[dir="rtl"] .mte-hp-inner {
  text-align: right;
}

html.mte-rtl .mte-hp-cta-row,
html[dir="rtl"] .mte-hp-cta-row {
  justify-content: center;
}

html.mte-rtl .mte-final-cta__grid,
html[dir="rtl"] .mte-final-cta__grid {
  direction: rtl;
}

html.mte-rtl .mte-why-attend__grid,
html[dir="rtl"] .mte-why-attend__grid {
  direction: rtl;
}

html.mte-rtl .mte-why-attend__card,
html[dir="rtl"] .mte-why-attend__card {
  text-align: right;
}

html.mte-rtl .mte-bridge__map,
html[dir="rtl"] .mte-bridge__map {
  flex-direction: row-reverse;
}

html.mte-rtl .mte-bridge__countries,
html[dir="rtl"] .mte-bridge__countries {
  direction: rtl;
  justify-content: center;
}

html.mte-rtl .mte-bridge__access-grid,
html[dir="rtl"] .mte-bridge__access-grid {
  direction: rtl;
}

html.mte-rtl .mte-bridge__access-card,
html[dir="rtl"] .mte-bridge__access-card {
  text-align: right;
}

html.mte-rtl .mte-bridge__srtip-badge,
html[dir="rtl"] .mte-bridge__srtip-badge {
  text-align: right;
}

html.mte-rtl .mte-hp-cards,
html[dir="rtl"] .mte-hp-cards,
html.mte-rtl .mte-hp-logo-grid,
html[dir="rtl"] .mte-hp-logo-grid,
html.mte-rtl .mte-investor-types,
html[dir="rtl"] .mte-investor-types,
html.mte-rtl .mte-hero-metrics__grid,
html[dir="rtl"] .mte-hero-metrics__grid,
html.mte-rtl .mte-metrics__grid,
html[dir="rtl"] .mte-metrics__grid {
  direction: rtl;
}

html.mte-rtl .mte-hp-card,
html[dir="rtl"] .mte-hp-card,
html.mte-rtl .mte-investor-types__card,
html[dir="rtl"] .mte-investor-types__card,
html.mte-rtl .mte-startup-showcase__card,
html[dir="rtl"] .mte-startup-showcase__card {
  text-align: right;
}

html.mte-rtl .mte-investor-why ul,
html[dir="rtl"] .mte-investor-why ul,
html.mte-rtl .mte-sponsor-benefits,
html[dir="rtl"] .mte-sponsor-benefits,
html.mte-rtl .mte-exhibitor-benefits,
html[dir="rtl"] .mte-exhibitor-benefits {
  padding-inline-start: 0;
  padding-inline-end: 1.25rem;
  text-align: right;
}

html.mte-rtl .mte-srtip__layout,
html[dir="rtl"] .mte-srtip__layout {
  direction: rtl;
}

html.mte-rtl .mte-srtip__copy,
html[dir="rtl"] .mte-srtip__copy {
  text-align: right;
}

html.mte-rtl .mte-venue__layout,
html[dir="rtl"] .mte-venue__layout {
  direction: rtl;
}

html.mte-rtl .mte-zones-grid-enhanced,
html[dir="rtl"] .mte-zones-grid-enhanced {
  direction: rtl;
}

html.mte-rtl .mte-zones-grid-enhanced__card,
html[dir="rtl"] .mte-zones-grid-enhanced__card {
  text-align: right;
}

html.mte-rtl .mte-zones-grid-enhanced__icon,
html[dir="rtl"] .mte-zones-grid-enhanced__icon {
  margin-inline-start: 0;
  margin-inline-end: 0;
}

/* Ecosystem logos tabs */
html.mte-rtl .mte-eco-logos__tabs,
html[dir="rtl"] .mte-eco-logos__tabs {
  flex-direction: row-reverse;
}

html.mte-rtl .mte-eco-logos__header,
html[dir="rtl"] .mte-eco-logos__header {
  text-align: right;
}

/* Apply forms */
html.mte-rtl .mte-apply-row,
html[dir="rtl"] .mte-apply-row {
  direction: rtl;
}

html.mte-rtl .mte-apply-back,
html[dir="rtl"] .mte-apply-back {
  text-align: right;
}

html.mte-rtl .mte-apply-grid,
html[dir="rtl"] .mte-apply-grid {
  direction: rtl;
}

/* Agenda filters */
html.mte-rtl .mte-agenda__filters-row,
html[dir="rtl"] .mte-agenda__filters-row {
  flex-direction: row-reverse;
}

html.mte-rtl .mte-agenda__filter-pills,
html[dir="rtl"] .mte-agenda__filter-pills {
  flex-direction: row-reverse;
}

/* Hackathons / zones CTAs */
html.mte-rtl .mte-hk-cta-row,
html[dir="rtl"] .mte-hk-cta-row {
  flex-direction: row-reverse;
}

html.mte-rtl .mte-zn-cta-row,
html[dir="rtl"] .mte-zn-cta-row {
  flex-direction: row-reverse;
}

/* News ticker */
html.mte-rtl .mte-news-ticker,
html[dir="rtl"] .mte-news-ticker {
  flex-direction: row-reverse;
}

html.mte-rtl .mte-news-ticker__track,
html[dir="rtl"] .mte-news-ticker__track {
  animation-direction: reverse;
}

/* ── Footer — RTL column order (right → left reading) ── */
html.mte-rtl footer.mte-footer-enhanced .grid,
html[dir="rtl"] footer.mte-footer-enhanced .grid {
  direction: rtl;
}

html.mte-rtl footer.mte-footer-enhanced .mte-footer-links,
html[dir="rtl"] footer.mte-footer-enhanced .mte-footer-links {
  direction: rtl;
  text-align: right;
}

html.mte-rtl footer.mte-footer-enhanced .mte-footer-links > div,
html[dir="rtl"] footer.mte-footer-enhanced .mte-footer-links > div {
  text-align: right;
}

html.mte-rtl footer.mte-footer-enhanced .mte-footer-social,
html[dir="rtl"] footer.mte-footer-enhanced .mte-footer-social {
  text-align: right;
}

html.mte-rtl footer.mte-footer-enhanced .mte-footer-social__row,
html[dir="rtl"] footer.mte-footer-enhanced .mte-footer-social__row {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

html.mte-rtl footer.mte-footer-enhanced .space-y-4,
html[dir="rtl"] footer.mte-footer-enhanced .space-y-4 {
  text-align: right;
}

/* Speakers marquee */
html.mte-rtl .mte-speakers-marquee,
html[dir="rtl"] .mte-speakers-marquee {
  direction: rtl;
}

/* ── React SPA header (fixed top nav) ── */
html[dir="rtl"] header.fixed.top-0,
html.mte-rtl header.fixed.top-0 {
  direction: rtl;
}

html[dir="rtl"] header.fixed > div {
  direction: rtl;
}

html[dir="rtl"] header.fixed .mte-brand-logo-wrap,
html[dir="rtl"] header.fixed .mte-brand-logo-link--header,
html[dir="rtl"] header.fixed .cursor-pointer.flex-shrink-0 {
  flex-shrink: 0;
  max-width: min(46vw, 220px);
  justify-content: flex-end;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

html[dir="rtl"] header.fixed .mte-brand-logo--header {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  object-position: center right;
}

/* In-menu language switcher (About submenu) */
.mte-site-header__drop-lang,
.mte-site-header__mobile-lang {
  display: flex;
  align-items: center;
}

.mte-site-header__drop-lang {
  padding: 0.45rem 0.75rem 0.55rem;
  border-top: 1px solid rgba(0, 200, 255, 0.12);
  margin-top: 0.15rem;
}

.mte-site-header__mobile-lang {
  padding: 0.35rem 0 0.65rem;
  margin-inline-start: 0.25rem;
}

.mte-site-header__lang--menu,
.mte-site-header__lang--mobile {
  font-size: 0.8rem;
}

/* ── Why Attend cards — icon & CTA alignment ── */
html[dir="rtl"] .mte-why-attend__icon {
  text-align: right;
  display: block;
}

html[dir="rtl"] .mte-why-attend__cta {
  text-align: right;
}

html[dir="rtl"] .mte-why-attend__card ul {
  padding-inline-start: 0;
  padding-inline-end: 1.1rem;
}

/* ── Innovation Zones platform ── */
html[dir="rtl"] .mte-zones-page,
html[dir="rtl"] .mte-zn-hero,
html[dir="rtl"] .mte-zn-hero__inner,
html[dir="rtl"] .mte-zn-section {
  text-align: right;
}

html[dir="rtl"] .mte-zn-grid,
html[dir="rtl"] .mte-zn-stats,
html[dir="rtl"] .mte-zn-chips,
html[dir="rtl"] .mte-zn-audience,
html[dir="rtl"] .mte-zn-breadcrumb {
  direction: rtl;
}

html[dir="rtl"] .mte-zn-card,
html[dir="rtl"] .mte-zn-index-card {
  text-align: right;
}

html[dir="rtl"] .mte-zn-list li {
  padding-inline-start: 0;
  padding-inline-end: 1.25rem;
}

html[dir="rtl"] .mte-zn-list li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .mte-zn-back::before {
  content: "→ ";
}

html[dir="rtl"] .mte-zn-subtitle,
html[dir="rtl"] .mte-zn-lead,
html[dir="rtl"] .mte-zn-hero__why {
  margin-inline: 0;
  text-align: right;
}

html[dir="rtl"] .mte-zn-eyebrow,
html[dir="rtl"] .mte-zn-section__eyebrow,
html[dir="rtl"] .mte-zn-audience__label,
html[dir="rtl"] .mte-zn-stat__label {
  text-transform: none;
  letter-spacing: normal;
}

/* ── Agenda ── */
html[dir="rtl"] .mte-agenda__hero,
html[dir="rtl"] .mte-agenda__inner,
html[dir="rtl"] .mte-agenda__card,
html[dir="rtl"] .mte-agenda__session {
  text-align: right;
}

html[dir="rtl"] .mte-agenda__hero::before {
  right: auto;
  left: -10%;
}

/* ── Apply platform ── */
html[dir="rtl"] .mte-apply-page .mte-apply-hero {
  text-align: right;
}

html[dir="rtl"] .mte-apply-card,
html[dir="rtl"] .mte-apply-form label,
html[dir="rtl"] .mte-apply-form input,
html[dir="rtl"] .mte-apply-form textarea,
html[dir="rtl"] .mte-apply-form select {
  text-align: right;
}

html[dir="rtl"] .mte-apply-back::before {
  content: "→ ";
}

/* ── Ecosystem logos ── */
html[dir="rtl"] .mte-eco-logos__title,
html[dir="rtl"] .mte-eco-logos__subtitle {
  text-align: right;
}

/* ── Mobile Arabic — prevent overflow & overlap (375px) ── */
html[dir="rtl"] body {
  overflow-x: hidden;
}

html[dir="rtl"] .mte-site-header__inner {
  padding-inline: 0.65rem;
  gap: 0.5rem;
  min-height: 52px;
}

html[dir="rtl"] body:has(#mte-site-header),
html[dir="rtl"] body:has(.mte-site-header-bar) {
  padding-top: calc(56px + 1.75rem);
}

@media (min-width: 768px) {
  html[dir="rtl"] body:has(#mte-site-header),
  html[dir="rtl"] body:has(.mte-site-header-bar) {
    padding-top: 72px;
  }
}

@media (max-width: 480px) {
  html[dir="rtl"] .mte-hero-enhanced h2,
  html[dir="rtl"] .mte-hero-enhanced h4 {
    font-size: clamp(1.35rem, 6vw, 2rem);
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  html[dir="rtl"] .mte-hero-cta-grid {
    gap: 0.5rem;
  }

  html[dir="rtl"] .mte-why-attend__card,
  html[dir="rtl"] .mte-hp-card,
  html[dir="rtl"] .mte-zn-card {
    padding: 1.25rem 1rem;
  }

  html[dir="rtl"] footer.mte-footer-enhanced .mte-footer-links {
    gap: 1.25rem;
  }

  html[dir="rtl"] .mte-eco-logos__inner,
  html[dir="rtl"] .mte-agenda__inner,
  html[dir="rtl"] .mte-apply-page .mte-apply-inner {
    padding-inline: 1rem;
  }
}
