.content_offers_head_title{
  text-align: center;
}

.carousel-slider-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: auto;
  overflow: hidden;
}

.carousel-slider{
  display: flex;
  box-sizing: border-box;
  justify-content: flex-start;
  transition: all 0.5s ease;
}

.carousel-slide{
  position: relative;

  background-position: center center;
  background-size: cover;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 0 calc(100% - 10px);

  margin: 0 5px;
  padding: 40px;
  text-align: center;

  box-sizing: border-box;
  border-radius: 4px;
  overflow: hidden;

  min-height: 300px;

  .mask{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.5s ease;
    z-index: 1;
    @media (max-width: 768px) {
      background: #21849f80;
    }
  }

  &::after{
    content:'';
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 66px;
    height: 2px;
    background-color: #dfc000;
    z-index: 3;
  }

  h3,p, a{
    opacity: 1;
    transition: all 0.5s ease, opacity 0.25s ease;
    position: relative;
    z-index: 2;
    margin: 0;
  }

  h3{
    opacity: 1!important;
  }
  
  p,a{
    min-height: auto;
    max-height: auto;
  }
  p{
    line-height: 1;
  }
  
  
  a{
    text-decoration: none;
  }
  
  @media (min-width: 768px) {
    
    flex: 0 0 calc(50% - 10px);
    aspect-ratio: 1/1;
    
    p,a{
      min-height: 0;
      max-height: 0;
    }
    
    &:hover{
      .mask{
        background: #21849f80;
      }
      h3,p{
        margin-bottom: 6px;
      }
      p, a{
        opacity: 1;
        min-height: auto;
        max-height: 100%;
      }
    }

  }
  
  @media (min-width: 1024px) {
    flex: 1 0 calc(33.33% - 10px);
    max-height: 450px;
  }
}

.carousel-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #dfc000;
  color: white;
  border: none;
  aspect-ratio: 1/1;
  cursor: pointer;
  z-index: 1000;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  border-radius: 6px;

  &:hover{
    transform: scale(1.1) translateY(-50%);
    background-color: #dfc000!important;
  }
  &:focus{
    background-color: #dfc000!important;
  }
}

.carousel-prev-btn {
  font-size: 16px;
  left: 12px;
}

.carousel-next-btn {
  font-size: 16px;
  right: 12px;
}

.carousel-slider-paginate{
  margin:auto;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  >div{
    width: 8px;
    height: 8px;
    border-radius: 50px;
    border: 1px solid #21849f;
    cursor: pointer;
    transition: all 0.5s ease;
    &.active{
      width: 18px;
      background-color: #21849f;
    }
  }
}

.carousel-slider p, .carousel-slider a {
opacity: 0;
}

.carousel-slider h3, .carousel-slider a,.carousel-slider p {
color: #fff!important;
}