:root {
  --eltrekka-gr-primary-color: #FFFFFF;
  --eltrekka-gr-secondary-color: #CD0000;
  --eltrekka-gr-gray-color: #1A191D;
  --eltrekka-gr-dark-color: #000000;
  --eltrekka-gr-link-color: #CD0000;
}

.bg-eltrekka {
  background-color: var(--eltrekka-gr-primary-color);
}

.bg-eltrekka-secondary {
  background-color: var(--eltrekka-gr-secondary-color);
}

.bg-eltrekka-img {
  background-image: url("/static/img/eltrekka-bg4.542da39ad002.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--eltrekka-gr-light-color);
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--eltrekka-gr-gray-color);
}
body h1 {
  font-size: 36px;
  font-weight: bold;
}
body h2 {
  font-size: 28px;
  font-weight: bold;
}
body h3 {
  font-size: 24px;
  font-weight: bold;
}
body h4 {
  font-size: 20px;
  font-weight: bold;
}
body h5 {
  font-size: 18px;
  font-weight: bold;
}
body ul {
  list-style: circle;
  margin: 0 24px;
  padding: 8px;
  color: var(--eltrekka-gr-primary-color);
}
body ul li {
  margin: 8px 0;
}
body ol {
  list-style: decimal;
  margin: 0 24px;
  padding: 8px;
  color: var(--eltrekka-gr-primary-color);
}

body ol li {
  margin: 8px 0;
}

footer p {
  color: white;
}

hr {
  padding: 12px 0;
}

/* CSS for the top navigation */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

/* Unordered list styling */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

/* List item styling */
nav ul li {
  margin: 0 4px;
}

/* Link styling */
nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* Link hover effect */
nav ul li a:hover {
  color: var(--eltrekka-gr-secondary-color);
  transition: color 0.3s;
}

nav.md\:flex {
  margin-left: 48px;
}

#mobile-menu-button {
  color: var(--eltrekka-gr-secondary-color);
}
button.mobile-btn-switcher {
  color: var(--eltrekka-gr-primary-color)
}

/* Dropdown menu */
#mobile-menu .dropdown-menu {
  display: block;
}

.dropdown:hover > .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  list-style-type: none;
  color: var(--eltrekka-gr-primary-color);
  z-index: 1;
  background: var(--eltrekka-gr-dark-color);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.5em;
  vertical-align: middle;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease-in-out;
  margin-top: -4px;
}
.dropdown-menu li {
  padding: 4px 0;
  border-radius: 5px;
  list-style: none;
}

.dropdown-menu li a {
  position: relative;
  color: var(--eltrekka-gr-primary-color);
  font-weight: 500;
  display: block;
  padding: 5px 10px;
  transition: color 0.3s ease;
  width: max-content;
}

.dropdown-menu li a:hover {
  color: var(--eltrekka-gr-link-color);
  background: none;
}

.dropdown-menu li a:hover::before {
  color: var(--eltrekka-gr-primary-color);
}

.dropdown {
  position: relative;
  padding-bottom: 10px;
}

/* Custom styles for submenu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: black;
  min-width: 200px;
  z-index: 1003;
  padding: 0.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Mobile submenu styling */
.lg\:hidden .submenu {
  position: static;
  width: 100%;
  margin-left: 1rem;
  box-shadow: none;
  border-radius: 0;
}

.has-submenu {
  position: relative;
}

/* Dropdown for Mobile */

#mobile-menu .dropdown {
  text-align: center;
  padding-bottom: 5px;
}

#mobile-menu .dropdown-menu {
  display: none;
  position: static; /* Remove absolute positioning */
  width: 100%; /* Make it full-width */
  padding: 0 10px; /* Adjust padding */
  background: none;
  border-radius: 5px;
  margin-top: 10px;
  list-style: none;
}

#mobile-menu .dropdown-menu li a {
  color: white;
  display: block;
  padding: 0 10px;
}

#mobile-menu .dropdown-menu li {
  padding: 0;
}

#mobile-menu .dropdown-menu li a:hover {
  color: var(--eltrekka-gr-secondary-color);
  background: none;
}

#mobile-menu .dropdown-menu li a:hover::before {
  color: var(--eltrekka-gr-secondary-color);
}

#mobile-menu .dropdown a.dropdown-toggle .caret {
  display: none;
}

.dropdown-menu-block-mobile {
  display: flex !important;
}

/* CSS for the footer content */
footer {
  position: relative;
  bottom: 0;
  width: 100%;
  color: white;
  box-sizing: border-box;
}

footer.bg-eltrekka {
  background-image: url("/static/img/footer_overlay-1.2363e921bfec.png");
  background-color: var(--eltrekka-gr-gray-color);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}
h2.footer-title1 {
  font-size: 24px;
  margin-bottom: 16px;
  color: white;
}

.footer-menu a {
  color: var(--eltrekka-gr-primary-color);
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.footer-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--eltrekka-gr-primary-color);
  transition: width 0.3s ease;
}

.footer-menu a:hover::after {
  width: 100%;
}

ul.footer_contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu ul {
  padding: 0;
  margin: 2px;
  list-style: none;
}

.menu ul li {
  margin: 8px 0;
  position: relative;
  padding-left: 16px;
}

.menu ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--eltrekka-gr-secondary-color);
  display: inline-block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  header nav ul {
    flex-direction: column;
    align-items: center;
  }

  header nav ul li {
    margin: 6px 0!important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-menu {
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 38px;
  }

  .footer-menu a {
    margin: 10px 0;
    color: white;
  }

  footer nav ul {
    flex-direction: column;
    align-items: center;
  }

  footer nav ul li {
    margin: 6px 0!important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1920px) {
  .footer-menu-container {
    position: absolute;
    bottom: 2px;
    text-align: center;
    width: 100%;
  }
  footer nav ul li {
    background-color: #deedff;
  }
}

.logo-white {
    filter: brightness(0) invert(1);
}