* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #2a2a2a;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  height: 25rem;
  /* margin: 1.5rem 0; */
}

.hero .text-content h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: #2a2a2a;
}

.hero .text-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #555;
  max-width: 600px;
  /* margin: auto; */
}

.hero .image-content img {
  max-width: 10rem;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slides{
  display: flex;
  
}

/* ✅ Mobile Styles */

.heads {
  background-color: #1e4a38;
  color: #f9f9f9;
  padding: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* equal space between cards */
  justify-content: center;
  padding: 2rem;
}

.card {
  background-color: #38ecb3;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 0.25rem;
  flex: 1 1 calc(25% - 20px); /* 4 cards per row with gap */
  box-sizing: border-box;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  border-radius: 0.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.desc {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  padding: 2rem 1rem;
}

.sec-3 {
  display: flex;
  margin-bottom: 2rem;
}
.vm-cards {
  width: 50%;
}

.m-desc {
  padding-top: 2rem;
}
.copyright {
  background-color: #1b4332;
  color: #f9f9f9;
  padding: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2rem 4rem;
  }

  .desc {
    padding: 2rem 4rem;
  }

  .hero .text-content {
    flex: 1;
  }

  .hero .image-content {
    flex: 1;
    padding-left: 2rem;
    width: 50vw;
    max-width: none;
  }
  .cards{
    gap: 4rem;
  }
   .slider{
    /* width: 40vw; */
    height: auto;
  }
  .slides{
    width: 50vw;
   height: auto;
   object-fit: cover;
  }  
  .slide{
    /* width: 40vw; */
   height: 20rem;
    object-fit: cover;
    min-width: 50vw;
  } 

}

@media (max-width: 992px) {
  .card {
    flex: 1 1 calc(50% - 20px);
  }
  .logo h2{
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .card {
    flex: 1 1 100%;
  }
    .logo h2{
    font-size: 1.2rem;
  }
}
@media (max-width: 768px){
    .slider{
    width: 55vw;
  }
  .slides{
    width: 55vw;
  }  
  .slide{
    min-width: 55vw;
  } 
  .text-content{
    margin-top: 2rem;
  }
}
@media (max-width: 564px){
      .slider{
    width: 90vw;
  }
  .slides{
    width: 90vw;
  }  
  .slide{
    min-width: 90vw;
  } 
}

.image-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: auto;
}

.slider {
  position: relative;
  /* width: 90vw; */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* width: 90vw; */
  /* height: 20rem; */
}

.slide {
  /* min-width: 90vw; */
  object-fit: cover;
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  pointer-events: none;
}

.prev,
.next {
  pointer-events: all;
  font-size: 1.5rem;
  color: white;
  background-color: #1b4332; /* dark green */
  border-radius: 50%;
  padding: 0 0.82rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.prev:hover,
.next:hover {
  background-color: #1f7c44; /* slightly darker green on hover */
}
