/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

/* BASE STYLES */
body {
  background-color: #e8f0f7;
  font-family: "Inter", sans-serif;
}

/* NORMAL STYLES */
.header {
  width: 100%;
  position: relative;
  z-index: 10;
}

.bottom-bar {
  background-color: #de1819;
  height: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.bottom-bar__content {
  max-width: 1500px;
  margin: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 10px 40px;
  flex-wrap: nowrap; /* Prevent wrapping for large screens */
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  width: 250px;
  height: auto;
}

/* NAVIGATION */
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* gap: 10px; */
  width: 100%; /* Ensure nav takes up the full available width */
}

.nav__list {
  display: flex;
  justify-content: space-between; /* Distribute items evenly */
  width: 100%; /* Stretch the nav items across the available space */
  gap: 6px; /* Space between nav items */
}

.nav__item {
  position: relative;
  flex-grow: 1; /* Allow items to grow and fill the available space */
  margin-left: 5px;
}
.blinking {
  padding: 10px;
  background-color: aqua;
  animation: blink-bg 3s linear infinite;
  color: #000;
}

@keyframes blink-bg {
  0% {
    background-color: aqua;
    color: #000;
  }
  25% {
    background-color: #ffeb3b;
    color: #de1819;
  }
  50% {
    background-color: #de1819;
    color: #fff;
  }
  75% {
    background-color: #ffeb3b;
    color: #de1819;
  }
  100% {
    background-color: aqua;
    color: #000;
  }
}

.nav__link {
  color: rgba(255, 255, 255);
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  /* padding: 5px 10px; */
  margin-left: 10px;
  border-radius: 5px;
  text-align: center; /* Center text inside the link */
}

.nav__link:hover {
  background-color: rgba(173, 22, 22, 0.679);
}

/* DROPDOWN MENU */
.dropdown__list {
  display: none; /* Initially hidden */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(26, 19, 19, 0.93);
  border-radius: 5px;
  padding: 10px 0;
  height: auto;
  width: 250px;
  text-wrap: wrap;
  opacity: 0; /* Initially hidden with opacity */
  visibility: hidden; /* Make sure it doesn't take up space */
  transition: opacity 0.3s ease, visibility 0s 0.3s; /* Smooth transition */
}

.dropdown:hover .dropdown__list,
.dropdown.active .dropdown__list {
  /* Use active class for click event */
  display: block;
  opacity: 1; /* Make it visible */
  visibility: visible; /* Ensure it's fully visible */
  transition: opacity 0.3s ease, visibility 0s 0s; /* Instant visibility when open */
}

.dropdown__link {
  padding: 0 10px;
  color: white;
  font-size: 17px;
}

.dropdown__link:hover {
  background-color: rgba(173, 22, 22, 0.5);
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-top: 10px;
}

.bar {
  height: 3px;
  width: 30px;
  background-color: #fff;
  margin: 4px 0;
}

.nav--open {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #de1819;
  padding: 10px;
  border-radius: 5px;
  margin-left: 10px;
}

.hamburger--open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger--open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger--open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MEDIA QUERIES */
@media (max-width: 1250px) {
  .bottom-bar {
    margin-bottom: 48px;
  }
  .bottom-bar__content {
    padding: 10px 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }
  .logo {
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
    display: flex;
  }
  .logo__img {
    width: 160px;
    min-width: 100px;
    margin-bottom: 0;
  }
  .nav__list {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-top: 0;
  }
  .nav__item {
    min-width: 100px;
    margin-left: 0;
    margin-right: 6px;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
  }
  .nav__link {
    font-size: 13px;
    padding: 6px 4px;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    overflow-wrap: break-word;
  }
}

@media (max-width: 768px) {
  .bottom-bar__content {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .nav.nav--open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    gap: 10px;
  }

  .nav__link {
    font-size: 14px;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .bottom-bar__content {
    flex-direction: column;
  }

  .logo__img {
    height: 40px; /* Reduce image height for smaller screens */
  }

  .hamburger {
    display: flex;
    margin-top: 15px;
  }

  .nav__link {
    font-size: 12px;
  }
}
