/* Custom Styles */
:root {
  --brand-blue: #2563eb;
  --brand-green: #10b981;
  --brand-white: #ffffff;
  --brand-light-gray: #f9fafb;
  --brand-dark-charcoal: #1f2937;
}

body {
  font-family: 'Inter', sans-serif;
}

.shadow-subtle {
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.05),
    0 2px 4px -2px rgb(0 0 0 / 0.05);
}

/* Smooth scrolling for all anchor links */
html {
  scroll-behavior: smooth;
}

/* Smooth scroll offset for fixed header */
section {
  scroll-margin-top: 80px;
}

/* RTL Support */
[dir='rtl'] {
  direction: rtl;
}

[dir='rtl'] .text-left {
  text-align: right;
}

[dir='rtl'] .text-right {
  text-align: left;
}

[dir='rtl'] .text-center {
  text-align: center;
}

[dir='rtl'] .ml-4 {
  margin-left: 0;
  margin-right: 1rem;
}

[dir='rtl'] .mr-4 {
  margin-right: 0;
  margin-left: 1rem;
}

[dir='rtl'] .ml-3 {
  margin-left: 0;
  margin-right: 0.75rem;
}

[dir='rtl'] .mr-3 {
  margin-right: 0;
  margin-left: 0.75rem;
}

[dir='rtl'] .gap-3 {
  gap: 0.75rem;
}

[dir='rtl'] .gap-4 {
  gap: 1rem;
}

[dir='rtl'] .gap-8 {
  gap: 2rem;
}

[dir='rtl'] .flex-row {
  flex-direction: row-reverse;
}

[dir='rtl'] .justify-start {
  justify-content: flex-end;
}

[dir='rtl'] .justify-end {
  justify-content: flex-start;
}

[dir='rtl'] .items-start {
  align-items: flex-end;
}

[dir='rtl'] .items-end {
  align-items: flex-start;
}

/* Language switcher dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  z-index: 50;
  min-width: 120px;
  display: none;
}

[dir='rtl'] .language-options {
  right: auto;
  left: 0;
}

.language-options.show {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

[dir='rtl'] .language-option {
  text-align: right;
}

[dir='rtl'] .language-option .mr-2 {
  margin-right: 0;
  margin-left: 0.5rem;
}

.language-option:hover {
  background-color: #f3f4f6;
}
