@charset "utf-8";

/* Blog Board Skin Custom Styles */

/* ========================
   Blog Container Layout (좌우 배치)
   ======================== */
.blog-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.35rem;
}

.blog-main {
    flex: 1;
    min-width: 0;
}

.blog-sidebar {
    width: 25%;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
        gap: 1.85rem;
    }

    .blog-sidebar {
        width: 100%;
        order: -1;
        /* 사이드바를 위로 */
    }
}

/* Blog Header */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.blog-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.blog-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-count {
    color: #888;
    font-size: 1rem;
}

/* List Layout */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.blog-item {
    display: flex;
    gap: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
    position: relative;
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-item.bo_notice {
    background: #f8f9fa;
    padding: 1.35rem;
    border-radius: 10px;
    border: none;
}

/* Checkbox */
.blog-chk {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* Thumbnail */
.blog-thumb {
    width: 320px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f1f1;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-thumb:hover img {
    transform: scale(1.08);
}

.blog-thumb .no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ccc;
    font-size: 1rem;
}

/* Info Area */
.blog-info {
    flex: 1;
    padding-top: 10px;
}

.blog-cat {
    display: inline-block;
    font-size: 13px;
    color: #e94e1b;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-info h3 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.blog-info h3 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-info h3 a:hover {
    color: #e94e1b;
}

.blog-summary {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-summary a {
    color: inherit;
    text-decoration: none;
}

/* Blog Layout */
.blog_wrap {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.blog_content {
    width: 75%;
    box-sizing: border-box;
}

.blog_sidebar {
    /* width: 25%; */
    padding: 0 0 0 3%;
}

.blog_sidebar .side_box {
    margin-bottom: 2.5rem;
}

.blog_sidebar .side_box h3 {
    font-size: 1.125rem;
    border-bottom: 0.125rem solid #333;
    padding-bottom: 0.625rem;
    margin-bottom: 1.25rem;
    font-weight: bold;
}

.blog_sidebar .side_box ul li a {
    display: block;
    font-size: 0.9375rem;
    color: #666;
    transition: color 0.3s;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.blog_sidebar .side_box ul li a:hover {
    color: var(--primary-color);
}

.blog_wrap .blog_content #bo_cate {
    display: none;
}

.blog_wrap .blog_content #bo_sch {
    display: none;
}

/* Meta Data */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    font-size: 13px;
    color: #999;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #ccc;
}

.cmt_cnt {
    display: inline-block;
    background: #e94e1b;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Empty List */
.empty_list {
    text-align: center;
    padding: 100px 0;
    color: #999;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-thumb {
        width: 250px;
        height: 180px;
    }

    .blog-info h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
        gap: 1.35rem;
    }

    .blog-thumb {
        width: 100%;
        height: 240px;
    }

    .blog-info {
        padding-top: 0;
    }

    .blog-summary {
        -webkit-line-clamp: 3;
    }
}

/* Common Board Elements Override */
.bo_fx {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

ul.btn_bo_user {
    display: flex;
    justify-content: flex-end;
    width: 50%;
}

ul.btn_bo_user li {
    padding-left: 0.25rem;
}

.btn_bo_user li a {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 1rem;
    border-radius: 4px;
    font-size: 13px;
}

.btn_bo_user li a:hover {
    background: var(--primary-dark);
}

ul.btn_bo_adm {
    display: flex;
    width: 50%;
}

ul.btn_bo_adm li {
    padding-right: 0.25rem;
}

.btn_bo_adm li input {
    background: #d13f4a;
    color: #fff;
    border: none;
    padding: 8px 1rem;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.btn_bo_adm li input:hover {
    background: #ff3746;
}

/* Pagination */
.pg_wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pg_page,
.pg_current {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    margin: 0 4px;
    background: #f5f6fa;
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.pg_current {
    background: #e94e1b;
    color: #fff;
}

.pg_page:hover {
    background: #ddd;
}

/* Pagination Navigation Buttons */
.pg_start,
.pg_prev,
.pg_next,
.pg_end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 4px;
    background: #f5f6fa;
    color: #666;
    text-decoration: none;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
    border: none;
}

.pg_start::before,
.pg_prev::before,
.pg_next::before,
.pg_end::before {
    text-indent: 0;
    display: block;
    font-size: 1rem;
    color: #666;
}

.pg_start::before {
    content: "«";
}

.pg_prev::before {
    content: "‹";
    font-size: 1.15rem;
}

.pg_next::before {
    content: "›";
    font-size: 1.15rem;
}

.pg_end::before {
    content: "»";
}

.pg_start:hover,
.pg_prev:hover,
.pg_next:hover,
.pg_end:hover {
    background: #ddd;
}

/* Blog View Styles */
.blog-view-wrap {
    background: #fff;
    padding: 0 0 40px;
}

.blog-view-head {
    border-bottom: 2px solid #edeff2;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
}

.blog-view-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.blog-view-cat {
    display: inline-block;
    font-size: 1rem;
    color: #e94e1b;
    margin-right: 10px;
    vertical-align: middle;
}

.blog-view-meta {
    display: flex;
    gap: 1.35rem;
    color: #888;
    font-size: 1rem;
}

.blog-view-meta i {
    margin-right: 5px;
    opacity: 0.7;
}

.source_box {
    margin: 1.35rem 0;
    padding: 1rem 1.35rem;
    background: #fdfdfd;
    border-left: 4px solid #e94e1b;
    font-size: 1rem;
    color: #555;
    border-radius: 0 4px 4px 0;
}

.blog-view-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    min-height: 200px;
}

.blog-view-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 1.35rem 0;
}

.blog-view-files {
    margin: 40px 0;
    padding: 1.35rem;
    border: 1px solid #eee;
    border-radius: 12px;
}

.blog-view-files h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.view_file_download {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    text-decoration: none;
    font-size: 1rem;
}

.view_file_download:hover {
    color: #e94e1b;
}

/* Compact List (for View Page) */
.blog-list-compact {
    margin-top: 60px;
}

.blog-list-compact table {
    width: 100%;
    border-top: 2px solid #333;
}

.blog-list-compact th {
    padding: 12px 10px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.blog-list-compact td {
    padding: 12px 10px;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    color: #666;
}

.blog-list-compact .bo_current td {
    background: #f9f9f9;
    font-weight: 600;
    color: #e94e1b;
}

.blog-list-compact .bo_current a {
    color: #e94e1b;
}

/* Common Board Overrides for View */
#bo_v_bot {
    margin-top: 40px;
    text-align: right;
}

#bo_v_bot .btn_b01,
#bo_v_bot .btn_b02 {
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 1rem;
    border-radius: 4px;
    font-size: 1rem;
    margin-left: 5px;
}

#bo_v_bot .btn_b01:hover {
    border-color: #333;
    color: #333;
}

#bo_v_bot .btn_b02 {
    background: #e94e1b;
    border-color: #e94e1b;
    color: #fff;
}

#bo_v_bot .btn_b02:hover {
    background: #cf4316;
}

@media (max-width: 768px) {
    .blog-view-title {
        font-size: 1.45rem;
    }

    .blog-view-meta {
        gap: 10px;
        font-size: 12px;
        flex-wrap: wrap;
    }
}

#bo_vc header {
    position: relative;
    padding: 1rem 0 5px
}

#bo_vc header .icon_reply {
    position: absolute;
    top: 1rem;
    left: -1.35rem
}

#bo_vc .sv_wrap {
    margin-right: 1rem
}

#bo_vc .member,
#bo_vc .guest,
#bo_vc .sv_member,
#bo_vc .sv_guest {
    font-weight: bold
}

.bo_vc_hdinfo {
    display: inline-block;
    margin: 0 1rem 0 5px
}

#bo_vc h1 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden
}

#bo_vc a {
    color: #000;
    text-decoration: none
}

#bo_vc p {
    padding: 0 0 5px;
    line-height: 1.8em
}

#bo_vc p a {
    text-decoration: underline
}

#bo_vc p a.s_cmt {
    text-decoration: none
}

#bo_vc_empty {
    margin: 0;
    padding: 1.35rem !important;
    text-align: center
}

#bo_vc #bo_vc_winfo {
    float: left
}

#bo_vc footer {
    zoom: 1
}

#bo_vc footer:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: ""
}

.bo_vc_act {
    float: right;
    margin: 0;
    list-style: none;
    zoom: 1
}

.bo_vc_act:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: ""
}

.bo_vc_act li {
    float: left;
    margin-left: 5px
}

#bo_vc_w {
    position: relative;
    margin: 0 0 10px;
    padding: 0 0 1.35rem;
    border-bottom: 1px solid #cfded8
}

#bo_vc_w h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden
}

#bo_vc_w #char_cnt {
    display: block;
    margin: 0 0 5px
}

#bo_vc_sns {
    margin: 0;
    padding: 0;
    list-style: none;
    zoom: 1
}

#bo_vc_sns:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: ""
}

#bo_vc_sns li {
    float: left;
    margin: 0 1.35rem 0 0
}

#bo_vc_sns input {
    margin: 0 0 0 5px
}

/* ========================
   Sidebar Search Fix (줄바꿈 방지) 
   ======================== */
.blog_sidebar .search_box form {
    display: flex;
    gap: 5px;
    width: 100%;
}

.blog_sidebar .search_box .frm_input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.blog_sidebar .search_box button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color, #FF009E);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.blog_sidebar .search_box button:hover {
    background: var(--primary-dark, #ca006f);
}