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;
    background: #f9f9f9;
    border: 1px solid #ddd;
    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;
    border-bottom: 1px dotted #ddd;
    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: #ffdf00; }
.rank-2 { background: rgb(147, 125, 0); }
.rank-3 { background: #4e4000; }
.rank-4, .rank-5, .rank-6, .rank-7, .rank-8, .rank-9, .rank-10 {
    background: #ccc;
    color: #333;
}
.best-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px dotted #ddd;
    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: #666;
    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 #ff74e3 solid;
}

.page-title-l {
    color: #000000;
    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: #e5e5e5 !important;
    color: #555 !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: #ff74e3 !important;
    color: #fff !important;
}

.pg_current {
    background-color: #ff74e3 !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 #ff74e3;

}

.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: #ff74e3 !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 #ff74e3;
    border-radius: 6px;
    padding: 6px 12px;
    transition: box-shadow 0.3s ease;
}

.search-bar:hover {
    box-shadow: 0 0 6px #ff74e3;
}

.search-label {
    color: #ff74e3;
    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: #ff74e3;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #ff74e3;
}

.search-bar i {
    color: white;
    font-size: 16px;
}