<template>
  <div class="title">
    <div class="container">
      <div class="title__wrapper">
        <slot />
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">

</script>

<style scoped lang="scss">
.title {
  padding-block: 50px;
  background-color: $title_bg;

  &__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

:deep(.title__wrapper h1) {
  color: $primary_dark;
  font-family: "Playfair Display", sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.5px;
}
:deep(.title__wrapper p) {
  max-width: 600px;
  text-align: center;
  color: $text;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
:deep(.title__wrapper .search) {
  position: relative;

  & span {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    color: $disabled_secondary;
  }

  & input {
    background-color: $main;
    border: 1px solid $border;
    border-radius: 50px;
    padding: 18px 70px 18px 50px;

    color: $text;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.5px;

    &::placeholder {
      color: $text;
    }
  }
}
</style>