<template>
  <el-carousel class="carousel" indicator-position="none" arrow="never">
    <el-carousel-item>
      <div class="h1">
        <div class="inner">
          <div class="section-title">
            <span class="bg-secondary-opacity subtitle w-40">
              {{ t('newLoop.item11') }}
            </span>
          </div>
          <h1 class="title w-700">
            <span>{{ t('newLoop.item12') }}</span>
            <strong class="color-white">{{ t('newLoop.item13') }}</strong>
          </h1>
          <h6 class="text-white">{{ t('newLoop.item14') }}</h6>
        </div>
        <img src="../../../assets/images/trust-pilot.png" class="img-fluid mt--10" alt="trust-pilot" />
      </div>
    </el-carousel-item>
  </el-carousel>
</template>

<script setup>
  import { useI18n } from 'vue-i18n'

  const { t } = useI18n()
</script>

<style lang="scss" scoped>
@media screen and (max-width: 1200px) {
  .h1 {
    top: 45% !important;
  }
}

.carousel {
  // background-color: #ffffff;
}

.h1 {
  width: 100%;
  // position: absolute;
  // left: 50%;
  // top: 40%;
  // transform: translateX(-50%);
  font-size: 20px;
  font-weight: bolder;
  color: #242424;
  display: flex;
  flex-direction: column;

  .inner {
    .subtitle {
      width: 45%;
      font-size: 18px;
      letter-spacing: 1px;
      display: block;
      margin-bottom: 24px;
      color: #ffffff;
      line-height: 15px;
      font-weight: 500;
      padding: 10px 20px;
      border-radius: 100px;
      text-transform: uppercase;
      background-color: #e61f1e;
      text-align: center;
    }

    .title {
      margin-bottom: 25px;
      display: inline-block;
      color: #ffffff;
      font-size: 60px;
      font-weight: 700;
      line-height: 1.19;
      text-align: start;
    }

    .text-white {
      color: #ffffff;
      line-height: 1.25;
      font-size: 16px;
      text-align: start;
    }
  }

  .mt--10 {
    margin-top: 20px;
    width: 400px;
  }
}

.index {
  position: absolute;
  right: 48px;
  bottom: 48px;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

.img {
  margin-top: 120px;
  width: 480px;
  max-width: 50%;
}

@media screen and (max-width: 768px) {
  .h1 {
    position: absolute;
    left: 50%;
    top: 30% !important;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bolder;
    color: #242424;

    span {
      display: inline-block;
      padding: 8px 0;
      line-height: 1;
    }

    span.blue {
      color: #4990ef;
      font-size: 16px;
      display: inline-block;
    }

    span.red {
      color: #ee1d1c;
      font-size: 16px;
    }

    span.orege {
      color: #fd9288;
    }

    span.blue1 {
      color: #4990ef;
    }

    .box {
      border: 1px solid #fd9288;
      border-radius: 50px;
      display: flex;
      align-items: center;
      margin: 5px 8px;
      padding: 0 20px;
      box-sizing: border-box;
      font-size: 12px;
      font-weight: 400;

      img {
        width: 20px;
        margin-right: 15px;
      }
    }

    .boxBlue {
      border: 1px solid #4990ef;
    }

    .box4 {
      display: flex;
      align-items: center;
      justify-content: center;
      // margin: 10px 15px;
      // padding: 0 20px;
      box-sizing: border-box;
      font-size: 14px;
      font-weight: 400;
      color: #979797;

      i {
        width: 24px;
        margin-right: 15px;
      }
    }

    .gengdan {
      font-size: 14px;
    }

    .gengdan1 {
      font-size: 12px;
      font-weight: 400;
      margin-bottom: 0;
      padding: 0;
      display: block;
    }
  }

  .img {
    display: none;
  }
}
</style>
