/* ------------------------------
   TOP 버튼 / 공통 요소
------------------------------ */
.t-bt-cert {
    padding: 0;
    border: none;
    color: #dd411b;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ------------------------------
   HEADER & 기본 레이아웃
------------------------------ */
.certpia header {
    position: inherit !important;
    background: #fff !important;
}

.certpia .wrap {
    display: flex;
    flex-direction: column;
    max-width: 100% !important;
    background:
        url("../images/certbg.png") center top / 100% auto no-repeat,
        linear-gradient(180deg, #eaecf5, #ffffff00);
}

.content-head {
     width: 1300px;
     justify-content: center;
     margin: 0 auto;
     position: relative;
     margin: 3rem auto;
     height: 240px;
     display: flex;
     align-items: center;
     border-radius: 1rem;
     gap: 3rem;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgb(255 255 255 / 0%));

             backdrop-filter: blur(24px);
             -webkit-backdrop-filter: blur(24px);

             border: 1px solid rgba(255, 255, 255, 0.75);
             border-radius: 36px;

             box-shadow:
                 0 24px 70px rgba(83, 87, 140, 0.07);

}

img.c-chapter {
    position: absolute;
    left: -7rem;
    width: 170px;
    top: -3rem;
}

.content-head h3 {
    margin: 0 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.qrmobile {
     position: absolute;
     right: 4rem;
     display: flex;
     flex-direction: column;
     gap: .3rem;
}

.qrmobile h3 {

}

.qrmobile h3 span {

}

.qrmobile img {
    width: 145px;
}

/* ------------------------------
   SEARCH AREA
------------------------------ */
.sc-area {
     width: 70%;
     position: absolute;
     left: 47%;
     top: 50%;
     transform: translate(-50%, -50%);
     gap: 1rem;
     display: flex;
     flex-direction: column; text-align:center;
}

.sc-area h3 {
    margin: 0 5.5rem 0;
    font-size: 1.6rem;
    color: #5c5765;
}

.search {
    background: linear-gradient(120deg, #ff883b, #ff883b, #ffce5d, #fba672, #6763b9);
    border-radius: 1rem;
    padding: 1rem;
    width: 100%;
}

.search-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: .5rem;
}

.search-field label {
    width: 100%;
    cursor: pointer;
}

.search-field input[type="text"] {
    border: none;
    height: 60px;
    padding: 0 0 0 3rem;
    cursor: pointer;
}

.search-field input::placeholder {
    font-size: 1.3rem;
    font-weight: 500;
    color: #999;
}

.sc-area button img {
    width: 50px;
}

/* ------------------------------
   SERVICE AREA
------------------------------ */
.service-area {
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ------------------------------
   SERVICE NAV (탭)
------------------------------ */
.service-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
}

.service-nav h3 {
    font-weight: 600;
}

.service-nav ul {
    display: flex;
    gap: .3rem;
}

.service-nav ul li {
    padding: 8px 18px;
    border: 1px solid #d4d4d4;
    border-radius: 20px;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    transition: all .25s ease;
    user-select: none;
    white-space:nowrap;
}

/* Hover */
.service-nav ul li:hover {
    background: #ffffff;
    border-color: #b9b9ff;
    color: #6763b9;
}

/* Active */
.service-nav ul li.active {
    background: #6763b9;
    color: #fff;
    border-color: #6763b9;
    box-shadow: 0 0 6px rgba(74, 91, 220, 0.35);
}

/* ------------------------------
   SERVICE LIST (학교/기관)
------------------------------ */
.service-list {
    width: 100%;
    max-width: 1300px;
}

.service-list ul {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1.3rem;
    height: 480px;
    overflow-x: auto;
    padding: .5rem 0;
}

/* 개별 아이템 */
.service-list ul li {
    width: 22.7%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .25s ease;
    cursor: pointer;
    border-radius: 19px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 1px 5px 0 rgb(111 82 121 / 26%);
    margin: 0 0 0 0.2rem;
    gap:.3rem;
}
.service-list ul li span{
    font-weight: 600;
    border-radius: 3rem;
    background: #eee;
    padding: .2rem .7rem;
    font-size: .8rem;
}
.service-list li img {
    height: 40px;
}

.service-list ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Hover */
.service-list ul li:hover {
    box-shadow: 0 3px 6px rgba(74, 91, 220, 0.15);
    border:1px solid #7976b08f;
}

/* 클릭 포커스 효과 */
.service-list ul li.focus {
    border-color: #6763b9;
    box-shadow: 0 0 .8rem .8rem #d1d1e2;
    background: #fcfcff;
}

.qrapp {
    display: flex;
    gap: 2rem;
    align-item: center;
}

.search-if-area{
    color: #fff;
    padding: 1rem 5.5rem;
    font-size: 1.1rem;
    background: linear-gradient(73deg, #877ba1 0% 60%, #7f6ead 100%);
    font-weight: 600;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    border-radius: 1rem 1rem 0 0;
 }

@media (max-width: 1300px) {


    .content-head{
            width: 100%;
            margin: 0 auto;
            border-radius: 0;
            background:none;
            border:none;
    }
.search-if-area{border-radius:0}

}

@media (max-width: 1200px) {

    .certpia header {
        padding: 1rem  ;
        margin-top: 50px
    }

    .certpia .wrap {
        margin-top: 0
        background:none;
    }

    .sc-area{left:50%; top:50%}

    .service-nav{
        flex-direction:column;
        gap:1rem;
    }

    .qrmobile{display:none}
.content-head{box-shadow:none;}
}



@media (max-width: 1024px) {
    .content-head {
        padding: 0 20px;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
.content-head h3{margin:0}

     .qrmobile {
            display: none;
        }



    .qrmobile {
        display: none;
    }

    .search-field input[type="text"] {
        height: 48px;
        padding: 0 1.2rem;
    }

    .service-area {
        padding: 30px 20px;
    }

    .service-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .service-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-list ul li {
        width: 30%;
    }

    .verify-viewer {
        flex-direction: column;
    }
.search-if-area{margin:0; padding:1rem}

}

/* ===============================
   768px 이하 (모바일)
================================ */
@media (max-width: 768px) {

    /* 헤더 영역 */
    .content-head {
        gap: 1.8rem;
    }

    .content-head div h3 {
        font-size: 1.2rem;
    }
        .content-head {
    width: 100%;
    height: 120px;
    background: #fff;
        }



    img.c-chapter {
        display: none;
    }
    .search {
        padding: .7rem;
    }

    .search-field {
        border-radius: .4rem;
    }

    .search-field input[type="text"] {
        height: 44px;
        font-size: .9rem;
        padding: 0 1rem;
    }
.sc-area{width:95%}
    .sc-area button img {
        width: 36px;
    }



    .qrmobile img {
        width: 120px;
    }

    /* 서비스 NAV */
    .service-nav h3 {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .service-nav ul li {
        padding: 6px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* 리스트 */
    .service-list ul {
        height: auto;
        max-height: 450px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .service-list ul li {
        width: 45%;
        height: 90px;
    }

    .ta-item .btn {
        display: none;
    }

    .ta-item:first-child button {
        border-radius: .9rem;
        padding: .5rem 1rem;
    }



    .btn {
        margin: 0 !important;
        width: 100%;
    }


    /* 검색 영역 */
    .search-field input[type="text"] {
        height: 70px;
        font-size: .85rem;
    }



    .sclist.modal-content {
        width: 100% !important
    }
}

/* ===============================
   480px 이하 (작은 모바일)
================================ */
@media (max-width: 480px) {


    .t-bt-cert {
        display: none;
    }


    /* nav 버튼 */
    .service-nav ul li {
        font-size: 11px;
        padding: 5px 12px;
    }

    /* 서비스 리스트 */
    .service-list ul li {
        width: 100%;
        height: 80px;
    }

    .service-list li img {
        height: 32px;
    }

    .service-area {
        padding: 30px 20px;
    }
}

.btn {
    display: inline-block;
    padding: .5rem 3rem;
    background: linear-gradient(180deg, #ffffff 97%, #cfcfcf);
    border: 1px solid #867e7e;
    border-radius: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 0.2rem 0.2rem rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn img {
    width: 25px !important;
}

.btn:hover {
    background: #de682b;
    color: #fff;
    border-color: #de682b;
}

.btn:hover img {
    filter: brightness(0) invert(1);
}