/***** 프로모션 *****/

main {
  width: 100%;
}

.promotion-title-container {
  overflow: hidden;
}

.title__promotion {
  position: relative;
  width: 100%;
  height: 300px;
  background-image: linear-gradient(rgba(64,
        63,
        63,
        0.5),
      rgba(64, 63, 63, 0.5)), url('./images/promotion/promotion.jpg');
  background-size: cover;
  background-position: 50% 70%;
  background-repeat: no-repeat;
  animation: zoomInOut 20s ease forwards;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);

  }
}

.section {
  padding: 60px 10%;
}

.section-1-title__promotion-subtitle {
  font-size: 20px;
  color: #2F76D1;
}

.section-1-title__promotion-title {
  font-size: 30px;
  color: #3c3c3c;
}

.promotion-title-wrapper:hover {
  transform: translatex(5px);
  transition: transform 0.3s ease;
}

.promotion-title-wrapper:hover .section-1-title__promotion-title {
  color: #2F76D1;
}

.promotion-title-wrapper:hover .section-1-title__promotion-subtitle {
  color: #3c3c3c;
}

.box-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 120px 0;
}

.box__promotion {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24%;
  height: 200px;
  background-color: #113873;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  font-size: 16px;
}

.box__promotion:hover {
  background-color: #2F76D1;
  transition: all 0.3s ease-out;
}

/* 배너 */
.banner {
  position: relative;
  width: 100%;
  background: #113873;
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 60px 10%;
}

.banner:hover h5 {
  color: #fff;
  transform: translatex(5px);
  transition: transform 0.3s ease;
}

.banner:hover h2,
.banner:hover p {
  color: #3cb7ff;
  transform: translatex(5px);
  transition: transform 0.3s ease;
}

.banner-content h5 {
  color: #3cb7ff;
  font-size: 24px;
  font-weight: bold;
  text-align: end;

}

.banner-content h2 {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: end;
}

.banner-content p {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  text-align: end;
  word-break: keep-all;
  /* 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
  /* 너무 긴 단어는 줄바꿈 */
}

.container-promotion {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 80px 0;
}

.container-promotion:hover {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
  color: #2F76D1;
}

.container-promotion img {
  width: 40%;
  object-fit: cover;
}

.text-container-promotion {
  background-color: #eee;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-container-promotion h5 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 42px;
}

.text-container-promotion p {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 1.8;
}

.hr__promotion {
  margin: 40px 99px;
  border: none;
  border-top: 1px solid #e9e9e9;
}

/* 공통 모바일 메뉴 스타일 (태블릿 & 모바일) */
@media (max-width: 1279px) {
  .title__promotion {
    height: 230px;
  }

  .section-1-title__promotion-subtitle {
    font-size: 16px;
  }

  .section-1-title__promotion-title {
    font-size: 30px;
  }

  .box-container {
    flex-direction: column;
    gap: 20px;
    margin: 60px 0;
  }

  .box__promotion {
    width: 100%;
    height: 200px;
  }

  .banner {
    padding: 20px 10%;
  }

  .banner-content {
    padding: 20px 30px;
  }

  .banner-content p {
    font-size: 14px;

    br {
      display: none;
    }
  }

  .container-promotion {
    flex-direction: column;
  }

  .container-promotion img {
    height: 300px;
    width: 100%;
  }

  .text-container-promotion h5 {
    font-size: 20px;
  }

  .text-container-promotion p {
    font-size: 16px;
  }

  .hr__promotion {
    margin: 40px;
  }
}

/* 태블릿 전용 스타일 */
@media (max-width: 1279px) and (min-width: 769px) {}


/* 모바일 전용 스타일 */
@media (max-width: 768px) {
  .banner-content h2 {
    font-size: 16px;
  }

  .section {
    padding: 0px 10%;
  }
}