/* 메인헤더 border 없애기 */
.main-header {
    box-shadow: none;
}

.page-header {
    text-align: center;
    margin : 4em auto;
    max-width: 80%;
    padding: 1em;
    background: linear-gradient(90deg, var(--color-green), var(--color-blue));
    color: white;
    border-radius: 0.5em;
    box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 1.8em;
    margin:0;
    padding:0;
}

/* 상단 nav */
.section-nav {
    position: sticky;
    top: 4em;
    background-color: white;
    border-bottom: 0.1em solid #ddd;
    padding: 1em 0;
    z-index: 999;
    box-shadow: 0 0.125em 0.25em rgba(0,0,0,0.1);
    font-weight: 500;
    border-top: 0.1em solid #494747;
}

.section-nav ul {
    display: flex;
    justify-content: center;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-nav ul li a {
    text-decoration: none;
    color: rgb(90, 87, 87);
    font-size: 1em;
    transition: color 0.3s ease;
}

.section-nav ul li a:hover {
    color: var(--color-blue);
}


/* main 영역 */
/* .main-content {
    padding:0 5em;
} */


/* 각 컨텐츠 영역 */
.content-section {
    max-width: 75%;
    margin: 4em auto;
    padding: 2em 3em;
    background-color: #f9f9f9;
    border-radius: 1em;
    box-shadow: 0 0.2em 0.4em rgba(0,0,0,0.1);
}

.content-section h2 {
    font-size: 2em;
    margin-bottom: 1em;
    color: var(--color-blue);
}

.content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--color-text);
}

/* 심리검사 설명 */
.section-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 2em;
    color: var(--color-text);
}

/* 사진 */

.top-banner-image {
    display: block;
    width: 100%;
    height: 35em;  /* 높이 원하는 값으로 설정 */
    object-fit: cover;
    object-position: center;
}





/* 심리검사 카드 영역 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.test-card {
    flex: 1 1 25%;
    max-width: 40%;
    background-color: white;
    border-radius: 1em;
    box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.1);
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* text-align: center; */
}

.test-card img {
    width: 5em;
    height: 5em;
    object-fit: contain;
    margin-bottom: 1em;
}

.test-card h3 {
    color: var(--color-blue);
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.test-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}



/* 기대효과 */

.benefit-section {
    background-color: #f4f7f6;
}

.benefit-section .section-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 2em;
    color: var(--color-text);
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 1em;
    box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.1);
    padding: 0.8em 0.8em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-list li:hover {
    transform: translateY(-0.1em);
    box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.15);
}

.benefit-number {
    flex-shrink: 0;
    width: 1.7em;
    height: 1.7em;
    background-color: var(--color-blue);
    color: white;
    font-size: 1em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1em;
}

.benefit-text {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
}



/* 박사소개 */
.researcher-section {
    background-color: #f4f7f6;
}

.researcher-content {
    padding-left : 3em;
    padding-right : 3em;

    font-size: 1em;
    line-height: 1.8;
    color: var(--color-text);
    text-align: justify;
}

.researcher-photo {
    float: left;
    width: 12em;
    margin: 0 1.5em 1em 0;
    border-radius: 0.5em;
    box-shadow: 0 0.2em 0.4em rgba(0,0,0,0.1);
}

.researcher-content p {
    margin: 0;
}


@media (max-width: 768px) {
    /* 네비게이션 세로 정렬 */
    .section-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
    }

    .section-nav ul span {
        display: none;
    }

    /* 본문 폭 확장 */
    .content-section {
        max-width: 95%;
        margin: 2em auto;
        padding: 1.2em;
    }

    .content-section h2 {
        font-size: 1.4em;
    }

    .content-section p,
    .section-description {
        font-size: 1em;
        line-height: 1.6;
    }

    /* 카드 1열 배치 */
    .card-container {
        flex-direction: column;
        gap: 1.5em;
    }

    .test-card {
        max-width: 100%;
        padding: 1.2em;
    }

    .test-card img {
        width: 4em;
        height: 4em;
    }

    /* 연구자 사진 중앙 배치 */
    .researcher-photo {
        float: none;
        display: block;
        margin: 0 auto 1em auto;
        width: 10em;
    }

    .researcher-content {
        padding: 0 1em;
        text-align: left;
    }
}



/* Roadmap (top banner) */
.roadmap-bar {
  background: transparent;                 /* 상단 바 배경 제거 */
  border: 0;                               /* 상단/하단 선 제거 */
  box-shadow: none;
}

/* .content-section 톤을 그대로 적용한 패널 */
.roadmap-inner {
  max-width: 75%;
  margin: 2em auto;                        /* 섹션들과 동일 간격 */
  padding: 2em 3em;                        /* content-section padding */
  background-color: #f9f9f9;               /* 동일 배경 */
  border-radius: 1em;                      /* 동일 라운드 */
  box-shadow: 0 0.2em 0.4em rgba(0,0,0,0.1);/* 동일 그림자 */
}

/* 헤더: 페이지 h2 톤과 유사하게 */
.roadmap-head {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-bottom: 1em;
}
.roadmap-title {
  background: none;
  color: var(--color-blue);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.25em;       /* h2 보다 살짝 작게 */
  font-weight: 700;
}
.roadmap-sub {
  color: var(--color-text);
  opacity: 0.9;
  font-size: 1em;
}

/* 스텝 리스트: benefit-list 느낌으로 */
/* Roadmap steps: 1줄 가로 배치 */
.roadmap-steps {
  display: flex;
  justify-content: center;
  gap: 3em;       /* 박스 사이 간격 */
  flex-wrap: wrap;  /* 화면 좁아지면 자동 줄바꿈 */
}

.roadmap-step {
  display: flex;
  flex-direction: column;    /* 세로 정렬: 위(제목), 아래(설명) */
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 0.8em;
  box-shadow: 0 0.1em 0.3em rgba(0,0,0,0.1);
  padding: 0.8em 1em;
  min-width: 10em;           /* 박스 최소 너비 */
}

/* 숫자 뱃지 */
.step-badge {
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4em;
}

/* 텍스트와 설명 */
.step-text {
  font-weight: 700;
  color: #333;
  margin-bottom: 0.3em;
}

.step-note {
  font-size: 0.9em;
  color: #666;
}

/* 화살표는 제거 */
.roadmap-arrow { display: none; }

/* 모바일에서 더 촘촘히 */
@media (max-width: 768px) {
  .roadmap-steps {
    gap: 0.8em;
  }
  .roadmap-step {
    min-width: 8em;
    padding: 0.6em 0.8em;
  }
  .step-text { font-size: 0.95em; }
  .step-note { font-size: 0.8em; }
}
