.greeting {
  padding-top: 82px;
}
.greeting__container {
  max-width: 1296px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.greeting__top {
  position: relative;
  color: #000;
  padding-top: 21px;
  padding-bottom: 73px;
  background-image: url(../assets/images/greeting_ceo.png);
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  border-radius: 40px;
}
.greeting__top h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}
.greeting__top .greeting__text {
  font-size: 24px;
  line-height: 1.5;
}
.greeting__top .greeting__text strong {
  font-weight: 700;
}
.greeting__top .ceo__sign {
  position: absolute;
  top: 252px;
  left: 496px;
}
.greeting__top .ceo__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 144px;
  aspect-ratio: 144/118;
  background-size: 100%;
  background-image: url(../assets/images/greeting_logo.svg);
  background-position: right center;
  background-repeat: no-repeat;
  transform: translateY(-50%);
}
.greeting__top .small__text {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 60px;
}
.greeting__bottom {
  color: #fff;
  height: 433px;
  padding: 56px 56px 0;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  background-image: url(../assets/images/greeting_bottom_img.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-clip-path: polygon(50% 0%, 50% 0%, 50% 100%, 50% 100%);
          clip-path: polygon(50% 0%, 50% 0%, 50% 100%, 50% 100%);
  opacity: 0;
  overflow: hidden;
}
.greeting__bottom .title {
  margin-bottom: 16px;
}
.greeting__bottom .title span {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.greeting__bottom .title h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}
.greeting__bottom p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

/* GSAP 애니메이션을 위한 초기 상태 설정 */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

/* greeting__bottom 초기 상태 - 모바일에서는 애니메이션 제거 */
@media (min-width: 769px) {
  .greeting__bottom {
    clip-path: polygon(50% 0%, 50% 0%, 50% 100%, 50% 100%);
    opacity: 0;
  }
}

/* ========================================
   모바일 반응형 스타일 (768px 이하)
   ======================================== */
@media screen and (max-width: 768px) {
  /* 메인 섹션 패딩 조정 - wrapper와 중복 방지 */
  .greeting {
    padding-top: 0; /* wrapper의 패딩과 중복 제거 */
  }
  
  /* 컨테이너 패딩 최적화 */
  .greeting__container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* 상단 섹션 스타일 */
  .greeting__top {
    padding: 32px 24px 48px;
    background-image: none; /* 모바일에서는 배경 이미지 제거 */
    border-radius: 20px;
    background-color: #f8f9fa;
  }
  
  /* 제목 크기 및 여백 조정 */
  .greeting__top h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* 메인 텍스트 최적화 */
  .greeting__top .greeting__text {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    word-break: keep-all;
    margin-bottom: 24px;
  }
  
  /* br 태그 제거하여 자연스러운 줄바꿈 */
  .greeting__top .greeting__text br {
    display: none;
  }
  
  /* 작은 텍스트 스타일 */
  .greeting__top .small__text {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 32px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    word-break: keep-all;
  }
  
  /* 작은 텍스트의 br 태그도 제거 */
  .greeting__top .small__text br {
    display: none;
  }
  
  /* CEO 서명 이미지 위치 조정 */
  .greeting__top .ceo__sign {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 24px;
    text-align: center;
    /* 중앙 겹침 배치를 위한 설정 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px; /* 이미지 높이 설정 */
  }
  
  .greeting__top .ceo__sign img {
    width: 120px;
    height: auto;
    position: relative;
    z-index: 2; /* 앞쪽에 배치 */
  }
  
  /* CEO 서명 옆 로고 위치 조정 */
  .greeting__top .ceo__sign::after {
    position: absolute;
    display: block;
    width: 100px;
    height: 82px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1; /* 뒤쪽에 배치 */
    opacity: 0.3; /* 겹쳤을 때 보이도록 투명도 조정 */
  }
  
  /* 하단 섹션 스타일 */
  .greeting__bottom {
    height: auto;
    padding: 32px 24px;
    border-radius: 20px;
    margin-top: 24px;
    clip-path: none;
    opacity: 1;
    background-size: cover;
    background-position: center;
  }
  
  /* 하단 타이틀 스타일 */
  .greeting__bottom .title {
    margin-bottom: 16px;
    text-align: center;
  }
  
  .greeting__bottom .title span {
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.9;
  }
  
  .greeting__bottom .title h2 {
    font-size: 24px;
    margin-top: 8px;
  }
  
  /* 하단 텍스트 스타일 */
  .greeting__bottom p {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    word-break: keep-all;
  }
  
  /* 하단 텍스트의 br 태그 제거 */
  .greeting__bottom p br {
    display: none;
  }
}

/* ========================================
   작은 모바일 기기 (480px 이하)
   ======================================== */
@media screen and (max-width: 480px) {
  /* 더 작은 패딩 */
  .greeting__container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .greeting__top {
    padding: 24px 16px 32px;
    border-radius: 16px;
  }
  
  /* 제목 크기 추가 조정 */
  .greeting__top h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  /* 텍스트 크기 미세 조정 */
  .greeting__top .greeting__text {
    font-size: 15px;
  }
  
  .greeting__top .small__text {
    font-size: 12px;
    padding: 16px;
  }
  
  /* CEO 서명 크기 조정 */
  .greeting__top .ceo__sign img {
    width: 100px;
  }
  
  .greeting__top .ceo__sign::after {
    width: 80px;
    height: 66px;
  }
  
  /* 하단 섹션 조정 */
  .greeting__bottom {
    padding: 24px 16px;
    border-radius: 16px;
  }
  
  .greeting__bottom .title h2 {
    font-size: 20px;
  }
  
  .greeting__bottom p {
    font-size: 14px;
  }
}

/* ========================================
   태블릿 세로 모드 (768px - 1024px)
   ======================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .greeting__top {
    background-size: 40%;
    padding-right: 45%;
  }
  
  .greeting__top h1 {
    font-size: 36px;
  }
  
  .greeting__top .greeting__text {
    font-size: 20px;
  }
  
  .greeting__top .ceo__sign {
    left: 40%;
    top: 220px;
  }
  
  .greeting__top .ceo__sign::after {
    width: 120px;
  }
  
  .greeting__bottom {
    padding: 40px;
  }
  
  .greeting__bottom .title h2 {
    font-size: 32px;
  }
  
  .greeting__bottom p {
    font-size: 18px;
  }
}