.main-visual {
  position: relative;
width: 96%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 42px;
}

.main-visual-item {
  position: relative;
}

.main-visual-item picture,
.main-visual-item img {
  display: block;
  width: 100%;
}

.main-visual-text {
  position: absolute;
  left: 8%;
  bottom: 15%;
  
  z-index: 2;
  color: #111;
}

.main-visual-text h2 {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight:800;
  color: #fff;
}

.main-visual-text p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: #fff;
}

.main-visual .swiper-button-next,.main-visual .swiper-button-prev{
color: rgba(256,256,256,0.6)
}


/*카테고리별 포스팅모음*/
.home-post-section {
  padding: 70px 0 80px;
  overflow: hidden;
}

.home-post-section .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 56px;
}

.home-post-section .section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
}

.home-post-section .section-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-post-section .more-link {
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

.home-post-section .section-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-post-section .section-arrows button {
  width: 42px;
  height: 42px;
  border: 1px solid #dddddd;
  border-radius: 50%;
  background: #fff;
  position: relative;
  padding: 0;
  cursor: pointer;
}

.home-post-section .section-arrows button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #999;
  border-right: 1.5px solid #999;
}

.home-post-section .section-arrows .prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.home-post-section .section-arrows .next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.home-post-section .post-grid-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.home-post-section .post-grid-wrap::-webkit-scrollbar {
  display: none;
}

.home-post-section .post-grid {
  display: flex;
  gap: 28px;
  padding: 0 56px;
  width: max-content;
}

.home-post-section .post-card {
  width: 300px;
  flex: 0 0 300px;
}

.home-post-section .post-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-post-section .post-card .thumb {
  overflow: hidden;
  background: #f5f5f5;
}

.home-post-section .post-card .thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1.52 / 1;
  object-fit: cover;
}

.home-post-section .post-card .info {
  padding-top: 18px;
}

.home-post-section .post-card .info h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.03em;
  word-break: keep-all;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-post-section .post-card .date {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #888;
}

@media (max-width: 1024px) {
  .home-post-section {
    padding: 56px 0 64px;
  }

  .home-post-section .section-head {
    padding: 0 24px;
    margin-bottom: 24px;
  }

  .home-post-section .post-grid {
    gap: 20px;
    padding: 0 24px;
  }

  .home-post-section .post-card {
    width: 260px;
    flex-basis: 260px;
  }
}

@media (max-width: 767px) {
  .home-post-section {
    padding: 44px 0 52px;
  }

  .home-post-section .section-head {
    padding: 0 16px;
    margin-bottom: 18px;
  }

  .home-post-section .section-head h2 {
    font-size: 24px;
  }

  .home-post-section .section-controls {
    gap: 12px;
  }

 
  .home-post-section .section-arrows button {
    width: 34px;
    height: 34px;
  }

  .home-post-section .post-grid {
    gap: 14px;
    padding: 0 16px;
  }

  .home-post-section .post-card {
    width: 78vw;
    flex-basis: 78vw;
  }

  .home-post-section .post-card .info {
    padding-top: 14px;
  }

  .home-post-section .post-card .info h3 {
    font-size: 16px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  .home-post-section .post-card .date {
    margin-top: 12px;
    font-size: 13px;
  }
}