@CHARSET "UTF-8";
@media screen and (min-width: 769px) {
    .modal-header .close {
        transform: translateY(-50%);
        margin-top: 0px !important;
    }
}

body {
    word-break: keep-all !important;
}
.dropdown {/*bootsprap css와 헤더 css 충돌로 추가*/
    position: static !important;
}
a {
    color: #555555;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.icon {
    vertical-align: middle;
}
.n_txt1{
    font-family: NotoSansKR-Medium;
    font-size: 30px;
    color: #111111;
    letter-spacing: -1px;
    text-align: center;
    font-weight: 500;
}
h1 {
    font-size: 55px;
    color: #000000;
    letter-spacing: -2px;
    text-align: center;
    line-height: 76px;
    font-weight: 700;
    margin-top:19px;
    margin-bottom:120px;
}
.manual-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 80px 0 120px;
}







.manual-pages span {
    color: #2F80ED;
    text-decoration: none;
}

.manual-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    font-family: NotoSansKR-Medium;
    font-size: 14px;
    color: #333333;
    letter-spacing: -0.5px;
    line-height: 22px;
    font-weight: 500;
    height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn:hover {
    background: #F3F8FF;
}
.manual-card {
    flex: 0 0 calc((100% - 12px * 3) / 4);
    max-width: calc((100% - 12px * 3) / 4);
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    background: #FFFFFF;
    box-sizing: border-box;
    justify-content: flex-start; /* or 삭제 */
    display: flex;
    flex-direction: column;
    height: 324px;        /* 카드 높이 동일 */
    padding: 24px 32px;
    box-sizing: border-box;
}


.card-bottom {
    margin-top: 0;
}


/* BUTTONS 영역 */
.manual-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0; /* auto 절대 쓰지 않음 */
}

.manual-title {
    height: 56px;
    font-family: NotoSansKR-Bold !important;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    color: #000;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* 제목 최대 2줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(1.4em * 2); /* 2줄 고정 */
}

.manual-desc {
    font-family: NotoSansKR-Regular;
    font-size: 14px;
    color: #555555;
    letter-spacing: -0.5px;
    line-height: 20px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;     /* 설명 최대 2줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 24px;
    height: calc(1.4em * 2); /* 2줄 고정 */
}

.manual-pages {
    font-family: NotoSansKR-Medium;
    font-size: 12px;
    color: #2050DD;
    letter-spacing: -0.5px;
    line-height: 16px;
    height: 16px;     /* 1줄 고정 */
    font-weight: 500;
    margin-bottom: 40px;       /* pages → 버튼 */
}
.card-top {
    height: 184px;    /* 전체 텍스트 영역 고정 */
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    h2 {
        margin-top: 0px !important;
    }
    .content-inner {
        padding: 0px 16px 40px; /* 위아래 여백 줄이고 좌우 패딩 추가 */
    }

    .n_txt1 {
        font-size: 16px; /* 설명문 글자 크기 줄임 */
        letter-spacing: -1px;
        line-height: 1.5; /* 줄 간격 키워서 겹침 방지 */
        text-align: center;
        margin-bottom: 20px;
    }

    .content-inner h1 {
        font-size: 28px; /* 제목 크기 줄임 */
        line-height: 1.3;
        margin-top: 10px;
        margin-bottom: 40px;
        padding-bottom: 0px;
    }

    .manual-list {
        margin: 0;
        display: flex;
        flex-wrap: wrap; /* 줄바꿈 허용 */
        gap: 12px;
    }

    .manual-card {
        flex: 0 0 calc((100% - 12px) / 2);
        max-width: calc((100% - 12px) / 2);
        box-sizing: border-box;
        padding: 16px;
        height: auto; /* 고정 높이 제거 */
        display: flex;
        flex-direction: column; /* 내용 세로 정렬 */
        justify-content: space-between;
    }
    .card-top {
        height: auto;    /* 모바일은 텍스트 양이 달라도 자연스럽게 */
        overflow: hidden;
    }

    .manual-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        height: auto;          /* 모바일에서는 px 고정 제거 */
        margin-bottom: 6px;
        font-size: 14px;
    }

    .manual-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.5;
        height: auto;          /* 모바일에서는 px 고정 제거 */
        font-size: 12px;
        margin-bottom: 8px;
        font-weight: 400;
    }
    .manual-pages {
        margin-bottom: 20px;
    }

    /* 배경 */
    .custum-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    /* 박스 */
    .custum-box {
        background: #fff;
        width: 320px;
        border-radius: 16px;
        overflow: hidden;
        font-family: "Noto Sans KR", sans-serif;
        text-align: center;
        position: relative;
    }

    /* 상단 회색 핸들 */
    .custum-handle {
        width: 36px;
        height: 4px;
        background: #ccc;
        border-radius: 2px;
        margin: 12px auto 8px;
    }

    /* 헤더 */
    .custum-header {
        font-size: 16px;
        font-weight: 700;
        padding: 4px 16px 12px;
    }

    /* 본문 */
    .custum-body {
        font-size: 14px;
        color: #444;
        line-height: 1.5;
        padding: 0 16px 20px;
    }
    .custum-body .emphasis {
        margin-top: 12px;
        font-weight: 500;
    }

    /* 푸터 버튼 */
    .custum-footer {
        display: flex;
        border-top: 1px solid #eee;
    }
    .custum-footer .btn {
        flex: 1;
        padding: 14px 0;
        font-size: 15px;
        font-weight: 500;
        border: none;
        background: #fff;
        cursor: pointer;
    }
    .custum-footer .btn.cancel {
        color: #222;
        border-radius: 0 0 0 16px; /* 왼쪽 버튼 모서리 */
    }
    .custum-footer .btn.confirm {
        background: #1f5eff;
        color: #fff;
        border-radius: 0 0 16px 0; /* 오른쪽 버튼 모서리 */
    }
    #prevModal .modal-header {
        position: sticky;   /* 헤더 자체를 스크롤 위에 고정 */
        top: 0;
        z-index: 1051;      /* 모달 컨텐츠 위로 나오도록 */
        background: #fff;   /* 배경 깔아서 내용과 겹치지 않게 */
    }

    #prevModal .modal-header .close {
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 1052;
    }
    #prevModal .modal-dialog {
        width: 95% !important;
        margin: 10px auto !important;
    }
    #prevModal .modal-content {
        display: flex;
        flex-direction: column;
        height: 90vh !important;
    }

    #prevModal .modal-body {
        overflow-y: auto;
        max-height: calc(90vh - 50px); /* 버튼 영역 고려한 높이 */
        padding-bottom: 60px; /* Close 버튼과 겹치지 않게 여유 공간 */
    }

    #prevModal .modal-footer {
        background: #fff;    /* 이미지랑 겹쳐 보이지 않게 흰 배경 */
        z-index: 1051;
    }
    #slider1_container img {
        display: block;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 10px;
    }
    .btn {
        height: 32px !important;
        font-size: 12px !important;
        border-radius: 18px !important;
        padding: 0 12px !important;
    }

    .btn i {
        font-size: 13px !important;
    }
    .btn i > img {
        width: 18px;
    }
}




