/* Footer 기본 스타일 */
footer {
  background-color: #262626;
  color: #C1C1C1;
  font-size: 14px;
  line-height: 1.6;
  padding: 60px 0 40px 0;
}

/* Bootstrap container 안쪽 중앙 정렬 보정 */
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 제목 */
footer h6 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* nav 스타일 */
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .nav-link {
  color: #C1C1C1;
  text-decoration: none;
  padding: 2px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

footer .nav-link:hover {
  color: #00ABB1;
}

footer .privacymenu-color {
  color: #00ABB1 !important;
}

/* 구분선 */
footer hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 30px 0;
}

/* Footer 컬럼 3단 정렬 */
footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* 왼쪽 정렬 */
  gap: 150px; /* 컬럼 간 간격 */
}

/* 각 컬럼 너비 */
footer .col-sm-4 {
  flex: 0 0 auto; /* 콘텐츠 크기에 맞춤 */
  max-width: 250px; /* 필요시 최대 폭 제한 */
  margin-bottom: 20px;
}

/* 하단 정보 부분 */
footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer .footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
}

/* 인증 마크 가로 정렬 */
footer .footer-cert {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

footer .footer-cert img {
  width: 72px;
  height: 72px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

footer .footer-cert img:hover {
  transform: scale(1.05);
}

/* 모바일 대응: 세로 스택 및 중앙 정렬 */
@media (max-width: 768px) {
  footer .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem; /* 컬럼 간 세로 간격 조절 */
  }

  footer .col-sm-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .footer-cert {
    justify-content: center;       /* 모바일에서는 가운데 정렬 */
    margin-top: 20px;
  }
}

/* 맨 위로 버튼 */
.toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #fff;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 9999;
}

.toTop.show {
  opacity: 1;
  visibility: visible;
}

.toTop i {
  font-size: 22px;
  color: #00ABB1;
  transition: transform 0.2s ease;
}

.toTop:hover i {
  transform: translateY(-3px);
}
