/* =========================
   FAQ Layout
========================= */
.mcv-faq-layout{
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 50px;
}

/* =========================
   Left Sidebar
========================= */
.mcv-faq-sidebar{
    width: 220px;
    padding: 8px 0 0;
    border-right: 1px solid #ece7e1;
}

.mcv-faq-sidebar-title{
    margin: 0 0 14px;
    padding-right: 20px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2a37;
}

.mcv-faq-filter-list{
    list-style: none;
    margin: 0;
    padding: 0 20px 0 0;
}

.mcv-faq-filter-item{
    margin: 0 0 4px;
    padding: 0;
}

.mcv-faq-filter-btn{
    width: 100%;
    display: block;
    text-align: left;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #4b5563;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.mcv-faq-filter-btn:hover{
    background: #f7f7f7;
    color: #111827;
}

.mcv-faq-filter-btn.active{
    background: #f4ede7;
    color: #b45309;
    font-weight: 700;
}

.mcv-faq-filter-label{
    display: inline-block;
}

.mcv-faq-filter-dot{
    display: none;
}

/* =========================
   Right Main
========================= */
.mcv-faq-main{
    min-width: 0;
}

.mcv-faq-main-title{
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f2a37;
}

.mcv-faq-main-subtitle{
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.7;
    color: #6b7280;
}

.mcv-faq-panel{
    display: none;
}

.mcv-faq-panel.active{
    display: block;
}

/* =========================
   Category Cards
========================= */
.mcv-faq-card-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

button.mcv-faq-topic-card,
.mcv-faq-topic-card{
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 126px !important;
    padding: 16px 18px !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: inherit !important;
}

/* 혹시 남아 있는 기존 스타일 제거 */
button.mcv-faq-topic-card::before,
button.mcv-faq-topic-card::after,
.mcv-faq-topic-card::before,
.mcv-faq-topic-card::after{
    display: none !important;
}

button.mcv-faq-topic-card:hover,
.mcv-faq-topic-card:hover{
    background: #f9f7f4 !important;
    border-color: #d6c7b5 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    transform: translateY(-2px) !important;
}

button.mcv-faq-topic-card:focus,
.mcv-faq-topic-card:focus{
    outline: none !important;
}

.mcv-faq-topic-card-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

/* 기존 큰 아이콘 혹시 남아있으면 제거 */
.mcv-faq-topic-card i,
.mcv-faq-topic-card svg{
    display: none !important;
}

/* 작은 아이콘 */
.mcv-faq-topic-card-icon{
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 5px !important;
    background: #ede9fe !important;
    position: relative !important;
    flex: 0 0 18px !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.mcv-faq-topic-card-icon::after{
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #6366f1;
}

.mcv-faq-topic-card-arrow{
    display: none !important;
}

.mcv-faq-topic-card-title{
    display: block !important;
    margin: 2px 0 6px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    letter-spacing: -0.01em !important;
    white-space: normal !important;
    word-break: keep-all !important;
    max-width: 100% !important;
}

.mcv-faq-topic-card-desc{
    display:block;
    margin: 2px 0 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
}

.mcv-faq-topic-card-count{
    display: block;
    margin-top: auto;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

/* 카드 아이콘 색상 variation */
.mcv-faq-topic-card:nth-child(1) .mcv-faq-topic-card-icon{
    background:#ede9fe !important;
}
.mcv-faq-topic-card:nth-child(1) .mcv-faq-topic-card-icon::after{
    background:#6366f1;
}

.mcv-faq-topic-card:nth-child(2) .mcv-faq-topic-card-icon{
    background:#e8f7ef !important;
}
.mcv-faq-topic-card:nth-child(2) .mcv-faq-topic-card-icon::after{
    background:#16a34a;
}

.mcv-faq-topic-card:nth-child(3) .mcv-faq-topic-card-icon{
    background:#eaf2ff !important;
}
.mcv-faq-topic-card:nth-child(3) .mcv-faq-topic-card-icon::after{
    background:#2563eb;
}

.mcv-faq-topic-card:nth-child(4) .mcv-faq-topic-card-icon{
    background:#fff4e8 !important;
}
.mcv-faq-topic-card:nth-child(4) .mcv-faq-topic-card-icon::after{
    background:#ea580c;
}

.mcv-faq-topic-card:nth-child(5) .mcv-faq-topic-card-icon{
    background:#fceef5 !important;
}
.mcv-faq-topic-card:nth-child(5) .mcv-faq-topic-card-icon::after{
    background:#db2777;
}

.mcv-faq-topic-card:nth-child(6) .mcv-faq-topic-card-icon{
    background:#eef6ff !important;
}
.mcv-faq-topic-card:nth-child(6) .mcv-faq-topic-card-icon::after{
    background:#0f766e;
}

/* =========================
   FAQ Items
========================= */
.mcv-faq-item{
    border: 1px solid #ebe7e2;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}

.mcv-faq-item:hover{
    border-color: #e2d9ce;
}

.mcv-faq-question{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: none;
    box-shadow: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.mcv-faq-question:focus{
    outline: none;
}

.mcv-faq-question:hover{
    background:#fcfaf8;
}

.mcv-faq-question-text{
    flex: 1 1 auto;
}

.mcv-faq-icon{
    flex: 0 0 auto;
    width: 20px;
    text-align: center;
    font-size: 28px;
    line-height: 1;
    color: #c27a34;
    font-weight: 300;
    transition: transform .2s ease;
}

.mcv-faq-answer{
    display:none;
    padding:18px 20px 20px !important;
    font-size:15px;
    line-height:1.9;
    color:#4b5563;
    background:#fffdfa;
    border-top:1px solid #f1ece6;
    border-left:3px solid #e8d7c3;
}

.mcv-faq-answer p{
    margin:0 0 14px;
}

.mcv-faq-answer p:last-child{
    margin-bottom:0;
}

.mcv-faq-item.active .mcv-faq-answer{
    display: block;
}

.mcv-faq-item.active .mcv-faq-icon{
    transform: rotate(45deg);
}

/* 열렸을 때 질문과 답변 연결감 */
.mcv-faq-item.active .mcv-faq-question{
    background:#fffdfa;
}

/* =========================
   Page Template Harmony
========================= */
.mcv-faq-page-wrap-nz{
    padding-top: 26px;
}

.mcv-faq-page-wrap-nz .mcv-faq-page-header{
    margin-bottom: 24px;
}

.mcv-faq-page-wrap-nz .mcv-faq-page-title{
    font-size: 52px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #1f2a37;
    margin: 0;
}

/* 오른쪽 제목 영역: 첫 화면에서는 숨김 */
#mcv-faq-main-heading{
    display:none;
    margin-bottom:20px;
}

/* =========================
   Home FAQ Section
   메인페이지 FAQ 안내 섹션
========================= */
.home-faq-wrap {
    padding: 70px 0;
    background: #fff;
}

.home-faq-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}

.home-faq-header {
    text-align: center;
    margin-bottom: 32px;
}

.home-faq-header h2 {
    margin: 0 0 12px;
    font-size: 46px;
    line-height: 1.25;
    font-weight: 700;
    color: #69aebe;
    letter-spacing: -0.03em;
}

.home-faq-header p {
    margin: 0;
    font-size: 22px;
    line-height: 1.6;
    color: #555;
}

.home-faq-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

.home-faq-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 94px;
    padding: 20px 22px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
    text-decoration: none !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.05);
    transition: all .2s ease;
}

.home-faq-cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-decoration: none !important;
}

.home-faq-cat-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.home-faq-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef8fa;
    color: #69aebe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 44px;
}

.home-faq-cat-text {
    min-width: 0;
}

.home-faq-cat-text strong {
    display: block;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #29506a;
    margin-bottom: 3px;
}

.home-faq-cat-text span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #6f6f6f;
}

.home-faq-cat-arrow {
    color: #69aebe;
    font-size: 16px;
    margin-left: 12px;
    flex: 0 0 auto;
}

.home-faq-btn-wrap {
    text-align: center;
    margin-top: 28px;
}

.home-faq-btn {
    display: inline-block;
    min-width: 250px;
    padding: 14px 30px;
    border-radius: 8px;
    background: #69aebe;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: background .2s ease, transform .2s ease;
}

.home-faq-btn:hover {
    background: #5d9dac;
    color: #fff !important;
    transform: translateY(-1px);
}

/* =========================
   Tablet
========================= */
@media (max-width: 1100px){
    .mcv-faq-layout{
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 100%;
    }

    .mcv-faq-sidebar{
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ece7e1;
        padding: 0 0 18px;
    }

    .mcv-faq-sidebar-title{
        padding-right: 0;
    }

    .mcv-faq-filter-list{
        padding-right: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mcv-faq-filter-item{
        margin: 0;
    }

    .mcv-faq-filter-btn{
        width: auto;
        padding: 8px 12px;
    }

    .mcv-faq-main-title{
        font-size: 36px;
    }

    .mcv-faq-main-subtitle{
        font-size: 16px;
        margin-bottom: 20px;
    }

    .mcv-faq-card-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mcv-faq-page-wrap-nz .mcv-faq-page-title{
        font-size: 42px;
    }

    .home-faq-header h2 {
        font-size: 36px;
    }

    .home-faq-header p {
        font-size: 18px;
    }

    .home-faq-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   Mobile
========================= */
@media (max-width: 767px){
    .mcv-faq-layout{
        gap: 22px;
        padding-bottom: 24px;
    }

    .mcv-faq-sidebar-title{
        font-size: 17px;
        margin-bottom: 12px;
    }

    .mcv-faq-filter-btn{
        font-size: 14px;
    }

    .mcv-faq-main-title{
        font-size: 30px;
        margin-bottom: 8px;
    }

    .mcv-faq-main-subtitle{
        font-size: 15px;
        margin-bottom: 18px;
    }

    .mcv-faq-card-grid{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    button.mcv-faq-topic-card,
    .mcv-faq-topic-card{
        min-height: 96px !important;
        padding: 14px 14px !important;
        border-radius: 12px !important;
    }

    .mcv-faq-topic-card-title{
        font-size: 15px !important;
    }

    .mcv-faq-topic-card-count{
        font-size: 12px;
    }

    .mcv-faq-question{
        padding: 16px 16px;
        font-size: 15px;
    }

    .mcv-faq-answer{
        padding: 0 16px 16px;
        font-size: 14px;
        line-height: 1.8;
    }

    .mcv-faq-icon{
        font-size: 24px;
        width: 18px;
    }

    .mcv-faq-page-wrap-nz .mcv-faq-page-title{
        font-size: 34px;
    }

    .home-faq-wrap {
        padding: 50px 0;
    }

    .home-faq-header {
        margin-bottom: 24px;
    }

    .home-faq-header h2 {
        font-size: 28px;
    }

    .home-faq-header p {
        font-size: 16px;
    }

    .home-faq-cats {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 26px;
    }

    .home-faq-cat {
        min-height: auto;
        padding: 16px;
    }

    .home-faq-cat-text strong {
        font-size: 16px;
    }

    .home-faq-cat-text span {
        font-size: 13px;
    }

    .home-faq-btn {
        min-width: 220px;
        font-size: 16px;
        padding: 13px 22px;
    }
}
