/* 지역 허브(/area/) — .area-hub 범위만 스타일 */

.area-hub {
    width: 100%;
    /* 풀블리드 섹션 배경이 잘리지 않도록 */
    overflow-x: visible;
}

.sub-page.area-hub {
    overflow-x: visible;
}

/* 섹션 배경 교대: 히어로(연블루) → 흰 → surface → 흰 → … */
.area-hub__featured,
.area-hub__guide,
.area-hub__faq {
    background: #fff;
    padding: 100px max(20px, calc(50vw - 600px));
    box-sizing: border-box;
}

.area-hub__groups,
.area-hub__steps {
    background: var(--surface, #F8FAFC);
    padding: 100px max(20px, calc(50vw - 600px));
    box-sizing: border-box;
}

.area-hub__inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 허브: 래퍼는 풀폭, 섹션 패딩으로 1200 중앙 정렬 */
.area-hub .area-hub__content.sub-content,
.area-hub .drive-area__content.area-hub__content {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.area-hub__regions {
    min-height: 1px;
}

.area-hub__extra {
    min-height: 1px;
}

.area-hub__featured {
    margin-top: 0;
    margin-bottom: 0;
}

.area-hub__groups {
    margin: 0;
}

.area-hub__section-title {
    margin: 0 0 20px;
    max-width: 512px;
    color: #1a2b33;
    letter-spacing: -0.02em;
}

.area-hub__tools {
    margin: 0 0 28px;
    padding: 18px 18px 16px;
    border: 1px solid #e6ebf0;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.area-hub__search {
    margin: 0 0 14px;
}

.area-hub__search-label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #24343c;
}

.area-hub__search-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d5dde4;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.45;
    color: #1f2f36;
}

.area-hub__search-input:focus {
    outline: 2px solid #1a3d34;
    outline-offset: 1px;
    border-color: #1a3d34;
}

.area-hub__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.area-hub__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 64px;
    padding: 10px 16px;
    border: 1px solid #d5dde4;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #44525a;
    text-align: center;
    cursor: pointer;
}

.area-hub__filter.is-active,
.area-hub__filter[aria-pressed="true"] {
    border-color: transparent;
    background: var(--primary-soft, #EFF6FF);
    color: var(--primary, #2563EB);
    box-shadow: none;
}

.area-hub__result-count {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #5a6870;
}

.area-hub__empty {
    margin: 0 0 24px;
    padding: 18px 16px;
    border: 1px dashed #cfd7de;
    border-radius: 8px;
    background: #f8fafb;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    word-break: keep-all;
}

.area-hub .is-region-hidden,
.area-hub [hidden].is-region-hidden {
    display: none !important;
}

.area-hub__group {
    margin: 0 0 36px;
}

.area-hub__group:last-child {
    margin-bottom: 0;
}

.area-hub__group-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8edf1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #24343c;
    letter-spacing: -0.01em;
}

.area-hub__featured-grid,
.area-hub__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.area-hub__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e6ebf0;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    min-width: 0;
}

.area-hub__card-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.area-hub__card-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2f36;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.area-hub__card-area {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #6a7680;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.area-hub__extra {
    margin-top: 0;
}

.area-hub__steps {
    margin: 0;
}

.area-hub__cta {
    margin: 0 !important;
    padding: 100px max(20px, calc(50vw - 600px)) 80px;
    border-radius: 0;
    border: none;
    border-top: 1px solid #E8EEF6;
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 72%);
    color: #0F172A;
    box-sizing: border-box;
    text-align: center;
}

/* CTA가 마지막 섹션 — 래퍼 여백으로 푸터와 벌어지지 않게 */
.area-hub .area-hub__content.sub-content,
.area-hub .area-hub__content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.area-hub .area-hub__inner {
    padding-bottom: 0;
}

.area-hub .area-hub__extra {
    margin-bottom: 0;
    padding-bottom: 0;
}

.area-hub__inner > .site-ilinks.sec-bg-surface,
.area-hub__inner > .site-ilinks.sec-bg-white,
.area-hub__extra > .site-ilinks.sec-bg-surface,
.area-hub__extra > .site-ilinks.sec-bg-white {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 100px max(20px, calc(50vw - 600px)) !important;
    box-sizing: border-box;
}

.area-hub__cta .area-hub__section-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
    color: #0F172A;
    text-align: center;
}

.area-hub__cta .area-hub__lead {
    margin: 0 auto 24px;
    max-width: 640px;
    color: #64748B;
    opacity: 1;
    text-align: center;
}

.area-hub__lead {
    margin: 0 0 24px;
    max-width: 640px;
    font-size: 17px;
    line-height: 1.7;
    color: #444;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: left;
}

.area-hub__guide .area-hub__section-title,
.area-hub__steps .area-hub__section-title {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
}

.area-hub__guide,
.area-hub__steps {
    text-align: left;
}

.area-hub__guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.area-hub__guide-item {
    margin: 0;
    padding: 18px 16px;
    border: 1px solid #e6ebf0;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    min-width: 0;
}

.area-hub__guide-label {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2f36;
    word-break: keep-all;
}

.area-hub__guide-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.area-hub__step-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.area-hub__step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 18px 16px;
    border: 1px solid #e6ebf0;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    min-width: 0;
}

.area-hub__step-number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #1a3d34;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.area-hub__step-body {
    min-width: 0;
    width: 100%;
}

.area-hub__step-title {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2f36;
    word-break: keep-all;
}

.area-hub__step-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.area-hub__faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.area-hub__faq-item {
    border: 1px solid #E8EEF4;
    border-radius: 14px;
    background: #fff;
    margin: 0;
    overflow: hidden;
}

.area-hub__faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #1E293B;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.area-hub__faq-question::-webkit-details-marker {
    display: none;
}

.area-hub__faq-question-text {
    flex: 1;
    min-width: 0;
}

.area-hub__faq-question-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
}

.area-hub__faq-question-icon::before,
.area-hub__faq-question-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 1px;
}

.area-hub__faq-question-icon::before {
    width: 12px;
    height: 2px;
}

.area-hub__faq-question-icon::after {
    width: 2px;
    height: 12px;
}

.area-hub__faq-item[open] .area-hub__faq-question-icon {
    background: #E2E8F0;
    color: #475569;
}

.area-hub__faq-item[open] .area-hub__faq-question-icon::after {
    display: none;
}

.area-hub__faq-answer {
    padding: 16px 20px 20px;
    border-top: 1px solid #F1F5F9;
}

.area-hub__faq-answer p {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #64748B;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.area-hub__faq-answer a {
    color: var(--primary, #2563EB);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.area-hub__cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .area-hub__featured-grid,
    .area-hub__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .area-hub__guide-grid,
    .area-hub__step-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .area-hub .area-hub__content.sub-content,
    .area-hub .drive-area__content.area-hub__content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .area-hub__inner {
        padding: 0;
    }

    .area-hub__section-title {
        max-width: none;
    }

    .area-hub__lead {
        max-width: none;
    }

    .area-hub__tools {
        padding: 16px 14px 14px;
    }

    .area-hub__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .area-hub__filter {
        flex: 0 0 auto;
    }

    .area-hub__featured-grid,
    .area-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .area-hub__card {
        padding: 12px 14px;
    }

    .area-hub__extra {
        margin-top: 0;
    }

    .area-hub__guide,
    .area-hub__steps,
    .area-hub__faq,
    .area-hub__cta {
        margin-bottom: 0;
    }

    .area-hub__guide-grid,
    .area-hub__step-list {
        grid-template-columns: 1fr;
    }

    .area-hub__featured,
    .area-hub__groups,
    .area-hub__guide,
    .area-hub__steps,
    .area-hub__faq,
    .area-hub__cta,
    .area-hub__inner > .site-ilinks,
    .area-hub__extra > .site-ilinks {
        padding: 60px 16px !important;
    }

    .area-hub__cta-actions {
        flex-direction: column;
    }

    .area-hub__cta-actions .drive-area__btn,
    .area-hub__cta-actions .cta-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .area-hub__featured-grid,
    .area-hub__grid {
        grid-template-columns: 1fr;
    }
}
