<template>
  <div class="classification-title-box">
    <i class="left"></i>
    <h3>{{ title }}</h3>
    <i class="right"></i>
  </div>
</template>

<script>
export default {
  name: "course-card-title",
  props: {
    title: ''
  }
}
</script>

<style lang="scss">
.classification-title-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 144px;

  i {
    display: inline-block;
    width: 67px;
    height: 26px;
    background-repeat: no-repeat;
    background-size: cover;
  }

  i.left {
    transform: rotate(-180deg);
    background-image: url("~static/images/client/course/animation/title-line.png");
  }

  i.right {
    background-image: url("~static/images/client/course/animation/title-line.png");
  }

  h3 {
    font-size: 36px;
    font-weight: 400;
    color: #333333;
    margin: 0 45px;
  }

  @media (max-width: 768px){
    margin-bottom: 42px;
    i {
      display: inline-block;
      width: 41px;
      height: 16px;
    }

    h3 {
      font-size: 16px;
      font-weight: 700;
      color: #333333;
      margin: 0 15px;
    }
  }
}
</style>
