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

/* body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f4f4f9;
} */

/* Slider Outer Container */
.hsliderx-container {
  /* position: relative; */
  /* width: 90%;
  max-width: 800px;
  height: 400px; */

  width: 786px;
  height: 505px;

  /* width: auto;
  min-width: 375px;
  max-width: 950px;

  height: auto;
  min-height: 275px;
  max-height: 650px; */

  overflow: hidden;
  border-radius: 12px;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  /* border: 4px solid #d0f5f4; */
}

/* Wrapper holding slides */
.hsliderx-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slide */
.hslidex {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none; /* Prevents clicking hidden slides */
}

.hslidex.active {
  opacity: 1;
  pointer-events: auto; /* Enables clicking on the active slide */
}

/* Link and Image Styling */
.hslidex a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.hslidex img , .hslidex-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
}
/* the background and the foreground  */
.hslidex-bg {
  position: relative ;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* opacity: 0; */
  /* transition: opacity 0.6s ease-in-out; */
  /* pointer-events: none;  */
  /* Prevents clicking hidden slides */

  display: flex;
  justify-content: center; 
  /* (centers the image horizontally in the container) */
  align-items: center; 
  /* (centers the image vertically in the container) */
}

.hslidex-fg {
  position: relative ;
  top: -100%;
  top: -101%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  padding: 2px;
  /* background-color: rgb(99, 64, 133); */ 
  background-color: transparent;
  /* background-color: rgba(141, 67, 214, 0.842); */

  /* opacity: 0; */
  /* transition: opacity 0.6s ease-in-out; */
  /* pointer-events: none;  */
  /* Prevents clicking hidden slides */
}

.hslidex-fg img{
  /* position: relative ; */
  width: 100%;
  height: 100%;
  margin: 0px auto;

  z-index: 5;
  padding: 1px 1px;

  background-repeat: no-repeat;
  /* background-position: 0%; */
  background-size: cover;
  
  /* background-color: rgb(99, 64, 133); */ 
  background-color: transparent;

  /* opacity: 0; */
 
}

.hslidex-upper-caption{
  position: relative;
  width: 100%;
  /* height: 33px;  */
  height: 27px; 
  top: 0;
  left: 0;
  padding: 4px 4px;
  /* padding-top: 4px; */
  /* background-color: rgba(52, 66, 61, 0.233);
  background-color: antiquewhite;
  background-color: transparent; */

  background-color: rgba(52, 66, 61, 0.233);
  color: white;
  text-align: start;
}

.hslidex-upper-caption p{
  font-size: 14px;
  /* font-family: 'Times New Roman', Times, serif; */
  /* padding: 4px 4px; */
  color: white;
}

.hslidex-footer-link{
  position: relative;
  width: 100%;
  height: 27px; 
  top: 82%;
  left: 0;
  padding: 2px;
  padding-bottom: 4px;
  background-color: rgba(64, 66, 52, 0.233);
  padding: 4px 4px;
}
.hslidex-footer-link a{
  font-size: 14px;
  font-family: 'Times New Roman', Times, serif;
  padding: 4px 4px;
  text-decoration: none;
  color: blue;
}
.hslidex-footer-link a:hover{
  color: aqua;
}

/* Slide Caption Overlay (Optional) */

/* Navigation Buttons (Next / Prev) */
.hslidex-prev-btn, .hslidex-next-btn {
   /* position: absolute;  top: 23%;  */
  position: relative;
  top: -33%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
  z-index: 10;
}

.hslidex-prev-btn:hover, .hslidex-next-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.hslidex-prev-btn { left: 15px; }

/*  .next-btn { right: 15px; } */
.hslidex-next-btn { left: 87%; }

/* Dot Indicators */
.hslidex-dots-container {
  
  /* position: absolute; bottom: 15px; */ 
  position: relative;
  /* top: -20%; */
  top: -18%;
  width: 100%;
  text-align: center;
  z-index: 6;
}

.hslidex-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(19, 15, 15, 0.938);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hslidex-dot.active, .hslidex-dot:hover {
  background-color: #fff;
}


@media (max-width: 320px) {
  .header {grid-area: 1 / span 6;}
  .hsliderx-container {
  width: 303px;
  height: 265px;


  overflow: hidden;
  border-radius: 12px;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 4px solid #d0f5f4;
}
}
