.sample-body {
    background: var(--sand);
    border-block: 1px solid var(--line)
}
.sample-body > footer {
    background: #fff;
}

.sample-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    box-sizing: border-box;
}


/* 제목 */
.sample-page-title {
    text-align: center;
    margin-bottom: 22px;
}

.sample-page-title h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111;
}

.sample-page-title h1 span {
    color: var(--flame);
}

.title-line {
    width: 300px;
    height: 3px;
    margin: 12px auto 0;
    background: var(--flame);
}


/* 카드 그리드 */
.sample-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;

    padding: 30px 20px;
    box-sizing: border-box;
}


/* 카드 */
.sample-card {
    min-width: 0;
    height: 220px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

/* 카드 전체를 클릭 영역으로 */
.sample-one {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    padding: 24px;
    box-sizing: border-box;

    color: #222;
    text-decoration: none;

    background: #fff;
}

/* 제목 */
.sample-one h2 {
    margin: 0 0 16px;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;

    color: #222;

    /* overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; */
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 이미지 hover */
.sample-one:hover {
    transform: scale(1.03);
}


/* 설명 영역 */
.sample-info {
    flex: 1;

    display: flex;
    align-items: flex-start;
}

/* 설명 */
.sample-info p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: #777;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}

/* 마우스 올렸을 때 */
.sample-card:hover {
    transform: translateY(-5px);

    border-color: #d1d5db;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}
.sample-card:hover .sample-one h2 {
    color: #111;
}

/* 클릭 */
.sample-card:active {
    transform: translateY(-2px);
}


/* 태블릿 */
@media (max-width: 1100px) {

    .sample-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* 작은 태블릿 */
@media (max-width: 800px) {

    .sample-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 20px 16px;
    }

    .sample-card {
        height: 200px;
    }

}

/* 모바일 */
@media (max-width: 500px) {

    .sample-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sample-card {
        height: 180px;
    }

    .sample-one {
        padding: 20px;
    }

    .sample-one h2 {
        font-size: 21px;
        margin-bottom: 12px;
    }

}