/* 벧엘장로교회 메인 시안 - 따뜻하고 차분한 반응형 디자인 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;600;700&display=swap');
:root{--bh-navy:#142c49;--bh-green:#586b45;--bh-ink:#202a35;--bh-muted:#727a80;--bh-paper:#f4f3f8;--bh-line:#e8e4db;--bh-gold:#d7ad58}
#bethel-home{font-family:'Pretendard','Noto Sans KR','Malgun Gothic',sans-serif;color:var(--bh-ink);background:var(--bh-paper);overflow:hidden;-webkit-font-smoothing:antialiased}
#bethel-home *{box-sizing:border-box}#bethel-home a{text-decoration:none}#bethel-home .bh-container{width:min(1200px,calc(100% - 48px));margin:0 auto}
/* hero */
#bethel-home .bh-hero{position:relative;min-height:450px;height:600px;display:flex;align-items:center;color:#fff;isolation:isolate;overflow:hidden;background:#27362b}
#bethel-home .bh-hero-bg{position:absolute;inset:0;z-index:-3;background-size:cover;background-position:center 56%;transform:scale(1.015)}#bethel-home .bh-hero-shade{position:absolute;inset:0;z-index:-2;background:transparent}
#bethel-home .bh-hero-content{padding:58px 0 70px}#bethel-home .bh-eyebrow{display:flex;align-items:center;gap:14px;color:#e9c778;font-size:11px;font-weight:700;letter-spacing:.2em;margin:0 0 28px}#bethel-home .bh-eyebrow span{display:block;width:40px;height:1px;background:#e9c778}
#bethel-home .bh-hero h1{text-shadow:0 2px 8px rgba(0,0,0,.35);font-family:'Noto Serif KR',serif;font-size:clamp(22px,2.6vw,36px);font-weight:600;line-height:1.42;letter-spacing:-.055em;margin:0;word-break:keep-all}#bethel-home .bh-hero h1 em{font-style:normal;color:#f0cd82}#bethel-home .bh-hero-copy{text-shadow:0 1px 5px rgba(0,0,0,.45);font-size:16px;line-height:1.8;color:rgba(255,255,255,.88);margin:22px 0 24px}
#bethel-home .bh-hero-button{display:inline-flex;align-items:center;gap:28px;padding:13px 20px 13px 24px;border:1px solid rgba(255,255,255,.7);border-radius:28px;color:#fff;background:rgba(255,255,255,.12);font-size:13px;font-weight:700;transition:.2s}#bethel-home .bh-hero-button:hover{background:#fff;color:var(--bh-navy)}#bethel-home .bh-hero-caption{position:absolute;right:max(24px,calc((100% - 1200px)/2));bottom:22px;font-size:11px;letter-spacing:.08em;color:rgba(255,255,255,.78)}
/* section common */
#bethel-home .bh-section{padding:54px 0}#bethel-home .bh-section-heading{display:flex;align-items:flex-end;gap:28px;margin-bottom:24px}#bethel-home .bh-section-heading h2{font-family:'Noto Serif KR',serif;font-size:30px;line-height:1.25;letter-spacing:-.05em;color:var(--bh-navy);font-weight:600;margin:7px 0 0}#bethel-home .bh-kicker{display:block;font-size:10px;letter-spacing:.2em;color:#66705f;font-weight:700}#bethel-home .bh-section-heading>p{font-size:13px;line-height:1.7;color:var(--bh-muted);margin:0 0 3px}#bethel-home .bh-heading-rule{display:block;width:100%;height:2px;background:var(--bh-gold)}#bethel-home .bh-text-link{margin-left:auto;white-space:nowrap;color:var(--bh-navy);font-size:12px;font-weight:700;padding-bottom:5px}#bethel-home .bh-text-link i{margin-left:7px;transition:transform .2s}#bethel-home .bh-text-link:hover i{transform:translateX(4px)}
/* quick cards */
#bethel-home .bh-shortcuts{padding-top:38px;padding-bottom:42px;background:#f4f3f8}#bethel-home .bh-shortcut-heading{align-items:center;margin-bottom:22px}#bethel-home .bh-shortcut-heading h2{font-size:28px}#bethel-home .bh-shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
#bethel-home .bh-shortcut{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:165px;padding:20px 22px 22px;border-radius:13px;overflow:hidden;color:var(--bh-ink);transition:transform .22s,box-shadow .22s}#bethel-home .bh-shortcut:before{content:'';position:absolute;width:130px;height:130px;right:-24px;bottom:-45px;border:1px solid rgba(255,255,255,.7);border-radius:50%;box-shadow:0 0 0 18px rgba(255,255,255,.13),0 0 0 36px rgba(255,255,255,.1)}#bethel-home .bh-shortcut:hover{transform:translateY(-4px);box-shadow:0 12px 25px rgba(37,47,41,.1)}#bethel-home .bh-green{background:#e4e8d8}#bethel-home .bh-blue{background:#e2e9ed}#bethel-home .bh-sage{background:#e1e5d5}#bethel-home .bh-sand{background:#ebe5d4}
#bethel-home .bh-shortcut-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--bh-green);color:white;font-size:19px;margin-bottom:12px;box-shadow:0 0 0 5px rgba(255,255,255,.4)}#bethel-home .bh-blue .bh-shortcut-icon{background:#315777}#bethel-home .bh-sand .bh-shortcut-icon{background:#686d4b}#bethel-home .bh-shortcut strong{font-size:18px;letter-spacing:-.04em;color:#17242b}#bethel-home .bh-shortcut small{font-size:12px;line-height:1.55;color:#626b6d;margin-top:6px;max-width:95%}#bethel-home .bh-shortcut>b{position:absolute;right:17px;bottom:16px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:var(--bh-green);color:white;font-size:10px}#bethel-home .bh-blue>b{background:#547c99}#bethel-home .bh-sand>b{background:#686d4b}
/* sermon cards */
#bethel-home .bh-sermons{background:#f4f3f8}#bethel-home .bh-sermon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}#bethel-home .bh-sermon-card{display:block;min-width:0;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 5px 22px rgba(35,43,47,.055);border:1px solid rgba(30,44,50,.04);color:inherit;transition:transform .2s,box-shadow .2s}#bethel-home .bh-sermon-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(35,43,47,.12)}#bethel-home .bh-sermon-image{height:165px;background-size:cover;background-position:center;position:relative}#bethel-home .bh-sermon-image:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(11,24,31,.34),transparent 65%)}#bethel-home .bh-sermon-image span{position:absolute;z-index:1;top:16px;left:16px;padding:7px 12px;border-radius:20px;background:rgba(29,55,75,.88);color:white;font-size:11px;font-weight:700}#bethel-home .bh-image-bible span{background:rgba(79,98,57,.92)}#bethel-home .bh-image-evening span{background:rgba(35,57,80,.9)}#bethel-home .bh-sermon-info{padding:17px 20px 18px}#bethel-home .bh-sermon-info h3{font-size:17px;letter-spacing:-.035em;margin:0;color:var(--bh-navy)}#bethel-home .bh-sermon-info p{font-size:12px;color:var(--bh-muted);margin:7px 0 20px}#bethel-home .bh-sermon-info>div{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #f0eee8;padding-top:13px}#bethel-home .bh-sermon-info small{color:#858a8d;font-size:11px}#bethel-home .bh-sermon-info b{font-size:11px;color:#284766}#bethel-home .bh-sermon-info b i{margin-right:4px}#bethel-home .bh-sermon-info b i:last-child{margin-left:6px;margin-right:0}
/* news and gallery */
#bethel-home .bh-community{background:#f4f3f8;padding-top:24px;padding-bottom:48px}#bethel-home .bh-community-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px}#bethel-home .bh-compact-heading{align-items:center;margin-bottom:18px}#bethel-home .bh-compact-heading h2{font-size:27px}#bethel-home .bh-compact-heading p{font-size:12px;color:var(--bh-muted);margin:6px 0 0}#bethel-home .bh-news-list .latests,#bethel-home .bh-news-list .latest{margin:0;padding:0}#bethel-home .bh-news-list ul{list-style:none;margin:0;padding:0}#bethel-home .bh-news-list li{border-bottom:1px solid #e8e5dd;padding:12px 0;margin:0}#bethel-home .bh-news-list li a{display:flex;align-items:center;gap:10px;color:#343e46;font-size:13px;min-width:0}#bethel-home .bh-news-list li a:hover{color:#56704a}#bethel-home .bh-news-list li a .bo_cate_link,#bethel-home .bh-news-list li .lt_cate{flex:0 0 auto;font-size:10px;padding:4px 7px;border-radius:4px;background:#e2e7d9;color:#4e6540}#bethel-home .bh-news-list li a .lt_title,#bethel-home .bh-news-list li a strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}#bethel-home .bh-news-list li .lt_date{margin-left:auto;white-space:nowrap;color:#909397;font-size:10px}
#bethel-home .bh-gallery-content .lt_gallery,#bethel-home .bh-gallery-content .latest-gallery{margin:0}#bethel-home .bh-gallery-content ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0}#bethel-home .bh-gallery-content li{margin:0;padding:0;min-width:0}#bethel-home .bh-gallery-content li a{display:block;color:var(--bh-navy)}#bethel-home .bh-gallery-content li img{width:100%;height:115px;object-fit:cover;border-radius:8px;display:block}#bethel-home .bh-gallery-content li .lt_title{display:block;font-size:12px;margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Bible verse and footer transition */
#bethel-home .bh-verse{padding:28px 0 26px;text-align:center;background:#f4f3f8;color:var(--bh-navy)}#bethel-home .bh-verse p{font-family:'Noto Serif KR',serif;font-size:20px;letter-spacing:-.04em;margin:0 0 7px}#bethel-home .bh-verse span{font-size:11px;color:#76796e;letter-spacing:.12em}
/* accessibility and responsive */
@media(max-width:1000px){#bethel-home .bh-container{width:calc(100% - 36px)}#bethel-home .bh-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#bethel-home .bh-community-grid{gap:28px}#bethel-home .bh-sermon-image{height:145px}#bethel-home .bh-section-heading h2{font-size:27px}}
@media(max-width:700px){
    #bethel-home .bh-sermon-latest-card .bh-image-worship{background-size:cover;background-position:center;}#bethel-home .bh-container{width:calc(100% - 30px)}#bethel-home .bh-hero{height:235px;min-height:0;align-items:flex-end}#bethel-home .bh-hero-bg{background-position:60% center}#bethel-home .bh-hero-shade{background:transparent}#bethel-home .bh-hero-content{padding:50px 0 76px}#bethel-home .bh-eyebrow{font-size:9px;margin-bottom:18px}#bethel-home .bh-hero h1{font-size:clamp(20px,4.9vw,28px)}#bethel-home .bh-hero-copy{text-shadow:0 1px 5px rgba(0,0,0,.45);font-size:14px;margin:17px 0 20px}#bethel-home .bh-hero-caption{display:none}#bethel-home .bh-section{padding:38px 0}#bethel-home .bh-section-heading{gap:14px;flex-wrap:wrap;margin-bottom:19px}#bethel-home .bh-section-heading h2{font-size:25px}#bethel-home .bh-shortcut-heading{align-items:flex-start}#bethel-home .bh-shortcut-heading>p{width:100%;font-size:12px;margin-top:-4px}#bethel-home .bh-shortcut-grid{gap:10px}#bethel-home .bh-shortcut{min-height:158px;padding:16px 14px 20px;border-radius:11px}#bethel-home .bh-shortcut-icon{width:40px;height:40px;font-size:16px;margin-bottom:10px}#bethel-home .bh-shortcut strong{font-size:15px}#bethel-home .bh-shortcut small{font-size:11px}#bethel-home .bh-shortcut>b{right:11px;bottom:11px;width:20px;height:20px}#bethel-home .bh-sermon-grid{grid-template-columns:1fr;gap:14px}#bethel-home .bh-sermon-card{display:grid;grid-template-columns:39% 1fr}#bethel-home .bh-sermon-image{height:100%;min-height:150px}#bethel-home .bh-sermon-image span{left:9px;top:10px;padding:6px 8px;font-size:10px}#bethel-home .bh-sermon-info{padding:15px 13px;display:flex;flex-direction:column;justify-content:center}#bethel-home .bh-sermon-info h3{font-size:15px}#bethel-home .bh-sermon-info p{font-size:11px;margin:6px 0 13px}#bethel-home .bh-sermon-info>div{padding-top:10px}#bethel-home .bh-sermon-info small{display:none}#bethel-home .bh-sermon-info b{font-size:10px}#bethel-home .bh-community-grid{grid-template-columns:1fr;gap:35px}#bethel-home .bh-compact-heading h2{font-size:24px}#bethel-home .bh-news-list li{padding:10px 0}#bethel-home .bh-news-list li a{font-size:12px}#bethel-home .bh-gallery-content li img{height:120px}#bethel-home .bh-verse{padding:24px 15px}#bethel-home .bh-verse p{font-size:16px;line-height:1.7}}
@media(max-width:380px){#bethel-home .bh-container{width:calc(100% - 24px)}#bethel-home .bh-shortcut{padding-left:11px;padding-right:10px}#bethel-home .bh-shortcut strong{font-size:14px}#bethel-home .bh-shortcut small{font-size:10px}#bethel-home .bh-sermon-card{grid-template-columns:36% 1fr}#bethel-home .bh-sermon-info{padding:12px 10px}}
@media(prefers-reduced-motion:reduce){#bethel-home *{scroll-behavior:auto!important;transition:none!important}}
/* 제목 묶음이 좁아져도 황금색 줄이 제목 글씨 길이를 유지하도록 고정 */
#bethel-home .bh-section-heading>div{flex:0 0 auto;max-width:100%}#bethel-home .bh-section-heading h2{white-space:nowrap}#bethel-home .bh-heading-rule{width:100%}
/* 교회소식·앨범 영역 위 여백 50% 축소 (모바일 38px -> 19px) */
@media(max-width:700px){#bethel-home .bh-community{padding-top:19px}}
/* ===== 바로가기 카드: 화살표를 아이콘 옆으로 이동, 높이 축소 ===== */
#bethel-home .bh-shortcut{display:grid;grid-template-columns:1fr auto;grid-template-areas:"ico arrow" "title title" "desc desc";align-items:center;align-content:start;min-height:0;padding:16px 20px 18px}
#bethel-home .bh-shortcut-icon{grid-area:ico;justify-self:start;width:42px;height:42px;font-size:17px;margin:0}
#bethel-home .bh-shortcut strong{grid-area:title;margin-top:12px}
#bethel-home .bh-shortcut small{grid-area:desc;margin-top:4px}
#bethel-home .bh-shortcut>b{grid-area:arrow;position:static;justify-self:end;width:26px;height:26px}
/* 1줄(성경): 파스텔 카드, 위에 아이콘·화살표 / 아래 글 */
/* 2줄(찬송가): 흰 카드 + 금색 포인트, 가로형(아이콘 | 글 | 화살표) */
#bethel-home .bh-shortcuts--hymn{background:#f4f3f8}
#bethel-home .bh-shortcuts--hymn .bh-shortcut{grid-template-columns:auto 1fr auto;grid-template-areas:"ico title arrow" "ico desc arrow";column-gap:14px;row-gap:0;padding:15px 18px;background:#fff;border:1px solid var(--bh-line);border-radius:10px;box-shadow:0 3px 14px rgba(35,43,47,.05)}
#bethel-home .bh-shortcuts--hymn .bh-shortcut:before{display:none}
#bethel-home .bh-shortcuts--hymn .bh-shortcut-icon{width:46px;height:46px;border-radius:12px;box-shadow:none}
#bethel-home .bh-shortcuts--hymn .bh-shortcut strong{margin:0;font-size:16px}
#bethel-home .bh-shortcuts--hymn .bh-shortcut small{margin-top:3px;max-width:100%}
#bethel-home .bh-shortcuts--hymn .bh-shortcut>b{width:auto;height:auto;background:transparent;color:var(--bh-gold);font-size:14px;transition:transform .2s}
#bethel-home .bh-shortcuts--hymn .bh-shortcut:hover{border-color:var(--bh-gold);box-shadow:0 10px 22px rgba(35,43,47,.09)}
#bethel-home .bh-shortcuts--hymn .bh-shortcut:hover>b{transform:translateX(4px)}
@media(max-width:700px){
#bethel-home .bh-shortcut{padding:13px 13px 15px}
#bethel-home .bh-shortcut-icon{width:36px;height:36px;font-size:15px}
#bethel-home .bh-shortcut strong{margin-top:9px}
#bethel-home .bh-shortcut>b{width:22px;height:22px}
#bethel-home .bh-shortcuts--hymn .bh-shortcut-grid{grid-template-columns:1fr}
#bethel-home .bh-shortcuts--hymn .bh-shortcut{padding:12px 14px}
#bethel-home .bh-shortcuts--hymn .bh-shortcut-icon{width:40px;height:40px}
#bethel-home .bh-shortcuts--hymn .bh-shortcut strong{margin:0}
#bethel-home .bh-shortcuts--hymn .bh-shortcut>b{width:auto;height:auto}
}
/* 말씀과 예배: 이미지 위의 라벨(주일예배 등)을 이미지 중앙으로 이동 */
#bethel-home .bh-sermon-image span{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);white-space:nowrap}


/* ===== 말씀과 예배: 이미지 옆에 그누보드 최신글 표시 ===== */
#bethel-home .bh-sermon-latest-grid{
    grid-template-columns:1fr;
    gap:24px;
}
#bethel-home .bh-sermon-latest-card{
    display:grid;
    grid-template-columns:40% minmax(0,1fr);
    min-height:285px;
    border-radius:22px;
}
#bethel-home .bh-sermon-latest-card .bh-sermon-image{
    display:block;
    height:100%;
    min-height:285px;
    background-size:cover;
    background-position:center;
}
/* PC 주일예배 이미지: 좌우가 잘려 십자가가 보이지 않는 문제를 줄이도록 전체 이미지가 보이게 조정 */
#bethel-home .bh-sermon-latest-card .bh-image-worship{
    background-size:100% 100%;
    background-position:center center;
}
#bethel-home .bh-sermon-latest-card .bh-sermon-image:after{
    display:none;
}
#bethel-home .bh-sermon-latest-card .bh-sermon-image span{
    top:50%;
    left:50%;
    bottom:auto;
    transform:translate(-50%,-50%);
    white-space:nowrap;
    max-width:90%;
    text-align:center;
}
#bethel-home .bh-sermon-latest-info{
    min-width:0;
    padding:28px 26px 24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
#bethel-home .bh-sermon-latest-info h3{
    font-size:23px;
    line-height:1.4;
}
#bethel-home .bh-sermon-latest-info>p{
    margin:7px 0 15px;
    padding-bottom:14px;
    border-bottom:1px solid #f0eee8;
    font-size:15px;
}
#bethel-home .bh-sermon-latest-list{
    min-width:0;
    overflow:hidden;
}
#bethel-home .bh-sermon-latest-list .latests,
#bethel-home .bh-sermon-latest-list .latest{
    margin:0;
    padding:0;
}
#bethel-home .bh-sermon-latest-list ul{
    list-style:none;
    margin:0;
    padding:0;
}
#bethel-home .bh-sermon-latest-list li{
    list-style:none;
    margin:0;
    padding:7px 0;
    border-bottom:1px solid #f3f1ec;
}
#bethel-home .bh-sermon-latest-list li a{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    color:#34465a;
    font-size:13px;
    line-height:1.5;
}
#bethel-home .bh-sermon-latest-list li a:hover{
    color:#a77b2d;
}
#bethel-home .bh-sermon-latest-list li a .lt_title,
#bethel-home .bh-sermon-latest-list li a strong{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
@media(max-width:700px){
    #bethel-home .bh-sermon-latest-grid{
        gap:18px;
    }
    #bethel-home .bh-sermon-latest-card{
        grid-template-columns:36% minmax(0,1fr);
        min-height:150px;
        height:150px;
        border-radius:18px;
    }
    #bethel-home .bh-sermon-latest-card .bh-sermon-image{
        min-height:150px;
        height:150px;
    }
    #bethel-home .bh-sermon-latest-card .bh-sermon-image span{
        left:50%;
        top:50%;
        padding:6px 8px;
        font-size:10px;
        white-space:normal;
        width:max-content;
        max-width:92%;
    }
    #bethel-home .bh-sermon-latest-info{
        padding:18px 12px 16px;
    }
    #bethel-home .bh-sermon-latest-info h3{
        font-size:16px;
        line-height:1.4;
    }
    #bethel-home .bh-sermon-latest-info>p{
        font-size:11px;
        line-height:1.5;
        margin:5px 0 9px;
        padding-bottom:9px;
    }
    #bethel-home .bh-sermon-latest-list li{
        padding:5px 0;
    }
    #bethel-home .bh-sermon-latest-list li a{
        font-size:11px;
        gap:5px;
    }
}
@media(max-width:380px){
    #bethel-home .bh-sermon-latest-card{
        grid-template-columns:34% minmax(0,1fr);
    }
    #bethel-home .bh-sermon-latest-info{
        padding-left:10px;
        padding-right:10px;
    }
    #bethel-home .bh-sermon-latest-info h3{
        font-size:14px;
    }
    #bethel-home .bh-sermon-latest-info>p{
        font-size:10px;
    }
}

/* 최신글 적용 후 카드 높이를 기존 예배 카드 크기로 복원 */
#bethel-home .bh-sermon-latest-card{height:165px;min-height:165px;overflow:hidden}
#bethel-home .bh-sermon-latest-card .bh-sermon-image{height:165px;min-height:165px}
#bethel-home .bh-sermon-latest-info{padding:12px 20px;overflow:hidden}
#bethel-home .bh-sermon-latest-info h3{font-size:18px;line-height:1.3;margin:0}
#bethel-home .bh-sermon-latest-info>p{font-size:12px;line-height:1.35;margin:4px 0 5px;padding-bottom:5px}
#bethel-home .bh-sermon-latest-list li{padding:1px 0;border-bottom:0}
#bethel-home .bh-sermon-latest-list li a{font-size:11px;line-height:1.3}
@media(max-width:700px){
 #bethel-home .bh-sermon-latest-card{height:150px;min-height:150px}
 #bethel-home .bh-sermon-latest-card .bh-sermon-image{height:150px;min-height:150px}
 #bethel-home .bh-sermon-latest-info{padding:8px 10px}
 #bethel-home .bh-sermon-latest-info h3{font-size:14px;line-height:1.25}
 #bethel-home .bh-sermon-latest-info>p{font-size:10px;line-height:1.3;margin:3px 0 4px;padding-bottom:4px}
 #bethel-home .bh-sermon-latest-list li a{font-size:10px;line-height:1.25}
}
@media(max-width:380px){#bethel-home .bh-sermon-latest-info{padding:7px 8px}}


/* 최신글 5개 기준으로 여백을 줄이고 이미지 높이를 목록 높이에 맞춤 */
#bethel-home .bh-sermons{padding-top:24px;padding-bottom:22px}
#bethel-home .bh-sermons .bh-section-heading{margin-bottom:14px}
#bethel-home .bh-sermon-latest-grid{gap:16px}
#bethel-home .bh-sermon-latest-card{height:auto;min-height:0;align-items:stretch}
#bethel-home .bh-sermon-latest-card .bh-sermon-image{height:auto;min-height:0;align-self:stretch}
#bethel-home .bh-sermon-latest-info{padding:6px 20px 4px;justify-content:flex-start;overflow:hidden}
#bethel-home .bh-sermon-latest-info h3{margin:0 0 4px;line-height:1.25}
#bethel-home .bh-sermon-latest-list{margin:0;padding:0}
#bethel-home .bh-sermon-latest-list li{padding:1px 0;line-height:1.25}
#bethel-home .bh-sermon-latest-list li a{line-height:1.25}
@media(max-width:700px){
  #bethel-home .bh-sermons{padding-top:20px;padding-bottom:18px}
  #bethel-home .bh-sermons .bh-section-heading{margin-bottom:12px}
  #bethel-home .bh-sermon-latest-grid{gap:12px}
  #bethel-home .bh-sermon-latest-info{padding:5px 10px 3px}
  #bethel-home .bh-sermon-latest-card .bh-sermon-image{min-height:0;height:auto}
}


/* 최신글 4개: PC 카드 높이는 유지하고 이미지가 카드 전체 높이를 채우도록 설정 */
@media(min-width:701px){
  #bethel-home .bh-sermon-latest-card{min-height:165px;align-items:stretch}
  #bethel-home .bh-sermon-latest-card .bh-sermon-image{min-height:165px;height:auto;align-self:stretch}
  #bethel-home .bh-sermon-latest-info{min-height:165px;box-sizing:border-box}
  #bethel-home .bh-sermon-latest-list li{padding:4px 0}
  #bethel-home .bh-sermon-latest-list li a{font-size:17.33px;line-height:1.35}
}
@media(max-width:700px){
  #bethel-home .bh-sermon-latest-list li a{font-size:10px;line-height:1.25}
}


/* 교회예배 영상 제목 링크 (/bbs/ddd.php) */
#bethel-home .bh-sermon-info h3 a{color:inherit;text-decoration:none;display:inline-block;transition:color .2s}
#bethel-home .bh-sermon-info h3 a:hover{color:#a77b2d;text-decoration:none}

/* 최신글(bh_worship) wr_2 우측 표시: PC에서만 */
#bethel-home .bh-sermon-latest-list .bh-worship-wr2{display:none}
@media(min-width:701px){
  #bethel-home .bh-sermon-latest-list .bh-worship-wr2{display:inline-block;flex:0 0 auto;margin-left:auto;padding-left:10px;font-size:13px;color:#8a8f93;white-space:nowrap}
  #bethel-home .bh-sermon-latest-list li a:hover .bh-worship-wr2{color:#a77b2d}
}

/* =====================================================
   하단 카드형 바로가기 - 고정 박스 + 내용 페이드 전환
   PC·태블릿 3개 / 모바일 1개
   ===================================================== */
section.tailCards{--gap:20px;--pp:3;--gold:#d3a04a;--ink:#1d2433;display:block!important;clear:both;position:relative;width:100%;padding:26px 0 20px;background:#f4f3f8;box-sizing:border-box}
section.tailCards *{box-sizing:border-box}
section.tailCards .tcInner{display:block;width:min(1200px,calc(100% - 48px));max-width:none;margin:0 auto}
section.tailCards .tcView{overflow:hidden;padding:6px 5px 10px;margin:-6px -5px -10px}
section.tailCards .tcList{display:grid!important;grid-template-columns:repeat(var(--pp),minmax(0,1fr));gap:var(--gap);position:relative;margin:0!important;padding:0!important;list-style:none!important}
section.tailCards .tcItem{display:block;min-width:0;float:none!important;width:auto;margin:0!important;padding:0!important;list-style:none!important;--c1:#5b6b3f;--c2:#6f8050}
section.tailCards .tcItem>a{position:relative;display:flex!important;align-items:center;gap:11px;height:100%;min-height:66px;padding:12px 30px 12px 13px;background:#fff;border:1px solid #e3e5e9;border-radius:11px;color:var(--ink);text-decoration:none;box-shadow:none;transition:border-color .25s,transform .25s,box-shadow .25s,background .25s}
section.tailCards .tcItem>a:after{content:"\f061";position:absolute;right:13px;top:50%;margin-top:-7px;font:normal 13px/14px FontAwesome;color:var(--gold);transition:right .25s}
section.tailCards .tcItem>a:hover{background:#fff;border-color:var(--gold);transform:translateY(-2px);box-shadow:0 8px 18px rgba(90,70,20,.12)}
section.tailCards .tcItem>a:hover:after{right:9px}
section.tailCards .tcIcon{order:1;display:flex;flex:0 0 40px;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,var(--c2),var(--c1));color:#fff;font-size:17px;box-shadow:0 3px 8px rgba(0,0,0,.12);transition:transform .25s}
section.tailCards .tcIcon .fa{font-size:17px;line-height:1}
section.tailCards .tcItem>a:hover .tcIcon{transform:scale(1.06) rotate(-4deg)}
section.tailCards .tcTxt{order:2;flex:1 1 auto;min-width:0;transition:opacity .35s ease}
section.tailCards .tcItem>a.tcFading .tcTxt,section.tailCards .tcItem>a.tcFading .tcIcon{opacity:0}
section.tailCards .tcTit{display:block;margin:0 0 3px;font-size:14px;font-weight:700;line-height:1.3;letter-spacing:-.04em;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
section.tailCards .tcDesc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;font-size:11.5px;line-height:1.35;color:#7d8594;letter-spacing:-.03em;word-break:keep-all}
section.tailCards .tcDots{display:none!important}
section.tailCards .tcDots button{width:6px;height:6px;padding:0;border:0;border-radius:50%;background:#d9dce1;cursor:pointer;transition:width .25s,background .25s}
section.tailCards .tcDots button.on{background:var(--gold);width:18px;border-radius:6px}
section.tailCards .tcItem:nth-child(6n+1){--c1:#566a3c;--c2:#6c8250}
section.tailCards .tcItem:nth-child(6n+2){--c1:#2f5578;--c2:#46739c}
section.tailCards .tcItem:nth-child(6n+3){--c1:#6b5a3a;--c2:#8a7650}
section.tailCards .tcItem:nth-child(6n+4){--c1:#8a3f3a;--c2:#aa5a52}
section.tailCards .tcItem:nth-child(6n+5){--c1:#3d6b66;--c2:#548a84}
section.tailCards .tcItem:nth-child(6n+6){--c1:#4b4a7a;--c2:#66659a}
@media(max-width:1100px){section.tailCards{--pp:3;--gap:12px}}
@media(max-width:768px){
  section.tailCards{--pp:1;--gap:10px;padding:18px 0 14px}
  /* 모바일에서는 index.php의 '유튜브 찬송가' 바로가기와 같은 가로형/폭으로 표시 */
  section.tailCards .tcInner{width:calc(100% - 30px);min-width:0;max-width:none}
  section.tailCards .tcView{padding:0;margin:0}
  section.tailCards .tcItem>a{display:grid!important;grid-template-columns:40px minmax(0,1fr);grid-template-areas:"icon text";column-gap:14px;align-items:center;min-height:66px;padding:12px 32px 12px 14px;border-radius:10px}
  section.tailCards .tcItem>a:after{right:14px}
  section.tailCards .tcIcon{grid-area:icon;order:0;flex:none;width:40px;height:40px;border-radius:12px}
  section.tailCards .tcTxt{grid-area:text;order:0}
  section.tailCards .tcTit{font-size:16px;margin:0;white-space:normal}
  section.tailCards .tcDesc{margin-top:3px;font-size:11px;line-height:1.45;-webkit-line-clamp:1}
  section.tailCards .tcDots{display:none!important}
}
/* 서브 페이지: 게시판 하단 ~ 카드 영역 간격 줄이기 */
#container{min-height:0!important;padding-bottom:20px!important;margin-bottom:0!important}
#ctWrap{min-height:0!important;padding-bottom:0!important;margin-bottom:0!important}
section.tailCards{margin-top:0!important;padding-top:16px!important}
/* 하단 푸터 높이 축소 */
#footer{min-height:0!important;height:auto!important;padding-top:14px!important;padding-bottom:14px!important}
#footer dl{margin:0 0 6px!important;padding:0!important}
/* 푸터 구분선: 한 줄 + 부드러운 그림자로 입체감 - 모든 접속 공통 */
#footer{position:relative;border-top:0!important;padding-top:15px!important}
#footer:before{content:"";position:absolute;left:0;right:0;top:0;height:1px;pointer-events:none;background:rgba(0,0,0,.4);transform:scaleY(.5);transform-origin:top}
/* PC: 선 위쪽 24px, 선 아래쪽(선~링크) 18px */
@media(min-width:801px){#footer{padding-top:43px!important}#footer:before{top:24px}#footer dl{padding:0 0 3px!important}}
#footer dl dd{margin:0!important;padding:0!important;line-height:1.4!important}
#footer dl dd a{padding-top:0!important;padding-bottom:0!important;line-height:1.4!important;font-size:13px!important}
#footer address{margin:0!important;padding:0!important;line-height:1.5!important;font-size:12px!important}
#footer address br{line-height:1}
@media(prefers-reduced-motion:reduce){section.tailCards .tcTxt{transition:none!important}}


/* 사용자 요청: 카드 영역 상하 여백 최소화, PC 4개 표시, 디졸브 30% 연장 */
section.tailCards{--pp:4!important;padding-top:2px!important;padding-bottom:2px!important}
section.tailCards .tcView{padding:0!important;margin:0!important}
section.tailCards .tcTxt{transition:opacity .455s ease!important}
section.tailCards .tcItem>a.tcFading .tcTxt,section.tailCards .tcItem>a.tcFading .tcIcon{opacity:0}
@media(max-width:1100px){section.tailCards{--pp:3!important}}
@media(max-width:768px){section.tailCards{--pp:1!important;padding-top:2px!important;padding-bottom:2px!important}}

/* 사용자 요청: 카드 아래 여백 제거, 위 여백 50% 축소, 카드 높이 30% 확대 */
section.tailCards{padding-top:1px!important;padding-bottom:0!important}
section.tailCards .tcItem>a{min-height:86px!important;padding-top:16px!important;padding-bottom:16px!important}
@media(max-width:768px){
  section.tailCards{padding-top:1px!important;padding-bottom:0!important}
  section.tailCards .tcItem>a{min-height:86px!important;padding-top:16px!important;padding-bottom:16px!important}
}

/* 최종 수정: 홈 교회소식/앨범 섹션의 아이콘 카드 아래 남는 하단 여백 제거 */
#bethel-home .bh-community{padding-bottom:0!important;margin-bottom:0!important}
#bethel-home section.tailCards{margin-bottom:0!important;padding-bottom:0!important}
#bethel-home section.tailCards .tcView{padding-bottom:0!important;margin-bottom:0!important}
#bethel-home section.tailCards .tcList{margin-bottom:0!important;padding-bottom:0!important}

/* 최종 여백 조정: 카드 위쪽 여백은 기존의 50%, 아래쪽은 위쪽 여백의 50% 유지 */
#bethel-home .bh-community.bh-section{padding-top:12px!important;padding-bottom:6px!important;margin-bottom:0!important}
#bethel-home section.tailCards{margin-top:0!important;padding-top:1px!important;padding-bottom:0!important;margin-bottom:0!important}
#bethel-home section.tailCards .tcView,
#bethel-home section.tailCards .tcList{margin-bottom:0!important;padding-bottom:0!important}
@media(max-width:768px){
  #bethel-home .bh-community.bh-section{padding-top:9.5px!important;padding-bottom:4.75px!important}
}


/* 재조정: 상단 여백은 현재의 50%, 하단 여백은 현재의 2배 */
#bethel-home .bh-community.bh-section{padding-top:6px!important;padding-bottom:12px!important;margin-bottom:0!important}
#bethel-home section.tailCards{margin-top:0!important;padding-top:1px!important;padding-bottom:0!important;margin-bottom:0!important}
#bethel-home section.tailCards .tcView,
#bethel-home section.tailCards .tcList{margin-bottom:0!important;padding-bottom:0!important}
@media(max-width:768px){
  #bethel-home .bh-community.bh-section{padding-top:4.75px!important;padding-bottom:9.5px!important}
}


/* 사용자 요청: 하단 카드 높이 25% 축소 (112px -> 84px) */
section.tailCards .tcItem>a{min-height:84px!important}
@media(max-width:768px){
  section.tailCards .tcItem>a{min-height:84px!important}
}

/* 하단 카드: 항상 4개씩 표시 (PC 4열 / 태블릿 2열 / 작은 화면 1열) */
#bethel-home section.tailCards{--pp:4!important}
@media(max-width:1100px){#bethel-home section.tailCards{--pp:2!important}}
/* 태블릿(701~1100px): 3개씩 표시 (4번째 카드는 숨김) */
@media(min-width:701px) and (max-width:1100px){#bethel-home section.tailCards{--pp:3!important}#bethel-home section.tailCards .tcItem:nth-child(n+4){display:none!important}}
@media(max-width:520px){#bethel-home section.tailCards{--pp:1!important}}

/* ===== 메인 비주얼(bhHero) 스타일: index.php 에서 이동 ===== */
#bethel-home .bhHero{position:relative;width:100%;height:clamp(294px,32.2vw,504px);overflow:hidden;background:#111}
#bethel-home .bhHero ul{list-style:none;margin:0;padding:0;height:100%}
#bethel-home .bhHero li{position:absolute;inset:0;opacity:0;visibility:hidden;
  transition:opacity 1.2s ease,visibility 0s linear 1.2s;z-index:1}
#bethel-home .bhHero li.on{opacity:1;visibility:visible;transition:opacity 1.2s ease,visibility 0s;z-index:2}
#bethel-home .bhHero li img{width:100%;height:100%;object-fit:cover;display:block;
  transform:scale(1.08);transition:transform 6s ease-out}
#bethel-home .bhHero li.on img{transform:scale(1)}
#bethel-home .bhHero .mvTit01,#bethel-home .bhHero .mvTit02{position:absolute;left:0;right:0;text-align:center;color:#fff;z-index:3;
  opacity:0;transform:translateY(24px);transition:opacity .9s ease,transform .9s ease}
#bethel-home .bhHero{--shift:clamp(22px,2.6vw,38px)}
#bethel-home .bhHero .mvTit01{top:calc(28% + var(--shift));margin:0;font-size:clamp(28px,4.4vw,64px);font-weight:700;text-shadow:none}
#bethel-home .bhHero .mvTit02{top:calc(28% + var(--shift) + clamp(50px,6vw,90px))}
#bethel-home .bhHero li.on .mvTit01{opacity:1;transform:none;transition-delay:.5s}
#bethel-home .bhHero li.on .mvTit02{opacity:1;transform:none;transition-delay:.9s}
#bethel-home .bhHero .mvTit02txt{margin:0 0 18px;color:#fff;font-size:clamp(16.67px,calc(1.6vw + 2.67px),24.67px);text-shadow:none}
#bethel-home .bhHero .mvLinks{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
#bethel-home .bhHero .mvLink{display:inline-block!important;visibility:visible!important;opacity:.7;padding:7px 24px;border:0;border-radius:30px;background:#475D8F;color:#fff;font-size:12px;line-height:1.3;letter-spacing:.03em;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.25);transition:background .3s,transform .3s}
#bethel-home .bhHero .mvLink b{font-weight:500}
#bethel-home .bhHero .mvLink:hover{background:#333;transform:translateY(-2px)}
/* 모바일(768px 이하): 2번째 줄 0.5칸(12px) 아래로 - 숫자만 바꿔서 조절 */
@media (max-width:768px){#bethel-home .bhHero .mvTit02{top:calc(28% + var(--shift) + clamp(50px,6vw,90px) + 12px)}}
#bethel-home .bhHero .bhQuick{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;flex-wrap:wrap;gap:10px;z-index:5;padding:0 12px}
#bethel-home .bhHero .bhQuick a{display:inline-block;padding:7px 18px;border-radius:30px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.7);color:#fff;font-size:14px;text-decoration:none;backdrop-filter:blur(4px);transition:.3s}
#bethel-home .bhHero .bhQuick a:hover{background:#fff;color:#111}


/* 모바일에서 메인 첫 번째 슬라이드(교회 사진)가 중앙에 오도록 조정 */
@media (max-width:768px){
  #bethel-home .bhHero li:first-child img{
    object-position:center center !important;
  }
}

/* 모바일 메인 교회 사진: 중앙 설정만으로 해결되지 않는 좌우 잘림 보정 */
@media (max-width:768px){
  #bethel-home .bhHero li:first-child img{
    object-fit:cover !important;
    object-position:30% center !important;
    transform:scale(1) !important;
  }
  #bethel-home .bhHero li.on:first-child img{
    object-position:30% center !important;
    transform:scale(1) !important;
  }
}

/* ===== Font Awesome 6 아이콘 (fa-solid / fa-regular) 사용 설정 =====
   기존 Font Awesome 4(fa fa-...) 아이콘은 그대로 두고, 필요한 FA6 아이콘만 이 CSS에서 직접 불러옵니다. */
@font-face{font-family:"BH FA6 Solid";font-style:normal;font-weight:900;font-display:swap;src:url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-solid-900.woff2") format("woff2")}
@font-face{font-family:"BH FA6 Regular";font-style:normal;font-weight:400;font-display:swap;src:url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-regular-400.woff2") format("woff2")}
.fa-solid.fa-church:before{content:"\f51d";font-family:"BH FA6 Solid";font-weight:900;font-style:normal}
.fa-regular.fa-square-caret-down:before{content:"\f150";font-family:"BH FA6 Regular";font-weight:400;font-style:normal}

/* 하단 카드 '벧엘장로교회 소개' 아이콘 -> fa-solid fa-church (index.php 수정 없이 적용) */
section.tailCards .tcItem>a[href*="co_id=greeting"] .tcIcon i{font-style:normal}
section.tailCards .tcItem>a[href*="co_id=greeting"] .tcIcon i:before{content:"\f51d"!important;font-family:"BH FA6 Solid"!important;font-weight:900!important;font-style:normal;font-size:17px;line-height:1}

/* 메인 비주얼(bhHero) 링크 버튼: index.php에서 이동 */
/* 메인 비주얼 링크 버튼(view more + 형태): 다른 CSS에 가려지지 않도록 강제 표시 */
#bethel-home .bhHero .mvTit02{display:block!important;visibility:visible!important}
#bethel-home .bhHero .mvTit01,#bethel-home .bhHero .mvTit02,#bethel-home .bhHero .mvTit02txt{text-shadow:none!important}
#bethel-home .bhHero .mvTit02txt{color:#fff!important;font-size:clamp(16.67px,calc(1.6vw + 2.67px),24.67px)!important}
@media (max-width:768px){#bethel-home .bhHero .mvTit02{top:calc(28% + var(--shift) + clamp(50px,6vw,90px) + 12px)!important}}
#bethel-home .bhHero .mvLinks{display:flex!important;justify-content:center;flex-wrap:wrap;gap:10px}
#bethel-home .bhHero a.mvLink{display:inline-block!important;visibility:visible!important;opacity:.7!important;
  padding:7px 24px;border:0;border-radius:30px;background:#000;color:#fff!important;
  font-size:12px;line-height:1.3;letter-spacing:.03em;text-decoration:none;
  box-shadow:0 2px 8px rgba(0,0,0,.25);transition:background .3s,transform .3s}
#bethel-home .bhHero a.mvLink b{font-weight:500;color:#fff}
#bethel-home .bhHero a.mvLink:hover{background:#333;transform:translateY(-2px)}

/* 말씀과 예배 카드(모바일): 썸네일 파일 없이 원본 이미지를 좌측 기준으로 배치, 이미지 칸을 넓혀 확대를 줄임 */
@media(max-width:700px){
  #bethel-home .bh-sermon-latest-card{grid-template-columns:42% minmax(0,1fr)}
  #bethel-home .bh-sermon-latest-card .bh-image-worship{background-size:cover;background-position:30% center}
  #bethel-home .bh-sermon-latest-card .bh-image-bible,
  #bethel-home .bh-sermon-latest-card .bh-image-evening{background-size:cover;background-position:left center}
}
@media(max-width:380px){
  #bethel-home .bh-sermon-latest-card{grid-template-columns:40% minmax(0,1fr)}
}

/* 메인 비주얼: 둘째 줄 문구 뒤에 아주 넓고 연한 타원형 그라데이션(레이아웃 영향 없음, 띠가 보이지 않게 번짐) */
#bethel-home .bhHero .mvTit02txt{position:relative;display:inline-block;max-width:96%;text-shadow:0 1px 4px rgba(0,0,0,.3)!important}
#bethel-home .bhHero .mvTit02txt:before{content:"";position:absolute;z-index:-1;pointer-events:none;
  left:-110px;right:-110px;top:-38px;bottom:-38px;
  background:radial-gradient(ellipse closest-side,rgba(0,0,0,.22) 0%,rgba(0,0,0,.14) 40%,rgba(0,0,0,.05) 72%,rgba(0,0,0,0) 100%)}
@media (max-width:768px){#bethel-home .bhHero .mvTit02txt:before{left:-40px;right:-40px;top:-26px;bottom:-26px}}
/* 로딩 시 이미지가 뜨기 전 배경: 투명 */
#bethel-home .bhHero{background:transparent!important}
/* 슬라이드 전환: 앞 이미지는 뒤 이미지가 다 나타날 때까지 그대로 두어 전환 중 배경이 비치지 않게 */
#bethel-home .bhHero li:not(.on){transition:opacity 0s linear 1.2s,visibility 0s linear 1.2s}
/* 모바일: 매일 찬송 섹션 위아래 여백 축소 */
@media(max-width:700px){
#bethel-home .bh-shortcuts--hymn.bh-section{padding-top:12px;padding-bottom:20px}
#bethel-home .bh-shortcuts--hymn .bh-section-heading{margin-bottom:12px}
}

/* 말씀 최신글(매일 말씀 카드) 바탕색: 흰색 */
#bethel-home .bh-sermon-latest-card,
#bethel-home .bh-sermon-latest-info,
#bethel-home .bh-sermon-latest-list {background:#fff !important; }

/* =====================================================================
   교회 소식 / 교회 앨범: 흰 둥근 카드 + 제목 왼쪽 / 전체보기 알약 버튼 오른쪽
   소식 = 줄 사이 가는 선 목록 / 앨범 = 2x2 사진
   ===================================================================== */
#bethel-home .bh-community-grid{gap:26px; align-items:stretch; margin-bottom:10px; }
#bethel-home .bh-news-panel,
#bethel-home .bh-gallery-panel{min-width:0; box-sizing:border-box; padding:26px 26px 28px; background:#fff; border:1px solid #dcdde6; border-radius:28px; box-shadow:0 2px 14px rgba(40,40,70,.05); }

/* 머리줄 */
#bethel-home .bh-news-panel .bh-section-heading,
#bethel-home .bh-gallery-panel .bh-section-heading{display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; gap:12px; margin:0 0 9.33px; }
#bethel-home .bh-news-panel .bh-section-heading h2,
#bethel-home .bh-gallery-panel .bh-section-heading h2{margin:0; font-family:inherit; font-size:24px; font-weight:700; line-height:1.3; letter-spacing:-.03em; color:#1b2230; }
#bethel-home .bh-news-panel .bh-heading-rule,
#bethel-home .bh-gallery-panel .bh-heading-rule{display:none; }
#bethel-home .bh-news-panel .bh-text-link,
#bethel-home .bh-gallery-panel .bh-text-link{flex:0 0 auto; margin:0; padding:0 20px; height:46px; line-height:44px; box-sizing:border-box; border:1px solid #dfe1e8; border-radius:999px; background:#fff; color:#3a4150; font-size:15px; font-weight:700; text-decoration:none; transition:background .2s,border-color .2s; }
#bethel-home .bh-news-panel .bh-text-link:hover,
#bethel-home .bh-gallery-panel .bh-text-link:hover{background:#f4f3f8; border-color:#cfd2db; }
#bethel-home .bh-news-panel .bh-text-link i,
#bethel-home .bh-gallery-panel .bh-text-link i{display:none; }

/* 게시판 이름(교회 소식·교회 앨범)과 전체보기 버튼을 위로 4pt(약 5.33px) 이동 (아래 내용 위치는 그대로) */
#bethel-home .bh-news-panel .bh-section-heading>div,
#bethel-home .bh-gallery-panel .bh-section-heading>div,
#bethel-home .bh-news-panel .bh-text-link,
#bethel-home .bh-gallery-panel .bh-text-link{position:relative; top:-5.33px; }

/* 교회 소식: 제목 줄 목록 */
#bethel-home .bh-news-list{border-top:1px solid #ececf0; }
#bethel-home .bh-news-list .basicLat{margin:0; padding:0; overflow:visible; text-align:left; }
#bethel-home .bh-news-list ul{min-height:0; }
#bethel-home .bh-news-list li{margin:0; padding:0; border-bottom:1px solid #ececf0; background:transparent; }
#bethel-home .bh-news-list li{transition:background .15s ease; }
#bethel-home .bh-news-list li:hover,
#bethel-home .bh-news-list li:active{background:#f4f3f8; }
#bethel-home .bh-news-list li a{display:flex; align-items:center; gap:10px; height:auto; margin:0; padding:14.5px 14px; line-height:1.4; font-size:17px; font-weight:600; color:#1f2430; }
#bethel-home .bh-news-list li a:hover{color:#475D8F; }
#bethel-home .bh-news-list li a .fa-caret-right,
#bethel-home .bh-news-list li a .bo_cate_link{display:none; }
#bethel-home .bh-news-list li a b{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
#bethel-home .bh-news-list li .lt_date{position:static; flex:0 0 auto; margin:0 0 0 auto; height:auto; line-height:1; color:#9a9ea6; font-family:inherit; font-size:12px; font-weight:400; }
#bethel-home .bh-news-list li .new_icon{flex:0 0 auto; width:auto; line-height:1; background:none; border-radius:0; color:#e5252a; font-size:14px; font-weight:800; }
#bethel-home .bh-news-list li .new_icon .sound_only{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* 교회 앨범: 2x2 사진 */
#bethel-home .bh-gallery-panel{display:flex; flex-direction:column; }
#bethel-home .bh-gallery-content{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; padding:6px 14px 0; }
#bethel-home .bh-gallery-content .galleryBoxLat{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; margin:0; padding:0; overflow:visible; }
#bethel-home .bh-gallery-content ul{flex:1 1 auto; min-height:150px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:18px 13px; margin:0; padding:0; }
#bethel-home .bh-gallery-content li{min-height:0; }
#bethel-home .bh-gallery-content li a{height:100%; }
#bethel-home .bh-gallery-content li a>i{height:100%; }
#bethel-home .bh-gallery-content li a>i{border-radius:3px; }
#bethel-home .bh-gallery-content li img{position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover; border-radius:3px; display:block; }

@media (max-width:800px){
  #bethel-home .bh-community-grid{gap:20px; }
  #bethel-home .bh-news-panel,
  #bethel-home .bh-gallery-panel{padding:18px 16px 20px; border-radius:20px; }
  #bethel-home .bh-news-panel .bh-section-heading h2,
  #bethel-home .bh-gallery-panel .bh-section-heading h2{font-size:20px; }
  #bethel-home .bh-news-panel .bh-text-link,
  #bethel-home .bh-gallery-panel .bh-text-link{height:36px; line-height:34px; padding:0 14px; font-size:13px; }
  #bethel-home .bh-news-list li a{padding:11px 8px; font-size:15px; }
  #bethel-home .bh-gallery-content{padding:4px 0 0; }
  #bethel-home .bh-gallery-content ul{flex:none; min-height:0; grid-template-rows:none; gap:10px; }
  #bethel-home .bh-gallery-content li a,
  #bethel-home .bh-gallery-content li a>i{height:auto; }
  #bethel-home .bh-gallery-content li img{position:static; height:auto; aspect-ratio:2/1; }
}

/* 하단 카드(교회소개·교회일정 등): 호버 효과를 "매일성경" 카드와 동일하게 교체
   매일성경 효과 = 위로 4px 상승 + 부드러운 그림자 (transform/box-shadow .22s) */
section.tailCards .tcItem>a{transition:transform .22s,box-shadow .22s!important}
section.tailCards .tcItem>a:hover{background:#fff!important;border-color:#e3e5e9!important;transform:translateY(-4px)!important;box-shadow:0 12px 25px rgba(37,47,41,.1)!important}
/* 기존 효과 제거: 화살표 이동, 아이콘 확대/회전 */
section.tailCards .tcItem>a:after{transition:none!important}
section.tailCards .tcItem>a:hover:after{right:13px!important}
section.tailCards .tcIcon{transition:none!important}
section.tailCards .tcItem>a:hover .tcIcon{transform:none!important}
@media(max-width:768px){section.tailCards .tcItem>a:hover:after{right:14px!important}}

/* 교회 앨범: 이미지 높이 확대 */
/* PC: 사진 한 줄의 최소 높이를 키움 (기존 약 120px -> 140px 이상) */
@media(min-width:801px){
  #bethel-home .bh-gallery-content ul{grid-template-rows:repeat(2,minmax(140px,1fr))}
}
/* 모바일: 사진 비율 2:1 -> 16:10 (약 25% 높아짐) */
@media(max-width:800px){
  #bethel-home .bh-gallery-content li img{aspect-ratio:16/10}
}

/* 모바일 교회 소식: 목록 행 높이 약 20% 축소 (약 44px -> 35px) */
@media(max-width:800px){
  #bethel-home .bh-news-list li a{padding-top:6.6px;padding-bottom:6.6px}
}

/* ===== PC: 교회 소식·앨범 패널 전체 높이 약 20% 축소 (약 410px -> 330px) + 앨범 사진 최대 확대 ===== */
@media(min-width:801px){
  /* 패널 여백 축소 */
  #bethel-home .bh-news-panel,
  #bethel-home .bh-gallery-panel{padding:20px 20px 20px}
  /* 머리줄 축소 */
  #bethel-home .bh-news-panel .bh-section-heading,
  #bethel-home .bh-gallery-panel .bh-section-heading{margin:0 0 8px}
  #bethel-home .bh-news-panel .bh-section-heading h2,
  #bethel-home .bh-gallery-panel .bh-section-heading h2{font-size:22px}
  #bethel-home .bh-news-panel .bh-section-heading>div,
  #bethel-home .bh-gallery-panel .bh-section-heading>div,
  #bethel-home .bh-news-panel .bh-text-link,
  #bethel-home .bh-gallery-panel .bh-text-link{top:-2px}
  #bethel-home .bh-news-panel .bh-text-link,
  #bethel-home .bh-gallery-panel .bh-text-link{height:40px;line-height:38px;padding:0 18px;font-size:14px}
  /* 교회 소식: 목록 행 높이 축소 (5줄 기준 높이가 패널 전체 높이를 결정) */
  #bethel-home .bh-news-list li a{padding-top:11.5px;padding-bottom:11.5px}
  /* 교회 앨범: 패널 높이는 소식 쪽에 맞추고, 사진은 테두리 안쪽 여백까지 가득 채움 */
  #bethel-home .bh-gallery-content{padding:4px 0 0}
  #bethel-home .bh-gallery-content ul{min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
}

/* ===== PC 교회 앨범: "전체보기" 버튼 10% 축소 + 줄어든 만큼 사진 위로 이동 + 사진 높이·폭 확대 ===== */
@media(min-width:801px){
  /* 전체보기 버튼: 높이 40->36, 글자 14->12.6, 좌우 패딩 18->16.2 (모두 약 10% 축소) */
  #bethel-home .bh-gallery-panel .bh-text-link{height:36px;line-height:34px;padding:0 16.2px;font-size:12.6px}
  /* 머리줄이 4px 낮아져 사진이 그만큼 위로 올라감. 제목 글씨 위치는 교회 소식과 맞춤 */
  #bethel-home .bh-gallery-panel .bh-section-heading>div{top:0}
  /* 사진 영역을 좌우·아래로 8px씩 넓혀 테두리 안쪽 12px까지 채움 (높이·폭 확대) */
  #bethel-home .bh-gallery-content{margin:0 -8px -8px;padding:0}
  #bethel-home .bh-gallery-content ul{gap:8px}
}

/* ===== 모바일 교회 앨범: "전체보기" 버튼 10% 축소 + 줄어든 만큼 사진 위로 이동 + 사진 높이·폭 확대 ===== */
@media(max-width:800px){
  /* 전체보기 버튼: 높이 36->32.4, 글자 13->11.7, 좌우 패딩 14->12.6 (모두 약 10% 축소) */
  #bethel-home .bh-gallery-panel .bh-text-link{height:32.4px;line-height:30.4px;padding:0 12.6px;font-size:11.7px}
  /* 머리줄이 3.6px 낮아져 사진이 그만큼 위로 올라감. 제목 글씨 위치는 교회 소식과 맞춤 */
  #bethel-home .bh-gallery-panel .bh-section-heading>div{top:-3.5px}
  /* 사진 영역을 좌우·아래로 8px씩 넓혀 테두리 안쪽 8px까지 채움 (폭 확대 -> 비율에 따라 높이도 확대) */
  #bethel-home .bh-gallery-content{margin:0 -8px -8px;padding:0}
  #bethel-home .bh-gallery-content ul{gap:8px}
}

/* ===== index.php 인라인 <style> 에서 이동 ===== */

/* 설교 최신글 썸네일
   - PC: 칸 비율에 맞춘 600x206 썸네일(mainWide00N)을 가로·세로 정중앙 기준으로 표시
   - 모바일(700px 이하): 칸이 거의 정사각형이므로 600x400 썸네일(mainThumb00N, --bh-thumb-m)을 중앙 기준으로 표시 */
.bh-sermon-latest-card .bh-sermon-image {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
@media (max-width:700px) {
    .bh-sermon-latest-card .bh-sermon-image {
        background-image: var(--bh-thumb-m) !important;
    }
}

/* 메인 바탕색: 다른 페이지와 같은 #f4f3f8 (메인 비주얼·카드 안쪽 색은 그대로) */
html, body, #ctWrap, #bethel-home, .bh-home,
.bh-section, .bh-sermons, .bh-shortcuts, .bh-community,
.bh-container, .tailCards, .tailCards .tcInner, .tailCards .tcView {background:#f4f3f8 !important; }

/* ===== 메인 페이지: 슬라이드 이미지 위의 메뉴를 약간 투명하게 (PC, 메인에서만) =====
   head.php 의 인라인 스타일(#hd 등 #f4f3f8 !important)보다 우선하도록 선택자를 더 구체적으로 지정
   - 투명도: 상단 메뉴바 .85 / 하위메뉴(드롭다운) .90  (숫자가 작을수록 더 투명) */
@media (min-width:981px){
  body:has(#bethel-home) #hd #tnb,
  body:has(#bethel-home) #hd #gnb,
  body:has(#bethel-home) #hd .gnb_wrap{background:transparent !important; }
  body:has(#bethel-home) #hd{background:rgba(244,243,248,.85) !important; }
  body:has(#bethel-home) #gnb .gnb_2dul{background:rgba(71,93,143,.90); }
}
