@charset "utf-8";

/* ==========================================================================
   PC Complete Integrated Board Style
   ========================================================================== */

/* 상단 메인 메뉴바와 게시판 타이틀/콘텐츠 간격 확보 */
#bo_gall_custom {
    margin: 80px auto 0 !important;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", sans-serif;
}

#bo_v {
    margin: 80px auto 30px !important;
    padding-bottom: 30px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", sans-serif;
}

/* 상단/하단 컨트롤 영역 */
.bo_fx_custom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px;
    width: 100%;
}

.bo_fx_custom.bottom {
    margin-top: 30px;
}

#bo_list_total {
    font-size: 14px;
    color: #666;
}

#bo_list_total strong {
    color: #111;
}

.page_info {
    margin-left: 8px;
    color: #888;
}

/* 버튼 그룹 가로 정렬 고정 */
.btn_bo_user, .btn_bo_adm {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.btn_bo_user li, .btn_bo_adm li {
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 커스텀 버튼 디자인 */
.btn_custom {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn_primary { background: #111111; color: #ffffff !important; }
.btn_primary:hover { background: #333333; }

.btn_gray { background: #f1f3f5; color: #495057 !important; border: 1px solid #e9ecef; }
.btn_gray:hover { background: #e9ecef; }

.btn_admin { background: #ffffff; border: 1px solid #fca5a5; color: #e03131 !important; }
.btn_admin:hover { background: #fff5f5; }

.btn_danger { background: #fee2e2; color: #e03131 !important; border: 1px solid #fca5a5; }
.btn_danger:hover { background: #fecaca; }

/* 전체 선택 체크박스 */
#gall_allchk {
    font-size: 13px;
    color: #495057;
    margin-bottom: 14px;
}

/* 3열 카드 그리드 레이아웃 */
.card-grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 992px) {
    .card-grid-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .card-grid-list { grid-template-columns: repeat(1, 1fr); }
}

.card-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(255,255,255,0.85);
    padding: 4px;
    border-radius: 4px;
}

/* 썸네일 박스 (16:9 비율 및 중앙 정렬) */
.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.thumb-img.custom_center_img {
    object-fit: cover !important;
    object-position: center center !important;
}

.card-item:hover .thumb-img {
    transform: scale(1.05);
}

.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #adb5bd;
    font-size: 13px;
    font-weight: 600;
}

.notice-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #ffec99;
    color: #f08c00;
    font-weight: bold;
    font-size: 18px;
}

/* 유튜브 플레이 아이콘 */
.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 38px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.card-item:hover .yt-play-btn {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 13px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 2px;
}

/* 카드 본문 텍스트 */
.card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-sub {
    font-size: 13px;
    color: #868e96;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty_card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: #868e96;
    font-size: 15px;
}

/* 검색창 완전 중앙 정렬 */
#bo_sch_custom {
    margin: 40px auto 10px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
}

#bo_sch_custom form {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
}

.sch_select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
}

.sch_input {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    width: 240px;
    outline: none;
    box-sizing: border-box;
}

.sch_input:focus, .sch_select:focus {
    border-color: #111111;
}

.sch_btn {
    height: 40px;
    padding: 0 20px;
    background: #212529;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sch_btn:hover {
    background: #000000;
}


/* ==========================================================================
   VIEW 페이지 스타일
   ========================================================================== */

.bo_v_header {
    border-top: 2px solid #111111;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0 16px;
    margin-bottom: 20px;
}

#bo_v_title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 12px 0;
    word-break: keep-all;
}

#bo_v_info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #64748b;
}

.info_badge {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.pc_view_btn_group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.pc_view_btn_group.bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.btn_row_left, .btn_row_right {
    display: flex;
    gap: 8px;
}

.pv_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    box-sizing: border-box;
    white-space: nowrap;
    cursor: pointer;
}

.pv_btn.outline { background: #ffffff; color: #475569 !important; border: 1px solid #cbd5e1; }
.pv_btn.black { background: #1e293b; color: #ffffff !important; border: 1px solid #1e293b; }
.pv_btn.primary { background: #111111; color: #ffffff !important; border: 1px solid #111111; }
.pv_btn.gray { background: #f1f5f9; color: #475569 !important; border: 1px solid #e2e8f0; }
.pv_btn.danger { background: #fee2e2; color: #ef4444 !important; border: 1px solid #fca5a5; }

#bo_v_atc { padding: 10px 0; min-height: 200px; }
#bo_v_con { font-size: 16px; line-height: 1.8; color: #1e293b; margin-top: 20px; word-break: break-all; }
#bo_v_con img { max-width: 100% !important; height: auto !important; border-radius: 8px; margin: 15px auto; }

.youtube-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 20px 0 30px;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
}

.youtube-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* PC SNS 공유 박스 */
.pc_sns_box {
    margin: 40px auto;
    max-width: 480px;
    padding: 20px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sns_label { display: block; font-size: 14px; font-weight: 700; color: #475569; margin-bottom: 14px; }
.sns_btn_wrap { display: flex; justify-content: center; gap: 12px; }

.sns_item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sns_item:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.sns_item.kakao { background: #fee500; color: #191919 !important; }
.sns_item.insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #ffffff !important; }
.sns_item.blog { background: #03cf5d; color: #ffffff !important; }

/* 관련 링크 카드 스타일 */
.bo_v_link_box {
    margin: 20px 0 30px 0;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.link_header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.link_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 6px;
}

.link_title {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    letter-spacing: -0.3px;
}

.link_list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v_link_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.v_link_item:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.link_info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.link_badge {
    font-size: 10px;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.link_url {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v_link_item:hover .link_url {
    color: #0284c7;
}

.link_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.link_hit {
    font-size: 12px;
    color: #94a3b8;
}

.link_arrow {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.v_link_item:hover .link_arrow {
    color: #0284c7;
    transform: translate(2px, -2px);
}

/* ==========================================================================
   상단 메인 헤더 대메뉴와 서브 타이틀(라이프 트랜드) 사이 간격 강제 넓힘
   ========================================================================== */

/* 1. 스킨 전체 최상단 영역 간격 띄우기 */
#bo_gall_custom {
    margin-top: 100px !important; /* 필요에 따라 120px, 150px로 올리시면 더 내려옵니다 */
    padding-top: 20px !important;
}

/* 2. 게시판 읽기(VIEW) 페이지 상단 간격 띄우기 */
#bo_v {
    margin-top: 100px !important;
    padding-top: 20px !important;
}

/* 3. 상단 헤더/서브 타이틀 영역 밀어내기 */
.sub_header, .sub_top, .sub_title, .sv_wrap, .sub_banner, .page_title_wrap {
    padding-top: 80px !important;
    margin-top: 40px !important;
}

/* 4. 컨테이너 영역 여백 강제 */
#container, .sub_container, #wrapper {
    padding-top: 80px !important;
}

/* ==========================================================================
   대표 썸네일 이미지 정중앙 강제 정렬 보정 (Fix)
   ========================================================================== */

/* 1. PC 카드 썸네일 영역 중앙 정렬 */
.card-thumb {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    background: #f8f9fa !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.card-thumb a.thumb-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* 2. 이미지 중앙 고정 및 비율 크롭 */
.thumb-img, 
.thumb-img.custom_center_img,
.m_cover_img,
.m_cover_img.m_custom_center {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important; /* 비율 깨짐 없이 틀에 맞춤 */
    object-position: center center !important; /* 이미지 무조건 중앙 기준 */
    margin: 0 auto !important;
}

/* 3. 모바일 미디어 박스 중앙 정렬 */
.m_media_box {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    background: #000000 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* ==========================================================================
   VIEW 페이지(글 상세보기) 첨부 이미지 및 본문 정중앙 정렬
   ========================================================================== */

/* 1. 첨부 이미지 박스 전체 중앙 정렬 */
#bo_v_img {
    text-align: center !important;
    margin: 25px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

#bo_v_img img {
    display: block !important;
    margin: 0 auto 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
}

/* 2. 본문 컨텐츠 영역 중앙 정렬 보정 */
#bo_v_atc {
    text-align: center !important;
}

#bo_v_con {
    text-align: center !important;
    margin: 20px auto !important;
}

/* 3. 본문 내 이미지 중앙 정렬 */
#bo_v_con img {
    display: block !important;
    margin: 15px auto !important;
}

