/********************************************************************navigation big start*/
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(47, 141, 119, 0.3); /* Semi-transparent background */
  padding: 10px 20px;
  position: fixed; /* Fixed at the top */
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease; /* Smooth transition */
}

.nav:hover {
  background-color: rgba(47, 141, 119, 1); /* Fully opaque background on hover */
}

.logo_div {
  display: flex;
  align-items: center;
}

.logo {
  height: 100px; /* Adjust the height as needed */
}

.menu_div {
  display: flex;
  align-items: center;
  z-index: 1000;
}

.menu_div ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu_div ul li {
  margin: 0 15px;
}

.menu_div ul li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border: black ,3px;
  /* Handle overflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Adds "..." for overflow text */
}

.menu_div ul li a:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Light grey background on hover */
}
/*navigation big  bar end*/

/********************************************************************************navigation small bar start*/
/* Base styling for the nav bar */
.nav_small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(47, 141, 119, 0.3); /* Semi-transparent background */
  padding: 10px 20px;
  position: fixed; /* Fixed at the top */
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 90px;
  max-width: 1024px;
}
.nav_small:hover {
  background-color: rgba(47, 141, 119, 1); /* Fully opaque background on hover */
}

.logo_div_small {
  display: flex;
  align-items: center;
}

/* Menu Button Styling */
.menu_btn_small {
  position: relative;
  cursor: pointer;
  color: white;
  font-weight: bold;
  padding: 10px;
  border: 1px solid white;
  border-radius: 5px;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1000;
  background-color: rgba(47, 141, 119, 0.9);
  margin-right: 40px;
}

/* Dropdown Menu Styling */
.dropdown_menu_small {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: rgba(47, 141, 119, 0.9);
  padding: 10px 0;
  border-radius: 5px;
  min-width: 150px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  pointer-events: none;
  cursor: pointer;
}

.dropdown_menu_small li {
  list-style: none;
  margin: 0;
}

.dropdown_menu_small li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dropdown_menu_small li a:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Hover/Focus States */
.menu_btn_small:hover .dropdown_menu_small,
.menu_btn_small:active .dropdown_menu_small {
  display: block !important;
  pointer-events: auto !important;
}

/* Media query: Only display this nav for screens below 1024px. */
@media (min-width: 800px) {
  .nav_small {
    display: none;
  }
}

/* Media query updates */
@media screen and (max-width: 800px) {
  .nav_small {
    overflow: visible;
    display: flex;
  }
  
  .dropdown_menu_small {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(47, 141, 119, 0.9);
    padding: 10px 0;
    border-radius: 5px;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

/*nav small end*/

/* Reset defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make sure HTML and body fill the viewport */
html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}
 
/* Main section occupies the full viewport */
.main_section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000; /* fallback background */
}

/* Navigation (customize further as needed) */
.nav {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 20;
  ;
  /* add more styling for nav background and padding if needed */
}

/* Carousel container that fills the screen */
.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*overflow: hidden;*/
}
.carousel-slide img{
  object-fit: cover;
}

/* Carousel slide: contains all images arranged in a row */
.carousel-slide {
  display: flex;
  width: 400%; /* 4 images (adjust if the number changes) */
  height: 100%;
  transition: transform 1.5s ease-in-out;
}


/* Ensure each image fills the viewport */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prev/Next buttons style */
#prevBtn, #nextBtn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 30;
  background-color: rgba(42, 139, 122, 0.2);
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
}

#prevBtn {
  display: block;
  left: 2%;
  background-color: rgba(255, 255, 255, 0.2);
}

#nextBtn {
  right: 2%;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Add hover effect for Prev/Next buttons */
#prevBtn:hover, #nextBtn:hover {
  background-color: rgba(47, 141, 119 ); /* Change background on hover */
}

/* Text carousel container */
.text-carousel-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 40;
  width: 80%;
  margin-bottom: 200px;
  overflow: hidden;
}

/* Text carousel slide */
.text-carousel-slide {
  display: flex;
  width: 400%; /* 4 text boxes */
  transition: transform 1.5s ease-in-out;
}

/* Individual text div styling */
.text_div {
  width: 100%;
  background-color: #2a8b7a;
  padding: 20px;
  color: #fff;
  flex-shrink: 0;
}

/* Footer (optional additional styling) */
.footer {
  position: absolute;
  margin-top: 20px;
  bottom: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #2a8b7a;
  color: #fff;
}

@media screen and (max-width: 800px) {
  p {
    font-size: 12px;
  }
  h2 {
    font-size: 16px;
  }
  h3 {
    font-size: 12px;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }
  .nav_small {
    display: flex;
  }
  .text-carousel-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 40;
    width: 90%;
    margin-bottom: 200px;
    overflow: hidden;
  }
  

  .menu_div {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(47, 141, 119, 0.3);
    padding: 10px 20px;
    z-index: 10000;
  }

  .menu_div ul li {
    margin: 5px 0;
  }

  .menu_div ul li a {
    padding: 5px 0;
    display: block;
  }

  .menu_div ul li a:hover {
    background-color: transparent;
  }

  .menu_div ul li a.active {
    background-color: rgba(0, 0, 0, 0.1);
  }
  /***********/
  .carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*overflow: hidden;*/
  }
  
  /* Carousel slide: contains all images arranged in a row */
  .carousel-slide {
    display: flex;
    width: 400vh; /* 4 images (adjust if the number changes) */
    height: 100%;
    transition: transform 1.5s ease-in-out;
  }
  .carousel-slide img {
    width: 100vh;
    height: 100%;
    object-fit: cover;
  }
}

@media screen and (max-width: 426px) {
  p {
    font-size: 10px;
  }
  h2 {
    font-size: 12px;
  }
  h3 {
    font-size: 10px;
  }
  .prevBtn, .nextBtn {
    font-size: 08px;
    padding: 5px 10px;
  }
  .logo_div_small {
    height: 5px;
    width: auto;
  }

  .text-carousel-container {
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 40;
    width: 95%;
    margin-bottom: 200px;
    overflow: hidden;
  }

  .logo {
    height: 50px; /* Reduce the height of the logo */
    width: auto; /* Maintain aspect ratio */
  }

  .logo_div {
    margin-left: 5px; /* Adjust margin for better alignment */
  }
    
  .nav {
    padding: 10px;
    display: none;
  }

  .logo_div_small {
    height: 5px;
    width: auto;
  }

  .menu_div ul li {
    margin: 0 10px;
  }

  .menu_div ul li a {
    padding: 5px;
  }

  .menu_div ul li a.active {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*overflow: hidden;*/
  }
  
  /* Carousel slide: contains all images arranged in a row */
  .carousel-slide {
    display: flex;
    width: 400vh; /* 4 images (adjust if the number changes) */
    height: 100%;
    transition: transform 1.5s ease-in-out;
  }
  .carousel-slide img {
    width: 100vh;
    height: 100%;
    object-fit: cover;
  }
  .about_us p{
    font-size: 10px;
  }
}