/* =====================================================
   하단 카드형 바로가기 (tail.php section.tailCards)
   - PC 4개 / 태블릿 3개 / 모바일 1개씩 보이는 슬라이드
   - 카드 영역 폭은 본문(#bethel-home .bh-container)과 동일: min(1200px, 100% - 48px)
   - 아이콘 색상은 맨 아래 nth-child 에서 카드별로 변경 가능
   ===================================================== */
section.tailCards{--gap:20px;--pp:4;--gold:#d3a04a;--ink:#1d2433;display:block!important;clear:both;position:relative;width:100%;padding:26px 0 20px;background:#fff;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:flex!important;flex-wrap:nowrap;position:relative;gap:var(--gap);margin:0!important;padding:0!important;list-style:none!important;transition:transform .6s cubic-bezier(.22,.61,.36,1)}
section.tailCards .tcItem{flex:0 0 calc((100% - var(--gap) * (var(--pp) - 1)) / var(--pp))!important;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:#f1f2f4;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}
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:flex;justify-content:center;gap:6px;margin-top:14px}
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}
	section.tailCards .tcInner{width:70%;min-width:260px;max-width:340px}
	section.tailCards .tcItem>a{padding:12px 32px 12px 14px}
	section.tailCards .tcItem>a:after{right:14px}
}

/* 서브 페이지: 게시판 하단 ~ 카드 영역 간격 줄이기 */
#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) 높이 축소 (개인정보처리방침 ~ 주소 영역)
   - 숫자를 키우면 높이가 늘고, 줄이면 더 낮아집니다.
   ===================================================== */
#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 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}
