/* 📌 기본 설정 */
* {
  caret-color: transparent; /* 기본적으로 커서 숨김 */
}
body {
  padding-top: 60px; /* 🔥 네비게이션 바 높이만큼 여백 추가 */
}
a,
a:visited,
a:hover,
a:focus {
  text-decoration: none;
}
input,
textarea {
  caret-color: auto; /* 입력 가능한 필드에서는 정상적으로 표시 */
}
:root {
  --navbar-height: 7; /* 60px 높이 + 위아래 패딩 합산 */
}

body {
  margin: 0;
  font-family: "Noto Sans KR", serif;
}
/* 전체 포커스 스타일 제거 */
*:focus {
  outline: none;
}

/* 입력 요소에만 포커스 스타일 유지 */
input:focus,
textarea:focus {
  border-color: #da2128;
}
/* 📌 네비게이션 바 */
header {
  position: fixed; /* 🔥 상단 고정 */
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  z-index: 1001;
}
nav {
  display: flex; /* 🔥 Flex 적용 */
  align-items: center; /* 🔥 내부 요소 수직 중앙 정렬 */
  height: 30px;
}

/* 네비게이션 컨테이너 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
  height: 60px;
  padding: 0px 20px; /* 상하 5px, 좌우 20px */
  z-index: 1001;
}

/* 상단바 고정 */
#header {
  position: sticky;
  z-index: 1001;
  background-color: #ffffff;
}

/* 📌 로고 컨테이너 */
.logo {
  display: flex;
  align-items: center; /* 🔥 수직 중앙 정렬 */
  justify-content: center; /* 🔥 수평 중앙 정렬 */
  height: 100%; /* 🔥 navbar 높이를 상속 */
  margin: 0;
}

/* 📌 로고 링크 (a 태그) */
.logo a {
  display: flex; /* 🔥 Flex 적용 */
  align-items: center; /* 🔥 내부 요소 수직 중앙 정렬 */
  justify-content: center; /* 🔥 내부 요소 수평 중앙 정렬 */
  height: 100%; /* 🔥 부모 높이 상속 */
  text-decoration: none;
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  letter-spacing: 1px;
}

/* 📌 로고 이미지 */
.logo-img {
  height: 100%; /* 🔥 부모 높이를 따라가도록 설정 */
  max-height: 34px; /* 🔥 너무 커지지 않도록 제한 */
  width: auto; /* 🔥 비율 유지 */
  transition: width 0.3s ease-in-out;
}

/* 메뉴 스타일 */
.menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* 메뉴 아이콘 */
.menu-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.2s ease-in-out;
}

.menu-icon:hover {
  transform: scale(1.1);
}

/* 메뉴 항목 */
.menu li {
  margin-left: 25px;
}

/* 메뉴 링크 */
.menu a {
  text-decoration: none;
  font-size: 1em;
  color: #333;
  font-weight: 500;
  transition: color 0.3s, border-bottom 0.3s;
}

.menu a:hover {
  color: #da2128;
}

/* 드롭다운 버튼 */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  align-items: center;
  margin-top: 0px;
}

/* 📌 카드 레이아웃 */
.cards {
  display: flex;
  gap: 15px;
  justify-content: start; /* 좌측 정렬 */
  flex-wrap: wrap; /* 줄바꿈 허용 */
  margin: 20px auto;
  max-width: 1200px;
  width: 100%; /* 컨테이너가 부모의 전체 너비 사용 */
}

/* 개별 카드 */
.card {
  flex: 1 1 calc(33.33% - 15px); /* 3개 카드가 한 줄에 배치 */
  max-width: 390px;
  min-width: 280px; /* 최소 너비 추가 */
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
  position: relative;
  /* ✅ 추가: 카드 내부 요소 가운데 정렬 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 카드 이미지 */
.card-image {
  width: 65%;
  aspect-ratio: 1 / 1; /* 정사각형 유지 */
  background-size: cover; /* 이미지를 컨테이너에 꽉 채우고 넘치는 부분은 잘림 */
  background-position: center center !important; /* 중앙 정렬 */
  margin: 0 auto;
  position: relative;
}

.card.ghost {
  visibility: hidden; /* 보이지 않도록 설정 */
  flex: 1 1 calc(33.33% - 15px); /* 3개 카드가 한 줄에 배치 */
  max-width: 390px;
}

/* 카드 제목 */
.card-title {
  padding-top: 14px;
  padding-bottom: 8px;
  text-align: center;
  font-size: 18px;
  color: #333;
  font-weight: bold;
}

.cards .card {
  text-decoration: none;
  color: inherit;
}

.card-title-certi {
  position: absolute; /* ✅ 이미지 위에 배치 */
  top: 70%; /* ✅ 중앙 정렬 */
  left: 50%;
  transform: translate(-50%, -50%); /* ✅ 완벽한 중앙 정렬 */
  font-size: 20px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px; /* ✅ 부드러운 모서리 */
  text-align: center;
  width: auto;
  line-height: 1.2;
}

/* 카드설명 */
.card-description {
  width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em;
  line-height: 1.5em;
  font-size: 14px;
  color: #666; /* 부가 설명은 연한 색으로 */
  line-height: 1.5;
  margin-top: 8px;
  padding-left: 3em;
  padding-right: 3em;
  letter-spacing: -0.5px;
  text-align: center;

  /* 추가된 속성 */
  word-wrap: break-word; /* 긴 단어가 있을 경우 적절히 줄바꿈 */
  overflow-wrap: break-word; /* 최신 표준 (단어 단위로 줄바꿈) */
  word-break: keep-all; /* 한글 줄바꿈 시 단어 단위로 유지 */
}

.bg-red {
  border: 2px solid #db1b23;
}

.font-white {
  color: white;
}

/*코치 📌 카드 레이아웃 */
.coa-cards {
  display: flex;
  gap: 15px;
  justify-content: start; /* 좌측 정렬 */
  flex-wrap: wrap; /* 줄바꿈 허용 */
  margin: 20px auto;
  max-width: 1200px;
  width: 100%; /* 컨테이너가 부모의 전체 너비 사용 */
}

/*코치 개별 카드 */
.coa-card {
  flex: 1 1 calc(33.33% - 15px); /* 3개 카드가 한 줄에 배치 */
  max-width: 390px;
  min-width: 280px; /* 최소 너비 추가 */
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

/*코치 카드 이미지 */
.coa-card-image {
  width: 100%;
  aspect-ratio: 9 / 9;
  background-size: cover;
  background-position: center;
}

/*코치 카드 제목 */
.coa-card-title {
  padding: 15px;
  text-align: center;
  color: black;
}

.coa-card-title.name {
  font-weight: bold;
}

.coa-subpage-title .position {
  font-size: 20px;
}
/* 📌 슬라이드 섹션 */
.slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

/* 슬라이드 컨테이너 */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

/* 개별 슬라이드 */
.slide {
  flex: 0 0 100%;
  height: auto;
  background-size: cover;
  background-position: center;
  display: none;
}
/* 활성화된 슬라이드만 표시 */
.slide.active {
  display: block; /* 활성화된 슬라이드만 보이게 설정 */
}
/* 슬라이드 네비게이션 버튼 */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
  color: #ffffff; /* 버튼 아이콘 색상 */
  border: none;
  font-size: 24px; /* 아이콘 크기 */
  cursor: pointer;
  z-index: 10;
  padding: 12px 18px; /* 버튼 크기 조정 */
  border-radius: 50%; /* 동그란 버튼 */
  width: auto; /* 부모의 width를 상속받지 않음 */
  height: auto; /* 부모의 height를 상속받지 않음 */
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.slide-btn:hover {
  background-color: rgba(255, 255, 255, 0.7); /* 호버 시 밝게 */
  color: #000000; /* 호버 시 텍스트 색상 변경 */
  transform: translateY(-50%) scale(1.1); /* 버튼 크기 살짝 확대 */
}

.prev {
  left: 20px; /* 왼쪽 버튼 위치 */
}

.next {
  right: 20px; /* 오른쪽 버튼 위치 */
}

/* 슬라이드 하단 동그라미 네비게이션 */
.slide-dots {
  position: absolute;
  bottom: 15px; /* 하단에서 15px 위 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.9); /* 활성화된 점 색상 */
  transform: scale(1.2); /* 활성화된 점 크기 확대 */
}

/* 📌 푸터 스타일 */
footer {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #ececec;
  padding: 40px 0;
  font-size: 14px;
  color: rgba(31, 38, 44, 0.8);
  margin-top: 100px;
}

/* 📌 푸터 컨테이너 */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  padding: 0 30px 30px 30px;
}

/* 📌 회사 정보 섹션 */
.footer-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0px;
}

.footer-info p {
  margin: 0;
  font-size: 14px;
}

/* 📌 연락처 정보 */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 📌 네비게이션 링크 */
.footer-nav {
  flex: 1;
  display: flex;
  flex-direction: column; /* 🔥 세로 정렬로 변경 */
  justify-content: flex-start; /* 🔥 네비게이션 링크는 위쪽 정렬 */
  align-items: flex-end; /* 🔥 우측 정렬 */
  gap: 10px;
  height: auto;
  min-height: 120px;
}
.footer-nav-links {
  display: flex;
  flex-direction: row; /* 가로 정렬 */
  gap: 24px; /* 🔥 각 링크 사이 가로 간격 */
}

.footer-nav a {
  font-size: 14px;
  color: rgba(31, 38, 44, 0.8);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #da2128;
}

.footer-family {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-family-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 38, 44, 0.08);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(245, 247, 250, 0.95)
  );
  color: rgba(31, 38, 44, 0.82);
  font-size: 13px;
  letter-spacing: 0.2px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 160px;
}

.footer-family-toggle:hover {
  border-color: rgba(218, 33, 40, 0.35);
  color: #da2128;
  box-shadow: 0 6px 16px rgba(9, 12, 16, 0.09);
}

.footer-family-toggle:focus-visible {
  outline: 2px solid rgba(218, 33, 40, 0.45);
  outline-offset: 3px;
}

.footer-family-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -2px;
}

.footer-family[data-open="true"] .footer-family-icon {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.footer-family-list {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 134px;
  padding: 0;
  margin: 0; /* 상하여백 조절하려면 이 margin 값을 수정하세요 */
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  border: 1px solid rgba(31, 38, 44, 0.08);
  box-shadow: 0 18px 40px rgba(9, 12, 16, 0.12);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: footerDropdownIn 0.18s ease forwards;
  transform-origin: top right;
  z-index: 20;
}

.footer-family-list li button {
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(31, 38, 44, 0.82);
  font-size: 13px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 0;
}

.footer-family-list li button:hover {
  background-color: rgba(218, 33, 40, 0.08);
  color: #da2128;
}

.footer-family-list li button:focus-visible {
  outline: 2px solid rgba(218, 33, 40, 0.35);
  outline-offset: 2px;
}

@keyframes footerDropdownIn {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes footerDropdownInUp {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .footer-nav {
    align-items: flex-start;
  }

  .footer-nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }

  .footer-family {
    width: 100%;
    align-items: flex-start;
  }

  .footer-family-toggle {
    min-width: unset;
    width: calc(100% - 40px);
    margin: 0 20px;
    justify-content: space-between;
  }

  .footer-family-list {
    right: auto;
    left: 20px;
    width: calc(100% - 40px);
    min-width: unset;
    top: auto;
    bottom: calc(100% + 12px);
    transform-origin: bottom left;
    animation: footerDropdownInUp 0.18s ease forwards;
  }
}

.footer-blog {
  width: 40px;
  height: 40px;
  background-image: url("/assets/img/blog.webp");
  background-image: image-set(
    url("/assets/img/blog.webp") type("image/webp")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-self: flex-end; /* 🔥 네비게이션 컨테이너에서 가장 아래 배치 */
  margin-top: auto; /* 🔥 네비게이션 링크 아래로 자동 이동 */
}

/* 📌 푸터 하단 */
.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #ececec;
  font-size: 12px;
}

/* 📌 서브페이지 레이아웃 */
.subpage-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0px auto;
  padding: 0px 20px 60px 20px;
  flex-direction: column; /* 네비게이터와 콘텐츠를 세로 정렬 */
}

.subpage-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
/* 📌 좌측 이미지 영역 */
.subpage-left {
  flex: 1;
  min-width: 300px;
  max-width: 30%;
  height: 300px;
  position: sticky; /* 스크롤 시 고정 */
  top: 170px; /* 상단에서 20px 떨어진 위치에 고정 */
  background-color: white;
}

.subpage-left-tag {
  color: #da2128;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 0px;
  background-color: #fff;
}

.subpage-image {
  position: relative; /* ✅ 부모 요소를 상대 위치로 설정 */
  width: 100%; /* ✅ 부모 요소 크기 지정 */
  height: 100%; /* ✅ 부모 크기 유지 */
  background-size: cover; /* ✅ 배경 이미지를 가득 채우도록 설정 */
  background-position: center; /* ✅ 이미지 중앙 정렬 */
}

.subpage-card-title-certi {
  position: absolute; /* ✅ 부모(.subpage-image) 내부에서만 이동 */
  top: 65%; /* ✅ 원하는 위치 조정 */
  left: 50%;
  transform: translate(-50%, -50%); /* ✅ 정확한 중앙 정렬 */
  font-size: clamp(16px, 2vw, 24px); /* 최소 16px, 기본 2vw, 최대 24px */
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
  width: auto;
  line-height: 1.2;
}

/* 썸네일 박스 스타일 */
.thumbnail-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.thumbnail {
  width: 60px; /* 60px; */
  height: 60px; /* 60px; */
  margin: 5px;
  background-size: 140%; /* cover */
  background-position: center;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
  border: 2px solid #da2128; /* 선택된 썸네일 강조 */
  box-shadow: 0 0 5px rgba(218, 33, 40, 0.5);
}
/* 📌 우측 상세 내용 영역 */
.subpage-right {
  flex: 1;
  min-width: 300px;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.subpage-right > * {
  margin-block-start: 0; /* 상단 마진 제거 */
  margin-block-end: 0; /* 하단 마진 제거 */
}

.coa-subpage-title {
  background-color: white;
  color: #333;
  font-size: 2em;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 20px;
  text-align: center;
}
.subpage-title {
  color: #333;
  font-size: 20px;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: left;
}
.subpage-description {
  font-size: 1em;
  margin-top: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.subpage-list {
  padding-inline-start: 0; /* 브라우저 기본 스타일 제거 */
  list-style-type: disc;
  padding-right: 10px; /* 스크롤바와 여백 확보 */
  margin-bottom: 20px;
}

.subpage-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 📌 문의하기 버튼 (Floating Button) */
.subpage-btn {
  position: fixed;
  bottom: 20px; /* 🔥 하단에서 20px 여백 */
  right: 20px; /* 🔥 우측에서 20px 여백 */
  width: 64px;
  height: 64px;
  background: #da2128;
  color: #ffffff;
  font-size: 12px;
  font-weight: 200;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(31, 38, 44, 0.16);
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  margin: 0;
  padding: 0;
}

/* 📌 버튼 호버 효과 */
.subpage-btn:hover {
  background-color: #c81d23;
  transform: scale(1.05);
}

/* 📌 버튼 아이콘 */
.subpage-btn::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: url("/assets/img/contact.webp") no-repeat center;
  background: image-set(url("/assets/img/contact.webp") type("image/webp"))
    no-repeat center;
  background-size: contain;
  margin-bottom: 5px;
}

/* 📌 하단 카드 섹션 */
.subpage-cards {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
}

.subpage-cards-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

/* 📌 카드 컨테이너 (가운데 정렬) */
.subpage-cards-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  display: flex; /* 컨테이너를 플렉스 박스로 설정 */
  justify-content: center; /* 가운데 정렬 */
  align-items: center; /* 수직 정렬 (필요한 경우) */
}

/* 📌 카드 컨테이너 내부 */
.subpage-cards-container {
  display: flex;
  gap: 30px; /* 카드 간 간격 */
  transition: transform 0.3s ease-in-out;
  justify-content: center; /* 카드들을 컨테이너 안에서 가운데 정렬 */
  padding: 20px 0;
}
/* 📌 카드 */
.subpage-card {
  flex: 0 0 250px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.subpage-card:hover {
  transform: scale(1.05);
}

/* 📌 카드 이미지 */
.subpage-card-image {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: #333;
}

/* 📌 카드 제목 */
.subpage-card-title {
  padding: 10px;
  font-size: 1em;
  font-weight: bold;
}

/* 📌 모달 스타일 */
.modal {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1002;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex !important; /* 활성 상태에서 표시 */
}

.modal-content {
  background-color: #ffffff;
  padding: 30px 20px; /* 모달 내부 패딩 축소 */
  border-radius: 12px; /* 모달의 둥근 모서리 */
  width: 90%;
  height: 75%;
  max-width: 580px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  font-size: 0.8em;
  position: relative;
  max-height: 90vh; /* 화면 높이의 90%로 제한 */
  overflow-y: auto; /* 세로 스크롤 활성화 */
}

#message {
  font-size: 1.2em;
  resize: none; /* 사용자가 크기 조정하지 못하도록 설정 */
  transition: border-color 0.3s ease-in-out;
}

.modal-content h1 {
  margin: 10px 0; /* 위아래 10px, 좌우 0px */
  text-align: center;
}

.modal-content table {
  width: 100%; /* 테이블 너비 */
  border-collapse: collapse; /* 셀 경계선 합치기 */
  margin-bottom: 20px; /* 테이블 아래 여백 */
  border-radius: 8px;
}

.modal-content th,
.modal-content td {
  border: 1px solid #ddd; /* 셀 테두리 */
  padding: 10px; /* 셀 내부 여백 */
  text-align: center; /* 텍스트 가운데 정렬 */
}

.modal-content th {
  background-color: #f4f4f4; /* 헤더 배경색 */
  font-weight: bold; /* 헤더 폰트 굵게 */
}

/* 스크롤바 전체 영역 */
.modal-content::-webkit-scrollbar {
  width: 10px; /* 세로 스크롤바 너비 */
  height: 10px; /* 가로 스크롤바 높이 */
}

/* 스크롤바 트랙 (배경) */
.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1; /* 트랙 배경색 */
  border-radius: 12px; /* 모달과 동일한 둥근 모서리 */
}

/* 스크롤바 자체 */
.modal-content::-webkit-scrollbar-thumb {
  background: #888; /* 스크롤바 색상 */
  border-radius: 12px; /* 둥근 모서리 */
}

/* 스크롤바 위에 마우스를 올렸을 때 */
.modal-content::-webkit-scrollbar-thumb:hover {
  background: #555; /* 호버 시 스크롤바 색상 */
}

.modal-content .close {
  position: absolute; /* 닫기 버튼 오른쪽 상단에 위치 */
  top: 10px;
  right: 10px;
  width: auto;
  height: auto;
  padding: 0;
  margin-top: 0;
  background: transparent;
  border: none;
  font-size: 20px; /* 크기 증가 */
  color: #555;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
  line-height: 1;
}

.modal-content .close:hover {
  color: #333; /* 마우스 오버 시 색 변경 */
  background: transparent;
}
textarea#message {
  margin-bottom: 10px; /* 기본 하단 간격 축소 */
}
.privacy-header {
  margin-top: 10px; /* 개인정보 수집 섹션 상단 간격 축소 */
}

/* 📌 드롭다운 스타일 */
select {
  width: 100%;
  padding: 10px 10px; /* 여백 축소 */
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px; /* 간격 축소 */
  background-color: #f8f8f8;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
}

select option {
  appearance: none;
  background-color: #f8f8f8;
}

select option:checked {
  background-color: #da2128 !important; /* 드롭다운 배경 변경 */
  color: white !important;
}

select:focus {
  border-color: #da2128;
}

/* 📌 텍스트 입력창 스타일 */
textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px 10px; /* 여백 축소 */
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px; /* 간격 축소 */
  background-color: #f8f8f8;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box; /* 패딩과 보더를 width에 포함 */
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: #da2128;
  background-color: #ffffff;
  box-shadow: 0 0 5px rgba(218, 33, 40, 0.5); /* 살짝 붉은 그림자 효과 */
}

/* 📌 버튼 스타일 */
button {
  width: 100%;
  padding: 12px 16px; /* 버튼 내부 여백 축소 */
  font-size: 16px;
  color: #ffffff;
  background-color: #da2128;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 15px; /* 버튼과 개인정보 동의란 간격 추가 */
}

button:hover {
  background-color: #ad0000;
}
/* 기본 버튼 스타일 */
.submit-button {
  background-color: #da2128; /* 기본 빨간색 */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* 비활성화된 상태 */
.submit-button:disabled {
  background-color: #b0b0b0; /* 회색 */
  cursor: not-allowed;
}

.filter-container {
  max-width: 1200px; /* 고정된 최대 너비 */
  margin: 0 auto; /* 좌우 중앙 정렬 */
  padding: 0 15px; /* 좌우 기본 여백 */
}

#pageTabs {
  list-style: none; /* 불릿 제거 */
  display: flex; /* Flexbox 사용 */
  flex-direction: row; /* 가로 정렬 */
  justify-content: left; /* 좌측 정렬 */
  font-size: 12px; /* 글씨 크기 */
  padding-left: 0; /* 좌측 여백 제거 */
  margin-top: 8px;
  margin-bottom: 8px; /* 아래 여백 */
  align-items: center;
}

#pageTabs .nav-item {
  margin-right: 8px; /* 탭 간 간격
   */
}

#pageTabs .nav-link {
  padding: 4px 8px; /* 버튼 내부 여백 */
  border-radius: 4px; /* 모서리 둥글게 */
  width: auto; /* 글자 길이에 맞게 너비 조정 */
  display: inline-block; /* 너비 조정을 위한 설정 */
  text-align: center; /* 텍스트 가운데 정렬 */
}

#pageTabs .nav-link.active {
  background-color: #df011a; /* 활성화된 탭 배경색 */
  color: white; /* 활성화된 탭 텍스트 색상 */
  border-color: #df011a; /* 활성화된 탭 테두리 색상 */
}

#pageTabs .nav-link:hover {
  background-color: #f8f9fa; /* 마우스 오버 시 배경색 */
  color: #ad0000; /* 마우스 오버 시 텍스트 색상 */
}
/* 🚀 반투명한 검정 배경 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* ✅ 반투명 검정 */
  z-index: 1999; /* ✅ successModal보다 낮지만, 다른 요소들보다 높게 */
}
/* 🚀 새롭게 추가할 "전송 성공" 모달 스타일 */
.success-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  color: black;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 2000;
}

/* 📌 Coach 페이지 전용 CSS */

.container {
  max-width: 1200px; /* ✅ 최대 너비 제한 */
  width: 100%;
  display: flex;
  justify-content: left; /* ✅ 내부 요소를 좌측 정렬 */
  align-items: center;
  margin: 0 auto; /* ✅ 부모 컨테이너를 화면 중앙 배치 */
}

#coachPageTabs {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: left; /* ✅ 좌측 정렬 유지 */
  font-size: 14px;
  padding-left: 0;
  margin: 0px;
  width: 100%;
}

#coachPageTabs .nav-item {
  margin-right: 8px;
}

#coachPageTabs .nav-link {
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

#coachPageTabs .nav-link.active {
  background-color: #df011a;
  color: white;
  border-color: #df011a;
}

#coachPageTabs .nav-link:hover {
  background-color: #f8f9fa;
  color: #ad0000;
}

/* 콘텐츠 영역 */
.coach-content {
  display: none; /* 기본적으로 숨김 */
}

.coach-content.active {
  display: flex; /* 활성화된 콘텐츠를 Flexbox로 설정 */
  flex-wrap: wrap; /* 줄바꿈 허용 */
  gap: 15px; /* 카드 간 간격 */
}

/* 📌 개선된 테이블 스타일 */
.coach-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  background-color: #ffffff; /* 테이블 배경색 */
  border-radius: 8px; /* 둥근 모서리 */
  overflow: hidden; /* 둥근 테두리 내부에서 잘리도록 설정 */
}
/* 📌 테이블 컨테이너 스타일 */
.coach-table-wrapper {
  margin: auto; /* 상하 여백 */
  max-width: 1200px; /* 최대 너비 */
  overflow-x: auto; /* 가로 스크롤 허용 */
  background-color: #f8f9fa; /* 선택적 배경색 */
  border-radius: 8px; /* 선택적 둥근 모서리 */
  margin-top: 20px;
  margin-bottom: 40px;
}

.coach-table th,
.coach-table td {
  border: 1px solid #ddd; /* 셀 테두리 */
  padding: 12px; /* 여백 조정 */
  text-align: left; /* 텍스트 정렬 */
  font-size: 14px; /* 폰트 크기 */
  color: #333; /* 텍스트 색상 */
  text-align: center;
}

.coach-table th {
  background-color: #333; /* 헤더 배경색 */
  color: #ffffff; /* 헤더 텍스트 색상 */
  font-weight: bold;
  text-transform: uppercase; /* 대문자로 표시 */
}

.coach-table tr:nth-child(even) {
  background-color: #f9f9f9; /* 짝수 행 배경색 */
}

.coach-table tr:hover {
  background-color: #f1f1f1; /* 호버 시 배경색 변경 */
}

.coach-table td {
  vertical-align: middle; /* 텍스트 수직 정렬 */
}

.coach-table th:first-child,
.coach-table td:first-child {
  border-left: none; /* 첫 번째 열 왼쪽 테두리 제거 */
}

.coach-table th:last-child,
.coach-table td:last-child {
  border-right: none; /* 마지막 열 오른쪽 테두리 제거 */
}

/* 콘텐츠 섹션 스타일 */
#content-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-item {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-text {
  color: white;
  font-size: 24px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
}

/* 문의하기 섹션 스타일 */
#contact-section {
  background-color: #f8f8f8;
  padding: 40px 20px;
  text-align: center;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
}

#contact-form label {
  display: block;
  margin: 10px 0 5px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#contact-form button {
  background-color: #df011a;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* 광고 배너 텍스트 스타일 */
.intro-top-banner {
  width: 100%;
  display: flex;
  justify-content: center; /* ✅ 가운데 정렬 */
  align-items: center; /* ✅ 세로 중앙 정렬 */
  padding: 0px; /* ✅ 기존 padding 제거 */
  box-sizing: border-box; /* ✅ 패딩 포함하여 크기 균형 유지 */
}

.intro-top-banner img {
  width: 100%; /* 배너가 컨테이너 크기에 맞게 조정 */
  height: auto; /* 이미지 비율 유지 */
}
.intro-container {
  display: flex;
  align-items: center; /* ✅ 세로 중앙 정렬 */
  justify-content: center; /* ✅ 가로 중앙 정렬 */
  max-width: 1200px; /* ✅ 최대 너비 설정 */
  width: auto; /* ✅ `width: 100%` 제거하여 max-width 영향 최소화 */
  gap: 20px; /* ✅ 이미지와 텍스트 사이 간격 */
  margin: 0 auto; /* ✅ 가운데 정렬 */
  box-sizing: border-box; /* ✅ 패딩 포함하여 균형 유지 */
}

.intro-image {
  flex: 1; /* ✅ 왼쪽 배너 */
  max-width: 50%; /* ✅ 너비 조정 */
}

.intro-image img {
  width: 100%; /* ✅ 부모 크기에 맞게 이미지 조정 */
  height: auto;
  display: block;
}

.intro-text {
  flex: 1; /* ✅ 오른쪽 텍스트 */
  text-align: left;
  max-width: 50%;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* 셀 스타일 */
.subpage-table td {
  border: 1px solid #ccc; /* 기본 셀 테두리 */
  padding: 10px 15px; /* 셀 안쪽 여백 */
}

/* 1열 스타일 */
.subpage-table td:first-child {
  background-color: #000; /* 검정색 배경 */
  color: #fff; /* 흰 글씨 */
  font-weight: bold;
}
/* 행 스타일 */
.subpage-table tr:nth-child(even) {
  background-color: #f9f9f9; /* 짝수 행에 흰 배경 */
}

.subpage-table tr:nth-child(odd) {
  background-color: #fff; /* 홀수 행에 기본 배경 */
}
/* ID로 범위 제한 */
#leadership-list-container {
  display: flex; /* 좌우 정렬 */
  gap: 5px; /* 이미지와 텍스트 사이 간격 */
  align-items: flex-start; /* 상단 정렬 */
  margin-top: 20px;
  border-top: 1px solid #ddd; /* 위쪽 보더 */
  border-bottom: 1px solid #ddd; /* 아래쪽 보더 */
  padding: 10px 0; /* 보더와 내용 사이 간격 */
  margin: 20px 0; /* 보더와 외부 요소 간 간격 */
}

#leadership-list-container .subpage-list-image {
  aspect-ratio: 1 / 1; /* 1:1 비율 유지 */
  width: 200px;
  max-height: 200px; /* 최대 높이 제한 */
  overflow: hidden;
}

#leadership-list-container .subpage-list-image img {
  height: 100%; /* 컨테이너 높이에 맞게 이미지 조정 */
  width: auto; /* 비율 유지 */
  object-fit: cover; /* 이미지를 컨테이너에 꽉 차게 조정 (비율 유지) */
  border-radius: 8px; /* 둥근 모서리 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
}

#leadership-list-container .subpage-list-text {
  flex: 1; /* 남은 공간을 사용 */
  font-size: 13px;
}

#leadership-list-container .subpage-list-text ul {
  list-style-type: disc; /* 디스크 모양 리스트 */
  padding-inline-start: 20px; /* 리스트 들여쓰기 */
  margin: 0;
  line-height: 1.5; /* 줄 간격 조정 */
}

#leadership-list-container .subpage-list-text li {
  margin-bottom: 0px; /* 리스트 항목 간 여백 제거 */
}

/* 제목 스타일 */
.list-heading {
  font-weight: bold; /* 볼드체 */
  list-style-type: none; /* 좌측 점 제거 */
  margin-left: 15px;
  margin-top: 10px;
  margin-bottom: 0px;
}

.project-tag {
  font-weight: bold;
  margin-top: 10px;
  font-size: 1.15em;
}
.list-heading-2 {
  font-weight: bold; /* 볼드체 */
  list-style-type: none; /* 좌측 점 제거 */
  margin-left: -15px;
  margin-top: 0px; /* 위쪽 간격 제거 */
  margin-bottom: 10px; /* 아래쪽 간격 */
  border-bottom: 1px solid #ccc; /* 줄 색상과 두께 설정 */
}

.list-group {
  border-top: 1px solid #f1f3f5;
  margin-top: 0px; /* 위쪽 간격 제거 */
  margin-bottom: 0px;
  flex: 1;
  width: 100%;
}

.list-group h2 {
  color: #da1218;
}

/* 특정 ID에만 적용 */
#report-list-text {
  align-items: flex-start; /* 상단 정렬 */
  padding: 10px 0; /* 보더와 내용 사이 간격 */
  margin: 5px 0; /* 보더와 외부 요소 간 간격 */
  font-size: 13px;
}
/* 특정 ID에만 적용 */
#report-list-text2 {
  align-items: flex-start; /* 상단 정렬 */
  border-top: 1px solid #ddd; /* 위쪽 보더 */
  border-bottom: 1px solid #ddd; /* 아래쪽 보더 */
  padding: 10px 0; /* 보더와 내용 사이 간격 */
  margin: 5px 0; /* 보더와 외부 요소 간 간격 */
  font-size: 13px;
}
/* 특정 항목 하이픈과 들여쓰기 적용 */
.custom-indent {
  list-style-type: "- "; /* 하이픈으로 변경 */
  margin-left: 10px; /* 들여쓰기 추가 */
}
.subpage-list-text {
  line-height: 1.8; /* 줄 간격을 늘리려면 1.5~2 사이 값을 사용 */
}
.inquiry {
  margin-top: 16px; /* 위쪽 여백 추가 */
  font-size: 14px; /* 약간 큰 글씨 */
}
.inquiry a {
  color: #007bff; /* 링크 색상 */
  text-decoration: none; /* 밑줄 제거 */
}
.inquiry a:hover {
  text-decoration: underline; /* 호버 시 밑줄 추가 */
}
.coach-table th {
  cursor: pointer;
  user-select: none;
  color: white;
  background-color: #333; /* 헤더 배경색 */
  padding: 10px;
  border-bottom: 2px solid #ddd; /* 하단 경계선 */
}
.coach-table th:hover {
  background-color: #333; /* 마우스 오버 시 색상 */
}
/* 📌 네비게이터 스타일 */
.breadcrumb-nav {
  position: sticky;
  top: 10px;
  z-index: 1000;
  background-color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: " > "; /* 구분 기호 */
  padding: 0 5px;
  color: #6c757d; /* 구분 기호 색상 */
}

.breadcrumb-item a {
  text-decoration: none;
}
.breadcrumb-item a {
  text-decoration: none;
  color: #000; /* 기본 텍스트 색상 */
}

.breadcrumb-item a:visited {
  color: #000; /* 방문한 링크도 기본 색상 유지 */
}

@media (min-width: 992px) {
  .breadcrumb-nav {
    top: 10px; /* header + 여유 */
  }
}

@media (max-width: 768px) {
  .subpage-container {
    padding: 0 16px 40px 16px;
  }

  .subpage-content {
    flex-direction: column;
  }

  .subpage-left {
    position: static;
    top: auto;
    max-width: 100%;
    height: 220px;
  }

  .breadcrumb-nav {
    position: static;
    margin-bottom: 12px;
  }

  .subpage-right {
    max-width: 100%;
    gap: 12px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .subpage-title {
    font-size: 18px;
  }

  .list-heading {
    font-size: 16px;
    margin-left: 0;
  }

  .subpage-list-text {
    font-size: 14px;
  }

  .subpage-list-text li {
    font-size: 14px;
  }
}
/* 입력 필드 컨테이너 - 한 줄 정렬 */
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* 필드 간격 */
  margin-bottom: 10px; /* 아래 여백 */
}

/* 입력 필드 크기 조정 */
.form-row label {
  flex: 1; /* 동일한 비율로 배분 */
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.form-row input,
.form-row select {
  flex: 2; /* 입력 필드 크기 조정 */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* 휴대폰 번호를 email과 같은 줄에 배치 */
.phone-input {
  flex: 2;
}
/* label과 input을 세로 배치 */
.input-group {
  display: flex;
  flex-direction: column; /* label을 input 위로 배치 */
  flex: 1; /* 동일한 너비로 배분 */
}

/* 입력 필드 스타일 */
.input-group input,
.input-group select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.content-style-none {
  list-style-type: none;
}
/* 광고 배너 스타일 */
.top-banner {
  position: relative; /* 텍스트를 이미지 위에 겹치기 위해 설정 */
  width: 100%; /* 배너가 전체 너비를 차지 */
  max-width: 1200px; /* 배너 최대 크기 설정 */
  margin: 0 auto; /* 화면 중앙에 배치 */
  text-align: center;
  margin-bottom: 20px; /* 배너와 아래 카드 사이 간격 */
}

.top-banner img {
  width: 100%; /* 배너가 컨테이너 크기에 맞게 조정 */
  height: auto; /* 이미지 비율 유지 */
  display: block; /* 하단 여백 제거 */
}

/* 광고 배너 텍스트 스타일 */
.top-text {
  position: absolute; /* 텍스트를 이미지 위에 배치 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 정확한 중앙 정렬 */

  color: white; /* 텍스트 색상 */
  font-size: clamp(15px, 5vw, 36px);
  font-weight: bold; /* 굵은 글씨 */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* 가독성을 위한 텍스트 그림자 */

  white-space: nowrap; /* 자동 줄바꿈 제거 (중앙 정렬 시 불필요한 줄바꿈 방지) */
  width: auto; /* 텍스트 크기에 맞게 조정 */
  text-align: center;
  padding: 10px; /* 약간의 패딩 추가 */
}
