* {
  box-sizing: border-box;
}

body {
  font-family: "Pretendard", sans-serif;
  margin: 0;
  padding: 0;
}

a {
  cursor: pointer;
}

.container {
  width: 100%;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 70px;
  padding: 9px 200px;
  margin: 0 auto;
}

.logo-img {
  display: flex;
  align-items: center;
}

.login {
  width: 128px;
  height: 48px;
  padding: 12px 23px;
  text-align: center;
  font-weight: 600;
  line-height: 26px;
  border-radius: 8px;
  text-decoration: none;
  background-color: #3692FF;
  color: #F3F4F6;
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: 540px;
  background-color: #CFE5FF ;
  background-image: url("img/Img_home_top.png");
  background-repeat: no-repeat;
  background-position: 80% bottom;
  background-size: 45%;
}

.banner.bottom {
  background-image: url("img/Img_home_bottom.png");
}

.banner span {
  display: block;
  position: relative;
  top: 30px;
  margin-bottom: 60px;
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  color: #374151;
}

.banner-wrapper{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.item-link {
  padding: 16px 124px;
  border-radius: 40px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  background-color: #3692FF;
  color: #ffffff;
}

.item-link:hover, 
.login:hover {
  background-color: #1967D6;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  height: 720px;
  gap: 5%;
}

.main-content:nth-last-of-type(3) {
  text-align: right;
}

.main-content img {
  width: 50%;
}

.main-content-tag {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: #3692ff;
}

.main-content h4 {
  margin: 10px 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0.02em;
  color: #374151;
}

.main-description {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: 0.08em;
  color: #374151;
}

footer {
  width: 100%;
  height: 160px;
  background-color: #111827;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 0;
}

.footer-copyright {
  color: #9CA3AF;
}

.footer-info {
  display: flex;
  gap: 15px;
}

.footer-info span a {
  text-decoration: none;
  color: #E5E7EB;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dynamic-text br {
  display: inline;
}

/* Tablet (1199px 이하) */
@media (max-width: 1199px) {
  header {
    padding: 9px 24px;
  }

  .dynamic-text br {
    display: none;
  }

  .banner {
    align-items: flex-start;
    text-align: center;
    background-position: center bottom;
    background-size: 65%;
    font-size: 40px;
  }

  .main-content {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .main-content img {
    width: 100%;
  }

  .main-content div {
    text-align: left;
    width: 100%;
  }

  .main-content:nth-last-of-type(3) {
    flex-direction: column-reverse;
  }

  .main-content:nth-last-of-type(3) div {
    width: 100%;
    text-align: right;
  }

  .footer-content {
    width: 80%;
  }
}

/* Mobile (767px 이하) */
@media (max-width: 767px) {
  header {
    padding: 9px 16px;
  }

  .banner .dynamic-text br {
    display: inline;
  }

  .banner {
    background-size: 80%;
    font-size: 32px;
  }

  .banner-wrapper span {
    font-size: 32px;
  }

  .item-link {
    padding: 12px 71px;
  }

  .main-content h4 {
    font-size: 24px;
  }

  .main-content p {
    font-size: 18px;
  }

  .banner-wrapper {
    margin-top: 40px;
  }
  .footer-content{
    flex-wrap: wrap;
  }

  .footer-copyright {
    order: 3;
  }

  .footer-info {
    margin-bottom: 40px;
    gap: 30px;
  }

  .footer-social {
    align-items: flex-start;
    gap: 12px;
  }
}
