@charset "utf-8";

/* =========================================================
   설교방송 최신글 스킨
   Sermon Premium Latest Skin
========================================================= */

.sp-sermon,
.sp-sermon * {
    box-sizing: border-box;
}

.sp-sermon {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 62px 64px;
    overflow: hidden;
    border: 1px solid #e9e8e3;
    border-radius: 26px;
    background: #f8f8f5;
    color: #1d2624;
    font-family: inherit;
}


/* =========================================================
   상단 제목
========================================================= */

.sp-sermon__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.sp-sermon__heading {
    min-width: 0;
}

.sp-sermon__eyebrow {
    margin: 0 0 10px;
    color: #788178;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.sp-sermon__title {
    margin: 0;
    color: #1d2624;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 1.16;
}

.sp-sermon__description {
    margin: 15px 0 0;
    color: #77807d;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.7;
}

.sp-sermon__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 13px 18px;
    border: 1px solid #d9ddd8;
    border-radius: 999px;
    color: #56615d;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    text-decoration: none !important;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.sp-sermon__more-arrow {
    color: #87918d;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.sp-sermon__more:hover {
    border-color: #b9c0ba;
    background: #ffffff;
    color: #24332e;
}

.sp-sermon__more:hover .sp-sermon__more-arrow {
    transform: translateX(4px);
}


/* =========================================================
   PC 2단 레이아웃
========================================================= */

.sp-sermon__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
    gap: 18px;
}


/* =========================================================
   왼쪽: 가장 최신 설교 카드
========================================================= */

.sp-sermon__featured {
    position: relative;
    display: flex;
    min-height: 430px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 36px;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(255, 255, 255, 0.09),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            #263832 0%,
            #182722 100%
        );
    color: #ffffff;
    isolation: isolate;
    text-decoration: none !important;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.sp-sermon__featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(24, 39, 34, 0.18);
}


/* 유튜브 썸네일 */

.sp-sermon__media {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
}

.sp-sermon__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
}

.sp-sermon__featured:hover .sp-sermon__thumbnail {
    transform: scale(1.055);
}


/* 썸네일 위 어두운 그라데이션 */

.sp-sermon__dim {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(8, 16, 14, 0.32) 0%,
            rgba(8, 16, 14, 0.16) 28%,
            rgba(8, 16, 14, 0.48) 66%,
            rgba(8, 16, 14, 0.90) 100%
        );
}


/* 카드 테두리 효과 */

.sp-sermon__featured::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}


/* 카드 내부 콘텐츠 */

.sp-sermon__featured-top,
.sp-sermon__featured-content,
.sp-sermon__featured-bottom {
    position: relative;
    z-index: 3;
}

.sp-sermon__featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sp-sermon__badge {
    color: #d6dfdb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.sp-sermon__date {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.sp-sermon__category {
    margin: 0 0 14px;
    color: #c4d2cd;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.sp-sermon__featured-title {
    max-width: 620px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.075em;
    line-height: 1.22;
    word-break: keep-all;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}

.sp-sermon__info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 17px;
    margin-top: 23px;
}

.sp-sermon__info span {
    position: relative;
    color: rgba(255, 255, 255, 0.80);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.045em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.sp-sermon__info span + span {
    padding-left: 18px;
}

.sp-sermon__info span + span::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 3px;
    margin-top: -1px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    content: "";
}


/* 카드 하단 재생 버튼 */

.sp-sermon__featured-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sp-sermon__watch-text {
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.sp-sermon__play {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 50%;
    background: rgba(10, 20, 18, 0.56);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.sp-sermon__featured:hover .sp-sermon__play {
    transform: scale(1.08);
    background: rgba(10, 20, 18, 0.74);
}

.sp-sermon__play-icon {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #ffffff;
}


/* =========================================================
   오른쪽: 최근 설교 목록
========================================================= */

.sp-sermon__recent {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e4df;
    border-radius: 20px;
    background: #ffffff;
}

.sp-sermon__recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 26px 18px;
    border-bottom: 1px solid #eceeea;
}

.sp-sermon__recent-head p {
    margin: 0;
    color: #53605b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.sp-sermon__recent-head span {
    color: #a0a7a3;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.sp-sermon__recent-list {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.sp-sermon__recent-item {
    display: flex;
    min-height: 91px;
    align-items: center;
    gap: 17px;
    flex: 1;
    padding: 15px 22px;
    border-bottom: 1px solid #eef0ed;
    color: #29332f;
    text-decoration: none !important;
    transition:
        background 0.25s ease,
        padding-left 0.25s ease;
}

.sp-sermon__recent-item:last-child {
    border-bottom: 0;
}

.sp-sermon__recent-item:hover {
    padding-left: 27px;
    background: #fafbf9;
}

.sp-sermon__number {
    flex: 0 0 auto;
    color: #b9bfbc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.sp-sermon__recent-content {
    display: block;
    min-width: 0;
    flex: 1;
}

.sp-sermon__recent-content strong {
    display: block;
    overflow: hidden;
    color: #28332f;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-sermon__recent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 13px;
    margin-top: 7px;
}

.sp-sermon__recent-meta time,
.sp-sermon__recent-meta span {
    color: #969e9a;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.sp-sermon__recent-arrow {
    flex: 0 0 auto;
    color: #adb5b1;
    font-size: 18px;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.sp-sermon__recent-item:hover .sp-sermon__recent-arrow {
    color: #4f605a;
    transform: translateX(3px);
}


/* =========================================================
   등록된 게시물이 없을 때
========================================================= */

.sp-sermon__empty {
    padding: 80px 20px;
    border: 1px dashed #d9ddda;
    border-radius: 18px;
    color: #929a96;
    background: #ffffff;
    font-size: 15px;
    text-align: center;
}

.sp-sermon__empty-small {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #a1a8a5;
    font-size: 14px;
    text-align: center;
}


/* =========================================================
   태블릿
========================================================= */

@media (max-width: 980px) {

    .sp-sermon {
        padding: 48px 34px;
    }

    .sp-sermon__grid {
        grid-template-columns: 1fr;
    }

    .sp-sermon__featured {
        min-height: 390px;
    }

    .sp-sermon__recent {
        min-height: auto;
    }

    .sp-sermon__recent-item {
        min-height: 84px;
    }

}


/* =========================================================
   모바일
========================================================= */

@media (max-width: 560px) {

    .sp-sermon {
        padding: 31px 18px 19px;
        border-radius: 18px;
    }

    .sp-sermon__head {
        display: block;
        margin-bottom: 22px;
    }

    .sp-sermon__eyebrow {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .sp-sermon__title {
        font-size: 30px;
    }

    .sp-sermon__description {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.65;
    }

    .sp-sermon__more {
        margin-top: 17px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .sp-sermon__featured {
        min-height: 330px;
        padding: 23px;
        border-radius: 16px;
    }

    .sp-sermon__badge {
        font-size: 10px;
    }

    .sp-sermon__date {
        font-size: 11px;
    }

    .sp-sermon__category {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .sp-sermon__featured-title {
        font-size: 29px;
        line-height: 1.25;
    }

    .sp-sermon__info {
        display: block;
        margin-top: 15px;
    }

    .sp-sermon__info span {
        display: block;
        font-size: 13px;
    }

    .sp-sermon__info span + span {
        margin-top: 4px;
        padding-left: 0;
    }

    .sp-sermon__info span + span::before {
        display: none;
    }

    .sp-sermon__watch-text {
        font-size: 12px;
    }

    .sp-sermon__play {
        width: 50px;
        height: 50px;
    }

    .sp-sermon__play-icon {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 9px;
    }

    .sp-sermon__recent {
        border-radius: 16px;
    }

    .sp-sermon__recent-head {
        padding: 19px 17px 14px;
    }

    .sp-sermon__recent-head p {
        font-size: 10px;
    }

    .sp-sermon__recent-head span {
        font-size: 12px;
    }

    .sp-sermon__recent-item {
        min-height: 77px;
        gap: 11px;
        padding: 13px 15px;
    }

    .sp-sermon__recent-item:hover {
        padding-left: 18px;
    }

    .sp-sermon__number {
        font-size: 10px;
    }

    .sp-sermon__recent-content strong {
        font-size: 14px;
    }

    .sp-sermon__recent-meta {
        gap: 5px 10px;
        margin-top: 5px;
    }

    .sp-sermon__recent-meta time,
    .sp-sermon__recent-meta span {
        font-size: 11px;
    }

    .sp-sermon__recent-arrow {
        font-size: 16px;
    }

}