/* OFFICIAL SPONSOR 이미지 정렬 및 반응형 스타일 */
.official-sponsors .sponsor-rows {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem 1rem;
	width: 100%;
	align-items: center;
	justify-items: center;
	margin-top: 0;
	padding: 2%;
}

.official-sponsors .sponsor-rows a, .official-sponsors .sponsor-rows>img
	{
	width: 100%;
	max-width: 180px;
	height: 60px;
	object-fit: contain;
	transition: transform 0.3s ease, opacity 0.3s ease;
	display: block;
}

.official-sponsors .sponsor-rows a:hover, .official-sponsors .sponsor-rows>img:hover
	{
	transform: scale(1.05);
	opacity: 0.8;
}

.official-sponsors .sponsor-rows a img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* 반응형: 대형 태블릿 */
@media ( max-width : 1200px) {
	.official-sponsors .sponsor-rows {
		grid-template-columns: repeat(4, 1fr);
		gap: 28px 20px;
	}
	.official-sponsors .sponsor-rows a, .official-sponsors .sponsor-rows>img
		{
		max-width: 160px;
		height: 55px;
	}
}

/* 반응형: 태블릿 */
@media ( max-width : 1024px) {
	.official-sponsors .sponsor-rows {
		grid-template-columns: repeat(4, 1fr);
		gap: 24px 18px;
	}
	.official-sponsors .sponsor-rows a, .official-sponsors .sponsor-rows>img
		{
		max-width: 140px;
		height: 50px;
	}
}

/* 반응형: 모바일 */
@media ( max-width : 768px) {
	.official-sponsors .sponsor-rows {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px 16px;
	}
	.official-sponsors .sponsor-rows a, .official-sponsors .sponsor-rows>img
		{
		max-width: 120px;
		height: 45px;
	}
}

/* 반응형: 작은 모바일 */
@media ( max-width : 480px) {
	.official-sponsors .sponsor-rows {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px 14px;
	}
	.official-sponsors .sponsor-rows a, .official-sponsors .sponsor-rows>img
		{
		max-width: 100px;
		height: 40px;
	}
}

/* 반응형: 아주 작은 모바일 */
@media ( max-width : 360px) {
	.official-sponsors .sponsor-rows {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px 12px;
	}
	.official-sponsors .sponsor-rows a, .official-sponsors .sponsor-rows>img
		{
		max-width: 90px;
		height: 35px;
	}
}

/* 스폰서 UI 변경 */
.sp-sub {
	gap: 0; /* 260129 수정 */
}

.sp-sub--medical, .sp-sub {
	background: #ffffff;
	padding: 0;
	border-radius: 15px;
	border: 1px solid #000;
}

.sp-sub__title {
	background: #000;
	width: 100%;
	text-align: center;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

/* KIT SPONSOR 로고 크기 및 정렬 조정 */
.sp-sub__logo {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 0; /* 260129 수정 */
	padding: 5%;
	min-height: 200px;
	height: 100%; /* 260129 추가 */
}

.sp-sub__logo img {
	max-width: 80%;
	width: 400px;
	height: auto;
	object-fit: contain;
}

/* MEDICAL PARTNERS 2열 2줄 레이아웃 (PC) */
.sp-sub__logos {
	display: grid;
	justify-content: center;
	align-items: center;
	gap: 3rem;
	grid-template-columns: repeat(2, 1fr);
	margin-bottom: 0; /* 260129 수정 */
	padding: 5%;
	text-align: center;
}

.sp-sub__logos img {
	max-height: 100%;
	width: 100%;
}

/* 260129 추가: 오피셜 스폰서 로고 크기 */
.sp-official .sp-grid li a img {
	max-width: 20rem;
}

/* 모바일 대응 */
@media ( max-width : 1435px) {
	.sp-sub__logos {
		grid-template-columns: repeat(2, 1fr);
		padding: 5%;
		gap: 3rem;
	}
	.sp-sub__logos img {
		max-height: 100%;
		width: 100%;
	}
	.sp-sub__logo {
		min-height: 150px;
	}
	.sp-sub__logo img {
		max-width: 70%;
	}
}

.sp-sub__logo a {
	text-align: center;
}

 /* MEDICAL PARTNERS 로고 Grid 레이아웃 */
  .medical-partners .logo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2열 그리드 */
    gap: 1rem;
    align-items: center;
    justify-items: center;
        padding: 9% 5%;
  }

  .medical-partners .logo-list a,
  .medical-partners .logo-list > img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
  }

  .medical-partners .logo-list img {
    width: 100%;
    height: auto;
    max-width: 180px; /* 최대 너비 제한 */
    max-height: 80px; /* 최대 높이 제한 */
    object-fit: contain; /* 이미지 비율 유지하면서 맞춤 */
    transition: transform 0.3s ease;
  }

  .medical-partners .logo-list a:hover img {
    transform: scale(1.05);
  }

  /* 반응형: 태블릿 */
  @media (max-width: 1024px) {
    .medical-partners .logo-list {
      gap: 15px;
    }

    .medical-partners .logo-list img {
      max-width: 150px;
      max-height: 70px;
    }
  }

  /* 반응형: 모바일 */
  @media (max-width: 768px) {
    .medical-partners .logo-list {
      grid-template-columns: repeat(2, 1fr); /* 모바일에서도 2열 유지 */
      gap: 12px;
    }

    .medical-partners .logo-list img {
      max-width: 120px;
      max-height: 60px;
    }
  }

  /* 반응형: 작은 모바일 */
  @media (max-width: 480px) {
    .medical-partners .logo-list {
      gap: 10px;
    }

    .medical-partners .logo-list img {
      max-width: 100px;
      max-height: 50px;
    }
    
    .sp-official .sp-grid li a img {
		max-width: 12rem;
	}
  }