@charset "utf-8";

/* ===== 협력업체 최신글 ===== */
.partners-latest-wrap {
  width: 100%;
  text-align: center;
  margin: 40px auto;
}

.partners-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 30px;
  display: inline-block;
  border-bottom: 3px solid #ff5757;
  padding-bottom: 6px;
}

.partners-list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* 아이템 박스 (350px 크기) */
.partner-item {
  flex: 0 0 350px !important;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 🔗 링크 및 이름 밑줄 제거 */
.partner-link {
  text-decoration: none !important;
  display: block !important;
  border: none !important;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 🖼️ 이미지 영역 (사진 안 짤리게 핵심 설정) */
.partner-img-wrap {
  width: 100% !important;
  height: 350px !important; /* 박스 높이 고정 */
  background: #ffffff; /* 사진 비율 다를 때 남는 여백 색상 */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  padding: 10px; /* 사진이 박스 끝에 딱 붙지 않게 여백 살짝 */
  box-sizing: border-box;
}

.partner-img-wrap img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important; /* 👈 사진이 짤리지 않고 전체 다 보이게 함 */
  display: block;
}

/* 제목 스타일 */
.partner-subject {
  font-size: 18px !important;
  color: #222 !important;
  margin: 15px 0 !important;
  font-weight: 700 !important;
  text-decoration: none !important; /* 밑줄 방어 */
  line-height: 1.2;
}

/* 반응형 모바일 */
@media (max-width: 768px) {
  .partner-item {
    flex: 0 0 calc(100% - 40px) !important;
    margin: 0 20px;
  }
  .partner-img-wrap {
    height: 300px !important;
  }
}