/* --- NAVBAR --- */
.main-nav {
  position: relative;
  background-color: #0f172a;
  color: #9d9d9d;
  height: 70px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  z-index: 100;
}

/* Center logo/title (absolute for true centering) */
.nav-right {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  /* gap: 0.6rem; */
}

.title {
  font-size: 18px;
  font-weight: 600;
}

/* Language switch */
#lang-switch {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

/* Menu */
.nav-menu {
  position: absolute;
  left: 70px;
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #f3f3f3;
  font-size: 15px;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  position: absolute;
  left: 24px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #c7c7c7;
}

/* Responsive */
@media (max-width: 676px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--clr-gray);
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    display: none;
    border-bottom: 0.5px solid;
    border-bottom-color: #87c2ff;
  }

  .nav-menu a {
    color: #0c2e8c;
  }
  .nav-menu.open {
    display: flex;
  }
}

.title {
  font-weight: 700;
  /* font-size: 1.2rem; */
  font-size: clamp(0.875rem, 0.774rem + 0.4615vw, 1.0625rem);
}

.subtitle {
  font-size: 0.95rem;
}

#logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* --- HERO --- */
.hero-banner {
  position: relative;
  width: 100%;
  /* height: 320px; */
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--clr-white);
  font-size: clamp(0.875rem, 0.5048rem + 1.6923vw, 1.5625rem);
  /* font-weight: 700; */
  opacity: 0;
  /* transition: opacity 1s ease; */
  white-space: nowrap;
}

.hero-text.active {
  opacity: 1;
}
