/* 전체 스타일 초기화 */
body {
  margin: 0px;
  min-width: 360px;
}

* {
  font-family: Pretendard !important;
  box-sizing: border-box;
}

/* Header 스타일 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
  z-index: 1000;
}

.header-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 36px;
  font-weight: bold;
  color: #212121;
  text-decoration: none;
}

.search {
  position: relative;
  width: 180px;
  /* 검색창 전체 너비 */
}

.search-box {
  width: 100%;
  position: relative;
}

.search input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  /* 왼쪽 패딩을 늘려 아이콘 공간 확보 */
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  background-color: #F1F3F5;
  outline: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  /* 왼쪽에서 15px 떨어진 위치 */
  transform: translateY(-50%);
  width: 20px;
  /* 아이콘 크기 */
  height: 20px;
  cursor: pointer;
}


/* Main Content 스타일 */
main {
  max-width: 720px;
  min-width: 360px;
  margin: 58px auto 0;
  padding: 120px 0px;
}

.section1 {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.section1 img {
  width: 100%;
  /* height: 405px; */
}

.section2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

.clip {
  width: fit-content;
  display: flex;
  padding: 5px 11px;
  justify-content: center;
  align-items: center;
  border-radius: 19px;
  background: #F2F4F6;
  color: #4E5968;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 20.8px;
}

.title {
  color: #333D4B;
  text-align: center;
  font-size: 47.25px;
  font-style: normal;
  font-weight: 700;
  line-height: 60px;
}

.date {
  color: #8B95A1;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  /* 150% */
}

.content-wrap img {
  width: 100%;
  /* height: 405px; */
}

.content-text {
  padding-top: 28px;
}

.share-btn {
  padding: 52px 0 50px;
  display: flex;
  justify-content: center;
}

.share {
  display: flex;
  padding: 10px 14px;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #F1F3F5;
  color: #495057;
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.047px;
  border-style: none;
}

.share img {
  width: 24px;
  height: 24px;
}

.text {
  color: #333D4B;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30.6px;
  /* 170% */
  letter-spacing: -0.067px;
}

.comment-count {
  color: #333D4B;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  padding-bottom: 17px;
}

.comment-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chu-left{
  display: flex;
  gap: 4px;
}

.comment {
  display: flex;
  padding: 20px 20px 20.6px 20px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10.6px;
  align-self: stretch;

  border-radius: 20px;
  background: #F9FAFB;
}

.comment-top {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
}

.comment-top img {
  width: 32px;
  height: 32px;
  border-radius: 1000px;
}

.comment-name {
  color: #333D4B;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 20.8px;
}

.comment-text {
  color: #4E5968;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 20.8px;
  /* 160% */
}


/* Footer 스타일 */
footer {
  padding: 60px 100px 80px 100px;
  border-top: 1px solid #E9ECEF;
  background: #F8F9FA;
}

.footer-wrap {
  max-width: 1440px;
}

.footer-title {
  color: #000;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  /* 160% */
  letter-spacing: -0.075px;
}

.footer-text {
  color: #868E96;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 20.8px;
  /* 160% */
  letter-spacing: -0.05px;
}

.divider{
  width: 100%;
  height: 2px;
  background-color: #ebebeb;
  margin: 60px 0;
}

.comment-left{
  display: flex;
  gap: 12px;
  flex-direction: column;
  width: 85%;
}

.comment-right{
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 15%;
}

.gaechu, .bichu{
  display: flex;
  gap:20px;
  justify-content: space-between;
}

.comment-gaesu{
  font-size: 12px;
}

.gaechu img, .bichu img {
  width: 12px;
  height: 12px;
}

.comment-gonggam{
  font-size: 12px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .header-wrap {
    padding: 0 15px;
  }

  main {
    max-width: 1440px;
    min-width: 360px;
    margin-top: 58px;
    padding: 0px;
  }

  .image-wrapper img {
    width: 100%;
    /* height: 202px; */
  }

  .section2 {
    gap: 14px;
    padding-bottom: 40px;
  }

  .content-wrap {
    padding: 0 20px;
  }

  .clip {
    font-size: 11px;
  }

  .title {
    font-size: 32px;
  }

  .section3 {
    padding-bottom: 110px;
  }

  footer {
    padding: 40px 20px 80px;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .comment-right{
    width: 20%;
  }

  .comment-left{
    width: 80%;
  }
}