.home {
    display: flex;
    flex-direction: column;

    > section {
        margin-block: 15px;
    }

    > section:first-child {
        margin-top: 0;
    }

    > section:last-child {
        margin-bottom: 0;
    }

    /* 기부금 보고서 카드 fragments/reportCard 를 홈에서는 가로 스크롤 세로 카드로 쓴다 */
    .home-report {
        .report-wrapper {
            .report-body {
                display: flex;
                gap: 20px;
                margin: 0 -16px;
                padding: 0 16px;
                overflow-x: auto;
                scroll-padding: 0 16px;
                scroll-snap-type: x mandatory;
                scrollbar-width: none;

                &::-webkit-scrollbar {
                    display: none;
                }

                .report {
                    display: flex;
                    flex: 0 0 280px;
                    flex-direction: column;
                    gap: 10px;
                    padding: 0;
                    border-bottom: 0;
                    scroll-snap-align: start;

                    .report-org,
                    .img-grid {
                        margin-bottom: 0;
                    }

                    /* 대표 이미지 1장만 단체 위에 크게 보여 준다 */
                    .img-grid {
                        order: -1;
                        height: 190px;
                        border-radius: 10px;

                        > div:not(:first-child) {
                            display: none;
                        }
                    }

                    .report-org {
                        .report-org-logo {
                            width: 30px;
                            height: 30px;
                        }

                        .report-org-name {
                            font-size: 12px;
                            font-weight: 600;
                        }
                    }

                    .report-text {
                        .report-title {
                            display: -webkit-box;
                            overflow: hidden;
                            font-size: 14px;
                            font-weight: 700;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 2;
                        }

                        .report-fund-date {
                            .report-date {
                                display: none;
                            }
                        }
                    }
                }
            }
        }
    }
}

.home-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.home-banner-slider {
    position: relative;
    width: 100%;
}

.home-banner-count {
    position: absolute;
    right: 16px;
    bottom: 15px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 10px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    color: var(--white-color);
    font-size: 12px;
}

.home-banner-link {
    display: block;

    img {
        display: block;
        width: 100%;
        height: auto;
    }
}

.home-banner-pagination,
.home-news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 5px;

    &.swiper-pagination-bullets {
        .swiper-pagination-bullet {
            width: 5px;
            height: 5px;
            margin: 0;
            border-radius: 2.5px;
            background: var(--gray-200);
            opacity: 1;
            transition: width 0.2s;
        }

        .swiper-pagination-bullet-active {
            width: 14px;
            border-radius: 3px;
            background: var(--primary-color);
        }
    }
}

.home-quick-menu-list {
    display: grid;
    grid-template-columns: repeat(var(--home-quick-menu-columns), 80px);
    row-gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }

    &.is-fixed {
        grid-template-columns: repeat(4, 80px);
        justify-content: space-between;
        row-gap: 12px;
        overflow-x: visible;
        padding: 0 16px;
    }
}

.home-quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.home-quick-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;

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

.home-quick-menu-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-900);
    text-align: center;
    white-space: nowrap;
}

.home-snack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
    border: 1px solid var(--gray-100);
    border-radius: 30px;
    background: var(--white-color);

    &[data-result-type="RATIO"] {
        &[data-ratio-columns="2"] {
            .home-snack-choices {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }
        }

        .home-snack-choice {
            height: 44px;
            border-radius: 12px;
            font-weight: 700;
            color: var(--gray-900);
        }

        .home-snack-choices:not([data-type="OX"]) .home-snack-choice.active {
            color: var(--primary-color);
        }
    }
}

.home-snack-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    word-break: keep-all;
    white-space: pre-line;
}

.home-snack-guide {
    font-size: 13px;
    font-weight: 400;
    color: var(--primary-color);
    line-height: normal;
}

.home-snack-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 10px 0;

    &[data-type="OX"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;

        .home-snack-choice {
            flex-direction: column;
            line-height: normal;
            font-weight: 400;
            gap: 11px;
            height: auto;
            padding: 20px 0;
            border-color: transparent;
            border-radius: 20px;
            background: var(--primary0-color);
            color: var(--primary5-color);

            &:nth-child(2) {
                background: var(--red-050);
                color: var(--red5-color);
            }

            img {
                width: 26px;
                height: 26px;
            }

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

    &[data-type="IMAGE_CARD"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;

        .home-snack-choice {
            flex-direction: column;
            align-items: stretch;
            gap: 0;
            height: auto;
            padding: 0;
            border: 0;
            border-radius: 14px;
            background: var(--white-color);
            box-shadow: inset 0 0 0 1px #D9E3EE;
            text-align: left;

            &.active {
                background: var(--white-color);
                box-shadow: inset 0 0 0 1px var(--primary-color), 0 0 0 1px var(--primary-color);
            }
        }

        .home-snack-label {
            padding: 10px 10px 5px;
            font-size: 10px;
            font-weight: 700;
            color: #252A30;
        }
    }
}

.home-snack-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    height: 43px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: var(--white-color);
    font-size: 14px;
    font-weight: 500;
    color: #595F69;
    text-align: center;
    word-break: keep-all;

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

.home-snack-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-snack-image {
    width: 100%;
    aspect-ratio: 660 / 344;
    object-fit: cover;
}

.home-snack-sub {
    min-height: 20px;
    padding: 1px 10px 11px;
    font-size: 8px;
    color: #747C85;
}

.home-snack-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-snack-input-guide {
    font-size: 13px;
    color: var(--gray-500);
}

.home-snack-input-field {
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    color: var(--gray-900);
}

.home-snack-submit {
    padding: 12px;
    border-radius: 10px;
    background: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    color: var(--white-color);
    text-align: center;
}

.home-snack-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 11px;
    background: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    color: var(--white-color);
}

.home-snack-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-snack-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: var(--gray-000);
    color: var(--gray-900);
}

.home-snack-summary,
.home-snack-thanks {
    font-size: 14px;
    font-weight: 600;
}

.home-snack-summary {
    &:empty {
        display: none;
    }
}

.home-snack-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-snack-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;

    &.active {
        .home-snack-bar-text {
            font-weight: 700;
            color: #0F7CF0;
        }

        .home-snack-bar-track {
            i {
                background: #2F8BE6;
            }
        }
    }
}

.home-snack-bar-text {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-800);
}

.home-snack-bar-track {
    overflow: hidden;
    height: 10px;
    border-radius: 5px;
    background: #E1E5F0;

    i {
        display: block;
        height: 10px;
        border-radius: 5px;
        background: #9DC4EE;
        transition: width 0.4s;
    }
}

.home-snack-share-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 49px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--white-color);

    i {
        font-size: 16px;
        font-style: normal;
    }
}

.home-snack-result-title {
    font-size: 16px;
    font-weight: 700;

    &:empty {
        display: none;
    }
}

.home-snack-result-text {
    font-size: 14px;
    font-weight: 500;
    white-space: pre-line;

    &:empty {
        display: none;
    }
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    background: var(--white-color);
}

.home-section-title-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-section-info {
    display: flex;
    padding: 0;
    border: 0;
    background: none;

    img {
        width: 15px;
        height: 15px;
    }
}

.home-section-info-popover {
    max-width: 260px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-700);
    word-break: keep-all;
}

.home-section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    white-space: pre-line;
}

.home-section-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-400);
}

.home-section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    .home-section-header {
        flex: 1 0 0;
        min-width: 1px;
    }
}

.home-section-header-more {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    line-height: normal;

    img {
        width: 15px;
        height: 15px;
    }
}

/* 가로 스크롤 목록은 섹션 패딩 밖 화면 끝까지 넘긴다 */
.home-donation-list,
.home-volunteer-list,
.home-review-list {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-padding: 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.home-donation-list {
    display: flex;
    gap: 20px;
}

/* 사연 목록 카드 fragments/storyCard 를 홈에서는 세로 카드로 쓴다 */
.home-donation {
    &.story-wrapper {
        .story-body {
            .story-card {
                flex: 0 0 288px;
                flex-direction: column;
                gap: 10px;
                margin: 0;
                padding: 0;
                border-bottom: 0;
                scroll-snap-align: start;

                .story-thumb {
                    width: 288px;
                    height: 192px;
                    border-radius: 20px;

                    img {
                        width: 100%;
                        height: 100%;
                        max-width: none !important;
                        border-radius: 20px;
                    }
                }

                .story-text {
                    gap: 15px;
                }

                .story-head {
                    .story-type {
                        display: none;
                    }

                    .story-title {
                        height: 47px;
                        font-size: 17px;
                    }
                }

                .story-fund {
                    .story-fund-top {
                        .story-percent {
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
}

.home-volunteer-list {
    display: flex;
    gap: 20px;

    .volunteer-card {
        flex: 0 0 288px;
        gap: 0;
        padding: 0;
        border-bottom: 0;
        scroll-snap-align: start;
    }

    .volunteer-card-main {
        position: relative;
        flex-direction: column;
        gap: 10px;
    }

    .volunteer-card-thumb {
        box-sizing: border-box;
        width: 288px;
        height: 192px;
        border: 1px solid #eceff1;
        border-radius: 15px;
    }

    .volunteer-card-status-badge {
        top: 10px;
        left: 10px;
    }

    .volunteer-card-body,
    .volunteer-card-info-top,
    .volunteer-card-info-bottom {
        gap: 5px;
    }

    .volunteer-card-taxonomy-group,
    .volunteer-card-review {
        display: none;
    }

    .volunteer-card-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--gray-900);
    }

    .volunteer-card-location {
        font-size: 14px;
        font-weight: 500;
        color: var(--gray-400);
    }

    .volunteer-card-location-org {
        max-width: none;
    }

    /* 이미지 위에 얹히므로 흰 바탕 배지로 바꾼다 */
    .volunteer-card-original {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        border-color: var(--primary-color);
        background: linear-gradient(109.26deg, var(--primary-color) 0%, #00eaff 100%), var(--white-color);
        -webkit-background-clip: text, padding-box;
        background-clip: text, padding-box;
        font-size: 12px;

        &::before {
            display: none;
        }
    }

    .volunteer-card-schedule {
        font-size: 14px;
        font-weight: 500;
        color: var(--gray-800);
    }

    .volunteer-card-date {
        font-size: 14px;
        font-weight: 600;
        color: var(--gray-900);
    }
}

.home-review-list {
    display: flex;
    gap: 20px;

    > li {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

.home-review-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: none;
    width: 280px;
}

.home-review-photo {
    width: 280px;
    height: 190px;
    border-radius: 10px;
    object-fit: cover;
}

.home-review-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-review-avatar {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border: 1px solid var(--gray-050);
    border-radius: 50%;

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

.home-review-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-review-nickname {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
}

.home-review-info {
    display: flex;
    gap: 3px;
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
}

.home-review-info-divider {
    color: var(--gray-200);
}

.home-review-text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-agency-review {
    .home-review-text {
        -webkit-line-clamp: 2;
    }
}

.home-review-program {
    overflow: hidden;
    padding-top: 15px;
    border-top: 1px solid var(--gray-100);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-impact {
    position: relative;
    overflow: hidden;
    background: var(--white-color) url("/assets/images/main/home-impact-bg-3afaec1cae96af6199abb7e2db812f5f.svg") no-repeat 111px 56px;

    .home-section-subtitle {
        font-size: 12px;
    }
}

.home-impact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;

    div {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    dt {
        font-size: 16px;
        font-weight: 400;
        color: var(--gray-900);
    }

    dd {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-color);
    }
}

.home-impact-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-900);
    white-space: nowrap;

    &::before,
    &::after {
        content: "";
        flex: 1 0 0;
        height: 1px;
        background: var(--gray-100);
    }
}

.home-rank-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.home-rank-tab {
    flex-shrink: 0;
    padding: 7px 15px;
    border: 1px solid transparent;
    border-radius: 99px;
    background: var(--gray-000);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);

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

.home-rank-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;

    &.hidden {
        display: none;
    }
}

.home-rank-empty {
    padding: 30px 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-400);
    text-align: center;
}

.home-rank-podium {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.home-rank-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 106px;
    margin-top: 30px;
    padding: 15px 10px;
    border-radius: 20px;
    background: var(--home-rank-bg);
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.05));
    --home-rank-color: var(--primary-color);
    --home-rank-value-color: var(--primary-color);
    --home-rank-bg: var(--primary0-color);

    &.is-rank-1 {
        order: 2;
        margin-top: 0;
    }

    &.is-rank-2 {
        order: 1;
        --home-rank-color: var(--orange-color);
        --home-rank-value-color: var(--orange5-color);
        --home-rank-bg: var(--orange-050);
    }

    &.is-rank-3 {
        order: 3;
        --home-rank-color: var(--red3-color);
        --home-rank-value-color: var(--red3-color);
        --home-rank-bg: var(--red-050);
    }

    .home-rank-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 3px;
    }

    /* 빈 순위 칸도 같은 높이를 유지한다 */
    .home-rank-name:empty::before,
    .home-rank-value:empty::before {
        content: '\00a0';
    }

    .home-rank-name {
        margin-top: 15px;
        font-size: 12px;
        font-weight: 700;
        color: #2d333a;
    }

    .home-rank-value {
        margin-top: -5px;
        font-weight: 700;
        color: var(--home-rank-value-color);
    }
}


.home-rank-avatar {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef1f4;

    img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
}

.home-rank-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--white-color);
    border-radius: 50%;
    background: var(--home-rank-color);
    font-size: 16px;
    font-weight: 700;
    color: var(--white-color);
    transform: translateX(-50%);
}

.home-rank-name {
    overflow: hidden;
    max-width: 100%;
    font-size: 13px;
    font-weight: 400;
    color: #122740;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-rank-value {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 400;
    color: #8b95a1;
}

.home-rank-rows {
    padding-top: 6px;

    li {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 11px 0;

        + li {
            border-top: 1px solid #f2f4f6;
        }
    }

    .home-rank-name {
        flex: 1 0 0;
        min-width: 1px;
    }
}

.home-rank-no {
    width: 20px;
    font-size: 13px;
    font-weight: 400;
    color: #8b95a1;
    text-align: center;
}

.home-rank-updated {
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-500);
    text-align: right;
}

.home-rank-count {
    padding: 9px 5px;
    border-radius: 8px;
    background: var(--primary0-color);
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-700);
    text-align: center;

    strong {
        font-weight: 700;
        color: var(--primary-color);
    }
}

.home-news-slider {
    width: 100%;
    overflow: hidden;
}

.home-news-card {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: var(--gray-000);

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

.home-news-pagination {
    margin-top: 14px;
}

.home-faq-item {
    border-bottom: 1px solid #f2f4f6;

    &:last-child {
        border-bottom: 0;
    }

    &::details-content {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease, content-visibility 0.3s allow-discrete;
    }

    &[open]::details-content {
        grid-template-rows: 1fr;
    }

    &[open] {
        .home-faq-question {
            &::after {
                color: var(--gray-900);
                content: "-";
            }
        }
    }
}

.home-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker {
        display: none;
    }

    &::after {
        flex-shrink: 0;
        font-size: 15px;
        font-weight: 400;
        color: var(--gray-400);
        content: "+";
    }
}

.home-faq-answer-wrap {
    min-height: 0;
    overflow: hidden;
}

.home-faq-answer {
    padding: 13px 0;
    font-size: 14px;
    font-weight: 400;
    color: #4e5968;
    word-break: break-word;

    img {
        max-width: 100%;
        height: auto;
    }
}

.home-cs {
    margin: 0 16px;
    padding: 20px;
    border-radius: 20px;
    background: #fff8d9;

    .home-section-header {
        gap: 5px;
    }

    .home-section-subtitle {
        color: var(--gray-500);
    }
}

.home-cs-button {
    display: block;
    padding: 13px;
    border-radius: 13px;
    background: #fee500;
    font-size: 14px;
    font-weight: 500;
    color: #3c1e1e;
    text-align: center;
}

.home-target-chips {
    display: flex;
    gap: 10px;
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.home-target-chip {
    flex-shrink: 0;
    height: 33px;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    background: var(--white-color);
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-600);

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

    /* 공동 모금함 탭은 선택 전에도 파란 테두리와 그라데이션 글자로 구분한다 */
    &.is-common:not(.active) {
        border-color: var(--primary-color);
        background: linear-gradient(105.57deg, var(--primary-color) 0%, #00eaff 100%), var(--white-color);
        -webkit-background-clip: text, padding-box;
        background-clip: text, padding-box;
        font-weight: 600;
        color: transparent;
    }
}

.home-target-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-target-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    height: 190px;
    padding: 19px;
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    background: var(--gray-000) center / cover no-repeat;
    color: var(--white-color);
}

.home-target-card-title {
    font-size: 24px;
    font-weight: 700;
}

.home-target-card-text {
    font-size: 12px;
    font-weight: 400;
}

.home-target-stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    a {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    img {
        width: 100%;
        height: 170px;
        border-radius: 10px;
        object-fit: cover;
    }

    span {
        display: -webkit-box;
        overflow: hidden;
        height: 35px;
        font-size: 13px;
        font-weight: 500;
        color: #383838;
        word-break: break-word;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

.home-target-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 185px;
    border-radius: 20px;
    background: var(--gray-000);
    text-align: center;

    strong {
        font-size: 18px;
        font-weight: 700;
        color: #2d333a;
    }

    p {
        font-size: 13px;
        color: var(--gray-400);
    }
}

.home-target-common {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 16px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f4f8fe 0%, #d7e7fb 100%);
}

.home-target-common-badge {
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    color: var(--white-color);
}

.home-target-common-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    text-align: center;
    white-space: pre-line;
    word-break: keep-all;
}

.home-target-common-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.home-target-common-button {
    width: 100%;
    padding: 17px;
    border-radius: 16px;
    background: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    color: var(--white-color);
    text-align: center;
}

.home-foundation {
    padding: 16px;
}

.home-foundation-list {
    display: flex;
    gap: 20px;
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-padding: 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }

    li {
        flex: 0 0 150px;
        scroll-snap-align: start;
    }
}

.home-foundation-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-foundation-thumb {
    display: block;
    width: 150px;
    height: 170px;
    overflow: hidden;
    border: 1px solid #eceff1;
    border-radius: 15px;
    background: var(--gray-000);

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

.home-foundation-tags {
    display: flex;
    gap: 10px;
}

.home-foundation-title {
    display: -webkit-box;
    overflow: hidden;
    height: 42px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-foundation-amount {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);

    b {
        font-size: 20px;
        font-weight: 700;
        color: var(--primary-color);
    }
}

.home-partner {
    padding: 20px;
}

.home-partner-list {
    display: flex;
    gap: 16px;
    margin: 0 -20px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-padding: 0 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }

    li {
        flex: 0 0 150px;
        scroll-snap-align: start;
    }
}

.home-partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 170px;
    padding: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: var(--white-color);
    text-align: center;
}

.home-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;

    img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

.home-partner-name {
    overflow: hidden;
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #17243d;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-partner-amount {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: -7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);

    b {
        font-weight: 700;
    }
}

.home-agency {
    padding: 20px;
}

.home-agency-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: var(--white-color);
    color: #17243d;
}

.home-agency-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.home-agency-title {
    font-size: 18px;
    font-weight: 700;
}

.home-agency-count {
    font-size: 14px;
    font-weight: 400;
}

.home-agency-points {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    font-size: 14px;
    font-weight: 400;

    span::before {
        content: "✓";
        margin-right: 5px;
        font-weight: 800;
        color: var(--primary-color);
    }
}

.home-agency-logos {
    align-self: stretch;
    overflow: hidden;
    margin: 0 -20px;

    img {
        flex-shrink: 0;
        max-width: 118px;
        height: 39px;
        object-fit: contain;
    }
}

.home-agency-logos-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    animation: home-agency-roll var(--home-agency-roll-duration) linear infinite;
}

/* 두 번 이어 붙인 목록의 사이 간격 포함 절반만큼 흘리면 처음과 같은 모습이 된다 */
@keyframes home-agency-roll {
    to {
        transform: translateX(calc(-50% - 5px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-agency-logos-track {
        animation: none;
    }
}
