:root {
  --balloon-color-blue: #a3d3e8;
  --balloon-color-green: #a3d245;
  --balloon-color-yellow: #d3b32d;
  --image-radius: 3rem;
}

.sagi-detail-body {
  section {
    margin-top: 5rem;
    padding-top: 5rem;

    @media (max-width: 767.98px) {
      margin-top: 3rem;
      padding-top: 3rem;
    }

    p {
      margin-bottom: 2rem;
      line-height: 1.8;
    }
  }

  .balloon-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 -60px;
    padding-bottom: 60px;
    min-height: 370px;
    font-size: 3.2rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.1rem;
    line-height: 1.8;
    background-image: url(./balloon.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    @media (max-width: 575.98px) {
      background-image: url(./balloon-sm.png);
      margin: 0;
      width: 100%;
      padding-bottom: 20px;
      min-height: 320px;
      font-size: 2.3rem;
      line-height: 1.4;
    }

    @media (min-width: 576px) and (max-width: 767.98px) {
      background-image: url(./balloon-md.png);
      margin: 0;
      padding-bottom: 20px;
      min-height: 360px;
      max-width: 100%;
      font-size: 2.3rem;
      line-height: 1.4;
    }
  }

  .balloon-image {
    margin: 4rem 0 8rem;
    padding: 4rem;
    border-radius: calc(var(--image-radius) * 3);
    background-color: #ccc;
    position: relative;
    display: block;

    @media (max-width: 767.98px) {
      margin: 4rem 0 6rem;
      border-radius: calc(var(--image-radius) * 2);
      padding: 2rem;
    }

    &::after {
      content: '';
      display: block;
      position: absolute;
      bottom: -4rem;
      left: 50%;
      width: 0;
      height: 0;
      border-top: 4rem solid #ccc;
      border-right: 4rem solid transparent;
      z-index: 10;
      margin-left: 20%;

      @media (max-width: 767.98px) {
        bottom: -3rem;
      }
    }

    &.is-blue {
      background-color: var(--balloon-color-blue);

      &::after {
        border-top: 4rem solid var(--balloon-color-blue);
      }
    }

    &.is-green {
      background-color: var(--balloon-color-green);

      &::after {
        border-top: 4rem solid var(--balloon-color-green);
        margin-left: -20%;
        border-right: 0 solid transparent;
        border-left: 4rem solid transparent;
      }
    }

    &.is-yellow {
      background-color: var(--balloon-color-yellow);

      &::after {
        border-top: 4rem solid var(--balloon-color-yellow);
      }
    }

    img {
      border-radius: calc(var(--image-radius) * 2);
      width: 100%;

      @media (max-width: 767.98px) {
        border-radius: calc(var(--image-radius) * 1.5);
      }
    }

    .balloon-image__comment {
      position: absolute;
      display: block;
      top: -6rem;
      right: -6rem;
      padding: 1rem;
      text-align: center;
      font-weight: 600;
      z-index: 10;
      transform: rotate(12deg);

      @media (max-width: 767.98px) {
        right: 0;
        top: -6rem;
        font-size: 1.2rem;
        transform: rotate(6deg);
      }

      &::before,
      &::after {
        content: '';
        display: block;
        position: absolute;
        width: 1px;
        height: 3rem;
        background: #333;
      }

      &::before {
        bottom: 1rem;
        left: 0;
        transform: rotate(-30deg);
      }

      &::after {
        bottom: 0rem;
        right: 1rem;
        transform: rotate(57deg);
      }
    }
  }

  .dropcap {
    &::first-letter {
      display: flex;
      justify-content: center;
      align-items: center;
      background: #ccc;
      padding: 0 1.25rem;
      margin-right: 1rem;
      font-size: 2.5rem;
      border-radius: 50%;
      color: white;
      float: left;
      line-height: 2;
    }

    &.is-blue {
      &::first-letter {
        background-color: var(--balloon-color-blue);
      }
    }

    &.is-green {
      &::first-letter {
        background-color: var(--balloon-color-green);
      }
    }

    &.is-yellow {
      &::first-letter {
        background-color: var(--balloon-color-yellow);
      }
    }
  }

  h3.sub-heading {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;

    &.is-blue {
      color: var(--balloon-color-blue);
    }

    &.is-green {
      color: var(--balloon-color-green);
    }

    &.is-yellow {
      color: var(--balloon-color-yellow);
    }
  }

  img.sub-image {
    border-radius: calc(var(--image-radius) * 1.5);

    @media (max-width: 767.98px) {
      border-radius: calc(var(--image-radius));
    }
  }
}
