/**
 * 신청방법(howto) 페이지 전용 스타일 (howto.ejs)
 */

.howto-page {
    flex: 1;
    max-width: 70rem;
    width: 100%;
    margin: 0 auto;
}

/* 히어로 섹션 - 배경 이미지 + 흰색 텍스트 오버레이 */
.howto-banner-section {
    margin-top: 3rem;
}

.howto-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 14rem;
    padding: 2.5rem 2rem;
    background-image: url("/images/howto-sub-banner.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #1e293b;
    color: #ffffff;
    text-align: center;
    border-radius: 1.5rem;
}

.howto-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.howto-content-area {
    font-family: 'Pretendard Variable', sans-serif;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    max-width: 60rem;
    text-align: center;
}

.howto-content-area h2 {
    font-size: 1.2rem;
    font-weight: 400;
}

.howto-content-area h3 {
    color: white;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1.05px;
    margin-bottom: 0.25rem;
}

.howto-banner .howto-content-area,
.howto-banner .howto-content-area h2,
.howto-banner .howto-content-area h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* 신청방법 콘텐츠 영역 */
.howto-content {
    width: 100%;
    background: #ffffff;
    padding: 3rem 0 4rem 0;
}

.howto-inner {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.howto-application-title {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #212121;
    letter-spacing: -0.04rem;
    margin-bottom: 0.5rem;
}

/* 신청 4단계 가로 플로우 (카드 + 화살표) */
.howto-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.howto-step-card {
    flex: 1;
    min-width: 12rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.howto-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #645FF9;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.howto-step-card--last .howto-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #fef9c3;
    border: 1px solid #e5e7eb;
    color: #ca8a04;
    font-size: 1.25rem;
}

.howto-step-title {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212121;
    margin: 0;
}

.howto-step-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.howto-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    color: #d1d5db;
    font-size: 0.9rem;
}

/* 지원자격 자가진단: 2단 (일러스트 | 카드) */
.howto-eligibility {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.howto-eligibility-illustration {
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
}

.howto-eligibility-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.howto-eligibility-card {
    background: #1e293b;
    color: #ffffff;
    border-radius: 1rem;
    padding: 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.howto-eligibility-title {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.howto-eligibility-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.howto-eligibility-steps li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.howto-eligibility-step-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.howto-eligibility-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    background: #334155;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.howto-eligibility-cta:hover {
    background: #475569;
    color: #ffffff;
}

@media (max-width: 768px) {
    .howto-content {
        padding: 2rem 0 3rem;
    }

    .howto-application-title {
        font-size: 1.35rem;
    }

    .howto-steps {
        flex-direction: column;
        align-items: center;
    }

    .howto-step-arrow {
        transform: rotate(90deg);
    }

    .howto-step-card {
        min-width: 100%;
    }

    .howto-eligibility {
        grid-template-columns: 1fr;
    }

    .howto-eligibility-illustration {
        order: 1;
    }

    .howto-eligibility-card {
        order: 2;
    }
}
