/* Styles lifted 1:1 from CarouselHome.vue and CarouselValues.vue (non-scoped <style>). */

/* ---------- CarouselHome ---------- */
.custom-height img:not(.carousel-caption img) {
  height: 588px !important;
  object-fit: cover;
}
.carousel .carousel-indicators li {
  background-color: rgb(210, 183, 183);
  width: 40px;
  height: 5px;
  margin: 1px;
}
.carousel .carousel-indicators li.active {
  background-color: rgb(202, 202, 211);
}

.carousel-caption {
  top: 47%;
  text-transform: uppercase;
  text-align: start;
  padding: 0 !important;
  left: 19%;
  right: auto !important;
  bottom: auto !important;
}
.carousel-caption .carousel-title {
  position: relative;
  font-family: "XMH Flama-Book";
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 27px;
  text-transform: uppercase;
}
.carousel-caption .carousel-title::after {
  content: "";
  position: absolute;
  background: #00aad7;
  width: 10%;
  height: 3px;
  bottom: 0;
  top: 128%;
  left: 0;
  right: 100%;
  margin: auto;
}
.carousel-caption p {
  font-size: 40px;
  width: 690px !important;
  font-family: "XMH Flama-Medium";
  color: #ffffff;
  line-height: 46.31px;
  text-transform: uppercase;
}
.carousel-control-prev {
  left: -45px;
}
.carousel-control-prev,
.carousel-control-next {
  top: 170px;
}
.carousel-control-prev-icon {
  background-image: url("../images/carousel/left-arrow.png");
  width: 37px;
  height: 49px;
}
.carousel-control-next-icon {
  background-image: url("../images/carousel/next.png");
  width: 37px;
  height: 49px;
}

@media (max-width: 1366px) {
  .carousel-caption {
    left: 7.5%;
  }
  .carousel-control-next {
    right: 0;
    top: 0px;
    width: 6% !important;
  }
  .carousel-control-prev {
    left: 0;
    top: 0px;
    width: 6% !important;
  }
  .carousel-caption p {
    width: 690px !important;
    line-height: 50px;
  }
  .carousel-caption {
    top: 33%;
  }
}
@media (max-width: 992px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 28px;
    height: 34px;
  }
  .carousel-caption p {
    width: 430px !important;
    font-size: 24px;
    line-height: 30px;
  }
  .carousel-caption .carousel-title {
    font-size: 18px;
  }
  #custom-loupe {
    width: 19px;
    height: 19px;
  }
  .custom-height img:not(.carousel-caption img) {
    height: 375px !important;
  }
}
@media (max-width: 600px) {
  .carousel-caption p {
    font-size: 19px;
    line-height: 25px;
  }
  .carousel-caption .carousel-title {
    font-size: 15px;
  }
  .custom-height img:not(.carousel-caption img) {
    height: 310px !important;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px;
    height: 26px;
  }
}
@media (max-width: 450px) {
  .carousel-caption p {
    width: 280px !important;
    font-size: 15px;
    line-height: 20px;
  }
  .carousel-caption .carousel-title {
    font-size: 12px;
  }
}

/* ---------- CarouselValues ---------- */
.text {
  width: 40%;
  margin-bottom: 3%;
}
.card-img {
  max-height: 385px;
}
.card {
  border: none;
}
.card-mobile-text {
  width: 100%;
  margin-top: 20px;
}
.card-body {
  padding: 0;
}
.card-title {
  color: #03aad9;
  font-size: 35px;
  font-family: "XMH Flama-Medium";
  padding-right: 70px;
}
.card-text {
  color: #03aad9;
  font-size: 35px;
  font-family: "XMH Flama-Light" !important;
}

@media (max-width: 1620px) {
  .mask {
    width: 540px !important;
  }
  .card-img {
    object-fit: contain;
  }
}
@media (max-width: 1445px) {
  .card-title {
    font-size: 30px;
  }
  .card-text {
    font-size: 25px;
  }
}
@media (min-width: 1295px) and (max-width: 2000px) {
  .card-img,
  .card-img-top,
  .card-img-bottom {
    width: initial !important;
  }
}
@media (max-width: 1366px) {
  .card-img {
    height: 300px;
  }
}
@media (max-width: 1024px) {
  .card-title,
  .card-text {
    font-size: 20px;
  }
  .card-img {
    height: auto;
  }
  .mask {
    width: 420px;
  }
  .card-img {
    object-fit: cover;
  }
}
@media (max-width: 992px) {
  .card-title {
    font-size: 24px;
  }
  .card-text {
    font-size: 21px;
  }
}
@media (max-width: 750px) {
  .card-img {
    height: auto;
  }
  .mask {
    width: 100% !important;
  }
  .card-title,
  .card-text {
    font-size: 20px !important;
  }
}

/* Force caption to override parent <a> inherited color + bootstrap text-align */
.avinci-home .carousel-caption,
.avinci-home .carousel-caption .carousel-title,
.avinci-home .carousel-caption p {
  color: #ffffff !important;
}
.avinci-home .carousel-caption {
  text-align: left !important;
  right: auto !important;
  top: 47% !important;
  bottom: auto !important;
}
@media (min-width: 993px) {
  .avinci-home .carousel-caption {
    left: 15% !important;
  }
}
@media (max-width: 992px) {
  .avinci-home .carousel-caption {
    left: 7.5% !important;
  }
}
.avinci-home .carousel-caption a {
  color: #ffffff !important;
}

/* Indicators — larger bars like live */
.avinci-home .carousel-indicators {
  bottom: 20px;
}
.avinci-home .carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.5);
  width: 40px;
  height: 3px;
  border: none;
  opacity: 1;
}
.avinci-home .carousel-indicators li.active {
  background-color: #ffffff;
}

/* Arrows bigger & positioned on the sides (not absurdly outside) */
.avinci-home .avinci-home-slider .carousel-control-prev,
.avinci-home .avinci-home-slider .carousel-control-next {
  top: 0;
  bottom: 0;
  width: 5%;
  opacity: 0.9;
}
.avinci-home .avinci-home-slider .carousel-control-prev {
  left: 0;
}
.avinci-home .avinci-home-slider .carousel-control-next {
  right: 0;
}

/* ---------- Values carousel (1:1 live avinci.ro) ---------- */
.avinci-values {
  position: relative;
}

/* Hide Bootstrap defaults that don't belong here */
.avinci-values .carousel-control-prev,
.avinci-values .carousel-control-next {
  display: none;
}

.avinci-values .avinci-values__row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.avinci-values__image {
  flex: 0 0 55%;
  max-width: 55%;
  height: 385px;
  overflow: hidden;
  /* Diagonal right edge, like live */
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
}
.avinci-values__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avinci-values__text {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px 0 60px;
}
.avinci-values__text .card-title {
  color: #03aad9;
  font-size: 35px;
  font-family: "XMH Flama-Medium";
  margin-bottom: 12px;
  padding-right: 0;
}
.avinci-values__text .card-text {
  color: #03aad9;
  font-size: 28px;
  font-family: "XMH Flama-Light" !important;
  margin: 0;
}

/* Dots under the slide — override Bootstrap absolute positioning */
.avinci-values .carousel-indicators.avinci-values__dots {
  position: static !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 25px 0 0 0 !important;
  padding: 0;
  list-style: none;
  left: auto;
  right: auto;
  bottom: auto;
}
.avinci-values .carousel-indicators.avinci-values__dots li {
  background-color: #d9d9d9;
  width: 9px !important;
  height: 9px !important;
  border-radius: 0 !important;
  margin: 0 4px !important;
  opacity: 1;
  border: none;
  cursor: pointer;
  text-indent: 0;
  box-sizing: content-box;
  flex: 0 0 auto;
  display: inline-block;
}
.avinci-values .carousel-indicators.avinci-values__dots li.active {
  background-color: #01aad7 !important;
}

@media (max-width: 1366px) {
  .avinci-values__image {
    height: 320px;
  }
  .avinci-values__text .card-title {
    font-size: 28px;
  }
  .avinci-values__text .card-text {
    font-size: 22px;
  }
}
@media (max-width: 992px) {
  .avinci-values .avinci-values__row {
    flex-direction: column;
  }
  .avinci-values__image,
  .avinci-values__text {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .avinci-values__image {
    height: auto;
    max-height: 260px;
    -webkit-clip-path: none;
    clip-path: none;
  }
  .avinci-values__text {
    padding: 20px 10px 0 10px;
  }
  .avinci-values__text .card-title {
    font-size: 22px;
  }
  .avinci-values__text .card-text {
    font-size: 18px;
  }
}
