/* style.css */

a.link-hover {
  position: relative;
  text-decoration: none;
  color: #333;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

a.link-hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #005cb9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

a.link-hover:hover::after {
  transform: scaleX(1);
}

a.link-hover:hover {
  color: #005cb9;
}

  @keyframes fly-in {
    0% {
      opacity: 0;
      transform: translateX(-50px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .fly-in-text {
    animation: fly-in 1s ease-out forwards;
  }

  .underline-animate {
  position: relative;
  display: inline-block;
  font-size: 1.78rem;
  font-family: 'Gowun Batang', serif;
  color: black;
  overflow: hidden;
}

.underline-animate::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #ffffffef;
  transform: translateX(-100%);
  animation: underlineSlide 2s infinite;
}

@keyframes underlineSlide {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}




/* CSS */
.program-buttons-horizontal {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* 모바일 대응 */
  margin: 40px 0;
  margin-top: -15px;
}

.btn-program {
  flex: 1 1 500px;
  padding: 20px 30px;
  font-size: 1.4rem;
  width: 600px;
  font-weight: bold;
  font-family: 'Pretendard', sans-serif;
  text-align: center;
  border-radius: 12px;
  background-color: #f5f7fa;
  color: #1a3c74;
  border: 2px solid #d2d9e4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-program:hover {
  background-color: #005cb9;
  color: #ffffff;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 92, 185, 0.2);
  border-color: #005cb9;
}


.health-check h2 {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a3c74;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 10px;
  text-align: center;
  
}

/* 밑줄 효과 */
.health-check h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #005cb9, #1a3c74);
  margin: 10px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* 호버 시 밑줄 길이 변화 */
.health-check h2:hover::after {
  width: 80%;
}




.health-check {
  background-image: url('http://gaeposns.dothome.co.kr/i/program_01.png');
  color: #333;
  padding: 40px 20px;
  font-family: 'GmarketSansMedium', sans-serif;
  width: 900px;
}
.checkup-cards {
  display: flex;
  gap: 20px;
  justify-content: left;
  width: 900px;
}

.card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  transform: translateY(0);
  will-change: transform;
  padding-top: 70px; /* h3가 차지할 공간 확보 */
  padding-bottom: 60px; /* price와 겹치지 않게 */
  width: 400px;
}

.fixed-h3 {
  position: absolute;
  top: 15px;
  left: 50%;
  

  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Pretendard', sans-serif;
  color: #005cb9;
  margin: 0;
  text-align: center;
}

.card-category {

  background-color: transparent;
  border-radius: 16px;
  padding: 24px;
  font-family: 'GmarketSansMedium', sans-serif;
} 

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}


.card h3 {
  color: #005cb9;

}
.price span {
  text-decoration: line-through;
  color: #999;
}

.price {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  font-weight: bold;
  font-size: 1.1rem;
  color: salmon;
  padding: 4px 10px;
  border-radius: 8px;
}

.price strong {
  color: salmon;
}
.option-group {
  margin-top: 30px;
}
.option-group h4 {
  color: #005cb9;
  border-bottom: 2px solid #eee;
  margin-bottom: 10px;
}

.card p {
  text-align: center;
  font-size: 1rem;
  width: 300px;
    margin-top: 4px;
  margin-bottom: 4px;
  line-height: 1.4;
        
}

.card-category h4 {
  font-family: 'Gowun Batang', 'Georgia', serif;
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  background: linear-gradient(to right, #5972a7,#003366 );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  position: relative;
  margin-bottom: 20px;
  
  
}

/* 아래에 럭셔리 라인 추가 */
.card-category h4::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(to right,#5972a7,#003366); /* 골드 계열 */
  border-radius: 2px;
}

.card2 {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  transform: translateY(0);
  will-change: transform;
  position: relative;
  padding-top: 70px; /* h3가 차지할 공간 확보 */
  padding-bottom: 60px; /* price와 겹치지 않게 */
  width: 400px;
}

.card2-category {
  background-color: transparent;
  border-radius: 16px;
  padding: 24px;
  font-family: 'GmarketSansMedium', sans-serif;
} 

.card2:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card2-category h4 {
  font-family: 'Gowun Batang', 'Georgia', serif;
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  background: linear-gradient(to right, #5972a7,#003366 );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  position: relative;
  margin-bottom: 20px;
  
}

/* 아래에 럭셔리 라인 추가 */
.card2-category h4::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(to right,#5972a7,#003366); /* 골드 계열 */
  border-radius: 2px;
}

.card2 p {
  text-align: center;
  font-size: 0.9rem;
  width: 180px;
    margin-top: 4px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.card2 h3 {
  color: #005cb9;
  font-size: 1.2rem;
}

.health-check2 {
  background-image: url('http://gaeposns.dothome.co.kr/i/program_05.png');
  color: #333;
  padding: 40px 20px;
  font-family: 'GmarketSansMedium', sans-serif;
  width: 900px;
}

.health-check2 h2 {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2f5933;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 10px;
  text-align: center;
}

/* 밑줄 효과 */
.health-check2 h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #348c70, #2f5933 );
  margin: 10px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* 호버 시 밑줄 길이 변화 */
.health-check2 h2:hover::after {
  width: 80%;
}

.program-card {
  width: 280px;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  margin: 12px;
}

.program-card:hover {
  transform: translateY(-6px);
}

/* 베이직 */
.program-card.basic {
  background-color: rgba(245, 253, 245, 0.6);
  border: 1px solid #d5e8d4;
  color: #3e5e4d;
  width: 800px;
}

/* 프리미엄 */
.program-card.premium {
  background: linear-gradient(to bottom, rgba(231, 245, 235, 0.7), rgba(255, 255, 255, 0.7));
  border: 1px solid #b2d8c9;
  color: #2f6652;
  width: 800px;
}

/* 프레지던스 */
.program-card.president {
  background: linear-gradient(to bottom, #fffce9, #ffffff);
  border: 1px solid #d4af376b;
  color: #8c6c00;
  width: 800px;
}

.exam-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  text-align: left;
  font-size: 0.95rem;
  color: #2e2e2e;
  line-height: 1.7;
  border-top: 1px dashed #ddd;
  padding-top: 15px;
}

.exam-list li::before {
  content: "✔";
  margin-right: 8px;
  color: #5ba88b; /* 민트/그린 톤 포인트 */
}

.program-card {
  position: relative;
  padding-top: 45px; /* h3가 차지할 공간 확보 */

  /* 기타 스타일들 */
}

.card-title {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: #2f5933;
  margin: 0;
  text-align: center;
  font-family: 'gowun batang', sans-serif;
}

.checkup-group h4 {
  font-size: 1.1rem;
  color: #2f5933;
  margin-top: 20px;
  margin-bottom: 8px;
  border-left: 4px solid #cce3b2;
  padding-left: 10px;
}

.checkup-group ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.checkup-group li {
  padding: 4px 0;
  border-bottom: 1px dashed #e2e2e2;
  font-size: 0.95rem;
  color: #333;
}

.exam-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 15px;
  flex-wrap: wrap;
}

.exam-category {
  min-width: 100px;
  padding: 10px 16px;
  background-color: #cce3b2;  /* 찐한 연두 */
  color: #362c2c;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
  font-family: gowun batang;
}

.exam-category2 {
   min-width: 100px;
  padding: 10px 16px;
  background-color: #c8ce6d;  /* 찐한 연두 */
  color: #362c2c;
  font-weight: 600;
  border-radius: 12px;
  font-size: 0.8rem;
  text-align: center;
  font-family: pretendard;   
  gap: 5px;
}

.exam-category3 {
   min-width: 100px;
  padding: 10px 16px;
  background-color: #e6c928;  /* 찐한 연두 */
  color: #362c2c;
  font-weight: 600;
  border-radius: 12px;
  font-size: 0.8rem;
  text-align: center;
  gap: 5px;
  font-family: pretendard;   
}


.exam-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-family: Pretendard;
}

.exam-box {
  background-color: rgba(255, 255, 255, 0.5); /* 반투명 */
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  white-space: nowrap;
}


.box-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 30px;
}

.info-box {
  width: 150px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(240, 245, 249, 0.85));
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  transition: all 0.3s ease;
}

.info-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #eef6fb, #ffffff);
}

.info-box img {
  width: 100px;
  object-fit: contain;
  margin-bottom: 16px;
}

.info-box h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 8px;
  font-family: gowun batang;
}

.info-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 0.8;
}


.ex:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #eef6fb, #ffffff);
}

 img {
            cursor: pointer;
            margin: 10px;
            transition: transform 0.3s ease; /* 호버 시 변환 효과 */
        }

        /* 이미지 위에 마우스 올렸을 때 확대 효과 */
        img:hover {
            transform: scale(2); /* 이미지를 10% 확대 */
        }