/* 초기화 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  color: #1F202F;
  background: #fff;
  line-height: 1.7;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.1s ease;
}

body.loaded {
  opacity: 1;
}
.wide-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ── Header ── */
.main-header {
  width: 100%;
  height: 55px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%; 
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;         
    font-size: 14px;
    font-weight: 600;
    color: #2C2C2C;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    width: 24px;      
    height: auto;       
    object-fit: contain;
}
.nav-bar { 
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 10px; /* nav 바 전체와 로그인 버튼 사이의 간격 */
}

.nav-bar a {
    text-decoration: none;
    color: #393939;
    font-size: 13px;
    margin: 0 30px; 
    letter-spacing: 0em;
}

.nav-bar a.active {
    font-weight: 500;
    color: #0C0C0C;
}

.login-btn {
  background: #1F2A58;
  color: #fff;
  border: none;
  border-radius: 99px;
  width: 75px;
  height: 28px;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.logout-style {
  background: #fff;
  color: #1F2A58;
  border: 1px solid #1F2A58;
  border-radius: 99px;
  width: 75px;
  height: 28px;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.01em;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f9f9f9;
}

::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d3d3d3;
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    width: 100%;
    height: 350px; 
    background: #D4E6FA;
    display: flex;
    align-items: center;
    overflow: hidden; 
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5; 
}

.hero-text {
  margin-left: 150px; 
}

/* 텍스트 스타일링 */
.hero-text h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    color: #292C48;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #637195; 
}

.hero-text p {
  font-size: 12px;
  font-weight: 500;
  color: #4D4D4D;
  margin: 0px 0 25px;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* 시작하기 버튼 */
.start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 180px;
    height: 40px;
    background: #34436D;
    color: #FFFFFF;
    border: none;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.arrow-icon {
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 5px;
}

.hero-visual {
    position: relative;
    z-index: 1;
    width: 25%;
    height: 170px;
}

.image-wrapper {
    position: absolute;
}

.hand-img {
    left: 0;
    top: 0;
    width: 170px;
}

.person-img {
    left: 200px; 
    top: 10px;
    width: 210px;
}

.hero-visual img {
    width: 100%;
    height: auto;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.circle-top {
    width: 250px;
    height: 250px;
    background: rgba(164, 204, 253, 0.5);
    top: -100px;
    right: 26%;
}

.circle-bottom {
    width: 110px;
    height: 110px;
    background: rgba(30, 82, 146, 0.45); 
    bottom: -50px;
    right: 5%;
}

/* ── Features ── */
.feature-section {
  padding: 100px 0 60px;
  text-align: center;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: #1F202F;
}
.section-title p {
  font-size: 14px;
  color: #757575;
  margin-bottom: 66px;
  line-height: 1.65;
  letter-spacing: 0em;
}

.feature-content-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
}
.feature-item { width: 340px; text-align: center; }
.icon-box {
  width: 50px;
  height: 50px;
  background: #F2F3F6;
  border-radius: 12px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box img { width: 22px; }
.feature-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.feature-item p {
  font-size: 13px;
  color: #676767;
  line-height: 1.55;
  letter-spacing: 0.005em;
}
.divider { width: 0.7px; height: 155px; background: #e0e0e0; margin-top: 0px; }

/* ── Ranking ── */
.ranking-section { padding: 60px 0; }
.ranking-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 110px;
}
.ranking-info { width: 410px; }
.ranking-info h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: #1F202F;
}
.ranking-info p {
  font-size: 14px;
  color: #757575;
  line-height: 1.6;
  letter-spacing: 0em;
}

.ranking-card {
  width: 450px;
  background: #F6F8FA;
  border-radius: 20px;
  padding: 25px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.top-tag {
  background: #BACFE5;
  color: #2A375C;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.update-info {
  font-size: 12px;
  color: #323232;
  letter-spacing: 0em;
  line-height: 1.5;
}

.ranking-table {
  background: #fff;
  border-radius: 15px;
  padding: 4px 10px;
}

/* 테이블 헤더 행 */
.rank-header {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr;
  padding: 10px 10px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  border-bottom: 1px solid #eee;
  text-align: center;
  letter-spacing: 0em;
  line-height: 1.5;
}

/* 데이터 행 */
.rank-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr;
  padding: 13px 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  align-items: center;
  text-align: center;
  line-height: 1.5;
}
.rank-row:last-child { border-bottom: none; }
.p-circle {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
}

/* ── Guide ── */
/* 가이드 섹션 전체 레이아웃 */
.guide-section {
  padding: 60px 0 120px;
  text-align: center;
}

.guide-section .section-title p {
  margin-bottom: 5px; 
}

.step-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* 카드와 화살표 사이 간격 */
}

/* 카드 스타일 */
.step-card {
  width: 260px;
  height: 180px; /* 높이를 줄여 콤팩트하게 조절 */
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  padding: 24px;
  text-align: left;
}

/* 카드 상단: 텍스트와 아이콘 나란히 배치 */
.card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-label {
  color: #34436D;
  font-size: 14px;
  font-weight: 600;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1F202F;
}

/* 아이콘 박스 */
.step-icon {
  width: 40px;
  height: 40px;
  background: #F3F4F6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  width: 24px;
}

/* 카드 하단 설명 */
.step-desc {
  font-size: 13px;
  color: #757575;
  line-height: 1.6;
}

.step-arrow {
    width: 32px;  /* 원의 크기 */
    height: 32px;
    background: #1F202F; /* 검정색 배경 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* 화살표 선 색상 (흰색) */
    flex-shrink: 0;
    cursor: pointer;
    z-index: 10;
}

/* SVG 화살표 크기 조절 */
.step-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.step-card:last-child + .step-arrow {
    display: none;
}

/* 토글 버튼 디자인 */
.tab-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 50px;
}

.tab-btn {
  padding: 6px 16px;
  border-radius: 99px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  background: #F0F3FB;
  font-weight: 400;
}

.tab-btn.active {
  background: #000000;
  color: #FFFFFF;
}

.step-grid {
  display: flex;
  justify-content: center;
  gap: 90px;
}
.step-box {
  width: 220px;
  border: 1px solid #D9D9D9;
  border-radius: 20px;
  padding: 22px 20px 24px;
  position: relative;
  text-align: left;
}

/* 상단: 단계+제목 / 아이콘 나란히 */
.step-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.step-text-group { display: flex; flex-direction: column; gap: 4px; }
.step-label {
  color: #34436D;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.step-box h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: #1F202F;
}
.step-icon {
  width: 36px;
  height: 36px;
  background: #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-icon svg {
  width: 18px;
  height: 18px;
  stroke: #595959;
  fill: none;
  stroke-width: 1.8;
}

.img-placeholder {
  background: #E5E7EB;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.step-box p {
  font-size: 13px;
  color: #757575;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

/* 화살표 버튼 */
.arrow-btn {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1F202F;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  border: none;
}
.step-box:last-child .arrow-btn { display: none; }

/* ── Footer ── */
.main-footer { background: #222; color: #fff; padding: 50px 0; }
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.footer-content h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.03em;
}
.kakao-btn {
  background: #4876A7;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 110px;
  height: 35px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.footer-bottom { border-top: 1px solid #333; padding-top: 25px; }
.univ-info {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.team-info {
  font-size: 12px;
  color: #BABABA;
  line-height: 1.6;
  letter-spacing: 0em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner,
  .ranking-inner,
  .footer-content,
  .feature-content-wrapper,
  .step-grid { flex-direction: column; text-align: center; gap: 30px; }
  .nav-bar { display: none; }
  .divider { display: none; }
  .step-box { text-align: left; }
}

/* ── Floating Buttons ── */
.floating-container {
    position: fixed;
    bottom: 50px;  /* 바닥에서의 거리 */
    right: 40px;   /* 오른쪽에서의 거리 */
    display: flex;
    flex-direction: column; /* 세로로 쌓기 */
    gap: 15px;      /* 버튼 사이 간격 */
    z-index: 9999;  /* 최상단에 위치 */
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 그림자 살짝 */
    transition: transform 0.2s, background-color 0.2s;
}

.float-btn:hover {
    transform: translateY(-5px); /* 마우스 올리면 살짝 위로 */
}

/* 위에 버튼 (카카오톡 느낌 연하늘) */
/* 1. 위에 버튼 (카카오톡 문의) - 조금 더 크게 설정 */
.kakao-float {
    background-color: #D4E6FA;
    width: 50px;   
    height:50px; 
}

/* 카톡 아이콘 크기 조절 */
.kakao-float img {
    width: 28px;   
    height: auto;
}

.top-float {
    background-color: #83A5CC;
    width: 50px;
    height: 50px;
    
    /* 부드러운 등장을 위한 설정 */
    opacity: 0;            
    visibility: hidden;      
    transform: translateY(20px); 
    transition: all 0.4s ease-in-out;
}

/* 스크롤을 내렸을 때 나타날 상태 */
.top-float.show {
    opacity: 1;           
    visibility: visible;     
    transform: translateY(0);  
}

/* TOP 아이콘 크기 조절 */
.top-float img {
    width: 15px;  
    height: auto;
}

/* 설문 모달 전체 스타일 */
.survey-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(31, 42, 88, 0.5); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}

/* 2. 모달 컨테이너 */
.survey-modal {
    width: 650px; height: 420px; background: #F9F9F9;
    border-radius: 25px; position: relative; padding: 40px;
    box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
    overflow: hidden;
}

/* 3. 스태퍼 (빈 공간 없이 겹치기) */
.stepper { display: flex; align-items: center; margin-bottom: 25px; }
.step-item { display: flex; flex-direction: column; align-items: center; width: 60px; z-index: 2; }
.step-circle {
    width: 28px; height: 28px; border-radius: 50%; background: #E7EEF7;
    display: flex; align-items: center; justify-content: center;
    color: #34436D; font-weight: 600; font-size: 14px;
}
.step-item span { font-size: 11px; margin-top: 5px; color: #323232; font-weight: 500; white-space: nowrap; }
.step-item.active .step-circle { background: #34436D; color: #FFF; }

.step-line {
    width: 170px; height: 4px; background: #E7EEF7;
    margin: 0 -25px 18px -25px; 
    z-index: 1;
}
.step-line.active { background: #34436D; }

.step-page { 
    display: none !important; /* 기본은 무조건 숨기기 */
    width: 100%; flex-direction: column; align-items: center; 
}
.step-page.active { 
    display: flex !important; /* active 클래스가 붙었을 때만 보여주기 */
}

/* 5. 질문 텍스트 */
.survey-question { 
    font-size: 22px; font-weight: 600; color: #4B4B4B; 
    margin: 5px 0 35px 0; text-align: center; 
}

/* 6. 옵션 카드 (글자 가두기) */
.option-group { display: flex; gap: 10px; justify-content: center; width: 100%; }
.option-card.selected { background: #E7EEF7; border: 1.5px solid #517AAF; }

/* 카드 내부 텍스트 */
.option-card {
    width: 100px;
    height: 110px;
    background: #F9F9F9;
    border: 1px solid #D9D9D9;
    border-radius: 20px;
    padding: 10px 10px; /* 상하좌우 여백 */
    box-sizing: border-box;
    cursor: pointer;

    /* 내부 정렬을 위한 Flex 설정 */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    gap: 3px;            
    transition: 0.2s;
}

.option-card .lv {
    font-size: 11px;
    font-weight: 600;
    color: #517AAF;
}

.option-card strong {
    font-size: 16px;
    color: #4B4B4B;
}

.option-card small {
    font-size: 10px;
    color: #5C5C5C;
    line-height: 1.25;
    text-align: center;
    word-break: keep-all; 
}

/* 2단계 전용 카드 (사용자 유형) */
.option-card.type-card { width: 140px; height: 100px; }

/* 3단계 전용 큰 카드 (학습 경로) */
.option-card.path-card {
    width: 220px; 
    height: 120px; 
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* 세로 중앙 정렬 */
    align-items: center; /* 가로 중앙 정렬 */
    padding: 15px;
    box-sizing: border-box;
}

.path-icon {
    width: 30px;
    height: 30px;
    object-fit: contain; 
    margin-bottom: 8px; 
}


/* 인포 배너 스타일 수정 */
.info-banner {
    margin-top: 15px;
    background: #F2F2F2;
    border-radius: 8px;
    padding: 5px 15px;
    
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 8px; 
    
    /* 텍스트 스타일 */
    font-size: 10px;
    color: #707070;
}

.info-icon {
    width: 28px;  
    height: 28px;
    object-fit: contain; 
}

.survey-footer {
    position: absolute; 
    bottom: 30px; 
    left: 30px; 
    right: 30px; 
    
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-sizing: border-box;
}

.nav-btn {
    all: unset;
    display: inline-block; 
    box-sizing: border-box; 
    
    min-width: 75px; 
    padding: 6px 8px; 
    
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

/* 다음버튼 (남색) */
.nav-btn.next{
    background-color: #34436D !important;
    color: #FFFFFF !important;
    border: 1px solid #34436D !important;
}

.nav-btn.finish {
    padding: 6px 8px !important; 
    font-size: 12px !important; 
    
    background-color: #323232 !important; 
    color: #FFFFFF !important;
    border: none !important;
    min-width: 100px; 
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 이전 버튼 (흰색+테두리) */
.nav-btn.prev {
    background-color: #FFFFFF !important;
    border: 1.5px solid #68759C !important;
    color: #34436D !important;
}

.nav-btn:hover {
    opacity: 0.8;
}