/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
  
nav {
  background-color: #282727;
  padding: 0 0;
  position: relative; /* Create a separate stacking context for the header */
  z-index: 10; /* Ensure it stays above the slideshow */
}

/* General navigation styles */
.nav-menu {
  display: flex; /* Keeps the nav items in a row */
  list-style: none;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative; /* Create a positioning context for dropdown */
  margin: 0 0; /* Space between nav items */
}

.nav-item a {
  text-decoration: none;
  font-weight: bold;
  color: #ffffff; /* Or another visible color */
  padding: 10px;
  display: block; /* Ensure the link fills the clickable area */
  transition: background-color 0.3s;
}

.nav-item span {
  text-decoration: none;
  font-weight: bold;
  color: #ffffff; /* Or another visible color */
  padding: 10px;
  display: block; /* Ensure the link fills the clickable area */
  transition: background-color 0.3s;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.nav-item a:hover {
  background-color: #fd754b;
}

.nav-item span:hover {
  background-color: #fd754b;
}


/* Active page styling */
.nav-item.active {
  background-color: #fd754b; /* Same as hover color for consistency */
}

/*.dropdown-head.active{
  background-color: #fd754b; /* Same as hover color for consistency */
/*}*/

/* Dropdown menu styles */
.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute; /* Absolutely positioned relative to the parent */
  left: 0; /* Align to the left of the parent element */
  top: 100%; /* Position directly below the parent */
  background-color: #fff;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 15; /* Ensure it stays above the slideshow and other elements */
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  font-weight:bold;
  font-size:12px;
  padding: 10px;
  color: #333;
  flex-wrap: wrap;
}

.dropdown-menu a:hover {
  background-color: #eee;
}

/* Show dropdown menu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Menu toggle button styles */
.menu-toggle {
  display: none; /* Hide by default */
  border: none;
  background-color: #282727;
  font-size: 24px;
  color: #ffffff;
  padding: 10px;
  cursor: pointer;
  float: right;
}

.hero {
  color: #000000;
  text-align: center;
  padding: 2rem 1rem;
}

.butoane{
  display: flex;
  flex-direction: column;
}

.butoane .btn {
  display: inline-block;
  background: #ff5722;
  color: #fff;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
  border-radius: 5px;
  align-self:center
}

.butoane .btn:hover{
  background: #fd754b
}

.about {
  padding: 2rem;
  text-align: center;
  margin-bottom:2rem;
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  max-height: 600px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
  position:relative;
  width: 100%;
  padding-bottom: 40%;
}

.mySlides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the container without distortion */
}

/* Text Overlay */
.text-overlay {
  position: absolute;
  top: 70%; /* Set top to 50% for vertical centering */
  left: 50%;
  transform: translate(-50%, -50%); /* Adjust to truly center it vertically and horizontally */
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem; /* Increased padding for balance */
  padding-top: 0.25rem;
  text-align: center;
  border-radius: 8px;
  max-width: 70%; /* Make the width a bit smaller */
  height: auto;
  min-height: 120px; /* Minimum height to maintain consistency */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  /* Flexbox for the text container */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ensure the overlay is responsive */
}

/* Heading and text styling */
.text-overlay h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.text-overlay p {
  font-size: 1rem;
  margin: 0;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Contact page */
/* Contact Information */
.contact-info {
  text-align: center;
  padding: 2rem;
  background-color: #f4f4f4;
}

.contact-info h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-info p {
  font-size: 1.1rem;
}

.contact-info .info-box {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.8;
}
.map-container {
  position: relative;
  width: 60%; /* Takes 75% of the container width */
  padding-bottom: 40%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 0 auto; /* Centers the map horizontally */
  display: block; /* Ensures margin:auto works properly */
}
  
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
  
  /* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
  
  .contact-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }
  
  textarea {
    resize: none;
  }
  
  .submit-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #333;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .submit-button:hover {
    background-color: #555;
  }
  
  /* Footer */
  footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
  }

/* Mobile styles */
@media screen and (max-width: 768px) {
  #hideOverflow{
    overflow:hidden
  }

  nav {
    background: #282727; /* Ensure the header stays black */
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000; /* Ensure header is above other content */
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    width:50%;
    right: 0;
    z-index: 20;
    background-color:#282727;
  }

  .menu-toggle {
    display: block; /* Show the button only on mobile */
  }

  .nav-item {
    width: 100%;
    text-align:right;
  }

  .nav-item a:hover {
    background-color: transparent;
  }

  .nav-item span:hover {
    background-color: transparent;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: #bab4b4;
  }

  .dropdown-menu a:hover {
    background-color: transparent;
  }

  .map-container {
    width: 100%; /* Make the container take full width */
    padding-bottom: 100%;
  }

  .mySlides{
    padding-bottom:60%;
  }

  .text-overlay {
    padding: 0.75rem 1.5rem; /* Adjust padding for mobile */
    max-width: 90%; /* Keep it responsive */
    height: auto;
    min-height: 100px;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .text-overlay h2 {
    font-size: 1.5rem; /* Adjust font size for mobile */
  }

  .text-overlay p {
    font-size: 1rem;
  }
}

