/* General Styles */
body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    background-color: #fcfcfc;
    color: #222;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.highlight {
    color: #00754a;
}

/* Participant Section */
.participant-section {
    padding: 120px 0;
    text-align: center;
}

.participant-section h3 {
    font-family: 'Ria Sans', sans-serif;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 24px;
}

.participant-section p {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
}

.participant-section .highlight {
    color: #2793C2;
    font-weight: bold;
}

.participant-images img {
    max-width: 100%;
    height: auto;
}

/* Documents Section */
.documents-section {
    padding: 100px 0;
}

.documents-section h3 {
    font-family: 'Ria Sans', sans-serif;
    font-size: 32px;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 60px;
}

.document-list {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.document-item {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.document-item:hover {
    transform: translateY(-10px);
}

.document-item p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Title Icons via Pseudo */
.document-item p::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Specific Icons mapping */
.document-item[onclick*='C003'] p::before,
.document-item[onclick*='C004'] p::before {
    background: url("/resource/www/images/about/icons/icon-book-open.svg") no-repeat center/contain;
}

.document-item[onclick*='C005'] p::before,
.document-item[onclick*='C006'] p::before {
    background: url("/resource/www/images/about/icons/icon-document.svg") no-repeat center/contain;
}

.document-item img {
    width: 100%;
    border-radius: 12px;
}

/* Search Section */
.search-section {
    padding: 100px 0;
    width: 100%;
}

.search-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.search-text {
    width: 30%;
}

.search-text h3 {
    font-family: 'Ria Sans', sans-serif;
    font-size: 44px;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
}

.search-box {
    flex: 1;
    display: flex;
    background-color: #fff;
    border-radius: 32px;
    border: 1px solid #eee;
    box-shadow: 0;
    overflow: hidden;
}

.search-input-area {
    flex: 1;
    min-width: 0;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-input-area .top-area {
    text-align: center;
}

.search-input-area .top-area p {
    font-size: 24px;
    font-weight: bold;
    color: #222;
}

.search-input-area .top-area .highlight {
    color: #00754a;
    font-weight: bold;
}

.search-input-area .top-area .small-text {
    font-size: 16px;
    font-weight: 500;
    color: #999;
    margin: 16px 0 0;
    line-height: 1.5;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding: 10px 0;
    margin-bottom: 60px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    font-size: 20px;
    font-weight: 500;
    outline: none;
    background: transparent;
    padding: 5px 0;
    color: #222;
}

.input-wrapper input::placeholder {
    color: #ccc;
}

.search-icon-btn {
    width: 32px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    border: none;
    cursor: pointer;
}

.apply-button-small {
    width: auto;
    align-self: center;
    background-color: #00754a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 18px 40px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.apply-button-small:hover {
    background-color: #005f3c;
}

.btn-icon {
    width: 20px;
    height: 20px;
    background: url("/resource/www/images/common/icon-pointer.png") no-repeat center/contain;
}

.map-area {
    flex: 0 0 40%;
    width: 40%;
    background-color: #f9f9f9;
    border-left: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background-image: none;
    border-radius: 0;
}

.map-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 277 / 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-inner img {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.map-btn {
    position: absolute;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    white-space: nowrap;
}

.map-btn.active {
    background-color: #00754a;
    color: #fff;
    border-color: #00754a;
    z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
    .map-btn:hover {
        background-color: #00754a;
        color: #fff;
        border-color: #00754a;
        z-index: 10;
    }
}

/* Map positions precisely */
.map-btn.seoul { 
    top: 19%;
    left: 26%;
}
.map-btn.incheon { 
    top: 23%;
    left: 9%;
}
.map-btn.gyeonggi { 
    top: 25%;
    left: 38%;
}
.map-btn.gangwon { 
    top: 18%;
    left: 62%;
}
.map-btn.chungnam { 
    top: 42%;
    left: 21%;
}
.map-btn.chungbuk { top: 38%; left: 52%; }
.map-btn.sejong { top: 43%; left: 38%; }
.map-btn.daejeon { top: 52%; left: 44%; }
.map-btn.gyeongbuk { top: 46%; left: 74%; }
.map-btn.daegu { 
    top: 52%;
    left: 73%;
}
.map-btn.jeonbuk { 
    top: 57%;
    left: 32%;
}
.map-btn.gwangju { 
    top: 66%;
    left: 20%;
}
.map-btn.jeonnam { 
    top: 74%;
    left: 24%;
}
.map-btn.gyeongnam { 
    top: 64%;
    left: 61%;
}
.map-btn.busan { 
    top: 65%;
    left: 80%;
}
.map-btn.ulsan { 
    top: 57%;
    left: 89%;
}
.map-btn.jeju { 
    top: 89%;
    left: 20%;
}

.agency-list-container {
    margin-top: 80px;
    border-top: 2px solid #222;
}

.agency-list {
    width: 100%;
    border-collapse: collapse;
}

.agency-list th, .agency-list td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.agency-list th {
    font-weight: 600;
    font-size: 15px;
    color: #666;
    background-color: #f4f4f4;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.agency-list td {
    font-size: 15px;
    padding: 24px 20px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.status-active {
    background-color: #00754a;
    color: #fff;
}

.status-badge.status-inactive {
    background-color: #efefef;
    color: #ccc;
}

.field-badge {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #00754A;
    color: #00754A;
    font-size: 13px;
    font-weight: 500;
}

.map-pin-btn {
    width: 24px;
    height: 24px;
    background: #efefef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center/14px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
}

.detail-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.page-link {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #eee;
    border: none;
    padding: 0;
    cursor: pointer;
}

.page-link.active {
    width: 32px;
    height: 12px;
    border-radius: 6px;
    background-color: #00754a;
}

.page-nav {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    cursor: pointer;
    background-color: transparent;
    margin: 0 10px;
}

.page-nav.prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.page-nav.next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.apply-button-container {
    text-align: center;
}

.apply-button-large {
    width: auto;
    min-width: 480px;
    padding: 24px 60px;
    background-color: #00754a;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 80px;
    box-shadow: 0 10px 30px rgba(0, 117, 74, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.apply-button-large::before {
    content: '';
    background: url("/resource/www/images/common/icon-pointer.png") no-repeat center/contain;
}

/* PC Only / Mobile Only Utility */
.pc-only { display: block !important; }
.mobile-only { display: none !important; }

.pc-only.agency-list { display: table !important; }

/* Responsive Styles */
@media (max-width: 1280px) {
    .pc-only { display: none !important; }
    .pc-only.agency-list { display: none !important; }
    .mobile-only { display: block !important; }

    .container {
        padding: 0 16px;
    }

    .participant-section,
    .journey-section,
    .documents-section,
    .search-section {
        padding: 80px 0;
    }

    .container h3 {
        font-family: "Ria Sans", sans-serif;
        font-size: 20px;
        line-height: 30px;
        text-align: center;
        margin-bottom: 24px;
        font-weight: 700;
        letter-spacing: -0.8px;
    }

    .participant-section p {
        font-family: "Pretendard", sans-serif;
        font-size: 12px;
        line-height: 20px;
        color: #222;
        text-align: center;
        margin-bottom: 0;
        font-weight: 500;
    }

    .participant-section .highlight {
        color: #2793c2;
        font-weight: 500;
    }

    /* Journey Section */
    .journey-section {
        padding-top: 80px;
        padding-bottom: 160px;
    }

    .journey-section .legend {
        gap: 24px;
        margin-bottom: 24px;
        justify-content: center;
    }

    .journey-section .legend span {
        font-size: 12px;
        color: #a1a1a1;
        padding-right: 58px;
        font-weight: 400;
        line-height: 20px;
    }

    .journey-section .legend span::after {
        width: 50px;
        height: 6px;
        border-radius: 999px;
    }

    /* Mobile Journey Layout: MO SVG + 모바일 step 위치 (≤768px) */
    .journey-map {
        background-color: #fff;
        width: 100%;
        max-width: 343px;
        margin: 0 auto;
        /* height: 2200px 고정 제거 → 너비 비례 높이로 교체
            비율: 2200 / 343 = 원본 디자인 기준 (step7 여백 포함) */
        aspect-ratio: 343 / 2200;
    }

    .step-item {
        width: 78.7cqw; /* 270 / 343 × 100 — 너비 비례 확장/축소 */
        padding: 0;
        position: absolute;
    }

    .step-title {
        font-family: "Pretendard", sans-serif;
        font-size: clamp(10px, 4.082cqw, 14px);
        font-weight: 700;
        color: #222;
        line-height: 22px;
        margin: 0;
    }

    .step-desc {
        font-size: clamp(8px, 3.5cqw, 12px);
        line-height: 20px;
        font-weight: 500;
        color: #222;
        margin: 0;
    }

    .bank-title {
        font-size: clamp(10px, 4.082cqw, 14px);
        font-weight: 700;
        color: #222;
        line-height: 22px;
        margin-top: 0;
    }

    .bank-desc {
        font-size: clamp(8px, 3.5cqw, 12px);
        line-height: 20px;
        font-weight: 500;
        color: #222;
        margin: 0;
    }

    .journey-btn {
        width: 7.0cqw;
        height: 7.0cqw;
        min-width: 20px;
        min-height: 20px;
        font-size: clamp(10px, 4.665cqw, 16px);
        background: #ededed;
        color: #222;
        margin-top: 8px;
        box-shadow: none;
    }

    /* Figma-based mobile positions */
    .step-item.step1    { top: 2.5%;  left: 15% !important; }
    .step-item.step2    { top: 14%;   left:  7% !important; }
    .step-item.step3    { top: 26.5%; left: 15% !important; }
    .step-item.step4    { top: 37.5%; left:  7% !important; }
    .step-item.step-bank{ top: 50%;   left: 15% !important; }
    .step-item.step5    { top: 65.5%; left:  7%; }
    .step-item.step6    { top: 76.5%; left: 15% !important; }
    .step-item.step7    { top: 94.5%; left:  7% !important; }

    .step-details {
        width: calc(100vw - 200px);
        max-width: 426px;
        padding: 30px 12px 12px 12px;
        top: 0;
        left: 0;
        background-color: #efefef;
        margin-top: 8px;
    }

    .step-details p {
        font-size: clamp(8px, 3.5cqw, 12px);
    }

    .step-item.items-end .step-details {
        top: 0;
        left: auto;
        right: 0;
    }

    .close-details {
        top: 0;
        left: 0;
        width: 7.0cqw;
        height: 7.0cqw;
        min-width: 20px;
        min-height: 20px;
        font-size: 4.665cqw;
    }

    /* Documents Section */
    .documents-section {
        background-color: #fcfcfc;
    }

    .document-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        background: #ededed;
        padding: 24px;
        border-radius: 24px;
        backdrop-filter: blur(50px);
    }

    .document-item {
        background: rgba(252, 252, 252, 0.25) !important;
        border: 1px solid #fcfcfc !important;
        border-radius: 16px !important;
        padding: 24px !important;
        box-shadow: none !important;
        backdrop-filter: blur(50px);
        margin-bottom: 0 !important;
        text-align: left;
    }

    .doc-title-area {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .doc-icon {
        width: 22px;
        height: 22px;
        display: inline-block;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    /* Logic for document icons */
    .doc-brief .doc-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
    }

    .doc-child .doc-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    }

    .doc-privacy .doc-icon,
    .doc-donation .doc-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'%3E%3C/path%3E%3C/svg%3E");
    }

    .document-item p {
        font-family: "Pretendard", sans-serif;
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 0;
        font-weight: 600;
        color: #222;
    }

    .doc-img-box {
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
    }

    .document-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

    /* Search Section */
    .search-section {
        padding-top: 80px;
    }

    .search-container {
        gap: 40px;
        margin-bottom: 40px;
    }

    .search-box {
        display: block;
        border-radius: 24px;
        border: 1px solid #d4d4d4;
    }

    .search-input-area {
        width: 100%;
        padding: 56px 32px;
        background: #fcfcfc;
        backdrop-filter: blur(50px);
        border-radius: 0;
    }

    .search-input-area .top-area p {
        font-family: "Pretendard", sans-serif;
        font-size: 16px;
        line-height: 24px;
        margin: 0;
        font-weight: 600;
        text-align: center;
    }

    .search-input-area .top-area .highlight {
        color: #00754a;
    }

    .search-input-area .top-area .small-text {
        font-size: 12px;
        color: #a1a1a1;
        margin: 0;
        line-height: 20px;
        font-weight: 500;
        text-align: center;
    }

    .input-wrapper {
        border-bottom: 1px solid #d4d4d4;
        margin-bottom: 0;
        padding: 10px 12px;
    }

    .input-wrapper input {
        font-size: 14px;
    }

    .search-icon-btn {
        width: 20px;
        height: 20px;
    }

    .map-area {
        width: 100%;
        padding: 32px;
        background: rgba(237, 237, 237, 0.7);
        backdrop-filter: blur(50px);
        border-left: none;
        border-top: none;
        aspect-ratio: auto;
    }

    .map-inner {
        width: 100%;
        max-width: 277px;
        aspect-ratio: 277 / 500;
        margin: 0 auto;
    }

    .map-btn {
        padding: 6px 16px;
        font-size: 12px;
        font-weight: 500;
    }

    .map-btn.active {
        background-color: #00754a;
        color: #fcfcfc;
    }

    /* Agency List */
    .agency-list-container {
        margin-top: 32px;
    }

    .inst-card {
        padding: 32px 0;
        border-bottom: 1px solid #ddd;
    }

    .card-region {
        font-size: 15px;
        font-weight: 500;
        color: #222;
    }

    .card-name {
        font-size: 18px;
        font-weight: 700;
    }

    .card-addr {
        font-size: 14px;
        color: #666;
        margin-bottom: 16px;
    }

    .field-badge {
        font-size: 12px;
        padding: 6px 16px;
        display: inline-block;
    }

    .pagination {
        margin-top: 40px;
    }
    
    .map-pin-btn {
        width: 34px;
        height: 34px;
        background-color: #eee;
        background-size: 20px;
        margin-left: 0;
        transition: background-color 0.2s;
    }
    
    .map-pin-btn:active {
        background-color: #ddd;
    }
}
