/* ================================
   패키지 목록
================================ */

.package-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
}

.package-heading {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 0 25px 18px;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e7eb;
}

.package-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #222;
}

.package-heading p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #888;
}

.package-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    box-sizing: border-box;
}

.package-item {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.package-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

/* 이미지 */
.package-image-link {
    display: block;
    width: 100%;
}

.package-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5 / 1;
    background-color: #f3f4f6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.package-click {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 35px;
    padding: 3px 7px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 11px;
    text-align: center;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 내용 */
.package-content {
    padding: 16px;
}

.package-title {
    height: 48px;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.package-title a {
    color: #333;
    text-decoration: none;
}

.package-title a:hover {
    color: #2563eb;
}

.package-info {
    margin-bottom: 14px;
    color: #777;
    font-size: 13px;
    line-height: 20px;
}

/* 카테고리 및 그룹 */
.package-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 25px;
}

.package-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 2px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #777;
    font-size: 11px;
    line-height: 17px;
    text-decoration: none;
    box-sizing: border-box;
}

.package-tag.category {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
    font-weight: 600;
}

.package-tag:hover {
    background: #f3f4f6;
    color: #333;
}

/* 태블릿 */
@media (max-width: 1000px) {
    .package-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

/* 모바일 */
@media (max-width: 700px) {
    .package-page {
        padding: 0 15px;
    }

	.package-heading {
        padding: 0 15px 14px;
        margin-bottom: 18px;
    }

    .package-heading h2 {
        font-size: 23px;
        line-height: 32px;
    }

    .package-heading p {
        font-size: 12px;
    }

	.package-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 12px;
    }

    .package-content {
        padding: 12px;
    }

    .package-title {
        font-size: 14px;
        line-height: 21px;
        height: 42px;
        margin-bottom: 8px;
    }

    .package-info {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .package-tag {
        padding: 2px 6px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .package-list {
        grid-template-columns: 1fr;
    }
}