/* 블로그 첫 쪽, 새 디자인 (Controls/V2/V2Blog.ascx). 2026년 10월.
   머리, 카드, 상자는 첫 화면의 것(V2Home.css)을 쓰고 여기에는 이 쪽의 칸만 둔다. */

.v2-blog .v2-cols { margin-top: 24px; }

/* 오늘의 칼럼: 둘씩 두 줄 */
.v2-bl-columns ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.v2-bl-columns li { margin: 0; border-bottom: 1px solid var(--v2-line); }
.v2-bl-columns li:nth-last-child(-n+2) { border-bottom: 0; }
.v2-bl-columns li:nth-child(odd) { padding-right: 14px; }
.v2-bl-columns li:nth-child(even) { padding-left: 14px; }
.v2-bl-columns li > a { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 12px 0; box-sizing: border-box; }
.v2-bl-face { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(31, 36, 48, .12); }
.v2-bl-face.is-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--v2-primary-soft); font-size: 22px; }
.v2-bl-col-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2-bl-writer { font-size: 12.5px; font-weight: 700; color: var(--v2-primary); }
.v2-bl-col-text b { font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--v2-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-bl-columns a:hover b { color: var(--v2-primary); }
.v2-bl-date { font-size: 12px; color: var(--v2-muted); }

/* 오늘의 TOPIC, 오늘의 블로그 이야기: 셋씩 두 줄 */
.v2-blog .v2-main > .v2-bl-cards + .v2-bl-cards { margin-top: 44px; }
.v2-bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.v2-blog .v2-card-img { background: #fdf3d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ca8a04' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E") center / 34px no-repeat; }

/* 오늘의 칼럼 목록 (?mode=TodaySelectedColumn):한 줄에 하나, 첫머리까지 */
.v2-bl-collist ul { grid-template-columns: minmax(0, 1fr); }
.v2-bl-collist li, .v2-bl-collist li:nth-child(odd), .v2-bl-collist li:nth-child(even) { padding: 0; }
.v2-bl-collist li:nth-last-child(-n+2) { border-bottom: 1px solid var(--v2-line); }
.v2-bl-collist li:last-child { border-bottom: 0; }
.v2-bl-collist li > a { align-items: flex-start; padding: 16px 0; }
.v2-bl-collist .v2-bl-face { width: 64px; height: 64px; }
.v2-bl-collist .v2-bl-col-text b { font-size: 16px; }
.v2-bl-excerpt { font-size: 13.5px; line-height: 1.6; color: #5b6172; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.v2-bl-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--v2-line); }
.v2-home .v2-bl-pager a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; color: #4b5162; }
.v2-home .v2-bl-pager a:hover { border-color: var(--v2-primary); color: var(--v2-primary); }
.v2-home .v2-bl-pager a.is-on { border-color: var(--v2-primary); background: var(--v2-primary); color: #fff; }

/* 추천 블로그: 넷 */
.v2-bl-blog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v2-bl-blog { display: flex; flex-direction: column; gap: 6px; }
.v2-bl-blog .v2-card-img { aspect-ratio: 4 / 3; }
.v2-bl-blog b { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--v2-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-bl-blog span:last-child { font-size: 12.5px; line-height: 1.45; color: var(--v2-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-bl-blog:hover b { color: var(--v2-primary); }

/* 맨 아래 띠 */
.v2-bl-closing { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 30px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(110deg, #f4efff 0%, #fbf3fa 55%, #e9f1ff 100%); }
.v2-bl-closing::after { content: ''; position: absolute; right: 0; bottom: 0; width: 46%; height: 100%; opacity: .7;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' preserveAspectRatio='xMidYMax meet'%3E%3Cpath fill='%236b3fe0' fill-opacity='.18' d='M0 300V230h40v-40h30v50h25v-90h45v90h20v-60h40v60h25V140h14v-20h8V20h5v-40h4v40h5v100h8v20h14v140h25v-70h50v70h20v-110h55v110h25v-40h45v40h30v-80h40v80h25v-45h45v115z'/%3E%3C/svg%3E") right bottom / contain no-repeat; }
.v2-bl-closing b { position: relative; z-index: 1; font-size: 20px; font-weight: 900; color: var(--v2-navy); }
.v2-bl-closing span { position: relative; z-index: 1; font-size: 13.5px; color: #4b5162; }

/* 오른쪽: 블로그 시작하기, 작가 모집 */
.v2-bl-start, .v2-bl-writers { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--v2-radius); overflow: hidden; color: #fff; }
.v2-bl-start { background: linear-gradient(135deg, #7c4dff 0%, #5b3ad6 100%); }
.v2-bl-writers { background: linear-gradient(135deg, #6d5dfc 0%, #8b5cf6 60%, #c084fc 100%); }
.v2-bl-start::after, .v2-bl-writers::after { content: ''; position: absolute; right: -20px; bottom: -20px; width: 110px; height: 110px; border-radius: 22px; transform: rotate(-12deg); background: rgba(255, 255, 255, .14); }
.v2-bl-start-icon { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); }
.v2-bl-start b, .v2-bl-writers b { position: relative; z-index: 1; font-size: 19px; font-weight: 900; line-height: 1.35; }
.v2-bl-start > span:not(.v2-bl-start-icon), .v2-bl-writers > span:not(.v2-bl-start-icon) { position: relative; z-index: 1; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.v2-home .v2-bl-start a, .v2-home .v2-bl-writers a { position: relative; z-index: 1; align-self: flex-start; margin-top: 6px; padding: 9px 18px; border-radius: 20px; background: #fff; color: var(--v2-primary); font-size: 14px; font-weight: 700; }
.v2-home .v2-bl-start a:hover, .v2-home .v2-bl-writers a:hover { background: var(--v2-primary-soft); }

/* 오른쪽: 최근 댓글 */
.v2-bl-comments h2 { margin-bottom: 6px; }
.v2-bl-comments ul { list-style: none; margin: 0; padding: 0; }
.v2-bl-comments li { margin: 0; border-bottom: 1px solid var(--v2-line); }
.v2-bl-comments li:last-child { border-bottom: 0; }
.v2-bl-comments a { display: flex; gap: 10px; padding: 11px 0; }
.v2-bl-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.v2-bl-avatar.is-purple { background: #efe9fd; color: #6b3fe0; }
.v2-bl-avatar.is-blue { background: #e8f1fd; color: #2f6fd6; }
.v2-bl-avatar.is-green { background: #e3f6ea; color: #15803d; }
.v2-bl-avatar.is-orange { background: #fff1e3; color: #c2610c; }
.v2-bl-cm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2-bl-cm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.v2-bl-cm-top b { font-size: 13px; font-weight: 700; color: var(--v2-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-bl-cm-top i { flex: 0 0 auto; font-style: normal; font-size: 11.5px; color: var(--v2-muted); }
.v2-bl-cm-body { font-size: 12.5px; line-height: 1.5; color: #4b5162; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-bl-cm-post { font-size: 11.5px; color: var(--v2-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-bl-comments a:hover .v2-bl-cm-body { color: var(--v2-primary); }

@media (max-width: 760px) {
    .v2-bl-columns ul { grid-template-columns: minmax(0, 1fr); }
    .v2-bl-columns li:nth-last-child(2) { border-bottom: 1px solid var(--v2-line); }
    .v2-bl-columns li:nth-child(odd), .v2-bl-columns li:nth-child(even) { padding: 0; }
    .v2-bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v2-bl-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v2-bl-closing::after { display: none; }
}

/* 최근 댓글: 쓴 사람의 사진이 있으면 글자 동그라미 위에 덮는다 (사진이 깨지면 지워져 글자가 보인다).
   제목 줄 앞의 블로그 이름은 이 글이 어느 블로그에 달렸는지 - 누르면 그 블로그가 열린다. */
.v2-bl-avatar { position: relative; overflow: hidden; }
.v2-bl-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-bl-cm-post em { font-style: normal; font-weight: 800; }
