.hero,
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Changed from fixed height to viewport height */
  max-height: 810px; /* Maximum height for very large screens */
  min-height: 400px; /* Minimum height for mobile devices */
  overflow: hidden;
  margin-top: 25px;
  padding: 0 10px; /* Fixed typo (comma was used instead of space) */
}

.hero img,
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide {
  display: none;
}

.fade {
  animation: fadeEffect 1s;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot:hover,
.dot.active {
  background: #717171;
}

.hero-headline {
  position: absolute;
  top: 30%; /* Adjusted from 0 to prevent overlap */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  color: white;
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Responsive font size */
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 10; /* Ensure proper stacking */
}

.hero-subtext {
  position: absolute;
  top: calc(30% + 4em); /* Position below headline with dynamic spacing */
  left: 50%;
  transform: translate(-50%, 0);
  width: 90%;
  max-width: 800px;
  text-align: center;
  color: white;
  font-size: clamp(1rem, 3vw, 1.5rem); /* Responsive font size */
  font-weight: normal;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 10;
  margin-top: 1em; /* Additional spacing */
}

/* For very small screens where text might still overlap */
@media (max-width: 480px) {
  .hero-headline {
    top: 25%;
  }
  .hero-subtext {
    top: calc(25% + 3.5em);
    width: 95%;
  }
}

.hero-headline span,
.hero-subtext span {
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
}

.section {
  padding: clamp(30px, 5vw, 60px) 20px; /* Responsive padding */
  text-align: center;
  background: var(--bg-light);
}

.section.home-about {
  background: var(--bg-alt);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 10px;
}

h1, h2, h3 {
  color: var(--text-dark);
}

h1 { font-size: clamp(24px, 5vw, 32px); } /* Responsive font sizes */
h2 { font-size: clamp(20px, 4vw, 28px); }
h3 { font-size: clamp(18px, 3vw, 22px); color: #444; margin-top: 30px; }

.intro {
  font-size: clamp(16px, 3vw, 20px); /* Responsive font size */
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 20px;
}

.content {
  font-size: clamp(16px, 2.5vw, 18px); /* Responsive font size */
  color: var(--text-medium);
  line-height: 1.6;
  margin-top: 20px;
}

.closing-text {
  font-size: clamp(16px, 2.5vw, 18px); /* Responsive font size */
  margin-top: 30px;
  font-weight: bold;
  color: var(--text-dark);
}

/* Media Queries for additional adjustments */
@media (max-width: 768px) {
  .hero,
  .slideshow-container {
    margin-top: 15px;
    min-height: 350px;
  }
  
  .hero-subtext {
    top: 65%; /* Adjust position for smaller screens */
    width: 95%;
  }
  
  .section {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  .hero,
  .slideshow-container {
    min-height: 300px;
    margin-top: 10px;
  }
  
  .hero-subtext {
    top: 70%; /* Further adjustment for very small screens */
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .hero-headline span,
  .hero-subtext span {
    padding: 3px 8px;
  }
}


