/* BASIC css start */
 
/* 푸터 전체 스타일 */
.main-footer {
    margin-top: 140px;
    background-color: var(--maincolor);
    color: #fff;
    padding: 45px 0 0;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    /* 모바일에서 줄바꿈을 위해 추가 */
    flex-wrap: wrap;
}

.footer-section {
    line-height: 1.8;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-section ul {}

.footer-section ul li {}

.footer-section ul li a {
    color: #fff;
    font-size: 14px;
}

.main-footer address {
    font-style: normal;
}

.main-footer address a {
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
    margin-left: 3px;
    vertical-align: baseline;
}

.cs-buttons {
    margin-top: 10px;
    display: flex;
    gap: 3px;
}

.cs-buttons .btn {
    border: 1px solid #fff;
    color: #ffffff;
    font-size: 12px;
    border-radius: 2px;
    height: 25px;
    width: 59px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.partner-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.partner-buttons a {
    display: inline-flex;
    border: 1px solid #bfbfbf;
    color: #fff;
    border-radius: 5px;
    font-size: 13px;
    width: 107px;
    height: 24px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.partner-buttons a.first img {width:17px;margin-right: 4px;}
.partner-buttons a.second img {width:18px;margin-right: 3px;}
.partner-buttons a.third img {width:24px;}


/* 하단 푸터 영역 */
.footer-bottom {
    border-top: 1px solid #fff;
    margin-top: 90px;
    padding: 10px 0;
}

.bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 13px;
    padding: 0 20px;
}

.partner-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-container .links-wrap {
    display: flex;
    gap: 20px;
    align-items: center;
}

.bottom-container .links a {
    color: #fff;
    font-size: 13px;
}

.social a {
    margin-left: 20px;
}
.social a.tw svg{width:16px;}
.social a.insta svg{width:18px;}
.goToBtn {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 99;
    background: transparent;
}


#back-to-top {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 47px;
    height: 47px;
    display: block;
    border-radius: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top img{
    width: 24px;
}



/* 반응형 웹 스타일 (태블릿 & 모바일) */
@media (max-width: 1024px) {
    .main-footer {
    margin-top:65px;
        margin-bottom: 70px;
        padding: 40px 0 0;
    }

    .footer-container {
        padding: 0 24px;
    }

    .footerLogo {
        margin-bottom: 40px;
        font-weight: bold;
        width: 100%;
    }

    .footerLogo img {
        margin-bottom: 7px; width: 101px;  filter: brightness(0) invert(1);
    }

    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }

    .partner-buttons {
        display: grid;
        gap: 5px;
        grid-template-columns: max-content max-content max-content;
    }

    .partner-buttons a {
        margin: 0;
        font-weight: bold;
        color: var(--maincolor);
        background: #fff;
        border: 1px solid #fff;
    }
    .partner-buttons a.third {
    gap: 5px;
    }

.partner-buttons a.first img {margin-right: 0;}
.partner-buttons a.second img {margin-right: 0;} 

    .bottom-container {
        flex-direction: column;
        align-items: flex-start;
        font-size: 14px;
        position: relative;
        padding: 0;
    }

    .footerLogo+.footer-section {
        order: 2;
        width: 30%;
        display:none;
    }

    .footerLogo+.footer-section+.footer-section {
        order: 1;
        width: 100%;
    }

    .footerLogo+.footer-section+.footer-section+.footer-section {
        order: 3;
    }

    .footerLogo+.footer-section+.footer-section+.footer-section+.footer-section {
        order: 4;
    }

    .footer-bottom {
        margin-top: 5px;
        border-top: 0;
        padding: 0 24px 28px;
    }




    .bottom-container .links-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .bottom-container .links a {
        font-size: 14px;
    }

    .bottom-container .social {
        /* position: absolute; */
        /* bottom: 34px; */
        /* left: 0; */
        margin-top: 20px;
    }

    .bottom-container .social a {
        margin-left: 0;
        margin-right: 13px;
    }

#back-to-top { 
    width: 42px;
    height: 42px; 
    border-radius: 42px; 
}

#back-to-top img{
    width: 22px;
}
}

@media (max-width: 768px) {
    .goToBtn {
        right: 20px;
    }

    .main-footer {
        margin-bottom: 70px;
        padding: 45px 0 55px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-bottom {
        padding: 0 20px;
    }

    .footerLogo+.footer-section {
        width: 22%;
    }

    .footerLogo+.footer-section+.footer-section {
        order: 1;
        width: 100%;
    }

} 

/* BASIC css end */

