/* ===================================
   FAQ
=================================== */


/* -------------------------------
   FAQ HERO
------------------------------- */

.faq_hero_section {
    width: 100%;
    background: url("https://npoeurasia.org/wp-content/uploads/2025/03/page-bg-img.jpg") no-repeat center top;
    background-size: cover;
    margin-top: -80px;
}

.faq_hero_section_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto;
    padding-top: 80px;
    max-width: 1600px;
}

.faq_hero_img_wrap {
    width: 60%;
    max-width: 940px;
    height: auto;
    overflow: hidden;
    position: relative;
}

.faq_hero_textbox .en_ttl {
    font-size: 36px;
    font-weight: bold;
}

.faq_hero_img {
    display: block;
    border-top-left-radius: 350px;
    border-bottom-left-radius: 350px;
    object-fit: cover;
    overflow: hidden;
}

.faq_hero_textbox {
    width: 40%;
    padding-left: 5rem;
    text-align: left;
    max-width: 600px;
}


/* -------------------------------
   FAQ CONTENT
------------------------------- */

.faq_section {
    padding: 5rem 0;
}

.faq_section .main_container {
    padding: 16px;
}

.faq_content {
    padding: 30px;
    position: relative;
    z-index: 1;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid #FFB144;
    transition: border-color 0.3s ease;
}

.faq_tab.active.tab_1 ~ .faq_content {
    border-color: #FFB144;
}

.faq_tab.active.tab_2 ~ .faq_content {
    border-color: #FFD233;
}

.faq_tab.active.tab_3 ~ .faq_content {
    border-color: #A7C7E7;
}

.faq_tabs {
    display: flex;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.faq_tab {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.tab_1 {
    background: #FFB144;
}

.tab_2 {
    background: #FFD233;
}

.tab_3 {
    background: #A7C7E7;
}

.faq_tab.active.tab_1 {
    background: white;
    color: #FFB144;
    z-index: 2;
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top: 2px solid #FFB144;
    border-left: 2px solid #FFB144;
    border-right: 2px solid #FFB144;
}

.faq_tab.active.tab_2 {
    background: white;
    color: #FFD233;
    z-index: 2;
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top: 2px solid #FFD233;
    border-left: 2px solid #FFD233;
    border-right: 2px solid #FFD233;
}

.faq_tab.active.tab_3 {
    background: white;
    color: #A7C7E7;
    z-index: 2;
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top: 2px solid #A7C7E7;
    border-left: 2px solid #A7C7E7;
    border-right: 2px solid #A7C7E7;
}

.faq_tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
}

.faq_item {
    margin-top: 2rem;
}

.faq_question {
    display: flex;
    align-items: center;
    font-weight: bold;
    background: #FFB144;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.faq_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFEFBE;
    color: #FFB144;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.faq_answer {
    display: flex;
    align-items: flex-start;
    font-size: 18px;
    padding: 15px;
    color: #333;
    background-color: #fff;
    border: 1px solid #FFB144;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.faq_panel {
    display: none;
}

.faq_panel.active {
    display: block;
}

.answer_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFEFBE;
    color: #FFB144;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
}


/* TAB 2 */

.panel_2 .faq_question {
    background: #FFDD66;
}

.panel_2 .faq_icon {
    color: #FFDD66;
    background: #FFF8E1;
}

.panel_2 .answer_icon {
    color: #FFDD66;
    background: #FFF8E1;
}

.panel_2 .faq_answer {
    border: 1px solid #FFDD66;
}


/* TAB 3 */

.panel_3 .faq_question {
    background: #A7C7E7;
}

.panel_3 .faq_icon {
    color: #A7C7E7;
    background: #EBF5FF;
}

.panel_3 .answer_icon {
    color: #A7C7E7;
    background: #EBF5FF;
}

.panel_3 .faq_answer {
    border: 1px solid #A7C7E7;
}


/* -------------------------------
   1601px以上
------------------------------- */

@media screen and (min-width: 1601px) {

    .faq_hero_section_inner img {
        border-top-left-radius: 350px;
        border-bottom-right-radius: 350px;
        border-bottom-left-radius: 0px;
    }
}


/* -------------------------------
   1024px以下
------------------------------- */

@media screen and (max-width: 1024px) {

    .faq_hero_section {
        height: auto;
    }

    .faq_hero_section_inner {
        gap: 1rem;
    }

    .faq_hero_textbox {
        padding-left: 3rem;
    }
}


/* -------------------------------
   767px以下
------------------------------- */

@media screen and (max-width: 767px) {

    .faq_hero_section {
        padding-bottom: 80px;
    }

    .faq_hero_section_inner {
        display: block;
    }

    .faq_hero_img_wrap {
        width: 100%;
        height: auto;
        margin-top: -92px;
    }

    .faq_hero_img_wrap img {
        width: 100%;
        border-top-left-radius: 0;
        border-bottom-left-radius: 200px;
    }

    .faq_hero_textbox {
        width: 100%;
        height: auto;
        max-width: 760px;
        margin-top: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .faq_hero_section .donate_btn_box {
        margin-top: 24px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .faq_hero_section .donate_btn_text {
        font-size: 18px;
    }

    .faq_content {
        padding: 16px;
    }
}