.volunteer-all-region-view.hidden,
.volunteer-gugun-view.hidden,
.volunteer-gugun-placeholder.hidden,
.volunteer-empty.hidden {
    display: none !important;
}

.volunteer-page {
    padding-bottom: 20px;
}

.volunteer-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: white;
}

.volunteer-header-logo img {
    height: 20px;
    width: auto;
}

.volunteer-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.volunteer-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;

    img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
}

.volunteer-banner {
    position: relative;
    overflow: hidden;
}

.volunteer-banner-swiper {
    overflow: visible;

    .swiper-wrapper {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .swiper-slide {
        list-style: none;
        width: calc(100% - 40px);
        transform: scale(0.95);
        transition: transform 0.35s ease;
    }

    .swiper-slide-active {
        transform: scale(1);
    }
}

.volunteer-banner-slide {
    display: block;
    border-radius: 15px;
    overflow: hidden;

    img {
        width: 100%;
        aspect-ratio: 358 / 229;
        object-fit: cover;
        display: block;
        border-radius: 15px;
    }
}

.volunteer-banner-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 4px;
}

.volunteer-banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;

    background-color: var(--Dolgo-Grey-100);
    border: none;
    padding: 0;
    cursor: pointer;

    &.active {
        background: var(--primary-color);
    }
}

.volunteer-list {
    margin-top: 20px;
    padding: 0 16px;
}

.volunteer-card {
    display: flex;
    gap: 15px;
    padding: 24px 0;
    border-bottom: 1px solid var(--Dolgo-Grey-000);
    cursor: pointer;

    &:first-child {
        padding-top: 0;
    }
}

.volunteer-card-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 170px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;

    img {
        width: auto;
        min-width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.volunteer-card-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: #2d2d2d;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1;
    white-space: nowrap;
    z-index: 1;
}

/* 1: 모집 예정 */
.volunteer-card-status-badge.status-1 { background: #358ae3; color: #ffffff; }
/* 3: 모집 마감 */
.volunteer-card-status-badge.status-3 { background: #2d2d2d; color: #ffffff; }
/* 4: 활동 종료 */
.volunteer-card-status-badge.status-4 { background: #2d2d2d; color: #ffffff; }

.volunteer-card.is-closed {
    .volunteer-card-thumb::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        pointer-events: none;
    }

    .volunteer-card-taxonomy-group,
    .volunteer-card-title,
    .volunteer-card-location,
    .volunteer-card-date,
    .volunteer-card-schedule {
        color: #bfbfbf;
    }

    .volunteer-card-original {
        border-color: #bfbfbf;
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
        color: #bfbfbf;
    }
}

.volunteer-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.volunteer-card-info-top,
.volunteer-card-info-bottom {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.volunteer-card-taxonomy-group {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray5-color);
}

.volunteer-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--Dolgo-Grey-900);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.volunteer-card-location {
    display: flex;
    gap: 3px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray5-color);
}

.volunteer-card-location-org {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 131px;
}

.volunteer-card-original {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    align-self: flex-start;
    color: transparent;
    background: #ffffff linear-gradient(99.2deg, var(--primary-color) 0%, #1acedf 99%);
    -webkit-background-clip: text;
    background-clip: text;
}

.volunteer-card-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray8-color);
}

.volunteer-card-schedule {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray8-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    span {
        white-space: nowrap;
    }
}

.volunteer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;

    &.volunteer-empty-center {
        justify-content: center;
        min-height: calc(100vh - 110px);
        padding: 0;
    }
}

.volunteer-empty-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
}

.volunteer-empty-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-color);
    line-height: 1.6;
    text-align: center;
    margin: 0 0 20px;
}

.volunteer-empty-btn {
    padding: 10px 20px;
    width: 150px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;

    &:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}
.volunteer-region-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

.volunteer-region-right {
    position: relative;
    flex: 1 1 auto;
    padding: 20px 16px;
    background-color: white;

    &.gugun-mode {
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.volunteer-sido-list {
    width: 95px;
    flex-shrink: 0;
    background: var(--gray0-color);
    border-right: 1px solid var(--Dolgo-Grey-100);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.volunteer-sido-item {
    padding: 15px 10px 15px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray5-color);
    cursor: pointer;
    border-left: 5px solid transparent;

    &.active {
        background-color: white;
        border-left-color: var(--primary-color);
        color: var(--primary-color);
        font-weight: 700;
    }
}

.volunteer-all-region-view {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.volunteer-all-region-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-color);
    text-align: center;
    margin: 0 0 16px;
}

.volunteer-emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
}

.volunteer-gugun-view {
    min-height: 100%;
}

.volunteer-gugun-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.volunteer-gugun-item {
    display: flex;
    align-items: center;
    padding: 15px 10px 15px 30px;
    background-color: white;
    border-bottom: 1px solid var(--gray0-color);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray8-color);
    line-height: 21px;
    cursor: pointer;
    gap: 3px;

    .volunteer-gugun-check {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        opacity: 0;
        transition: opacity 0.1s;
    }

    &.active .volunteer-gugun-check {
        opacity: 1;
    }
}

.volunteer-gugun-placeholder {
    color: var(--gray-color);
    font-size: 15px;
    text-align: center;
    margin-top: 120px;
}

.volunteer-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 390 / 229;
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

.volunteer-basic {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 16px 0;
}

.volunteer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 5px;
}

.volunteer-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(177, 177, 177, 0.15);
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;

    /* 기타 */
    &[data-fund-map-seq="-1"] { background: #f1efe8; color: #858480; }
    /* 아동·청소년 */
    &[data-fund-map-seq="1"]  { background: #fef3c7; color: #9c5123; }
    /* 여성 */
    &[data-fund-map-seq="2"]  { background: var(--Dark-Red-Bg); color: var(--Dark-Red-Point); }
    /* 어르신 */
    &[data-fund-map-seq="3"]  { background: #dff2ff; color: #5886a8; }
    /* 동물 */
    &[data-fund-map-seq="4"]  { background: var(--Lime-Bg); color: var(--Lime-Point); }
    /* 지구촌 */
    &[data-fund-map-seq="5"]  { background: var(--Dark-Red-Bg); color: var(--Dark-Red-Point); }
    /* 장애인 */
    &[data-fund-map-seq="6"]  { background: #645CA1; color: #EEEDFE; }
    /* 재난·재해 */
    &[data-fund-map-seq="7"]  { background: #FCEBEB; color: #791F1E; }
    /* 소방관 */
    &[data-fund-map-seq="8"]  { background: var(--Brown-Bg); color: var(--Brown-Point); }
    /* 경찰관 */
    &[data-fund-map-seq="9"]  { background: var(--Green-Bg); color: var(--Green-Point); }
    /* 군인 */
    &[data-fund-map-seq="10"] { background: #FAEEDA; color: #623806 }
    /* 보훈유공자 */
    &[data-fund-map-seq="11"] { background: #F0FDF4; color: #146433; }
}

.volunteer-tag-original {
    border: 1px solid var(--primary-color);
    color: transparent;
    background: #ffffff linear-gradient(99.2deg, var(--primary-color) 0%, #1acedf 99%);
    -webkit-background-clip: text;
    background-clip: text;
}

.volunteer-tag-group {
    /* 주거 */
    &[data-group-seq="1"]  { background: var(--Brown-Bg); color: var(--Brown-Point); }
    /* 교육 */
    &[data-group-seq="2"]  { background: var(--Navy-Bg); color: var(--Navy-Point); }
    /* 보건 */
    &[data-group-seq="3"]  { background: var(--Green-Bg); color: var(--Green-Point); }
    /* 지역사회 */
    &[data-group-seq="4"]  { background: var(--Purple-Bg); color: var(--Purple-Point); }
    /* 문화·예술 */
    &[data-group-seq="5"]  { background: var(--Dark-Red-Bg); color: var(--Dark-Red-Point); }
    /* 환경 */
    &[data-group-seq="6"]  { background: var(--Lime-Bg); color: var(--Lime-Point); }
    /* 행정 */
    &[data-group-seq="7"]  { background: var(--gray05-color); color: #5f5e5a; }
    /* 안전 */
    &[data-group-seq="8"]  { background: var(--Green-Bg); color: var(--Green-Point); }
    /* 공익*/
    &[data-group-seq="9"]  { background: #faeeda; color: #623806; }
    /* 재난 */
    &[data-group-seq="10"] { background: #fcebeb; color: #791f1e; }
    /* 국제협력 */
    &[data-group-seq="11"] { background: var(--Navy-Bg); color: var(--Navy-Point); }
    /* 기타 */
    &[data-group-seq="12"] { background: #f1efe8; color: #5f5e5a; }
}

.volunteer-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--Dolgo-Grey-900);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.volunteer-location {
    display: flex;
    gap: 3px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray5-color);
}

.volunteer-location-org {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.volunteer-period {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.volunteer-period-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray5-color);
    margin: 0;
}

.volunteer-period-date {
    font-size: 18px;
    font-weight: 600;
    color: var(--Dolgo-Grey-900);
    line-height: 1.4;
    margin: 0;
}

.volunteer-schedule {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray5-color);
    white-space: nowrap;
}

.volunteer-schedule-days,
.volunteer-schedule-time,
.volunteer-schedule-caption {
    flex-shrink: 0;
}

.volunteer-divider {
    width: 100%;
    height: 12px;
    background: var(--gray0-color);
    margin-top: 20px;
}

.volunteer-section {
    padding: 24px 16px 0;

    &:last-of-type {
        padding-bottom: 44px;
    }
}

.volunteer-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--Dolgo-Grey-900);
    margin: 0 0 20px;
}

.volunteer-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.volunteer-info-row {
    display: flex;
    gap: 40px;
    align-items: center;
    font-size: 16px;
}

.volunteer-info-row-top {
    align-items: flex-start;
}

.volunteer-info-row-block {
    margin-bottom: 0;
}

.volunteer-info-label {
    flex-shrink: 0;
    width: 42px;
    font-weight: 600;
    color: var(--Dolgo-Grey-700);
}

.volunteer-info-value {
    flex: 1;
    font-weight: 400;
    color: var(--gray7-color);
    word-break: break-word;
    position: relative;
}

.volunteer-info-value-multiline {
    line-height: 1.4;
    white-space: pre-line;
}

.volunteer-info-duration {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray5-color);
    white-space: nowrap;
}

.volunteer-tooltip {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: pointer;
    outline: none;

    .volunteer-tooltip-icon {
        width: 16px;
        height: 16px;
        display: block;
    }

    .volunteer-tooltip-bubble {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        padding: 15px 20px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
        font-size: 13px;
        font-weight: 500;
        color: var(--gray6-color);
        line-height: 1.6;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease-in-out;
        pointer-events: none;
        z-index: 10;
    }

    &:hover .volunteer-tooltip-bubble,
    &:focus .volunteer-tooltip-bubble,
    &:focus-within .volunteer-tooltip-bubble,
    &.on .volunteer-tooltip-bubble {
        opacity: 1;
        visibility: visible;
    }
}

.volunteer-activity-detail {
    padding: 24px 0 0;

    > .volunteer-section-title,
    > .volunteer-info-list {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.volunteer-content {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--gray7-color);
    line-height: 27px;

    img {
        display: block;
        margin: auto 0;
    }

    &.external-1365 {
        padding: 0 16px;
    }
}

