/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn--solid {
    color: #fff;
    border: none;
}

.btn--ghost {
    border: none;
}

.btn--outlined {
    border: 1px solid #424755;
    background: #fff;           
    color: #424755;             
}

.btn--bk {
    background-color: #000;
}

/* .btn--bk:hover {
    -webkit-filter: brightness(1.3);
    filter: brightness(1.3);
    position: relative;
    z-index: 1;
} */

.btn--md {
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1.125rem;
}
.btn--lg {
    padding: 16px 80px;
    font-size: 1.25rem;
}

/* Board List */

/* 나중에 리스트 상단에 컨텐츠 추가될 때 주석 해제 후 사용 */
/* .board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
} */

.board-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid #878b9d;
}

.board-list li {
    border-bottom: 1px solid #e5eaf2;
}

.board-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 45px 0;
    font-size: 1.5rem;
    line-height: 1.6;
    transition: color 0.25s ease;
}

.board-num {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    font-family: var(--font-en);
    font-size: 1.25rem;
    color: #878b9d;
}

.board-title {
    flex: 1;
    padding: 0 40px 0 30px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-date {
    flex-shrink: 0;
    width: 190px;
    text-align: center;
    font-family: var(--font-en);
    font-size: 1.25rem;
    color: #878b9d;
}

.board-link:hover,
.board-link:focus {
    color: #0065d6;
}

/* @media (max-width: 768px) {
    .board-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 16px 0;
    }

    .board-num {
        order: 3;
        font-size: 0.8125rem;
    }

    .board-title {
        order: 1;
        padding: 0;
        font-size: 0.9375rem;
    }

    .board-date {
        order: 2;
        font-size: 0.8125rem;
        color: var(--color-text-light, rgba(0,0,0,0.6));
    }
} */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination ul {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: var(--font-en);
    font-size: 1.25rem;
    transition: all 0.25s ease;
}

/* .pagination a:hover,
.pagination a:focus, */
.pagination a.is-active,
.pagination a[aria-current="page"] {
    border-radius: 100%;
    background-color: #0065d6;
    color: #fff;
    font-weight: 600;
}

.pagination a.is-disabled,
.pagination a[aria-disabled="true"] {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}


/* @media (max-width: 768px) {
    .pagination ul {
        gap: 4px;
    }

    .pagination a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .pagination a img {
        width: 10px;
    }

    모바일에서는 페이지 번호를 일부만 노출
    .pagination a:not(.is-active):not(.page-first):not(.page-prev):not(.page-next):not(.page-last):nth-of-type(n+4) {
        display: none;
    }
} */

/* Board View */
/*.section-guideview*/ .board-view {
    display: flex;
    flex-direction: column;
}
.board-view-head {
    text-align: center;
}

.board-view-title {
    font-size: 2.5rem;
}

.board-view-date {
    display: block;
    margin-top: 10px;
    font-size: 1.25rem;
    color: #878b9d;
}

.board-view-attach {
    order: 1;
    display: flex;
    align-items: baseline;
    gap: 30px;
    margin-top: 45px;
    padding: 20px 40px;
    border-radius: 10px;
    background: #f0f3f8;
}

.board-view-attach h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.attach-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.125rem;
    color: #424755;
}

.attach-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
}

.attach-list li a:hover span:first-child {
    text-decoration: underline;
}

.attach-list li a span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attach-list li a span:first-child::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("../../images/user/sub/sub-common/ico-download.png") no-repeat center / contain;
}

.attach-list .attach-size {
    font-family: var(--font-en);
    font-size: 1rem;
    color: #878b9d;
}

.board-view-content {
    order: 2;
    padding: 60px 0;
    font-size: 1.25rem;
    font-weight: 300;
    color: #424755;
    line-height: 1.6;
}

.board-view-content figure {
    margin: 40px auto;
    max-width: 880px;
}

.board-view-content figure img {
    max-width: 100%;
    height: auto;
}

.board-pager {
    order: 3;
    border-top: 1px solid #878b9d;
    border-bottom: 1px solid #878b9d;
    font-size: 1.25rem;
}

.board-pager .pager-item {
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.board-pager a + a {
    border-top: 1px solid #e5eaf2;
}

.board-pager .pager-dir {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 40px;
    width: 205px;
    text-align: center;
}

.board-pager .pager-item.is-prev .pager-dir::before,
.board-pager .pager-item.is-next .pager-dir::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 22px;
    background: no-repeat center / contain;
}

.board-pager .pager-item.is-prev .pager-dir::before { 
    background-image: url("/images/user/sub/sub-common/ico-arrow-up.png");
}

.board-pager .pager-item.is-next .pager-dir::before {
    background-image: url("/images/user/sub/sub-common/ico-arrow-down.png");
}

.board-pager .pager-item.is-disabled {
    pointer-events: none;
    cursor: default;
}

.pager-item.is-disabled .pager-title {
    color: #ccc;
}

.pager-item.is-disabled .pager-date {
    opacity: 0.4;
}

.board-pager .pager-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-pager .pager-date {
    flex: 0 0 auto;
    width: 170px;
    text-align: center;
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 300;
    color: #878b9d;
}

.board-view-footer {
    order: 4;
    text-align: center;
    margin-top: 60px;
}
.btn-list {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid #101218;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: #101218;
    transition: all 0.25s ease;
}
.btn-list:hover,
.btn-list:focus {
    background-color: #101218;
    color: #fff;
}

/* ===== Responsive ===== */
/* @media (max-width: 768px) {
    .board-view-head {
        padding: 40px 0 20px;
    }
    .board-view-title {
        font-size: 1.5rem;
    }
    .board-view-content {
        padding: 40px 0;
        font-size: 1rem;
    }
    .board-view-attach {
        padding: 20px 0 16px;
    }

    .board-pager .pager-item { gap: 12px; padding: 14px 0; }
    .board-pager .pager-dir { width: 72px; }
    .board-pager .pager-date { width: auto; font-size: .9375rem; }
} */

.ui-field { 
    position: relative;
}

.ui-field--grow {
    min-width: 260px;
    display: flex;
}

.ui-input {
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    background: #f0f3f8;
    font-size: 1.125rem;
}

.ui-input::placeholder {
    color: #878b9d;
}

.ui-tabs {
    flex: 100%;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.ui-tab {
    padding: 8px 0;
    border: none;
    border-bottom: 3px solid #fff;
    font-size: 1.5rem;
    font-weight: 600;
    color: #878b9d;
    background: transparent;
    cursor: pointer;
}

.ui-tab.is-active, .ui-tab:focus {
    border-bottom: 3px solid #0065d6;
    color: #0065d6;
}

.search-set {
    display: flex;
    align-items: stretch;
    justify-content: end;
    gap: 8px;
}

/* input + button 묶음 */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 460px;
    height: 60px;
}

.search-input-wrap input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-input-wrap .btn {
    height: 100%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: #f0f3f8;
    aspect-ratio: 1/1;
}

/* @media (max-width: 768px) {
    .search-set {
        flex-direction: column;
        gap: 6px;
    }
    .search-set .ui-select {
        width: 100%;
    }
    .search-input-wrap {
        width: 100%;
    }
    .search-input-wrap .ui-btn {
        position: absolute;
        right: 8px;
        height: 32px;
        font-size: 0.875rem;
    }
} */

/* Custom UI Select */
.ui-select {
    position: relative;
    width: 120px;
    font-size: 1.125rem;
    font-weight: 500;
}

/* 버튼 기본 상태 */
.ui-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    background: #f5f7fb;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 400;
    color: #101218;
    transition: all 0.2s ease;
}

/* .ui-select-toggle:hover,
.ui-select-toggle:focus {
    border-color: #0065d6;
    background: #fff;
} */

/* 화살표 */
.ui-select-arrow {
    width: 15px;
    height: 8px;
    transition: transform 0.25s ease;
}

.ui-select[aria-expanded="true"] .ui-select-arrow {
    transform: rotate(180deg);
}

/* 열림 상태 */
.ui-select[aria-expanded="true"] .ui-select-toggle {
    border: 2px solid #0065d6;
    border-bottom: 2px solid #d7dbe7;
    background: #fff;
    border-radius: 8px 8px 0 0; /* 위만 둥글게 */
}

/* 리스트 (닫힌 기본 상태) */
.ui-select-list {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 13px 0;
    width: 100%;
    background: #fff;
    border: 2px solid #0065d6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 10;
    display: none;
}

/* 옵션 항목 */
.ui-select-list li {
    padding: 2px 20px;
    /* font-size: 1.125rem; */
    color: #878b9d;
    cursor: pointer;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
}

.ui-select-list li:hover,
.ui-select-list li[aria-selected="true"] {
    color: #0065d6;
}

/* 갤러리 형식 */
.grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px 40px; 
    margin: 60px 0 90px;
}

.grid-list .grid-card-thumb {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    aspect-ratio: 420 / 236;
    overflow: hidden;
}

.grid-list .grid-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-list .grid-card-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    /*min-height: calc(1.5rem * 1.4 * 2);*/
}

.grid-list .grid-card-date {
    font-family: var(--font-en);
    font-size: 1.125rem;
    font-weight: 300;
    color: #878b9d;
}

.thumb-overlay {
    position: absolute;
    inset: 0; /* top:0, right:0, bottom:0, left:0 동일 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 18, 24, 0.2);
    backdrop-filter: blur(8px); /* 블러 효과 */
    opacity: 0;
    transition: opacity 0.2s ease;
}

.thumb-overlay .thumb-icon {
    position: relative;
    border: 1px solid #fff;
    border-radius: 20px;
    width: 60px;
    height: 60px;
}

.thumb-overlay .thumb-icon::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    background: url("../../images/user/sub/sub-common/ico-arrow-grid-thumb.png") no-repeat;
    background-size: cover;
}

.grid-list a:hover .grid-card-title,
.grid-list a:focus .grid-card-title {
    font-weight: 700;
}

.grid-list a:hover .thumb-overlay,
.grid-list a:focus .thumb-overlay {
    opacity: 1;
}

.grid-card-thumb .btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    width: 80px;
    height: 80px;
    background: rgba(0, 120, 255, 0.8);
    transition: opacity 0.2s ease;
    opacity: 0;
}

.grid-card-thumb .btn-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(50% + 3px);
    transform: translate(-50%, -50%);
    width: 20px;
    height: 25px;
    background: url("../../images/user/sub/sub-common/ico-video-play.png") no-repeat;
}

.grid-list a:hover .btn-play,
.grid-list a:focus .btn-play {
    opacity: 1;
}

.grid-list--gallery .grid-card-thumb {
    aspect-ratio: 1/1;
}

@media (max-width: 1280px) {

    .btn--lg {
        padding: 16px 60px;
        font-size: 1.125rem;
    }

    .board-link {
        padding: 40px 0;
    }

    .board-view-title {
        font-size: 2rem;
    }
    .board-pager .pager-item {
        padding: 40px 0;
    }

    .grid-list {
        gap: 40px 30px;
        margin: 40px 0 60px;
    }



}
@media (max-width: 1024px) {

    .btn--md {
        padding: 10px 12px;
        font-size: 1rem;
    }

    .board-num {
        font-size: 1.125rem;
    }
    .board-link {
        padding: 30px 0;
        font-size: 1.25rem;
    }
    .board-date {
        font-size: 1.125rem;
    }

    .board-view-title {
        font-size: 1.5rem;
    }
    .board-pager{
        font-size: 1.125rem;
    }
    .board-pager .pager-title{
        font-weight: 500;
    }
    .board-pager .pager-item {
        padding: 30px 0;
    }
    .board-pager .pager-dir {
        gap: 10px;
        padding-left: 30px;
        width: 160px;
    }
    .board-pager .pager-date {
        width: 140px;
    }
    .board-pager .pager-item.is-prev .pager-dir::before,
    .board-pager .pager-item.is-next .pager-dir::before {
        width: 12px;
        height: 13px;
    }

    .grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 30px 0 50px;
    }
    .grid-list .grid-card-title {
        margin-bottom: 12px;
        font-size: 1.25rem;
        /*min-height: calc(1.25rem * 1.4 * 2);*/
    }

    .grid-list .grid-card-date {
        font-size: 1rem;
    }







}

@media (max-width: 768px) {


    .btn {
        padding: 12px 30px;
        font-weight: 500;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    .search-input-wrap {
        height: 40px;
    }

    .search-input-wrap button img {
        width: 16px;
    }

    .ui-input {
        border-radius: 6px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.875rem;
    }

    .ui-tabs {
        gap: 10px;
    }

    .ui-tab {
        padding: 6px 0 2px;
        border-bottom: 2px solid #fff;
        font-size: 1.125rem;
        font-weight: 500;
    }

    .faq-controls {
        flex-direction: column-reverse;
        align-items: flex-start !important;
    }

    .search-set {
        width: 100%;
        gap: 1px;
    }

    .search-input-wrap .btn {
        padding: 0;
    }

    .ui-select {
        width: 80px;
        font-size: 0.875rem;
        font-weight: 400;
    }

    .search-set .search-input-wrap {
        width: calc(100% - 80px);
    }

    .ui-select-toggle {
        padding: 0 12px;
        border-radius: 6px;
    }

    .ui-select-list li {
        padding: 2px 12px;
    }

    .ui-select-arrow {
        width: 10px;
        height: auto;
    }

    .board-link {
        padding: 16px 0;
        font-size: 0.875rem;
    }

    .board-num {
        width: 30px;
        font-size: 1rem;
    }

    .board-title {
        padding: 0 20px 0 10px;
        font-weight: 500;
    }

    .board-date {
        width: 100px;
        font-size: 0.875rem;
    }


    .board-view-title {
        font-size: 1.25rem;
    }

    .board-view-date {
        font-size: 0.875rem;
    }

    .board-view-content {
        padding: 30px 0;
        font-size: 1rem;
    }

    .board-pager .pager-dir{
        padding-left: 10px;
        width: 80px;
        font-size: 0.75rem;
    }
    .board-pager {
        font-size: 0.875rem;
    }
    .board-pager .pager-date {
        width: 70px;
        font-size: 0.75rem;
    }
    .board-pager .pager-item{
        padding: 12px 0;
    }
    .board-pager .pager-item.is-prev .pager-dir::before,
    .board-pager .pager-item.is-next .pager-dir::before {
        width: 9px;
        height: 10px;
    }

    .grid-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
        margin: 20px 0 40px;
    }

    .grid-list .grid-card-thumb {   
        position: relative;
        margin-bottom: 8px;
        border-radius: 6px;
    }
    .grid-list .grid-card-title {
        margin-bottom: 8px;
        font-size: 1rem;
        /*min-height: calc(1rem * 1.4 * 2);*/
        word-break: keep-all;
    }

    .grid-list .grid-card-date {
        font-size: 0.875rem;
    }




















}