/* General Styles */
body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    background-color: #fcfcfc;
    color: #222;
    overflow-x: hidden;
}

.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;
}

/* BIKO Banner Section */
.biko-banner-section {
    padding: 100px 0;
}

.biko-banner-section img {
    width: 100%;
    border-radius: 20px;
}

/* Video Section */
.video-section {
    width: 100%;
    padding: 100px 0;
    text-align: center;
}

.video-section h3 {
    font-family: 'Ria Sans', sans-serif;
    font-size: 32px;
    margin-bottom: 40px;
}

.video-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-container img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0, 117, 74, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 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;
}

.document-item p::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.document-item.item-c001 p::before {
    background: url("/resource/www/images/about/icons/icon-book-open.svg") no-repeat center/contain;
}

.document-item.item-c005 p::before,
.document-item.item-c006 p::before,
.document-item.item-c007 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-area-wrapper {
    margin-top: 40px;
}

.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: '';
    width: 24px;
    height: 24px;
    background: url("/resource/www/images/common/icon-pointer.png") no-repeat center/contain;
}

/* Visibility classes */
.pc-only {
    display: block;
}

.pc-only.agency-list {
    display: table;
}

.mobile-only {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1280px) {
    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .search-container {
        flex-direction: column;
        gap: 40px;
    }

    .search-text {
        display: none;
    }

    .search-box {
        flex-direction: column;
        border-radius: 24px;
        box-shadow: none;
        border: 1px solid #d4d4d4;
        overflow: hidden;
    }

    .search-input-area {
        width: 100%;
        padding: 56px 32px;
        order: 1;
        background-color: #fcfcfc;
        box-sizing: border-box;
        border-radius: 32px 32px 0 0;
        display: flex;
        flex-direction: column;
        gap: 32px;
        align-items: center;
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
    }

    .search-input-area .top-area {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 32px;
        /* Gap between title-group and input-wrapper */
        align-items: center;
    }

    .search-input-area .top-area .title-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .search-input-area .top-area p {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 0px;
        color: #222;
        text-align: center;
        line-height: 1.5;
    }

    .search-input-area .top-area p .highlight {
        color: #00754a;
    }

    .search-input-area .top-area .small-text {
        font-size: 12px;
        color: #a1a1a1;
        margin: 0;
        font-weight: 500;
        line-height: 1.67;
        text-align: center;
    }

    .input-wrapper {
        width: 100%;
        margin: 0;
        border-bottom: 2px solid #d4d4d4;
        /* Closer to figma border-b */
        display: flex;
        align-items: center;
        padding-bottom: 10px;
        justify-content: space-between;
    }

    .input-wrapper input {
        font-size: 16px;
        padding: 0;
        height: auto;
        border: none;
        outline: none;
        background: transparent;
        flex: 1;
    }

    .search-icon-btn {
        width: 20px;
        height: 20px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d4' 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/contain;
        border: none;
        cursor: pointer;
    }

    .button-area {
        width: 100%;
    }

    .apply-button-small {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 16px;
        background-color: #00754a !important;
        border-radius: 999px;
        color: #fcfcfc !important;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
        border: none;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcfcfc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/%3E%3Cpath d='M13 13l6 6'/%3E%3C/svg%3E") no-repeat center/contain;
    }

    .map-area {
        width: 100%;
        padding: 32px;
        order: 2;
        background-color: rgba(237, 237, 237, 0.7);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border-left: none;
        border-top: 1px solid #d4d4d4;
        aspect-ratio: auto;
        box-sizing: border-box;
        border-radius: 0 0 24px 24px;
    }

    .map-inner {
        width: 100%;
        max-width: 277px;
        aspect-ratio: 277 / 500;
        margin: 0 auto;
    }

    .apply-button-large {
        min-width: 100%;
        padding: 20px;
        font-size: 16px;
    }

    /* Mobile Card Layout 개선 */
    .agency-list-container {
        margin-top: 20px;
        border-top: none;
    }

    .inst-card {
        padding: 32px 0;
        border-bottom: 1px solid #ddd;
        background-color: transparent;
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
    }

    .inst-card:last-child {
        border: none;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .card-region {
        font-size: 15px;
        color: #222;
        font-weight: 500;
    }

    .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;
    }

    .card-body {
        cursor: default;
    }

    .card-title-area {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .card-name {
        font-size: 18px;
        font-weight: bold;
        color: #222;
        margin: 0;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 11px;
        white-space: nowrap;
    }

    .card-addr {
        font-size: 14px;
        color: #666;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .field-badge {
        font-size: 12px;
        padding: 6px 16px;
        display: inline-block;
    }

    .no-data-card {
        text-align: center;
        padding: 60px 0;
        color: #999;
    }

    .container {
        padding: 0 20px;
    }

    .participant-section,
    .journey-section,
    .biko-banner-section,
    .video-section,
    .documents-section,
    .search-section {
        padding: 40px 0;
        width: 100%;
    }

    .journey-section {
        background-color: #fcfcfc;
        padding-bottom: 80px;
    }

    .journey-map {
        background-color: #fff;
    }

    .video-section .container {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .video-section .container h3 {
        margin-bottom: 0;
    }

    .video-container {
        border-radius: 0;
        width: 100%;
        aspect-ratio: 375 / 202;
    }

    .video-container iframe {
        width: 100%;
        height: 100% !important;
    }

    .container h3 {
        font-family: 'Ria Sans', sans-serif;
        font-size: 20px;
        line-height: 1.5;
        letter-spacing: -0.8px;
        margin-bottom: 24px;
        color: #222;
    }

    .participant-section p {
        font-size: 12px;
        line-height: 1.67;
        color: #222;
        margin-bottom: 24px;
    }

    .biko-banner-section .container {
        padding: 0;
    }

    .biko-banner-section img {
        border-radius: 0;
    }

    .documents-section {
        background-color: #fcfcfc;
    }

    .documents-section .container h3 {
        text-align: center;
        margin-bottom: 40px;
    }

    .document-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        background-color: #ededed;
        border-radius: 24px;
        padding: 24px;
    }

    .document-item {
        background: rgba(252, 252, 252, 0.25);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border: 1px solid #fcfcfc;
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 0 !important;
        text-align: left;
        box-shadow: none;
    }

    .document-item p {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
    }

    .document-item img {
        border-radius: 8px;
    }

    /* Mobile Journey Section (max-width: 1024px) */
    .journey-section .legend {
        gap: 20px;
        margin-bottom: 32px;
    }

    .journey-section .legend span {
        font-size: 12px;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #a1a1a1;
    }

    .journey-section .legend span::after {
        content: '';
        display: block;
        width: 50px;
        height: 6px;
        border-radius: 999px;
        position: static;
        transform: none;
    }

    .journey-map {
        max-width: 343px;
        width: 100%;
        margin: 0 auto;
    }

    .step-item {
        width: 82.596cqw;
        right: auto !important;
        gap: 2.36cqw;
    }

    .step-title {
        font-size: clamp(10px, 4.082cqw, 14px);
        font-weight: 700;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .step-desc {
        font-size: clamp(8px, 3.5cqw, 12px);
        font-weight: 500;
        line-height: 1.67;
        margin-bottom: 0;
    }

    .bank-title {
        font-size: clamp(10px, 4.082cqw, 14px);
        font-weight: 700;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .bank-desc {
        font-size: clamp(8px, 3.5cqw, 12px);
        font-weight: 500;
        line-height: 1.67;
        margin-bottom: 0;
    }

    .mt-20 {
        margin-top: 0;
    }

    .journey-btn {
        width: 7.08cqw;
        height: 7.08cqw;
        min-width: 20px;
        min-height: 20px;
        font-size: clamp(10px, 5.31cqw, 18px);
    }

    /* Mobile Step Positions */
    .step-item.step1 {
        top: 2.5%;
        left: 15% !important;
    }

    .step-item.step2 {
        top: 15%;
        left: 0 !important;
    }

    .step-item.step3 {
        top: 28%;
        left: 15% !important;
    }

    .step-item.step4 {
        top: 39.5%;
        left: 0 !important;
    }

    .step-item.step-bank {
        top: 53%;
        left: 15% !important;
    }

    .step-item.step5 {
        top: 69.5%;
    }

    .step-item.step6 {
        top: 81.5%;
        left: 15% !important;
    }

    .step-item.step7 {
        top: 100%;
        left: 0 !important;
    }

    .step-details {
        width: calc(100vw - 200px);
        max-width: 426px;
        padding: 30px 12px 12px 12px;
        top: 0;
        left: 0;
    }

    .step-item.items-end .step-details {
        top: 0;
        left: auto;
        right: 0;
    }

    .close-details {
        top: 0;
        left: 0;
        width: 7.08cqw;
        height: 7.08cqw;
        min-width: 20px;
        min-height: 20px;
        font-size: 5.31cqw;
    }

    .step-details p {
        font-size: clamp(8px, 3.5cqw, 12px);
    }

    .map-inner img {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
}

.terms-content-box {
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}