/* 지원금 가이드 목록·상세 */
.guide-list-wrap .guide-list-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.guide-view-wrap .guide-view-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.guide-list-title {
    font-size: 20px;
    font-weight: 700;
    color: rgba(13, 28, 45, 0.88);
    padding: 16px 0 8px;
    margin: 0;
}

.guide-list-sep {
    height: 1px;
    background: #f2f4f7;
    margin: 0 0 16px;
}

/* Frame 8628 — 목록 컬럼 */
.guide-list.guide-list--frame {
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.guide-list__item {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Frame 8636 — 행 */
.guide-list__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease;
    box-sizing: border-box;
}

.guide-list__link:hover {
    box-shadow: none;
}

.guide-list__link:hover .guide-list__h {
    color: #4568ff;
}

/* 혜택 카드 + Rectangle 232 */
.guide-list__thumb-wrap {
    flex: 0 0 378px;
    width: 378px;
    max-width: 42%;
    height: 220px;
    background: #f2f4f7;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.guide-list__thumb {
    flex: 1;
    width: 100%;
    min-height: 0;
    border-radius: 16px;
    background-color: #e0e3e7;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.guide-list__thumb--has {
    background-image: var(--guide-list-thumb);
}

.guide-list__thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .guide-list__thumb-wrap {
        flex: 0 0 200px;
        width: 200px;
        height: 160px;
    }
}

@media (max-width: 640px) {
    .guide-list.guide-list--frame {
        padding: 16px 0;
    }

    .guide-list__link {
        flex-direction: column;
        align-items: stretch;
    }

    .guide-list__thumb-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 378 / 220;
    }
}

/* Frame 8637 — 텍스트 컬럼 */
.guide-list__body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    min-width: 0;
    min-height: 220px;
    gap: 0;
    padding: 0;
}

.guide-list__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    flex: 1 1 auto;
    gap: 10px;
    padding: 16px 16px 8px;
    box-sizing: border-box;
    min-height: 0;
}

/* Heading2_24_B / 제목 */
.guide-list__h {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    text-align: justify;
    text-align-last: left;
    color: rgba(13, 28, 45, 0.8);
    margin: 0;
    word-break: keep-all;
}

/* Body1_16_M / 설명 */
.guide-list__summary {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(13, 28, 45, 0.5);
    margin: 0;
}

/* row item — 날짜 행 */
.guide-list__meta-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    flex: 0 0 auto;
    padding: 16px 0 16px 16px;
    box-sizing: border-box;
}

/* Body2_14_M */
.guide-list__date {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(13, 28, 45, 0.5);
    margin: 0;
}

@media (max-width: 640px) {
    .guide-list__body {
        min-height: 0;
    }

    .guide-list__header {
        padding: 12px 0 8px;
    }

    .guide-list__meta-row {
        padding: 12px 0 12px 0;
    }
}

/* 가이드 목록 페이지네이션: css/pagination.css + .guide-pagination */

/* 상세 */
.guide-view-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(13, 28, 45, 0.8);
    text-decoration: none;
}

/* subsidy_view.php와 동일: 목록으로 돌아가기 */
.guide-view-back.subsidy-view-back {
    margin-top: 8px;
}

.guide-view-back:hover {
    color: #4568ff;
}

/* 상세: 리드(description) vs 본문 섹션(contents) */
.guide-view-description {
    margin: 0 0 28px;
    padding: 20px 20px 22px;
    border-radius: 12px;
    background: #f7f9fc;
    border: 1px solid #e8ecf1;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: rgba(13, 28, 45, 0.85);
}

.guide-view-description .guide-view-p {
    margin: 0;
}

.guide-view-contents {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    color: rgba(13, 28, 45, 0.88);
}

.guide-view-contents .guide-view-section {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: rgba(13, 28, 45, 0.88);
}

.guide-view-contents .guide-view-section:first-child {
    margin-top: 0;
}

.guide-view-contents .guide-view-p {
    margin: 0 0 16px;
}

.guide-view-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 200px;
    margin: 8px 0 24px;
    padding: 24px 20px 22px;
    border-radius: 16px;
    box-sizing: border-box;
    background: #f2f4f7;
    background-repeat: no-repeat;
    overflow: hidden;
}

.guide-view-hero--thumb {
    background: #0d1c2d;
}

.guide-view-hero--thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #000000 16.83%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.guide-view-hero__img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* guide_list 카드 본문(guide-list__body)과 동일 구조: header + meta-row */
.guide-view-hero-head {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: stretch;
    gap: 0;
    margin: 0;
    min-width: 0;
}

.guide-view-hero-head .guide-list__header {
    padding: 0 0 8px;
    flex: 0 1 auto;
}

.guide-view-hero-head .guide-list__meta-row {
    padding: 16px 0 0;
}

.guide-view-hero--thumb .guide-list__h {
    color: #ffffff;
}

.guide-view-hero--thumb .guide-list__summary {
    color: rgba(255, 255, 255, 0.78);
}

.guide-view-hero--thumb .guide-list__date {
    color: rgba(255, 255, 255, 0.82);
}

.guide-view-placeholder {
    padding: 24px;
    background: #f2f4f7;
    border-radius: 12px;
    color: rgba(13, 28, 45, 0.5);
    font-size: 14px;
}
