/* ========== Blog Skin: kiup.kr 블로그형 + 사이드바 배너 ========== */

body { background: #f9fafb; }

/* 헤더 */
.site-header { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.header-navbar { border-bottom: 1px solid #e5e7eb; }
.logo { font-size: 24px; font-weight: 900; color: #111827; letter-spacing: -0.5px; }
.logo-img { height: 50px; }
.main-nav > a, .main-nav .nav-dropdown-toggle { font-size: 15px; font-weight: 600; color: #374151; }
.main-nav > a:hover, .main-nav .nav-dropdown-toggle:hover { color: #2563eb; }
.main-nav .header-right, .main-nav .header-right a, .main-nav .header-right button, .main-nav .header-right span { font-size: 13px !important; font-weight: 500 !important; }
.container { max-width: 1100px; }

/* 속보 바 */
.breaking-bar { border-radius: 50px; background: linear-gradient(135deg, #dc2626, #ef4444); margin-bottom: 20px; }
.breaking-label { border-radius: 50px; }

/* ========== 2/3 + 사이드바 레이아웃 ========== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
    margin-top: 12px;
}

/* ========== 블로그 피드 ========== */
.blog-feed { min-width: 0; }

.blog-article {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.blog-article:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.blog-article-link {
    display: block;
    padding: 36px 40px;
    color: inherit;
    text-decoration: none;
}
.blog-article-link:hover { text-decoration: none; }

.blog-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 4px;
}

.blog-title {
    font-size: 21px;
    font-weight: 800;
    color: #111827;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.9;
    margin-bottom: 24px;
}

.blog-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #9ca3af;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.blog-writer { font-weight: 600; color: #6b7280; }

/* ========== 공지사항 박스 ========== */
.notice-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.notice-box-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #111827;
}

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { border-bottom: 1px solid #f3f4f6; }
.notice-list li:last-child { border-bottom: none; }
.notice-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.notice-list li a:hover { color: #2563eb; }
.notice-title { font-weight: 500; flex: 1; margin-right: 16px; }
.notice-list time { font-size: 12px; color: #9ca3af; flex-shrink: 0; }

/* ========== 사이드바 배너 ========== */
.blog-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-banners {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-banner {
    display: block;
    border-radius: 0;
    overflow: hidden;
    transition: opacity 0.2s;
    margin-bottom: 10px !important;
    padding: 0;
    line-height: 0;
}
.sidebar-banner:hover { opacity: 0.85; }
.sidebar-banner img { width: 100%; height: auto; display: block; margin: 0; padding: 0; border-radius: 0; }

/* ========== 기사 상세 ========== */
.article-detail { max-width: 720px; }
.article-title { font-size: 32px; font-weight: 900; letter-spacing: -0.5px; }
.article-content { font-size: 17px; line-height: 2; }

/* ========== 공통 ========== */
.btn { border-radius: 8px; }
.btn-primary { background: #2563eb; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }
.alert { border-radius: 10px; }
.pagination a, .pagination span { border-radius: 8px; }
.pagination .current { background: #2563eb; border-color: #2563eb; }

/* 푸터 */
.site-footer { background: #111827; border-top: none; }
.footer-links a { color: #9ca3af; }
.copyright { color: #6b7280; }

/* 소셜 공유 */
.social-share .share-btn { width: 40px; height: 40px; }

/* ========== 반응형 ========== */
@media (max-width: 860px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .sidebar-banners { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .sidebar-banner { width: calc(50% - 4px); }
}
@media (max-width: 768px) {
    .container { max-width: 100%; }
    .blog-article-link { padding: 16px; }
    .blog-title { font-size: 17px; }
    .blog-subtitle { font-size: 13px; }
    .blog-excerpt { font-size: 13px; margin-bottom: 10px; }
    .blog-category { font-size: 11px; }
    .blog-meta { font-size: 12px; }
    .notice-box { padding: 14px 16px; }
    .notice-box-title { font-size: 14px; }
    .notice-list li a { font-size: 13px; }
    .sidebar-banner { width: calc(33.33% - 6px); }
    /* 기사 상세 */
    .article-detail { max-width: 100%; }
    .article-title { font-size: 20px; letter-spacing: 0; }
    .article-content { font-size: 15px; line-height: 1.8; }
}
@media (max-width: 480px) {
    .blog-article-link { padding: 14px; }
    .blog-title { font-size: 16px; }
    .blog-excerpt { font-size: 12px; }
    .sidebar-banner { width: calc(50% - 4px); }
    .article-title { font-size: 18px; }
    .article-content { font-size: 14px; }
}
