@charset "utf-8";


/* =========================================================
   NSCARE EVENT BOARD
   이벤트 목록 전용 디자인
========================================================= */


/* =========================================================
   기본 그누보드 제목 숨김
   이벤트 스킨 안에서 제목을 다시 출력
========================================================= */

#container_title {
    display: none !important;
}


/* =========================================================
   전체 폭
========================================================= */

#bo_list.nscare-event-board {
    position: relative;
    width: calc(100% - 44px) !important;
    max-width: 1180px !important;
    margin: 30px auto 55px !important;
    padding: 0 !important;
    box-sizing: border-box;
}


/* =========================================================
   페이지 제목
========================================================= */

.nscare-event-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}


.nscare-event-page-title {
    min-width: 0;
}


.nscare-event-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #16a05d;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .08em;
}


.nscare-event-page-title h1 {
    margin: 0;
    color: #19251e;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -1px;
}


.nscare-event-page-title p {
    margin: 7px 0 0;
    color: #818a85;
    font-size: 13px;
    line-height: 1.65;
    word-break: keep-all;
}


/* =========================================================
   글쓰기 버튼
========================================================= */

.nscare-event-write-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid #16a05d;
    border-radius: 10px;
    background: #16a05d;
    color: #fff !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
}


.nscare-event-write-btn:hover {
    border-color: #0e8c50;
    background: #0e8c50;
}


/* =========================================================
   카테고리
========================================================= */

#bo_list.nscare-event-board
.nscare-event-category-nav {
    margin: 0 0 20px;
}


#bo_list.nscare-event-board
.nscare-event-category-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}


#bo_list.nscare-event-board
.nscare-event-category-nav li {
    float: none;
    display: block;
    padding: 0;
}


#bo_list.nscare-event-board
.nscare-event-category-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #e1e8e4;
    border-radius: 999px;
    background: #fff;
    color: #66726b;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
}


#bo_list.nscare-event-board
.nscare-event-category-nav a:hover {
    border-color: #b8ddc8;
    background: #f7fcf9;
    color: #16a05d;
}


#bo_list.nscare-event-board
.nscare-event-category-nav #bo_cate_on {
    border-color: #16a05d;
    background: #16a05d;
    color: #fff;
    box-shadow: none;
}


/* =========================================================
   상단 툴바
========================================================= */

.nscare-event-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 42px;
    margin-bottom: 13px;
}


.nscare-event-total {
    color: #858f89;
    font-size: 11px;
    line-height: 1.4;
}


.nscare-event-total strong {
    color: #16a05d;
    font-weight: 800;
}


.nscare-event-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}


.nscare-event-search-btn,
.nscare-event-admin-btn,
.nscare-event-select-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 11px;
    box-sizing: border-box;
    border: 1px solid #e1e7e3;
    border-radius: 9px;
    background: #fff;
    color: #69746d !important;
    font-family: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}


.nscare-event-search-btn:hover,
.nscare-event-admin-btn:hover,
.nscare-event-select-toggle:hover {
    border-color: #b9dcc7;
    color: #16a05d !important;
}


/* =========================================================
   관리자 선택 메뉴
========================================================= */

.nscare-event-admin-select {
    position: relative;
}


.nscare-event-select-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 50;
    width: 105px;
    overflow: hidden;
    border: 1px solid #e0e6e2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(28, 49, 36, .09);
}


.nscare-event-select-menu.is-open {
    display: block;
}


.nscare-event-select-menu button {
    display: block;
    width: 100%;
    height: 37px;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid #f0f2f1;
    background: #fff;
    color: #555f59;
    font-family: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}


.nscare-event-select-menu button:last-child {
    border-bottom: 0;
}


.nscare-event-select-menu button:hover {
    background: #f7fbf8;
    color: #16a05d;
}


/* =========================================================
   전체선택
========================================================= */

.nscare-event-check-all {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}


.nscare-event-check-all label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7d8781;
    font-size: 10px;
    cursor: pointer;
}


.nscare-event-check-all input {
    width: 14px;
    height: 14px;
    accent-color: #16a05d;
}


/* =========================================================
   이벤트 그리드

   PC : 6개
========================================================= */

.nscare-event-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
}


/* =========================================================
   이벤트 카드
========================================================= */

.nscare-event-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4e9e6;
    border-radius: 13px;
    background: #fff;
    transition:
        border-color .2s ease,
        transform .2s ease;
}


.nscare-event-card:hover {
    transform: translateY(-2px);
    border-color: #c4dfcf;
}


.nscare-event-card-link {
    display: block;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}


/* =========================================================
   이미지
========================================================= */

.nscare-event-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f7f4;
}


.nscare-event-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}


.nscare-event-card:hover
.nscare-event-card-image img {
    transform: scale(1.035);
}


/* 이미지 없음 */

.nscare-event-card-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #eff9f3 0%,
            #fbfdfc 100%
        );
    color: #16a05d;
}


.nscare-event-card-no-image span {
    margin-bottom: 3px;
    font-size: 8px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .1em;
}


.nscare-event-card-no-image strong {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
}


/* =========================================================
   상태
========================================================= */

.nscare-event-status {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(26, 44, 34, .82);
    color: #fff;
    font-size: 8px;
    line-height: 1;
    font-weight: 800;
}


.nscare-event-status.is-active {
    background: rgba(22, 160, 93, .94);
}


.nscare-event-status.is-ended {
    background: rgba(92, 101, 96, .88);
}


/* NEW */

.nscare-event-new {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 21px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff;
    color: #16a05d;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
}


/* =========================================================
   카드 내용
========================================================= */

.nscare-event-card-body {
    padding: 11px 11px 12px;
}


.nscare-event-card-body h2 {
    display: -webkit-box;
    min-height: 39px;
    margin: 0;
    overflow: hidden;
    color: #28332d;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 750;
    letter-spacing: -.25px;
    word-break: keep-all;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


.nscare-event-card:hover
.nscare-event-card-body h2 {
    color: #16a05d;
}


.nscare-event-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 8px;
    color: #969e99;
    font-size: 8px;
    line-height: 1.4;
}


.nscare-event-period {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.nscare-event-period i {
    margin-right: 3px;
    color: #16a05d;
}


.nscare-event-hit {
    flex: 0 0 auto;
    white-space: nowrap;
}


/* =========================================================
   관리자 체크박스
========================================================= */

.nscare-event-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}


.nscare-event-checkbox
input[type="checkbox"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}


.nscare-event-checkbox label {
    display: block;
    width: 20px;
    height: 20px;
    cursor: pointer;
}


.nscare-event-checkbox label span {
    display: block;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1px solid #d4ddd7;
    border-radius: 6px;
    background: rgba(255,255,255,.95);
}


.nscare-event-checkbox
input[type="checkbox"]:checked
+
label span {
    position: relative;
    border-color: #16a05d;
    background: #16a05d;
}


.nscare-event-checkbox
input[type="checkbox"]:checked
+
label span::after {
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    content: "";
}


/* =========================================================
   이벤트 없음
========================================================= */

.nscare-event-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    padding: 40px 20px;
    box-sizing: border-box;
    border: 1px solid #e4eae6;
    border-radius: 16px;
    background: #fbfdfc;
    text-align: center;
}


.nscare-event-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    border-radius: 17px;
    background: #ebf8f1;
    color: #16a05d;
    font-size: 20px;
    font-weight: 900;
}


.nscare-event-empty strong {
    color: #435048;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 750;
}


.nscare-event-empty p {
    margin: 7px 0 0;
    color: #939b96;
    font-size: 11px;
    line-height: 1.65;
}


/* =========================================================
   페이지
========================================================= */

.nscare-event-pagination {
    margin-top: 30px;
    text-align: center;
}


.nscare-event-pagination .pg_wrap {
    display: inline-block;
}


/* =========================================================
   검색창
========================================================= */

.nscare-event-board .bo_sch_wrap {
    z-index: 9999;
}


.nscare-event-board .bo_sch {
    border-radius: 14px;
    border-color: #e0e7e2;
}


.nscare-event-board .bo_sch h3 {
    color: #28342d;
}


.nscare-event-board .bo_sch select {
    border-color: #dce4df;
}


.nscare-event-board .bo_sch .sch_bar {
    border-color: #dce4df;
}


.nscare-event-board .bo_sch .sch_btn {
    color: #16a05d;
}


/* =========================================================
   1180 이하
========================================================= */

@media (max-width: 1180px) {

    .nscare-event-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

}


/* =========================================================
   작은 PC
========================================================= */

@media (max-width: 1050px) {

    #bo_list.nscare-event-board {
        width: calc(100% - 34px) !important;
    }


    .nscare-event-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


/* =========================================================
   태블릿
========================================================= */

@media (max-width: 820px) {

    .nscare-event-page-head {
        align-items: center;
        margin-bottom: 20px;
    }


    .nscare-event-page-title h1 {
        font-size: 25px;
    }


    .nscare-event-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   모바일
========================================================= */

@media (max-width: 600px) {

    #bo_list.nscare-event-board {
        width: calc(100% - 28px) !important;
        margin-top: 22px !important;
        margin-bottom: 35px !important;
    }


    .nscare-event-page-head {
        display: block;
    }


    .nscare-event-page-title h1 {
        font-size: 22px;
    }


    .nscare-event-page-title p {
        margin-top: 5px;
        font-size: 11px;
    }


    .nscare-event-write-btn {
        width: 100%;
        margin-top: 15px;
    }


    .nscare-event-toolbar {
        margin-bottom: 10px;
    }


    .nscare-event-tools
    .nscare-event-search-btn span,
    .nscare-event-tools
    .nscare-event-admin-btn span {
        display: none;
    }


    .nscare-event-search-btn,
    .nscare-event-admin-btn {
        width: 34px;
        padding: 0;
    }


    .nscare-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px 9px;
    }


    .nscare-event-card-body {
        padding: 9px 9px 10px;
    }


    .nscare-event-card-body h2 {
        min-height: 36px;
        font-size: 11px;
        line-height: 1.55;
    }


    .nscare-event-card-meta {
        display: block;
        margin-top: 6px;
    }


    .nscare-event-hit {
        display: none;
    }


    .nscare-event-status {
        top: 6px;
        left: 6px;
        min-height: 21px;
        padding: 0 7px;
    }

}


/* =========================================================
   아주 작은 모바일
========================================================= */

@media (max-width: 360px) {

    .nscare-event-grid {
        grid-template-columns: 1fr;
    }

}