html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #000376;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /* Remove margin-bottom to avoid conflicts with custom design */
  margin-bottom: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* RTL Navigation Support */
[dir="rtl"] .navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
}

[dir="rtl"] .navbar-nav.me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

[dir="rtl"] .ms-auto-rtl {
  margin-left: auto !important;
  margin-right: 0 !important;
}

[dir="ltr"] .ms-auto-rtl {
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* Language switcher positioning */
[dir="rtl"] .language-switcher {
  left: 20px;
  right: auto;
}

[dir="ltr"] .language-switcher {
  right: 20px;
  left: auto;
}

/* Floating action button positioning */
[dir="rtl"] .floating-action {
  left: 20px;
  right: auto;
}

[dir="ltr"] .floating-action {
  right: 20px;
  left: auto;
}

/* ===== NEW DESIGN: Deep Navy Blue Theme ===== */
/* Main content wrapper for sections with white/light backgrounds */
.content-section {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 3, 118, 0.1);
  margin: 20px 0;
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6 {
  color: #000376;
}

.content-section p,
.content-section li {
  color: #2c3e50;
}

/* Glass morphism effect for cards on dark background */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
}

.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.glass-card h5,
.glass-card h6 {
  color: #ffffff;
}

.glass-card p {
  color: rgba(255, 255, 255, 0.85);
}

/* Gold accent text */
.text-gold {
  color: #ffd700 !important;
}

/* White text utility */
.text-on-dark {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Primary navy text */
.text-navy {
  color: #000376 !important;
}