/* Base Styles */
html, body {
  overflow-x: hidden;
}

.banner {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
  box-shadow:   0px 8px 8px rgba(0, 0, 0.309, 0.309);
  border-radius: 3px;

}

.slider {
  height: 80vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  animation: slide 10s infinite;
}

#slideImg {
  height: 100%;
  width: 100%;
  object-fit: cover;
  animation: zoom 3s linear infinite;
}

@keyframes zoom {
  0% {
    transform: scale(1.2);
  }
  15% {
    transform: scale(1);
  }
  85% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

.overlay {
  height: 100%;
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
  position: absolute;
  top: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.565), rgba(0, 0, 0, 0.565));
}
.welcome-section {
  background: #C9AF93;
  padding: 60px 20px;
  text-align: center;
  color: #333;
}
.welcome-content {
  width: 60%;
  margin: 0 auto;
  text-align: center;
  color: #4D231C;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* Center the content vertically */
}

.welcome-content h1 {
  font-size: 60px;
}

.welcome-content h3 {
  width: 80%;
  margin: 20px auto 100px;
  font-weight: 100;
  line-height: 25px;
}

.welcome-content button {
  
    width: 200px;
    padding: 15px 0;
    text-align: center;
    margin: 20px auto 0; /* Place the button directly below the text and center it */
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #4D231C;
    background: #C9AF93;
    color: #4D231C;
    cursor: pointer;
    transition: background 0.5s;
    position: relative; /* Keep the button within normal document flow */
  
}

 .welcome-content button:hover {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 1024px) and (min-width: 768px) {
  .banner {
    height: 70vh; /* Adjust banner height for tablets */
  }

  .welcome-content {
    width: 70%; /* Adjust content width for tablets */
  }

  .welcome-content h1 {
    font-size: 48px; /* Adjust heading font size for tablets */
  }

  .welcome-content h3 {
    font-size: 18px; /* Adjust subheading font size for tablets */
    width: 85%; /* Make the text width wider */
    margin: 15px auto 90px; /* Adjust margins */
  }

  .learn-more {
    width: 180px; /* Adjust button width for tablets */
    padding: 14px 0; /* Adjust button padding for tablets */
  }
}
/* For tablets and larger smartphones */
@media (max-width: 768px) {
  .banner {
    height: 60vh; /* Adjust banner height for smaller screens */
  }

  .welcome-content {
    width: 80%; /* Adjust content width for smaller screens */
  }

  .welcome-content h1 {
    font-size: 40px; /* Adjust heading font size for tablets */
  }

  .welcome-content h3 {
    font-size: 16px; /* Adjust subheading font size for tablets */
    width: 90%; /* Make the text width wider */
    margin: 15px auto 80px; /* Adjust margins */
  }

  button {
    width: 180px; /* Adjust button width for smaller screens */
    padding: 12px 0;
  }
}

/* For mobile phones */
@media (max-width: 480px) {
  .banner {
    height: 50vh; /* Adjust banner height for mobile screens */
  }

  .welcome-content {
    width: 90%; /* Adjust content width for mobile screens */
    font-size: 0.9rem; /* Reduce font size for better readability */
  }

  .welcome-content h1 {
    font-size: 28px; /* Adjust heading font size for mobile screens */
    line-height: 1.2; /* Adjust line height */
  }

  .welcome-content h3 {
    font-size: 14px; /* Adjust subheading font size for mobile screens */
    width: 100%; /* Make the text width wider */
    margin: 10px auto 10px; /* Adjust margins */
  }

  button {
    width: 150px; /* Adjust button width for mobile screens */
    padding: 10px 0;
  }
}
@media (max-width: 400px) {
  .learn-more {
    margin: 20px auto 40px; /* Add more bottom margin */
  }

  .welcome-content h3 {
    margin: 0px auto 50px; /* Adjust bottom margin to avoid overlap */
  }

  .banner {
    height: 50vh; /* Adjust banner height for mobile screens */
  }
}

@media (max-width: 400px) {
  .banner {
    height: 58vh; /* Increase banner height slightly for more space */
  }

  .welcome-content {
    width: 90%; /* Ensure content is full width for smaller screens */
    font-size: 0.9rem; /* Reduce font size for better readability */
    justify-content: flex-start; /* Align content towards the top */
    padding-top: 10px; /* Add padding to bring content down */
  }

  .welcome-content h1 {
    font-size: 28px; /* Reduce the heading font size */
    line-height: 1.2; /* Adjust line height */
    margin-bottom: 5px; /* Reduce bottom margin */
  }

  .welcome-content h3 {
    font-size: 14px; /* Reduce subheading font size */
    width: 100%; /* Full width for subheading */
    margin: 0px auto 0px; /* Reduce bottom margin */
  }

   .learn-more {
    width: 160px; /* Adjust button width for small screens */
    padding: 10px 0; /* Reduce padding */
    position: relative; /* Ensure it stays within the document flow */
  } 
}

@media (max-width: 375px){
  .welcome-content h1 {
    font-size: 23.5px; /* Reduce the heading font size */
    line-height: 1; /* Adjust line height */
    margin-bottom: 5px; /* Reduce bottom margin */
  }
  .welcome-content h3 {
    font-size: 11px; /* Reduce subheading font size */
    width: 100%; /* Full width for subheading */
    margin: 0px auto -5px; /* Reduce bottom margin */
  }
  .learn-more {
    width: 160px; /* Adjust button width for small screens */
    padding: 10px 0; /* Reduce padding */
    position: relative; /* Ensure it stays within the document flow */
  } 

}
