/* 청년 재테크 입문 가이드 — subpage/guide.html */

.page-guide [id^="section-"] {
    scroll-margin-top: 88px;
}

.guide-hero {
    position: relative;
    padding: 52px 0 48px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.guide-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
    opacity: 0.95;
}

.guide-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.guide-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 12px;
}

.guide-hero__lead {
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.guide-search__input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
}

.guide-top-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 18px;
    max-width: 920px;
}

.guide-top-term {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.18s ease, background 0.18s ease;
}

.guide-top-term:hover {
    transform: translateY(-1px);
    background: #e0e7ff;
}

.guide-term-card.is-match {
    outline: 2px solid rgba(99, 102, 241, 0.55);
    box-shadow: 0 16px 44px rgba(99, 102, 241, 0.16);
}

.guide-situation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.guide-situation__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.guide-situation__card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 900;
    color: #1e293b;
}

.guide-situation__card p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.guide-quote {
    max-width: 860px;
    margin: 18px auto 0;
    background: rgba(255, 255, 255, 0.85);
    border: 1px dashed #c7d2fe;
    border-radius: 18px;
    padding: 16px 18px;
    text-align: center;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.guide-section {
    padding: 48px 0 56px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.guide-section--alt {
    background: #f1f5f9;
}

.guide-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 960px) {
    .guide-terms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.guide-term-card {
    padding: 20px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.guide-term-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.12);
    border-color: #c7d2fe;
}

.guide-term-card.is-hidden {
    display: none;
}

.guide-term-card__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    margin-bottom: 8px;
}

.guide-term-card__badge--mid {
    background: #fef3c7;
    color: #b45309;
}

.guide-term-card h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #1e293b;
}

.guide-term-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.guide-routine {
    max-width: 720px;
    margin: 0 auto;
}

.guide-routine__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-routine__list li {
    padding: 14px 18px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.guide-step {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, #eef2ff, #fff);
    border: 1px solid #e0e7ff;
}

.guide-step__num {
    font-size: 12px;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 6px;
}

.guide-step p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.guide-dont {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.guide-dont__item {
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    font-size: 14px;
    color: #9f1239;
    font-weight: 600;
}

.guide-tip {
    max-width: 560px;
    margin: 24px auto 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed #c7d2fe;
    text-align: center;
    font-size: 14px;
    color: #475569;
}

.guide-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.guide-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.guide-modal__box {
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.guide-modal__close {
    float: right;
    border: none;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.guide-modal__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 12px;
    clear: both;
}

.guide-modal__body {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}

.guide-faq {
    padding: 56px 0 72px;
    background: #fff;
}
