@charset "utf-8";

/* =========================================================
   설교방송 최신글 스킨 - Warm Card Type
   썸네일과 제목/정보를 분리한 디자인
========================================================= */

.sp-sermon,
.sp-sermon * {
    box-sizing: border-box;
}

.sp-sermon {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 58px 62px 62px;
    border: 1px solid #ebe4da;
    border-radius: 30px;
    background: #fbfaf7;
    color: #332d28;
    font-family: inherit;
}

/* 상단 */
.sp-sermon__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.sp-sermon__heading { min-width: 0; }

.sp-sermon__eyebrow {
    margin: 0 0 9px;
    color: #a88868;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
}

.sp-sermon__title {
	font-family: 'GmarketSans', 'Noto Sans KR', sans-serif !important;
    margin: 0;
    color: #2f2924;
    font-size: clamp(32px, 3vw, 47px);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: 1.12;
}

.sp-sermon__description {
    margin: 14px 0 0;
    color: #817871;
    font-size: 15px;
    letter-spacing: -.025em;
    line-height: 1.65;
}

.sp-sermon__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 12px 18px;
    border: 1px solid #ded5c9;
    border-radius: 999px;
    background: #fff;
    color: #665c52;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .25s ease;
}

.sp-sermon__more:hover {
    border-color: #cbb9a5;
    color: #473d34;
    transform: translateY(-2px);
}

.sp-sermon__more-arrow {
    font-size: 17px;
    transition: transform .25s ease;
}

.sp-sermon__more:hover .sp-sermon__more-arrow {
    transform: translateX(4px);
}

/* 레이아웃 */
.sp-sermon__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 24px;
    align-items: stretch;
}

/* =========================================================
   왼쪽 대표 설교 : 이미지 + 하단 정보 카드
========================================================= */
.sp-sermon__featured-card {
    overflow: hidden;
    border: 1px solid #e9e0d5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(70, 53, 37, .06);
}

.sp-sermon__featured-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 270px;
    overflow: hidden;
    background: #c9b9a6;
    text-decoration: none !important;
}

.sp-sermon__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .7s ease;
}

.sp-sermon__featured-media:hover .sp-sermon__thumbnail {
    transform: scale(1.045);
}

.sp-sermon__media-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #bba68e 0%, #877360 100%);
}

.sp-sermon__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28,21,16,.06) 30%, rgba(28,21,16,.36) 100%);
}

.sp-sermon__media-label {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(32,25,20,.28);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sp-sermon__play {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 50%;
    background: rgba(39,29,21,.52);
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: .25s ease;
}

.sp-sermon__featured-media:hover .sp-sermon__play {
    transform: scale(1.08);
    background: rgba(39,29,21,.72);
}

.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 #fff;
}

.sp-sermon__featured-body {
    padding: 25px 27px 24px;
}

.sp-sermon__featured-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.sp-sermon__category {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    margin: 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f4ede5;
    color: #957454;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.sp-sermon__date {
    color: #aaa095;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.sp-sermon__featured-title-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.sp-sermon__featured-title {
	font-family: 'GmarketSans', 'Noto Sans KR', sans-serif !important;		
    margin: 0;
    color: #322b26;
    font-size: clamp(18px, 2.15vw, 25px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.34;
    word-break: keep-all;
    transition: color .25s ease;
}

.sp-sermon__featured-title-link:hover .sp-sermon__featured-title {
    color: #8b6c4f;
}

.sp-sermon__info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0e9e0;
}

.sp-sermon__info-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #736a62;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.025em;
}

.sp-sermon__info-label {
    color: #b09984;
    font-size: 11px;
    font-weight: 800;
}

.sp-sermon__watch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #8a6d51;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.sp-sermon__watch-link span:last-child {
    transition: transform .25s ease;
}

.sp-sermon__watch-link:hover span:last-child {
    transform: translate(3px,-2px);
}

/* =========================================================
   오른쪽 최근 말씀 : 종이 리스트 느낌
========================================================= */
.sp-sermon__recent {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9e0d5;
    border-radius: 24px;
    background: #f8f4ee;
}

.sp-sermon__recent-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 20px;
}

.sp-sermon__recent-head > div {
    flex: 0 0 auto;
}

.sp-sermon__recent-head p {
    margin: 0 0 5px;
    color: #a28466;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.sp-sermon__recent-head strong {
    display: block;
    color: #453b32;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.045em;
}

.sp-sermon__recent-line {
    height: 1px;
    flex: 1;
    background: #ded2c4;
}

.sp-sermon__recent-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0 12px 12px;
    overflow: hidden;
    border: 1px solid #ece2d7;
    border-radius: 17px;
    background: #fff;
}

.sp-sermon__recent-item {
    display: flex;
    width: 100%;
    min-height: 91px;
    align-items: center;
    gap: 14px;
    flex: 1;
    padding: 15px 17px;
    border-bottom: 1px solid #f1ebe4;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
    color: #332d28;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background .25s ease, box-shadow .25s ease;
}

.sp-sermon__recent-item:last-child { border-bottom: 0; }

.sp-sermon__recent-item:hover {
    background: #fcf8f3;
}

.sp-sermon__number {
    flex: 0 0 auto;
    min-width: 28px;
    color: #bda893;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.sp-sermon__recent-content {
    display: block;
    min-width: 0;
    flex: 1;
}

.sp-sermon__recent-content strong {
    display: -webkit-box;
    overflow: hidden;
    color: #3a332d;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sp-sermon__recent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 11px;
    margin-top: 7px;
}

.sp-sermon__recent-meta time,
.sp-sermon__recent-meta span {
    color: #9b9187;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -.015em;
}

.sp-sermon__recent-arrow {
    flex: 0 0 auto;
    color: #bca893;
    font-size: 17px;
    transition: transform .25s ease, color .25s ease;
}

.sp-sermon__recent-item:hover .sp-sermon__recent-arrow {
    color: #85684c;
    transform: translateX(3px);
}


.sp-sermon__recent-item.is-active {
    background: #f6eee4;
    box-shadow: inset 3px 0 0 #a98461;
}

.sp-sermon__recent-item.is-active .sp-sermon__number,
.sp-sermon__recent-item.is-active .sp-sermon__recent-arrow {
    color: #85684c;
}

.sp-sermon__recent-item:focus-visible {
    outline: 2px solid #b99777;
    outline-offset: -2px;
}

.sp-sermon__thumbnail.is-hidden,
.sp-sermon__media-placeholder.is-hidden {
    display: none;
}

.sp-sermon__featured-card.is-updated {
    animation: spSermonUpdated .46s ease;
}

@keyframes spSermonUpdated {
    0%   { transform: translateY(0); box-shadow: 0 12px 35px rgba(70, 53, 37, .06); }
    45%  { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(112, 83, 57, .13); }
    100% { transform: translateY(0); box-shadow: 0 12px 35px rgba(70, 53, 37, .06); }
}

/* 빈 상태 */
.sp-sermon__empty,
.sp-sermon__empty-small {
    color: #9e9388;
    text-align: center;
}

.sp-sermon__empty {
    padding: 70px 20px;
    border: 1px dashed #ddd2c6;
    border-radius: 18px;
    background: #fff;
    font-size: 14px;
}

.sp-sermon__empty-small {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 13px;
}

/* 태블릿 */
@media (max-width: 980px) {
    .sp-sermon {
        padding: 46px 34px;
    }

    .sp-sermon__grid {
        grid-template-columns: 1fr;
    }

    .sp-sermon__featured-media {
        min-height: 330px;
    }
}

/* 모바일 */
@media (max-width: 560px) {
    .sp-sermon {
        padding: 30px 17px 18px;
        border-radius: 18px;
    }

    .sp-sermon__head {
        display: block;
        margin-bottom: 22px;
    }

    .sp-sermon__eyebrow {
        margin-bottom: 7px;
        font-size: 9px;
    }

    .sp-sermon__title {
        font-size: 29px;
    }

    .sp-sermon__description {
        margin-top: 9px;
        font-size: 13px;
    }

    .sp-sermon__more {
        margin-top: 16px;
        padding: 10px 13px;
        font-size: 12px;
    }

    .sp-sermon__grid {
        gap: 17px;
    }

    .sp-sermon__featured-card,
    .sp-sermon__recent {
        border-radius: 17px;
    }

    .sp-sermon__featured-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .sp-sermon__media-label {
        top: 13px;
        left: 13px;
        min-height: 27px;
        padding: 6px 9px;
        font-size: 9px;
    }

    .sp-sermon__play {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }

    .sp-sermon__play-icon {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 9px;
    }

    .sp-sermon__featured-body {
        padding: 19px 18px 18px;
    }

    .sp-sermon__featured-meta-top {
        margin-bottom: 11px;
    }

    .sp-sermon__category {
        min-height: 26px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .sp-sermon__date {
        font-size: 11px;
    }

    .sp-sermon__featured-title {
	font-family: 'GmarketSans', 'Noto Sans KR', sans-serif !important;			
        font-size: 18px;
        line-height: 1.38;
    }

    .sp-sermon__info {
        display: block;
        margin-top: 13px;
        padding-top: 13px;
    }

    .sp-sermon__info-item {
        display: flex;
        font-size: 12px;
    }

    .sp-sermon__info-item + .sp-sermon__info-item {
        margin-top: 5px;
    }

    .sp-sermon__watch-link {
        margin-top: 15px;
        font-size: 12px;
    }

    .sp-sermon__recent-head {
        padding: 19px 17px 15px;
    }

    .sp-sermon__recent-head strong {
        font-size: 16px;
    }

    .sp-sermon__recent-list {
        margin: 0 8px 8px;
        border-radius: 13px;
    }

    .sp-sermon__recent-item {
        min-height: 78px;
        gap: 10px;
        padding: 13px 12px;
    }

    .sp-sermon__number {
        min-width: 23px;
        font-size: 10px;
    }

    .sp-sermon__recent-content strong {
        font-size: 14px;
    }

    .sp-sermon__recent-meta {
        gap: 4px 8px;
        margin-top: 5px;
    }

    .sp-sermon__recent-meta time,
    .sp-sermon__recent-meta span {
        font-size: 10px;
    }
}
