/* Slideshow container */
.slideshow-container {
  position: relative;
  max-width: 100%;
  /* background:url('../src/sivajothi/3.png') no-repeat center center / cover; */
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border-radius: 8px;
  height: 800px;
  margin-top: 0%;
  width: 100%;
}

/* Slide content */
.slide {
  display: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Show the active slide */
.active {
  display: flex;
}

/* Text content on left */
.slide-text {
  flex: 1;
  padding-right: 40px;
  color: #333;
}

.slide-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.slide-text p {
  font-size: 16px;
  line-height: 1.4;
  color: #666;
}

/* Image on right */
.slide-image {
  flex: 1;
  text-align: center;
}

.slide-image img {
  max-width: 600px;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(12px 14px 0px rgba(0, 0, 0, 0.2));

}

/* Navigation arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  color: #8bc34a;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  border-radius: 50%;
  background: #e0e0e0;
  line-height: 30px;
  text-align: center;
  transition: background 0.3s ease;
}

.prev:hover, .next:hover {
  background: #c5e1a5;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Pagination dots */
.dots {
  text-align: center;
  padding-top: 15px;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: #c5e1a5;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: #8bc34a;
}
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1; 
}
.slide-text{
  z-index: 1;
}
.slide-image{
  z-index: 1;
}
.prev, .next {
  z-index: 1;
} 
.slide-text h2 {
  color: #2d2b9b; 
  margin-left: 15%;
  font-size: 44px;
  --neon: #2d2b9b;
  /* -webkit-text-stroke: 1px rgb(255, 255, 255); */
  font-weight: bolder;
  width: fit-content;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;  
  border-radius: 8px;
}
.slide-text p,.slide-text p li {
  color: #000;
  margin-left: 15%;
  font-size: 20px;
  line-height: 2;
  background-color:  rgba(255, 255, 255, 0.7);
  padding: 10px;
  border-radius: 8px;
}

/* Mobile view */
@media (max-width: 768px) {
    .slideshow-container {
        height: auto;
        flex-direction: column;
        margin-top: -13%;
        z-index: -10;
    }
    .slide {
        flex-direction: column;
        padding: 20px;
    }
    .slide-text {
        padding-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    .slide-text h2 {
        font-size: 28px;
        margin-left: 0;
    }
    .slide-text p {
        font-size: 16px;
        margin-left: 0;
        line-height: 1.5;
    }
    .slide-image {
        order: -1;
        margin-bottom: 20px;
    }
    .slide-image img {
        max-width: 100%;
        height: auto;
    }
    .prev, .next {
        top: 40%;
    }
    .slide-image img {
      max-width: 200px;
      max-height: 200px;
      object-fit: contain;

    }
}
@media (max-width: 1200px) {
    .slideshow-container {
        height: auto;
        flex-direction: column;
        margin-top: 0%;
        z-index: -10;
    }
    .slide {
        flex-direction: column;
        padding: 20px;
    }
    .slide-text {
        padding-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    .slide-text h2 {
        font-size: 28px;
        margin-left: 0;
    }
    .slide-text p {
        font-size: 16px;
        margin-left: 0;
        line-height: 1.5;
    }
    .slide-image {
        order: -1;
        margin-bottom: 20px;
    }
    .slide-image img {
        max-width: 100%;
        height: auto;
    }
    .prev, .next {
        top: 40%;
    }
    .slide-image img {
      max-width: 200px;
      max-height: 200px;
      object-fit: contain;

    }
}
