/* ============================================
   Carousel Styles - Bootstrap 5 Compatible Version
   ============================================ */

/* Carousel Base - More specific selectors to avoid Bootstrap conflicts */

.item-inner{
    
    margin:auto;
    max-width:50vw;
    
}


#myCarousel.carousel {
  position: relative;
  margin-bottom: 20px;
  line-height: 1;
  
  border-bottom: 1px solid white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 100%;
  height: 320px;
  min-height: 320px;
}

#myCarousel .carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: white;
}

#myCarousel .carousel-inner > .item {
  position: relative;
  display: none;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

#myCarousel .carousel-inner > .item > img, 
#myCarousel .carousel-inner > .item > a > img {
  display: block;
  line-height: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#myCarousel .carousel-inner > .active, 
#myCarousel .carousel-inner > .next, 
#myCarousel .carousel-inner > .prev {
  display: block;
  opacity: 1;
  z-index: 1;
}

#myCarousel .carousel-inner > .next, 
#myCarousel .carousel-inner > .prev {
  position: absolute;
  top: 0;
  width: 100%;
}

#myCarousel .item {
  height: 100%;
  position: relative;
}

#myCarousel img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  opacity: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#myCarousel .carousel-inner > .active, 
#myCarousel .carousel-inner > .next.left, 
#myCarousel .carousel-inner > .prev.right {
  left: 0;
}

#myCarousel .carousel-inner > .next, 
#myCarousel .carousel-inner > .active.right {
  left: 100%;
}

#myCarousel .carousel-inner > .prev, 
#myCarousel .carousel-inner > .active.left {
  left: -100%;
}

/* Carousel Controls - More specific to avoid Bootstrap conflicts */
#myCarousel .control-left {
  background-image: url(/images/transparent-discs.png);
  background-repeat: repeat-y;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  height: 100%;
  width: 20%;
}

#myCarousel .control-right {
  background-image: url(/images/transparent-discs-right.png);
  background-repeat: repeat-y;
  background-position: right;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
  height: 100%;
  width: 20%;
}

#myCarousel .carousel-control {
  position: absolute;
  top: 40%;
  left: 15px;
  width: 40px;
  font-weight: 100;
  line-height: 30px;
  color: #fff;
  text-align: center;
  background: #222;
  border-radius: 23px;
  opacity: 1;
  filter: alpha(opacity=100);
  height: 80px;
  margin-top: 0;
  font-size: 120px;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
  background-color: transparent;
  border: 0;
  z-index: 30;
  transition: all 0.3s ease;
}

#myCarousel .carousel-control.right {
  right: 15px;
  left: auto;
}

#myCarousel .carousel-control:hover, 
#myCarousel .carousel-control:focus {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  filter: alpha(opacity=90);
  
  transform: scale(1.1);
}

/* Carousel Indicators */
#myCarousel .carousel-indicators {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  list-style: none;
  margin: 0;
}

#myCarousel .carousel-indicators li {
  display: block;
  float: left;
  width: 10px;
  height: 10px;
  margin-left: 5px;
  text-indent: -999px;
  background-color: rgba(255,255,255,0.25);
  border-radius: 5px;
}

#myCarousel .carousel-indicators .active {
  background-color: #fff;
}

/* Carousel Captions */
#myCarousel .carousel-caption {
  background-image: none;
  background-repeat: repeat;
  margin-top: 50px;
  height: 100%;
  position: absolute;
  padding: 20px 0;
  z-index: 25;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 2rem;
  color: white;
  pointer-events: auto;
}

#myCarousel .carousel-caption h1 {
  background: rgba(0,124,124,1);
  padding: 5px 120px 0 10px;
  font-family: "helvetica neue",helvetiva,arial,sans-serif;
  letter-spacing: -1px;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  
}

#myCarousel .carousel-caption h4, 
#myCarousel .carousel-caption p {
  line-height: 20px;
  color: #fff;
}

#myCarousel .carousel-caption h4 {
  margin: 0 0 5px;
}

#myCarousel .carousel-caption p {
  margin-bottom: 0;
}

#myCarousel .carousel-caption h1, 
#myCarousel .carousel-caption .lead {
  padding: 10px;
  line-height: 1.25;
  color: #fff;
  margin: 10px 0 0 0;
  width: 100%;
}

#myCarousel .carousel-caption .lead {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#myCarousel .carousel-caption .btn {
  margin-top: 10px;
}

#myCarousel .container {
  position: relative;
  z-index: 20;
}

/* Carousel Fade Effect */
#myCarousel.carousel.fade {
  opacity: 1;
}

#myCarousel.carousel.fade .item {
  transition: opacity ease-in-out .7s;
  left: 0 !important;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  top: 0;
  position: absolute;
  width: 100%;
  display: block !important;
  z-index: 1;
}

#myCarousel.carousel.fade .item:first-child {
  top: auto;
  position: relative;
}

#myCarousel.carousel.fade .item.active {
  opacity: 1;
  transition: opacity ease-in-out .7s;
  z-index: 1;
}

/* Carousel Button Styles */
#myCarousel .btn-caption {
  background-color: teal;
  color: white;
  padding: 0.75rem 1.5rem;
  border: 2px solid teal;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-block;
}

#myCarousel .btn-caption:hover {
  background-color: #333;
  border-color: #333;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  
}

/* Responsive Carousel Adjustments */
@media (max-width: 768px) {
  #myCarousel.carousel {
    height: 300px;
    min-height: 300px;
  }
  
  #myCarousel .item {
    height: 100%;
  }
  
  #myCarousel .carousel-caption h1 {
    font-size: 1.8rem;
    padding: 5px 20px 0 10px;
  }
  
  #myCarousel .carousel-caption {
    padding: 1rem;
    margin-top: 20px;
  }
  
  #myCarousel .carousel-control {
    font-size: 80px;
    height: 60px;
    width: 30px;
  }
}

@media (max-width: 576px) {
  #myCarousel.carousel {
    height: 250px;
    min-height: 250px;
    margin-top: 70px;
  }
  
  #myCarousel .carousel-caption {
    padding: 1rem;
    margin-top: 10px;
  }
  
  #myCarousel .carousel-caption h1 {
    font-size: 1.5rem;
    padding: 5px 10px 0 10px;
  }
  
  #myCarousel .carousel-caption .lead {
    font-size: 1rem;
  }
  
  #myCarousel .carousel-control {
    font-size: 60px;
    height: 50px;
    width: 25px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  #myCarousel .control-left,
  #myCarousel .control-right {
    width: 15%;
  }
}

/* Print Styles */
@media print {
  #myCarousel.carousel {
    display: none;
  }
}
