/* ===== 토토가이드 갤러리 ===== */
#guide_board { width:100%; }

/* 상단 배너 */
.guide-banner {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 24px 28px;
    margin-bottom: 16px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.guide-banner::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0;
    width: 40%;
    background: linear-gradient(135deg, #e63946 0%, #c0392b 100%);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.guide-banner-text { position: relative; z-index: 1; flex: 1; }
.guide-banner-eyebrow { font-size: 11px; font-weight: 700; color: #e63946; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 6px; }
.guide-banner-text h1 {
    font-size: 18px; font-weight: 800;
    color: #111; margin: 0 0 6px; letter-spacing: -0.3px;
    line-height: 1.4;
}
.guide-banner-text h1 strong { color: #e94560; }
.guide-banner-text p {
    font-size: 12px; color: #666; margin: 0; line-height: 1.6;
}
.guide-banner-right {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding-left: 20px;
}
.guide-banner-icon-main { font-size: 48px; color: rgba(255,255,255,.9); }

/* 카운트 바 */
.guide-count-bar {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 6px 2px 10px; font-size: 13px; color: #555;
    border-bottom: 2px solid #e94560;
    margin-bottom: 14px;
    flex-wrap: wrap; gap: 8px;
}
.guide-count-bar strong { color: #111; font-weight: 700; }
.guide-bar-right { display:flex; align-items:center; gap:6px; }
.guide-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border: 1px solid #ddd; border-radius: 4px;
    background: #fff; color: #555; font-size: 13px;
    cursor: pointer; text-decoration: none;
    transition: all .15s;
}
.guide-icon-btn:hover { background: #e94560; color: #fff; border-color: #e94560; }
.guide-write-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; font-size: 12px; font-weight: 700;
    border-radius: 6px; border: none;
    background: #e94560; color: #fff; text-decoration: none;
    box-shadow: 0 2px 8px rgba(233,69,96,.35);
    transition: all .15s; white-space: nowrap;
}
.guide-write-btn:hover { background: #c0392b; color: #fff; box-shadow: 0 4px 12px rgba(233,69,96,.45); transform: translateY(-1px); }

/* 검색 폼 */
.guide-search-form {
    display: none;
    background: #fff; border: 1px solid #ddd; border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    padding: 12px 14px; margin-bottom: 12px;
    gap: 6px; align-items: center;
}
.guide-search-form.open { display: flex; }
.guide-search-form select {
    border: 1px solid #ddd; border-radius: 4px;
    padding: 7px 8px; font-size: 12px; outline: none;
    background: #fff; height: 36px;
}
.guide-search-form input[type=text] {
    flex: 1; border: 1px solid #ddd; border-radius: 4px;
    padding: 7px 10px; font-size: 12px; outline: none; height: 36px;
}
.guide-search-form button[type=submit] {
    background: #e94560; color: #fff; border: none;
    border-radius: 4px; padding: 0 14px; height: 36px;
    font-size: 13px; cursor: pointer;
}

/* 카드 그리드 3열 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 16px;
}

/* 카드 */
.guide-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.guide-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,.12);
    transform: translateY(-3px);
    text-decoration: none; color: inherit;
}

/* 썸네일 */
.guide-thumb {
    position: relative;
    width: 100%; padding-top: 56.25%;
    overflow: hidden;
    background: #1a1a2e;
}
.guide-thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .25s;
}
.guide-card:hover .guide-thumb img { transform: scale(1.05); }
.guide-thumb .no-img {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: rgba(255,255,255,.2); font-size: 40px;
    user-select: none;
}
.guide-thumb-brand {
    position: absolute; top: 8px; left: 8px;
    background: rgba(233,69,96,.92);
    color: #fff; font-size: 10px; font-weight: 900;
    padding: 2px 7px; border-radius: 3px;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* 카드 본문 */
.guide-card-body { padding: 10px 12px 8px; }
.guide-card-title {
    font-size: 13px; font-weight: 600; color: #222;
    line-height: 1.4;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.guide-card-cmt { color: #e94560; font-size: 12px; font-weight: 700; margin-left: 4px; }

/* 카드 메타 */
.guide-card-meta {
    display: flex; align-items: center;
    justify-content: space-between;
    font-size: 11px; color: #aaa;
    padding: 6px 12px 8px;
    border-top: 1px solid #f5f5f5;
}
.guide-meta-date {
    display: inline-flex; align-items: center; gap: 4px; color: #e94560;
}
.guide-meta-author {
    display: inline-flex; align-items: center; gap: 4px;
    color: #444; font-weight: 500;
}
.guide-meta-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: #e94560; color: #fff; font-size: 9px; font-weight: 700;
    flex-shrink: 0; overflow: hidden;
}
.guide-meta-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }

/* 빈 결과 */
.guide-empty {
    grid-column: 1/-1; text-align:center;
    color: #bbb; padding: 40px 0; font-size: 14px;
}

/* 페이지 */
.guide-pg-wrap { text-align:center; padding:12px 0 4px; }
.guide-pg-wrap .pg_wrap { display:inline-block; }

/* 토토가이드 상세 본문 */
#bo_v_con .guide-article {
    max-width: 860px;
    margin: 0 auto;
    color: #353744;
    font-size: 15px;
    line-height: 1.85;
    word-break: keep-all;
}
#bo_v_con .guide-article .guide-lead {
    margin: 0 0 28px;
    padding: 20px 22px;
    border-left: 4px solid #e94560;
    border-radius: 0 8px 8px 0;
    background: #f7f8fb;
    color: #303243;
    font-size: 16px;
    font-weight: 600;
}
#bo_v_con .guide-article section { margin-top: 34px; }
#bo_v_con .guide-article h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e94560;
    color: #202236;
    font-size: 22px;
    line-height: 1.4;
}
#bo_v_con .guide-article h3 {
    margin: 24px 0 8px;
    color: #2b2d42;
    font-size: 17px;
    line-height: 1.5;
}
#bo_v_con .guide-article p { margin: 0 0 14px; }
#bo_v_con .guide-article ul,
#bo_v_con .guide-article ol {
    margin: 10px 0 18px;
    padding-left: 24px;
}
#bo_v_con .guide-article li { margin: 7px 0; }
#bo_v_con .guide-article .guide-checklist {
    padding: 18px 20px 18px 42px;
    border: 1px solid #e4e6ee;
    border-radius: 8px;
    background: #fff;
}
#bo_v_con .guide-article .guide-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #fff3f5;
    color: #5b3138;
}
#bo_v_con .guide-article .guide-sources {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #e4e6ee;
    color: #6d7080;
    font-size: 13px;
}
#bo_v_con .guide-article .guide-sources a { color: #c9364e; text-decoration: underline; }

@media (max-width: 1024px) {
    .guide-banner { padding: 22px 20px; }
}
@media (max-width: 768px) {
    .guide-banner { padding: 20px 16px; min-height: 110px; }
    .guide-banner-right { display: none; }
    .guide-banner-text h1 { font-size: 15px; }
    .guide-grid { grid-template-columns: 1fr; }
    #bo_v_con .guide-article { font-size: 14px; line-height: 1.8; }
    #bo_v_con .guide-article .guide-lead { padding: 16px 17px; font-size: 15px; }
    #bo_v_con .guide-article h2 { font-size: 19px; }
}
@media (max-width: 480px) {
    .guide-banner { padding: 16px 12px; min-height: 90px; }
    .guide-banner-text h1 { font-size: 13px; }
}
