@charset "utf-8";

/*
    교회소식 최신글 스킨
    메인 색상은 아래 변수만 수정하면 됩니다.
*/
.church-news-latest {
    --news-main: #5f9fa3;
    --news-main-dark: #39777c;
    --news-navy: #17294b;
    --news-text: #4f5d70;
    --news-light-text: #768397;
    --news-line: #dce5e7;
    --news-bg: #f6faf9;
    --news-warm-bg: #fbf7f2;

    width: 100%;
    box-sizing: border-box;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

.church-news-latest *,
.church-news-latest *::before,
.church-news-latest *::after {
    box-sizing: border-box;
}

/* 상단 제목 영역 */
.church-news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.church-news-label {
    display: block;
    margin-bottom: 13px;
    color: var(--news-main-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.church-news-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.church-news-title-row h2 {
    flex: 0 0 auto;
    margin: 0;
    color: var(--news-navy);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1.2;
}

.church-news-line {
    display: block;
    width: 180px;
    height: 1px;
    background: var(--news-navy);
    opacity: 0.75;
}

.church-news-heading p {
    margin: 14px 0 0;
    color: var(--news-light-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.035em;
}

.church-news-more {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    color: var(--news-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.church-news-more i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border: 1px solid var(--news-line);
    border-radius: 50%;
    color: var(--news-main-dark);
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-style: normal;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.church-news-more:hover {
    color: var(--news-main-dark);
}

.church-news-more:hover i {
    background: var(--news-main-dark);
    color: #fff;
    transform: translateX(3px);
}

/* PC 좌우 배치 */
.church-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 22px;
}

/* 대표 게시물 */
.church-news-feature {
    position: relative;
    display: flex;
    min-height: 362px;
    padding: 34px;
    overflow: hidden;
    border-radius: 24px;
    background:#059a91;
    color: #fff;
    text-decoration: none;
    flex-direction: column;
    justify-content: space-between;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.church-news-feature::after {
    position: absolute;
    right: -55px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border: 32px solid rgba(95, 159, 163, 0.11);
    border-radius: 50%;
    content: "";
}

.church-news-feature:hover {
    box-shadow: 0 18px 38px rgba(30, 70, 82, 0.11);
    transform: translateY(-5px);
}

.church-news-feature-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.church-news-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 15px;
    border-radius: 30px;
    background: #25767b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.church-news-feature-top time {
    color: #fff);
    font-size: 13px;
    font-weight: 600;
}

.church-news-feature-body {
    position: relative;
    z-index: 1;
    padding: 35px 0;
}

.church-news-feature-body h3 {
    margin: 0;
    color: #fff;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1.45;
}

.church-news-feature-body p {
    max-width: 560px;
    margin: 17px 0 0;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: -0.035em;
    word-break: keep-all;
}

.church-news-feature-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.church-news-feature-bottom i {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    transition: transform 0.25s ease;
}

.church-news-feature:hover .church-news-feature-bottom i {
    transform: translateX(6px);
}

/* 오른쪽 게시물 목록 */
.church-news-list {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 24px;
    background: #fff;
    flex-direction: column;
}

.church-news-item {
    display: flex;
    min-height: 90px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--news-line);
    color: inherit;
    text-decoration: none;
    align-items: center;
    gap: 20px;
    transition: background-color 0.25s ease;
}

.church-news-item:last-child {
    border-bottom: 0;
}

.church-news-item:hover {
    background: var(--news-bg);
}

.church-news-date {
    display: flex;
    width: 52px;
    flex: 0 0 52px;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.church-news-date strong {
    color: var(--news-main-dark);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.church-news-date span {
    display: block;
    margin-top: 6px;
    color: var(--news-light-text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
}

.church-news-item-content {
    min-width: 0;
    flex: 1 1 auto;
}

.church-news-item-label {
    display: block;
    margin-bottom: 5px;
    color: var(--news-main-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.church-news-item h3 {
    overflow: hidden;
    margin: 0;
    color: var(--news-navy);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
    letter-spacing: -0.05em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.church-news-item p {
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--news-light-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.church-news-item-arrow {
    flex: 0 0 auto;
    color: #a9b9bd;
    font-family: Arial, sans-serif;
    font-size: 18px;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.church-news-item:hover .church-news-item-arrow {
    color: var(--news-main-dark);
    transform: translateX(5px);
}

/* 게시물이 하나만 있는 경우 */
.church-news-empty-side {
    display: flex;
    min-height: 160px;
    padding: 28px;
    background: #fff;
    flex-direction: column;
    justify-content: center;
}

.church-news-empty-side span {
    color: var(--news-main-dark);
    font-size: 12px;
    font-weight: 800;
}

.church-news-empty-side p {
    margin: 9px 0 0;
    color: var(--news-light-text);
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: -0.035em;
}

/* 게시물이 없는 경우 */
.church-news-empty {
    padding: 65px 20px;
    border: 1px solid var(--news-line);
    border-radius: 22px;
    background: var(--news-bg);
    text-align: center;
}

.church-news-empty span {
    color: var(--news-main-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.church-news-empty p {
    margin: 12px 0 0;
    color: var(--news-light-text);
    font-size: 15px;
    letter-spacing: -0.035em;
}

/* 태블릿 */
@media screen and (max-width: 980px) {
    .church-news-heading {
        margin-bottom: 25px;
    }

    .church-news-layout {
        grid-template-columns: 1fr;
    }

    .church-news-feature {
        min-height: 280px;
    }
}

/* 모바일 */
@media screen and (max-width: 640px) {
    .church-news-heading {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
        flex-direction: column;
    }

    .church-news-label {
        margin-bottom: 9px;
        font-size: 11px;
    }

    .church-news-title-row {
        width: 100%;
        gap: 15px;
    }

    .church-news-title-row h2 {
        font-size: 27px;
    }

    .church-news-line {
        width: auto;
        flex: 1 1 auto;
    }

    .church-news-heading p {
        margin-top: 10px;
        font-size: 13px;
    }

    .church-news-more {
        gap: 9px;
        padding: 4px 0 0;
        font-size: 13px;
    }

    .church-news-more i {
        width: 27px;
        height: 27px;
        font-size: 15px;
    }

    .church-news-layout {
        gap: 14px;
    }

    .church-news-feature {
        min-height: 235px;
        padding: 24px 21px;
        border-radius: 18px;
    }

    .church-news-badge {
        min-height: 27px;
        padding: 0 11px;
        font-size: 9px;
    }

    .church-news-feature-top time {
        font-size: 11px;
    }

    .church-news-feature-body {
        padding: 24px 0;
    }

    .church-news-feature-body h3 {
        font-size: 21px;
        line-height: 1.42;
    }

    .church-news-feature-body p {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 11px;
        font-size: 13px;
        line-height: 1.7;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .church-news-feature-bottom {
        font-size: 13px;
    }

    .church-news-list {
        border-radius: 18px;
    }

    .church-news-item {
        min-height: 80px;
        padding: 15px 14px;
        gap: 12px;
    }

    .church-news-date {
        width: 42px;
        flex-basis: 42px;
    }

    .church-news-date strong {
        font-size: 23px;
    }

    .church-news-date span {
        font-size: 10px;
    }

    .church-news-item-label {
        margin-bottom: 3px;
        font-size: 10px;
    }

    .church-news-item h3 {
        font-size: 14px;
    }

    .church-news-item p {
        display: none;
    }

    .church-news-item-arrow {
        font-size: 16px;
    }
}