/* Custom styles for your elements */
:root {
  --bs-primary: rgb(5, 5, 136);
  --bs-primary-semi-transparent: rgba(5, 5, 136, 0.733);
  --bs-secondary: #ffb901;
  --bs-white: #fff;

  --light-blue: rgba(5, 5, 136, 0.1);
  --light-gray: #f8f9fa;
  --dark-gray: #333333;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--light-gray);
}

.card {
  border: 2px solid var(--bs-primary);
}

.lang-button.active {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

/* Map hover effect */
.map-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.map-link:hover {
  transform: scale(1.02);
}

.map-link .card {
  transition: box-shadow 0.3s ease-in-out;
}

.map-link:hover .card {
  box-shadow: 0 0 15px rgba(255, 185, 1, 0.5) !important;
}

.map-link iframe {
  transition: filter 0.3s ease-in-out;
}

.map-link:hover iframe {
  filter: brightness(0.8);
}

.container {
  padding-top: 4vw;
  padding-bottom: 1.25rem !important;
}

/* Fade-in */
/* Add this to your CSS file (e.g., styles.css or animations.css) */

/* Fade-in animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Base fade-in class */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/* Direction variants */
.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 1s ease forwards;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.fade-in-scale {
  opacity: 0;
  animation: fadeInScale 0.8s ease forwards;
}

/* Delay classes */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-800 {
  animation-delay: 0.8s;
}

.delay-900 {
  animation-delay: 0.9s;
}

.delay-1000 {
  animation-delay: 1s;
}

/* Duration classes */
.duration-300 {
  animation-duration: 0.3s;
}

.duration-500 {
  animation-duration: 0.5s;
}

.duration-700 {
  animation-duration: 0.7s;
}

.duration-1000 {
  animation-duration: 1s;
}

.duration-1500 {
  animation-duration: 1.5s;
}

/* Stagger animation for children */
.stagger-children>* {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.stagger-children>*:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 0.6s;
}

.stagger-children>*:nth-child(7) {
  animation-delay: 0.7s;
}

.stagger-children>*:nth-child(8) {
  animation-delay: 0.8s;
}

.stagger-children>*:nth-child(9) {
  animation-delay: 0.9s;
}

.stagger-children>*:nth-child(10) {
  animation-delay: 1s;
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
  }

  .fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .fade-in-up,
  .fade-in-scale {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 1.8rem !important;
  }
}

/* Initial blur for lazy images */
img.lazy-blur {
  filter: blur(12px);
  transform: scale(1.05);
  /* little zoom */
  transition: filter 0.6s ease, transform 0.6s ease;
}

/* When loaded → clear blur */
img.lazy-blur.loaded {
  filter: blur(0);
  transform: scale(1);
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body {
  direction: ltr;
  text-align: left;
}

body.rtl .navbar-container {
  flex-direction: row-reverse !important;
}

body.rtl .navbar-logo {
  flex-direction: row-reverse !important;
}

html>div[style] {
  display: none !important;
}