:root {
  --soil-brown: #311f1a;
  --clay-orange: #d2691e;
  --beige: #f3efe0;
  --accent-yellow: #db981c;
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --brown: #b97926;
  --light-brown: #f1efbd;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-brown);
  color: #2e2e2e;
  box-sizing: border-box;
}

.hero-static {
  position: relative;
  height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-heading {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: var(--overlay-dark);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.hero-heading h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

.text-image-split {
  background-color: var(--light-brown);
  padding: 4rem 2rem;
}

.text-box {
  max-width: 1200px;
  margin: 0 auto;
  color: #2e2e2e;
}

.text-box h2 {
  font-size: 2rem;
  color: var(--soil-brown);
  margin-bottom: 1rem;
}

.text-box p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.list-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.list-columns ul {
  flex: 1;
  list-style: disc;
  padding-left: 1.5rem;
}

.carousel-wrapper {
  width: 100%;
  max-width: 700px;
  height: 400px;
  margin: 3rem auto;
  overflow: hidden;
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image Track */
.carousel-track {
  display: flex;
  width: 100%; /* for 3 slides */
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
 flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Static Text Overlay */
.carousel-text-overlay {
  position: absolute;
  top: 280px;
  left: 33%;
  transform: translateX(-50%);
  text-align: left;
  color: white;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 10px;
}

.carousel-text-overlay h2 {
  font-size: 1.2rem;
  margin: 0;
}

.carousel-text-overlay p {
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

.critical-communication {
  background-color: var(--beige);
  padding: 4rem 2rem;
  text-align: center;
}

.critical-communication h2 {
  font-size: 2rem;
  color: var(--soil-brown);
  margin-bottom: 3rem;
}

.comm-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.comm-box {
  background-color: white;
  border: 3px solid var(--accent-yellow);
  border-radius: 12px;
  width: 300px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.comm-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #f7f7f7;
}

.comm-box p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.comm-box strong {
  color: var(--clay-orange);
}

.animate {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.animate.show {
  opacity: 1;
  transform: translateX(0px);
  background-color: #f1efbd;
}

@media (max-width: 768px) {
  .hero-heading h1 {
    font-size: 2.4rem;
  }

  .list-columns {
    flex-direction: column;
  }

  .carousel-track img {
    height: 250px;
  }

  .comm-grid {
    flex-direction: column;
    align-items: center;
  }

  .comm-box {
    width: 90%;
  }
}
.comm-box {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.comm-box.visible {
  opacity: 1;
  transform: translateY(0);
}