/* ==================================================
   TS BLOG style.css
   - Blog layout with left/right sidebar
   - Mobile responsive design
   - Clean English comments
   ================================================== */

/* === BLOG LAYOUT CSS === */

/* ================================================
   View Page - 이미지 링크 커서 제거
   ================================================ */
#bo_v_con a img,
#bo_v_con a.view_image {
    cursor: default;
}

/* ================================================
   Container & Layout
   ================================================ */

/* Prevent container overflow */
.blog_list_wrap,
.blog_view_wrap {
    max-width: 100%;
    /* overflow-x removed - breaks sticky */
}

/* Common: Thumbnail background */
.notice-thum .thum_image,
.post-box .thum_image {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Left/Right Layout */
.blog_list_wrap .cont {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
    max-width: 100%;
}

/* Left: Main Content */
.blog-main,
.wp100-lg {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Right: Sidebar */
.blog-sidebar,
.info {
    width: 300px;
    min-width: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-sticky h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.sidebar-category ul {
    list-style: none;
    padding: 0;
}

.sidebar-category li {
    margin-bottom: 8px;
}

.sidebar-category a {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar-category a:hover,
.sidebar-category a.on {
    background: #f5f5f5;
    color: #333;
}

/* ================================================
   Notice Section
   ================================================ */
.notice-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.notice-section:has(.notice-item:only-child) {
    grid-template-columns: 1fr;
}

.notice-item {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.notice-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.notice-item .chk_box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.notice-thum {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.notice-thum a {
    display: block;
    width: 100%;
    height: 100%;
}

.notice-thum .thum_image {
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
}

.notice-item:hover .notice-thum .thum_image {
    transform: scale(1.1);
}

.notice-thum .no_image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.notice-info {
    padding: 20px;
}

.notice-info .category {
    display: inline-block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.notice-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
}

.notice-title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
}

.notice-title:hover {
    color: #1755e6;
}

.notice-date {
    font-size: 14px;
    color: #999;
}

/* ================================================
   Latest Posts Section
   ================================================ */
.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
}

.post-item {
    list-style: none;
}

.post-box {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.post-box .chk_box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.post-box .thum {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-box .thum a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-box .thum_image {
    width: 100%;
    height: 100%;
    margin: 0;
    transition: transform 0.7s;
}

.post-box:hover .thum_image {
    transform: scale(1.1);
}

.post-box .no_image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin: 0;
}

.post-box .info_box {
    padding: 20px;
}

.post-box .category {
    display: inline-block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.post-box .bo_tit {
    text-decoration: none;
}

.post-box .subject {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.post-box .bo_tit:hover .subject {
    color: #1755e6;
}

.post-box .status {
    font-size: 14px;
    color: #999;
}

/* ================================================
   Responsive Design
   ================================================ */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .blog_list_wrap .cont,
    .blog_view_wrap .cont {
        grid-template-columns: 1fr !important;
        gap: 30px;
        max-width: 100%;
    }
    
    .blog-main,
    .wp100-lg,
    .blog-sidebar,
    .info {
        width: 100% !important;
        max-width: 100%;
    }
    
    .sidebar-sticky {
        position: relative;
        top: 0;
    }
    
    .notice-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .blog_list_wrap .cont,
    .blog_view_wrap .cont {
        gap: 20px;
        max-width: 100%;
        padding: 0;
    }
    
    .blog-main,
    .wp100-lg,
    .blog-sidebar,
    .info,
    .notice-section,
    .post-grid,
    .sidebar-sticky {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .notice-section { margin-bottom: 30px; }
    .notice-thum { height: 200px; }
    .notice-info { padding: 15px; }
    .notice-title { font-size: 16px; }
    .section-title { font-size: 20px; margin-bottom: 20px; }

    /* Single column layout */
    .post-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* Horizontal card layout for mobile */
    li.post-item .post-box {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        max-width: 100%;
    }

    /* Fixed thumbnail size */
    li.post-item .thum {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
        overflow: hidden;
        border-radius: 10px;
    }

    li.post-item .thum a {
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    li.post-item .thum .thum_image,
    li.post-item .thum .no_image {
        width: 100%;
        height: 100%;
        display: block;
        margin: 0;
    }

    li.post-item .thum .thum_image {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Text area */
    li.post-item .info_box {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
        max-width: 100%;
    }

    /* Limit title to 2 lines */
    li.post-item .info_box .subject {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ================================================
   Utility Classes
   ================================================ */
.empty_list {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================================================
   Checkbox Styles
   ================================================ */
.checkbox_type1 {
    margin: 0;
}

.checkbox_type1 input[type="checkbox"] {
    display: none;
}

.checkbox_type1 label {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.checkbox_type1 input[type="checkbox"]:checked + label {
    background: #1755e6;
    border-color: #1755e6;
}

.checkbox_type1 input[type="checkbox"]:checked + label:after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: #fff;
    font-size: 14px;
}

/* === LEGACY GALLERY2 CSS === */

/* Gallery List */
#bo_gall h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

#board_list_wrap #board_list_gallery {
    position: relative;
}

#board_list_wrap #board_list_gallery > ul {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

#board_list_wrap #board_list_gallery > ul > li {
    padding: 0px 1.5rem;
    float: left;
    width: calc(100%/3);
    margin-bottom: 3rem;
}

#board_list_wrap #board_list_gallery > ul > li.col-gn-1 { width: calc(100%/1); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-2 { width: calc(100%/2); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-3 { width: calc(100%/3); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-4 { width: calc(100%/4); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-5 { width: calc(100%/5); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-6 { width: calc(100%/6); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-7 { width: calc(100%/7); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-8 { width: calc(100%/8); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-9 { width: calc(100%/9); }
#board_list_wrap #board_list_gallery > ul > li.col-gn-10 { width: calc(100%/10); }

#board_list_wrap #board_list_gallery > ul > li > .gallery_box {
    position: relative;
}

#board_list_wrap #board_list_gallery > ul > li > .gallery_box > .chk_box {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 10;
}

#board_list_wrap #board_list_gallery > ul > li.empty_list {
    width: 100%;
    text-align: center;
    line-height: 200px;
    margin: 0;
}

#board_list_wrap .gallery_box .thum > .thum_slide {
    display: block;
    position: relative;
    padding-top: 140%;
    z-index: 10;
}

#board_list_wrap .gallery_box .thum > .thum_slide > .mySwiper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#board_list_wrap .gallery_box .thum > .thum_slide .swiper-wrapper,
#board_list_wrap .gallery_box .thum > .thum_slide .swiper-wrapper .swiper-slide {
    height: 100%;
}

#board_list_wrap .gallery_box .thum > .thum_slide .swiper-wrapper .swiper-slide {
    background-size: cover;
    background-position: center center;
}

#board_list_wrap .gallery_box .thum > .thum_slide > p {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

#board_list_wrap .gallery_box .thum > .thum_slide > p.no_image {
    background: #f1f1f1;
}

#board_list_wrap .gallery_box .thum > .thum_slide > p.no_image > span {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-family: 'Roboto', sans-serif !important;
    font-size: 2rem;
}

#board_list_wrap .gallery_box .info_box {
    padding: 1rem 0;
}

#board_list_wrap .gallery_box .info_box > a {
    display: block;
    color: #222;
    font-size: 1.6rem;
}

#board_list_wrap .gallery_box .info_box > a.category {
    margin-bottom: .5rem;
}

#board_list_wrap .gallery_box .info_box > a > .subject {
    overflow: hidden;
    font-size: 1.8rem;
    line-height: 1.4;
    height: 5.4rem;
}

#board_list_wrap .gallery_box .info_box > a > .subject > strong {
    display: inline-block;
    background: #273346;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    padding: 3px 12px;
    border-radius: 20px;
    transform: translateY(-2px);
}

#board_list_wrap .gallery_box .info_box > a > .w_cont {
    overflow: hidden;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #666;
    height: 4.4rem;
    margin-top: .5rem;
}

#board_list_wrap .gallery_box .info_box > .status {
    color: #666;
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: .6rem;
}

#board_list_wrap .gallery_box .info_box > .status > span {
    margin-right: 10px;
}

#board_list_wrap .gallery_box .info_box > .status > span i {
    display: none;
}

@media(max-width:991.98px) {
    #board_list_wrap #board_list_gallery > ul > li {
        padding: 0px 1rem;
        float: left;
        width: calc(100%/2);
        margin-bottom: 2rem;
    }
}

@media(max-width:575.98px) {
    #board_list_wrap #board_list_gallery > ul > li {
        padding: 0px 1.5rem;
        float: left;
        width: calc(100%/1);
        margin-bottom: 3rem;
    }
}

/* === BOARD VIEW PAGE === */

#board_view_wrap {
}

#board_view_wrap #board_btn_wrap {
    text-align: center;
}

#board_view_wrap > .view_header {
    border-bottom: 2px solid #000;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

#board_view_wrap > .view_header > h3 {
    font-size: 2.4rem;
    text-align: center;
    font-weight: 600;
}

#board_view_wrap > .view_header > h3 > small {
    display: block;
    padding-bottom: 5px;
}

#board_view_wrap > .view_header > .info {
    text-align: center;
    margin-top: 2rem;
}

#board_view_wrap > .view_header > .info > p {
    display: inline-block;
    padding: 0px 20px;
    font-size: 1.5rem;
    color: #777;
    position: relative;
}

#board_view_wrap > .view_header > .info > p::after {
    content: "";
    height: 14px;
    position: absolute;
    top: 50%;
    left: -1px;
    margin-top: -7px;
    border-left: 1px dashed #ccc;
}

#board_view_wrap > .view_header > .info > p:first-child::after {
    display: none;
}

#board_view_wrap > .view_header > .info > p > span {
    color: #222;
}

#board_view_wrap .view_body {
    border-bottom: 1px solid #aeaeae;
}

#board_view_wrap .view_etc {
    padding: 3rem 3rem 0 3rem;
    font-size: 1.6rem;
}

#board_view_wrap .view_etc p {
    margin-bottom: 5px;
}

#board_view_wrap .view_etc p:last-child {
    margin-bottom: 0px;
}

#board_view_wrap .view_etc p span {
    display: inline-block;
    padding: 5px;
    padding-left: 15px;
}

#board_view_wrap .view_etc p span:first-child {
    background: #000;
    border-radius: 5px;
    color: #ffffff;
    padding-left: 5px;
}

#board_view_wrap .view_contents {
    padding: 3rem;
    font-size: 1.6rem;
}

#board_view_wrap .view_file {
    border-top: 1px solid #ddd;
    background: #f8f9fa;
    padding: 2rem 3rem;
}

#board_view_wrap .view_file > div {
    position: relative;
    padding-left: 120px;
}

#board_view_wrap .view_file > div > h4 {
    position: absolute;
    font-size: 1.6rem;
    top: 8px;
    left: 0;
}

#board_view_wrap .view_file > div > ul > li {
    position: relative;
    background: url(img/icon_file.png) no-repeat left center / 18px auto;
    padding: 8px 0;
    padding-left: 28px;
}

#board_view_wrap .view_file > div > ul > li > a {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    padding: 5px 15px;
}

#board_view_wrap .view_file > div > ul > li > a:hover {
    border: 1px solid #333;
}

#board_view_wrap .view_mylink {
    border-top: 1px solid #ddd;
    background: #f8f9fa;
    padding: 2rem 3rem;
}

#board_view_wrap .view_mylink > div {
    position: relative;
    padding-left: 120px;
}

#board_view_wrap .view_mylink > div > h4 {
    position: absolute;
    font-size: 1.6rem;
    top: 8px;
    left: 0;
}

#board_view_wrap .view_mylink > div > ul > li {
    position: relative;
    padding: 8px 0;
}

#board_view_wrap .view_mylink > div > ul > li > a {
    color: #666;
}

#board_view_wrap .view_mylink > div > ul > li > a > span {
    margin-right: 5px;
}

@media(max-width:991.98px) {
    #board_view_wrap .view_contents {
        padding: 3rem 0;
    }
    #board_view_wrap .view_contents img {
        max-width: 100%;
        height: auto;
    }
}

@media(max-width:767.98px) {
    #board_view_wrap > .view_header > .info > p {
        padding: 0px 10px;
        font-size: 1.6rem;
    }
    #board_view_wrap > .view_header > .info > p > span:nth-of-type(1) {
        display: none;
    }
    #board_view_wrap .view_contents img {
        max-width: 100%;
        height: auto;
    }
}

@media(max-width:575.98px) {
    #board_view_wrap .view_contents img {
        max-width: 100%;
        height: auto;
    }
}

/* Quick View Navigation */
.board_quick_view {
    margin-top: 5rem;
    border-bottom: 1px solid #000;
}

.board_quick_view > li {
    padding: 2rem;
    border-top: 1px solid #ddd;
}

.board_quick_view > li > a {
    position: relative;
    display: block;
    padding-left: 120px;
    font-size: 1.6rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.board_quick_view > li > a > p {
    position: absolute;
    left: 20px;
    color: #444;
}

.board_quick_view > li > a > p > i {
    margin-left: 5px;
}

@media(max-width:991.98px) {
    .board_quick_view > li {
        padding: 2rem 0;
    }
    .board_quick_view > li > a {
        padding-left: 80px;
    }
    .board_quick_view > li > a > p {
        left: 0px;
    }
}

/* === BOARD WRITE PAGE === */

#board_write_wrap #board_btn_wrap {
    text-align: center;
}

.required_box {
    text-align: right;
    margin-bottom: 1rem;
    color: #666;
}

.board_write_table > table {
    border-top: 2px solid #000;
    width: 100%;
}

.board_write_table > table caption {
    display: none;
}

.board_write_table > table > tr > th,
.board_write_table > table > thead > tr > th,
.board_write_table > table > tbody > tr > th {
    font-size: 1.6rem;
    color: #222;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    font-weight: 500;
    padding-left: 3.5rem;
}

.board_write_table > table > tr > td,
.board_write_table > table > tbody > tr > td {
    font-size: 1.6rem;
    color: #666;
    border-bottom: 1px solid #ddd;
    padding: 15px;
}

.board_write_table .description {
    color: #888;
    font-size: 1.6rem;
    font-weight: 300;
    margin-left: 20px;
}

@media (max-width: 991.98px) {
    .board_write_table > table,
    .board_write_table > table > tbody,
    .board_write_table > table > thead,
    .board_write_table > table > tr,
    .board_write_table > table > thead > tr,
    .board_write_table > table > tbody > tr,
    .board_write_table > table > tr > th,
    .board_write_table > table > thead > tr > th,
    .board_write_table > table > tbody > tr > th,
    .board_write_table > table > tr > td,
    .board_write_table > table > tbody > tr > td {
        display: block !important;
        border-bottom: 0;
        border-top: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .board_write_table > table > tr > th,
    .board_write_table > table > thead > tr > th,
    .board_write_table > table > tbody > tr > th {
        padding-bottom: 5px;
        font-size: 1.8rem;
    }
    .board_write_table > table > tr > td,
    .board_write_table > table > tbody > tr > td {
        padding-top: 0;
    }
    .board_write_table .description {
        display: block;
        font-size: 1.5rem;
        margin-left: 0px;
        margin-top: 5px;
    }
}

#board_write_wrap .bo_w_flie {
    margin-top: 10px;
}

#board_write_wrap .bo_w_flie:first-child {
    margin-top: 0;
}

#board_write_wrap .bo_w_flie .checkbox_type1 {
    margin-left: 15px;
}

#board_write_wrap .bo_w_flie .file_desc {
    margin-top: 5px;
}

#board_write_wrap .cke_sc {
    display: none;
}

#board_write_wrap .dp-table {
    width: 100%;
    text-align: left;
    color: #444;
}

#board_write_wrap .dp-table > div:first-child {
    width: 33%;
}

#board_write_wrap .dp-table > div:last-child {
    text-align: left;
}

#board_write_wrap .dp-table > div > a {
    border: 1px solid #ddd;
    font-size: 1.4rem;
    padding: .8rem 1.5rem;
    border-radius: 5px;
}

#board_write_wrap .dp-table > div > a > i {
    margin-left: 1rem;
}

#board_write_wrap .dp-table > div > a:hover {
    border: 1px solid #222;
}

/* ================================================
   Recent Posts Widget (Sidebar)
   ================================================ */
.sidebar-recent {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-recent h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.sidebar-recent ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent li {
    margin-bottom: 12px;
}

.sidebar-recent li:last-child {
    margin-bottom: 0;
}

.sidebar-recent a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.sidebar-recent a:hover {
    color: #1755e6;
}

.sidebar-recent a:before {
    content: '•';
    margin-right: 8px;
    color: #999;
}

/* ================================================
   View Page (Detail Page)
   ================================================ */

/* Left/Right Layout (same as list) */
.blog_view_wrap .cont {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

.blog-view-main {
    width: 100%;
}

/* Post Header */
.view-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.view-category {
    display: inline-block;
    font-size: 14px;
    color: #1755e6;
    text-decoration: none;
    margin-bottom: 10px;
}

.view-category:hover {
    text-decoration: underline;
}

.view-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
    word-break: keep-all;
}

.view-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.view-author {
    color: #666;
    font-weight: 500;
}

.view-ip {
    color: #999;
    font-size: 12px;
}

/* Post Content */
.view-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
}

.view-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.view-content p {
    margin-bottom: 5px;
}

.view-content h1, .view-content h2, .view-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.view-content blockquote {
    border-left: 4px solid #1755e6;
    padding-left: 20px;
    margin: 30px 0;
    color: #666;
    font-style: italic;
}

/* Attached Files */
.view-file {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.view-file h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.view-file ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.view-file li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.view-file li:last-child {
    border-bottom: none;
}

.view-file a {
    color: #333;
    text-decoration: none;
}

.view-file a:hover {
    color: #1755e6;
}

.bo_v_file_cnt {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* Related Links */
.view-link {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.view-link h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.view-link ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.view-link li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.view-link li:last-child {
    border-bottom: none;
}

.view-link a {
    color: #333;
    text-decoration: none;
}

.view-link a:hover {
    color: #1755e6;
}

.bo_v_link_cnt {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* Button Area */
.view-buttons {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.view-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-prev, .btn-next {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-prev:hover, .btn-next:hover {
    background: #1755e6;
    border-color: #1755e6;
    color: #fff;
}

.view-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.view-actions .btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-list {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.btn-list:hover {
    background: #f8f8f8;
}

.btn-write, .btn-reply {
    background: #1755e6;
    border: 1px solid #1755e6;
    color: #fff;
}

.btn-write:hover, .btn-reply:hover {
    background: #0d3db8;
}

.btn-update {
    background: #28a745;
    border: 1px solid #28a745;
    color: #fff;
}

.btn-update:hover {
    background: #218838;
}

.btn-delete {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #fff;
}

.btn-delete:hover {
    background: #c82333;
}

/* Related Posts Sidebar */
.sidebar-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-related li {
    margin-bottom: 12px;
}

.sidebar-related li:last-child {
    margin-bottom: 0;
}

.sidebar-related a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.sidebar-related a:hover {
    color: #1755e6;
}

.sidebar-related a:before {
    content: '•';
    margin-right: 8px;
    color: #999;
}

.sidebar-related .no-related {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

/* Responsive - View Page */
@media (max-width: 992px) {
    .blog_view_wrap .cont {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .view-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .blog_view_wrap .cont {
        gap: 20px;
    }
    
    .view-title {
        font-size: 24px;
    }
    
    .view-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .view-content {
        font-size: 15px;
    }
    
    .view-nav {
        flex-direction: column;
    }
    
    .view-actions {
        flex-wrap: wrap;
    }
    
    .view-actions .btn {
        flex: 1 1 auto;
    }
}
/* ================================================
   Additional Mobile Overflow Prevention
   (without affecting sticky)
   ================================================ */

/* Prevent all images from overflowing */
img,
.thum_image,
.no_image {
    max-width: 100% ;
}

/* Prevent text overflow */
.notice-title,
.subject,
.post-box .subject,
.sidebar-recent a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile: Ensure content fits */
@media (max-width: 768px) {
    /* Force all major containers to stay within viewport */
    #board_list_wrap,
    .container,
    .blog_list_wrap,
    .blog_view_wrap,
    .cont,
    .blog-main,
    .blog-sidebar,
    .notice-section,
    .notice-item,
    .post-grid,
    .post-item,
    .post-box {
        max-width: 100% !important;
    }
}

/* ================================================
   Comments Section
   ================================================ */

/* Comment Title (outside box) */
.blog-view-main > h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Comment List Box */
#bo_vc {
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 100%;
    margin-bottom: 20px;
    background: #fff;
}

/* Empty Comment Message */
#bo_vc_empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    margin: 0;
    background: transparent;
}

/* Comment Items */
#bo_vc article {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

#bo_vc article:last-of-type {
    border-bottom: none;
}

.cmt_contents {
    margin: 15px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Comment Write Form */
#bo_vc_w {
    padding: 30px;
    background: #f8f8f8;
    border-radius: 8px;
    max-width: 100%;
    border: 1px solid #ddd;
}

#bo_vc_w textarea#wr_content {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    background: #fff;
}

#bo_vc_w .bo_vcw_box {
    margin-bottom: 15px;
}

#bo_vc_w .bo_vc_w_info input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

#bo_vc_w .btn_submit {
    padding: 12px 30px;
    font-size: 15px;
    background: #1755e6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#bo_vc_w .btn_submit:hover {
    background: #0d3db8;
}

/* Mobile */
@media (max-width: 992px) {
    #bo_vc,
    #bo_vc_w {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #bo_vc {
        padding: 20px;
    }
    
    #bo_vc_w {
        padding: 20px;
    }
    
    #bo_vc_w textarea#wr_content {
        min-height: 120px;
        font-size: 14px;
    }
    
    #bo_vc_empty {
        padding: 30px 15px;
    }
}