/* block:bf-community/ad-card 0.2.0 */
.bfc-ad { display: grid; gap: 8px; }
.bfc-ad__card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: var(--bfc-ad-min, 120px); padding: 16px 18px; overflow: hidden; border-radius: var(--bfc-radius, 4px); background-position: center; background-size: cover; color: #fff; text-decoration: none; box-sizing: border-box; }
.bfc-ad__card::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 10px); pointer-events: none; }
a.bfc-ad__card:hover { filter: brightness(1.12); }
.bfc-ad__label { align-self: flex-start; margin-bottom: auto; padding: 3px 7px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.bfc-ad__title { position: relative; z-index: 1; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.bfc-ad__text { position: relative; z-index: 1; color: rgba(255, 255, 255, .75); font-size: 12px; }
.bfc-ad__more { justify-self: end; color: var(--bfc-faint, #9c9ca5); font-size: 12px; text-decoration: none; }
.bfc-ad__more:hover { color: var(--bfc-primary, #3e9fde); }

/* block:bf/group 1.1.1 */
/* 묶음 블록: 안의 블록은 영역과 같은 12칸 격자 */
.bf-group { position: relative; padding: var(--bfg-py, 0) var(--bfg-px, 0); background-color: var(--bfg-bg, transparent); background-image: var(--bfg-img, none); background-size: cover; background-position: center; }
.bf-group.is-rounded { border-radius: var(--bfx-r, var(--bf-radius, 4px)); }
/* 테두리 · 그림자는 bf-render.css 의 has-bfx-bd · has-bfx-shadow (블록 공통 "테두리 · 배경"과 같은 모양) */
.bf-group__head { margin: 0 0 var(--bfg-gap, 20px); }
.bf-group__head.is-center { text-align: center; }
.bf-group__title { margin: 0; font-size: 1.35em; font-weight: 700; line-height: 1.35; }
.bf-group__sub { margin: 6px 0 0; color: var(--bf-color-muted, #6b7280); line-height: 1.6; }
/* 좌우 간격은 좁은 묶음(1/3 · 1/4 등)에서 12칸 격자가 묶음 폭을 넘지 않게 줄어든다 (칸마다 최소 10px) */
.bf-group > .bf-blocks { --bf-gap: var(--bfg-gap, 20px); --bf-gap-x: min(var(--bfg-gap, 20px), calc((100% - 120px) / 11)); }
.bf-group.is-light { color: #fff; }
.bf-group.is-light .bf-group__sub { color: rgba(255, 255, 255, .78); }
@media (max-width: 768px) {
    .bf-group { padding: calc(var(--bfg-py, 0px) * .7) calc(var(--bfg-px, 0px) * .6); }
}

/* block:bf/latest 1.0.0 */
.bfb-latest__list { list-style: none; margin: 0; padding: 0; }
.bfb-latest__item a { display: flex; align-items: center; gap: 10px; color: var(--bf-color-text); text-decoration: none; }
.bfb-latest__item a:hover .bfb-latest__subject { color: var(--bf-color-primary); }
.bfb-latest__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfb-latest__cmt { margin-left: 2px; color: var(--bf-color-primary); font-style: normal; font-size: .85em; }
.bfb-latest__new { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.bfb-latest__lock { margin-right: 2px; color: var(--bf-color-muted); }
.bfb-latest__date { flex-shrink: 0; color: var(--bf-color-muted); font-size: .85rem; }
.bfb-latest__empty { margin: 0; padding: 30px 0; color: var(--bf-color-muted); text-align: center; font-size: .9rem; }

/* 목록형 */
.bf-b-bf-latest.is-list .bfb-latest__item a { padding: 11px 2px; border-bottom: 1px solid var(--bf-color-border); }

/* 간단형 */
.bf-b-bf-latest.is-simple .bfb-latest__item a { padding: 6px 0; }
.bf-b-bf-latest.is-simple .bfb-latest__item a::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--bf-color-muted); flex-shrink: 0; }

/* 카드형 */
.bf-b-bf-latest.is-card .bfb-latest__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bf-b-bf-latest.is-card .bfb-latest__item a { flex-direction: column; align-items: stretch; gap: 8px; }
.bf-b-bf-latest.is-card .bfb-latest__date { font-size: .8rem; }
.bfb-latest__thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--bf-radius); background: var(--bf-color-bg-soft); color: var(--bf-color-border); font-size: 32px; }
.bfb-latest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-block--w-full.bf-b-bf-latest.is-card .bfb-latest__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* block:bf/slider 1.0.0 */
.bfb-slider { position: relative; overflow: hidden; border-radius: var(--bf-radius); color: var(--bfs-color, #fff); }
.bf-row--bleed .bfb-slider { border-radius: 0; }
.bfb-slider__viewport { overflow: hidden; }
.bfb-slider__track { display: flex; height: var(--bfs-h, 420px); transition: transform .5s ease; will-change: transform; touch-action: pan-y; }
.bfb-slider.is-dragging .bfb-slider__track { transition: none; }
.bfb-slider__slide { position: relative; flex: 0 0 100%; min-width: 0; display: flex; align-items: center; overflow: hidden; }
.bfb-slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bfb-slider--image .bfb-slider__img { object-fit: cover; }
.bfb-slider__slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--bfs-overlay, 0)); pointer-events: none; }
.bfb-slider__body { position: relative; z-index: 1; width: 100%; }
.bfb-slider__inner { max-width: var(--bf-container-width); margin: 0 auto; padding: 32px calc(var(--bf-gutter) + 48px); box-sizing: border-box; }
.bfb-slider__title { margin: 0; font-size: 2.2rem; font-weight: 800; line-height: 1.25; word-break: keep-all; }
.bfb-slider__text { margin: 12px 0 0; font-size: 1.05rem; line-height: 1.6; opacity: .88; }
.bfb-slider__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 12px 24px; border-radius: var(--bf-radius); background: #fff; color: #111827; font-weight: 700; text-decoration: none; }
.bfb-slider__cover { position: absolute; inset: 0; z-index: 2; }

.bfb-slider__arrow { position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 26px; cursor: pointer; transition: background-color .15s; }
.bfb-slider__arrow:hover, .bfb-slider__arrow:focus-visible { background: rgba(0, 0, 0, .6); }
.bfb-slider__arrow--prev { left: 14px; }
.bfb-slider__arrow--next { right: 14px; }

.bfb-slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.bfb-slider__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s, background-color .2s; }
.bfb-slider__dot.is-active { width: 24px; background: #fff; }

.bfb-slider__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; border: 2px dashed var(--bf-color-border); border-radius: var(--bf-radius); color: var(--bf-color-muted); font-size: .9rem; }
.bfb-slider__empty .bf-icon { font-size: 32px; }

@media (max-width: 768px) {
    .bfb-slider__track { height: var(--bfs-h-m, 260px); }
    .bfb-slider__inner { padding: 24px 20px 40px; }
    .bfb-slider__title { font-size: 1.5rem; }
    .bfb-slider__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bfb-slider__track { transition: none; }
}

