ol, ul {
    padding-left: 0!important;
}


.row {
    --bs-gutter-x:0;
    --bs-gutter-y:0;

}



.best-wrap {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.best-box {
    flex: 1;
    color: #ffffff;
    border-bottom: 1px solid #ff0000;
    padding: 1rem;
    min-width: 280px;
}
.best-box h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.best-box ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.best-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;

    font-size: 0.9rem;
}
.best-box li:last-child {
    border-bottom: none;
}
.rank-badge {
    display: inline-block;
    min-width: 20px;
    padding: 2px 6px;
    margin-right: 6px;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 2px;
    font-size: 0.75rem;
}
.rank-1 { background: #ff1800; }
.rank-2 { background: #c0392b; }
.rank-3 { background: #3c0000; }
.rank-4, .rank-5, .rank-6, .rank-7, .rank-8, .rank-9, .rank-10 {
    background: #7c7c7c;
    color: #ffffff;
}
.best-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;

    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
}
.subject-area {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
    min-width: 0;
}
.date {
    color: #ffffff;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    text-align: right;
}

/* ✅ 모바일 (767px 이하)에서도 한 줄 유지 */
@media (max-width: 767px) {
    .best-wrap {
        flex-direction: column;
    }
    .best-box {
        padding: 0.8rem;
    }
    .best-box li {
        font-size: 0.85rem;
        flex-wrap: nowrap;       /* ✅ 한 줄 강제 */
    }
    .subject-area {
        max-width: 100%;
    }
    .date {
        display: inline;         /* ✅ 줄바꿈 금지 */
        width: auto;
        margin-top: 0;
    }
}

.page__head {
    border-bottom : 2px #ff0000 solid;
}

.page-title-l {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
}

.pg_wrap {
    display: flex !important;
    justify-content: center !important;
    margin: 2rem auto !important;
    padding-bottom: 1rem !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
}

.pg_page,
.pg_current {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    margin: 0 3px !important;
    background-color: #950000 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease-in-out !important;
    font-size: 14px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: none !important;
}

.pg_page:hover {
    background-color: #dc0000 !important;
    color: #fff !important;
}

.pg_current {
    background-color: #570000 !important;
    color: #fff !important;
    font-weight: bold !important;
}

h3 {
    font-weight: 700!important;
}

iframe {
    width: 100%;
    height: 600px;
}

@media (max-width: 767px) {
    iframe {
        width: 100%;
        height: 360px;

    }
}

.writer-info {
    border-bottom: 1px solid #ff0000;

}

.board-basic-view .button-wrap {

    border: none;
}


@media (min-width: 768px) {
    .board-basic-view .view-title {
        font-size: 2rem !important;
    }
}


ul.list-column-1 {
    padding: 0 !important;
    margin: 0 !important;
}

ul.list-column-1 li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

ul.list-column-1 img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    border: 0 !important;
}

.top-banner-wrap {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.top-banner-wrap li {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.top-banner-wrap img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
}

/* 이미지 흰 여백 제거 */
.top-banner-wrap,
.top-banner-wrap li,
.top-banner-wrap li a,
.top-banner-wrap li img {
    margin-bottom:5px !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    background: transparent !important;
}


.board-basic-view .contents-wrap {
    padding-top: 0.5rem !important;
}

.badge {
    background-color: #9c0000 !important;
}


@media (max-width: 767px) {
    #header__nav {



        width: 70% !important;
        height: 100% !important;
    }
}

@media (max-width: 767px) {
    #header__row1 {
         padding: 0;
    }
}


@media (max-width: 767px) {
    #header__brand img {
        width: 60%;
        height: 60px;
    }
}


@media (max-width: 767px) {
    .only-mb {

        padding: 0 !important;
        margin-bottom: 5px !important;
    }
p {
    margin-bottom: 0 !important;
}

    #body {

padding: 0 !important;
}

    ul {

        margin-bottom: 0!important;
    }

}

#body {
    padding: 0;
}


ul {

    margin-bottom: 7px;
}


.search-form {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #dc0000;
    border-radius: 6px;
    padding: 6px 12px;
    transition: box-shadow 0.3s ease;
}

.search-bar:hover {
    box-shadow: 0 0 6px #ff0000;
}

.search-label {
    color: #9c0000;
    font-weight: 500;
    font-size: 14px;
}

.search-bar input[type="text"] {
    border: none;
    outline: none;
    padding: 6px 8px;
    min-width: 200px;
    font-size: 14px;
    background-color: transparent;
    color: #333;
}

.search-bar input::placeholder {
    color: #aaa;
}

.search-bar input:focus {
    background-color: #f9fff9;
}

.search-bar button {
    background-color: #dc0000;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #ff0000;
}

.search-bar i {
    color: white;
    font-size: 16px;
}

h3 {
    color: #ffffff !important;
}


.pic_lt {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;

    background: #000;
}

.pic_lt .lat_title {
    display: block;
    background: #000;
    padding: 0 20px;
    line-height: 45px;
    font-size: 1.083em;
    border-bottom: 1px solid rgb(255, 0, 0);
    color: #fff;
}

.pic_lt a {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
}


body {

    color: #ffffff ;
}

#bo_list_total {

    color: #afafaf;
}


.list-group-item {

    background-color: #000000;
    color: #b5b5b5;
}

#header__nav___top {

    background-color: #000000;
}


#bo_v_con iframe {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0;
    left: 0;
    border: none;
    z-index: 9999;
}


/* ============================================
   팝업 (PC)
   ============================================ */
#hd_pop .hd_pops {
    position: fixed !important;
    top: 200px !important;
    right: 10px !important;
    left: auto !important;
    max-width: calc(100% - 20px) !important;   /* 화면 밖으로 못 나가게 */
    border: 1px solid #dee2e6;
    background: #fff;
    box-sizing: border-box;
}

/* ============================================
   팝업 (모바일 575.98px 이하)
   - 오른쪽 빈 공간(가로 오버플로) 해결 핵심
   ============================================ */
@media (max-width: 575.98px) {
    #hd_pop .hd_pops {
        top: 180px !important;
        left: auto !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100% - 20px) !important;   /* ← none → 이걸로 변경 (핵심) */
    }
    #hd_pop .hd_pops_con {
        width: 100% !important;
        max-width: 100% !important;                /* 안쪽 콘텐츠도 함께 제한 */
        height: auto !important;
    }
    #hd_pop .hd_pops_con img {
        width: 100% !important;                    /* 이미지 화면에 맞게 축소 */
        height: auto !important;
    }
}


/* ============================================
   모바일 레이아웃 안전망
   ============================================ */
@media (max-width: 575.98px) {
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;            /* 혹시 모를 가로 스크롤 차단 */
    }
}

#hd_pop {
    width: auto !important;
    max-width: 100% !important;
}


@media (max-width: 767px) {
    #hd_pop #hd_pops_1.lock-mobile {
        height: 250px !important;
        width: 250px !important;
    }
}



/* =========================================================
   그누보드 하드코딩 PC / 모바일 메뉴 전용 CSS
   테마: 다크 글로우 (검은 바탕 + 노란 포인트)
   포인트 컬러: #ffd400 / #ffe24d
   배경: #0b0b0d 계열 다크
   사용 위치: head.php의 #header-nav 메뉴 구조
   ※ 기존 파일 통째 교체용 (클래스명 동일)
   ========================================================= */


/* =========================================================
   PC / 모바일 메뉴 분리 표시
   ========================================================= */

#header-nav .pc-menu-only {
    display: block;
}

#header-nav .mobile-menu-only {
    display: none;
}

@media (max-width: 769px) {
    #header-nav .pc-menu-only {
        display: none !important;
    }

    #header-nav .mobile-menu-only {
        display: block !important;
        padding-top: 0;
    }
}


/* =========================================================
   메뉴 컨테이너
   ========================================================= */

#header-nav {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;

    box-sizing: border-box;
}


/* =========================================================
   메뉴 줄 공통
   PC 기본 7칸 / 모바일 3칸
   ========================================================= */

#header-nav .nav-row {
    list-style: none;
    margin: 1px;
    padding: 0;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    text-align: center;
}

#header-nav .nav-row:last-child {
    margin-bottom: 0;
}

#header-nav .nav-row > li {
    position: relative;
    min-width: 0;
}


/* 모바일 3칸 */
@media (max-width: 769px) {
    #header-nav {
        padding: 6px 6px 0 6px;
    }

    #header-nav .nav-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 0;
        margin-bottom: 6px;
    }

    #header-nav li.slot-empty {
        display: none;
    }

    #header-nav .nav-link.depth1 {
        height: 46px;
        font-size: 13px;
        padding: 0 5px;
    }
}


/* =========================================================
   빈칸 슬롯
   PC 마지막 줄 칸 맞춤용 / 모바일에서는 숨김
   ========================================================= */

#header-nav li.slot-empty {
    pointer-events: none;
}

#header-nav li.slot-empty::after {
    content: '';
    display: block;
    height: 50px;
    border-radius: 12px;
    background: #121216;
    border: 1px dashed rgba(255, 212, 0, .18);
    opacity: .7;
}


/* =========================================================
   1차 메뉴 타일 (다크 글로우)
   평소: 검은 타일 + 은은한 노란 테두리 / 노란 글씨
   ========================================================= */

#header-nav .nav-link.depth1 {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 50px;
    padding: 0 10px;
    border-radius: 12px;

    background: #15151a;
    border: 1px solid rgba(255, 212, 0, .35);

    color: #ffd400 !important;
    font-weight: 700;
    letter-spacing: .2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;

    position: relative;
    transition:
            transform .18s ease,
            box-shadow .18s ease,
            background .18s ease,
            color .18s ease,
            border-color .18s ease;
}


/* 상단 얇은 노란 하이라이트 라인 */
#header-nav .nav-link.depth1::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 8px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 212, 0, .45);
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}


/* Hover / Active : 노랗게 빛남 */
#header-nav .nav-link.depth1:hover,
#header-nav li.active > .nav-link.depth1 {
    transform: translateY(-2px);
    background: #1b1b21;
    border-color: #ffd400;
    color: #ffe24d !important;

    box-shadow:
            0 0 0 1px #ffd400,
            0 8px 20px rgba(255, 212, 0, .20),
            0 0 24px rgba(255, 212, 0, .12);
}

#header-nav .nav-link.depth1:hover::before,
#header-nav li.active > .nav-link.depth1::before {
    opacity: .9;
}

#header-nav .nav-link.depth1:active {
    transform: translateY(0);
    box-shadow:
            inset 0 2px 8px rgba(0, 0, 0, .6),
            0 0 0 1px #ffd400;
}


/* =========================================================
   2차 메뉴 (다크 드롭다운)
   ========================================================= */

#header-nav .sub-menu-wrap {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;

    background: #15151a;
    border: 1px solid rgba(255, 212, 0, .40);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .55);

    z-index: 50;
    display: none;
    overflow: hidden;
}

#header-nav li.sub-menu:hover .sub-menu-wrap {
    display: block;
}

#header-nav .sub-nav {
    list-style: none;
    margin: 0;
    padding: 6px;
}

#header-nav .sub-nav li {
    width: 100%;
}

#header-nav .sub-nav .nav-link.depth2 {
    display: block;
    color: #cfcfcf !important;
    padding: .7rem .8rem;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition:
            background .18s ease,
            color .18s ease,
            transform .18s ease;
}

#header-nav .sub-nav .nav-link.depth2:hover {
    background: rgba(255, 212, 0, .12);
    color: #ffd400 !important;
    transform: translateX(2px);
}


/* =========================================================
   모바일 숨김 클래스 (안전장치)
   ========================================================= */

@media (max-width: 769px) {
    #header-nav .m-hide {
        display: none !important;
    }
}


/* =========================================================
   옵션 색상 클래스
   li에 accent-blue, accent-violet 등 추가해서
   특정 메뉴만 상단 하이라이트 라인 색을 바꿀 수 있음
   (다크 배경에 맞춘 비비드 톤)
   ========================================================= */

#header-nav li.accent-blue .nav-link.depth1::before {
    background: linear-gradient(90deg, #6fb8ff, #3d93ff);
}

#header-nav li.accent-violet .nav-link.depth1::before {
    background: linear-gradient(90deg, #c79bff, #9a6bff);
}

#header-nav li.accent-amber .nav-link.depth1::before {
    background: linear-gradient(90deg, #ffe24d, #ffc400);
}

#header-nav li.accent-green .nav-link.depth1::before {
    background: linear-gradient(90deg, #79f0b6, #38d98a);
}

#header-nav li.accent-red .nav-link.depth1::before {
    background: linear-gradient(90deg, #ff8fa3, #ff5f7e);
}