/* Sub Visual Section */
#sub_visual {
    position: relative;
    width: 100%;
}

#sub_visual .visual_area {
    position: relative;
    width: 100%;
    height: 200px;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 50%;
    background-size: cover;
    background-image: url('../images/sub_visual01.jpg');
}

/* Membership pages background */
#sub_visual .visual_area.membership {
    background-image: url('../images/sub_visual06.jpg');
}

/* Donations pages background */
#sub_visual .visual_area.donations {
    background-image: url('../images/sub_visual_donations.jpg');
}

/* Community pages background */
#sub_visual .visual_area.community {
    background-image: url('../images/sub_visual03.jpg');
}



#sub_visual .visual_txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

#sub_visual .visual_subject {
    position: relative;
    display: inline-block;
    padding: 0 18px;
    color: #fff;
    font-size: 33px;
    font-weight: 500;
    letter-spacing: 3px;
}

#sub_visual .visual_subject::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: rgba(255, 255, 255, 1);
    margin: 10px auto 0;
}

#sub_visual .visual_subject::before {
    margin: 0 auto 20px;
}

/* Sub Wrapper */
#sub_wrapper {
    width: 100%;
    background: #fff;
}

/* Sub Menu Navigation */
#sub_menu {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.sub_location {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60px;
}

.sub_location > div {
    display: flex;
    align-items: center;
    min-height: 60px;
    width: 100%;
}

.sub_location .cen {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
}

.sub_location .cen a {
    color: #888;
    font-size: 16px;
}

.sub_location ul {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 150px;
}

.sub_location > div > ul {
    height: 60px;
    line-height: 60px;
    padding: 0 20px;
    position: relative;
    border-right: 1px solid #e5e5e5;
}

.sub_location ul li {
    position: relative;
}

.sub_location ul li > span {
    display: block;
    position: relative;
    padding-right: 22px;
    cursor: pointer;
    font-size: 16px;
    color: #222;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.sub_location ul li > span::after {
    content: '\f107';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    color: #000;
    transition: transform 0.3s ease;
}

.sub_location ul li > span.arrow-up::after {
    transform: translateY(-50%) rotate(180deg);
}

.sub_location ul li:hover > span {
    color: #1f4c34;
}

.sub_location ul li .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    min-width: 150px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.sub_location ul li.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
}

.sub_location ul li .dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sub_location ul li .dropdown-menu li:last-child {
    border-bottom: none;
}

.sub_location ul li .dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.sub_location ul li .dropdown-menu li a:hover,
.sub_location ul li .dropdown-menu li a.is-current {
    background: #edf2ec;
    color: #2c5a3f;
    font-weight: 600;
}

.sub_location ul.dep2 {
    border-left: none;
}

.sub_location ul.dep2 li > span {
    color: #48683f;
}

/* Sub Title Section */
#sub_tit {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding-left: 24px;
    height: 100%;
    min-width: 0;
    background: none;
}

#sub_tit .path {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

#sub_tit .path li {
    display: flex;
    align-items: center;
    color: #7a7a7a;
    font-size: 14px;
    white-space: nowrap;
}

#sub_tit .path li a {
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

#sub_tit .path li + li::before {
    content: '\003E';
    margin: 0 12px;
    color: #c3c3c3;
}

#sub_tit .path li.main_menu {
    font-size: 15px;
    color: #000;
}

#sub_tit .path li.sub_menu {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

/* Content Area */
.scontents {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0px 120px;
}

.scontents .eng,
.scontents h1.eng {
    margin: 0;
    text-align: center;
    font-size: 35px;
    font-weight: 500;
    color: #333;
    letter-spacing: -0.6px;
}

.scontents .stitle {
    margin: 16px auto 56px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    letter-spacing: -0.3px;
}

/* Responsive */
@media (max-width: 1200px) {
    .sub_location,
    #sub_tit .path,
    .scontents {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile menu style */
@media (max-width: 768px) {
    .sub_location ul li.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 300px;
    }

    #sub_visual .visual_area {
        height: 220px;
    }

    #sub_visual .visual_subject {
        font-size: 26px;
        letter-spacing: 1.5px;
    }

    #sub_visual .visual_subject::before,
    #sub_visual .visual_subject::after {
        width: 40px;
        margin-top: 12px;
    }

    #sub_visual .visual_subject::before {
        margin-bottom: 12px;
    }

    .sub_location > div {
        min-height: 45px;
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 8px 0;
    }

    .sub_location .cen {
        width: 45px;
        height: 45px;
    }

    .sub_location > div > ul {
        height: 45px;
        line-height: 45px;
        padding: 0 15px;
    }

    .sub_location #sub_tit {
        margin-left: 0;
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e5e5e5;
        padding-top: 10px;
    }

    .sub_location #sub_tit .path {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .sub_location #sub_tit .path li {
        white-space: normal;
        font-size: 13px;
    }

    .sub_location #sub_tit .path li + li::before {
        margin: 0 8px;
    }

    .scontents {
        padding: 50px 20px 80px;
    }

    .scontents .eng {
        font-size: 28px;
    }
}
