/**
 * Footer Menu Plugin Styles
 * Version: 1.0.0
 */

/* 전역 스타일 리셋 */
.fmp-container *,
.fmp-container *::before,
.fmp-container *::after {
    box-sizing: border-box;
}

/* 강제 왼쪽 정렬 */
.fmp-container,
.fmp-wrapper,
.fmp-column,
.fmp-main,
.fmp-main-link,
.fmp-sub,
.fmp-item,
.fmp-link {
    text-align: left !important;
    direction: ltr !important;
}

/* li 요소 margin-left 제거 */
.fmp-item,
.fmp-sub li {
    margin-left: 0 !important;
}

.fmp-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fmp-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fmp-column {
    flex: 0 0 auto;
    min-width: 150px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: left !important;
}

.fmp-main {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: left !important;
    display: block;
}

.fmp-main-link {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-align: left !important;
    display: inline-block;
    width: 100%;
}

.fmp-main-link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: #ffffff !important;
}

.fmp-main-link:visited {
    color: #ffffff !important;
}

.fmp-main-link:active {
    color: #ffffff !important;
}

.fmp-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left !important;
    padding-left: 0 !important;
}

.fmp-item {
    margin: 0 0 10px 0;
    margin-left: 0 !important;
    padding: 0;
    text-align: left !important;
    list-style: none !important;
}

.fmp-link {
    font-size: 14px;
    font-weight: normal;
    color: #ffffff !important;
    text-decoration: none;
    line-height: 1.6;
    display: block;
    transition: opacity 0.3s ease;
    text-align: left !important;
    width: 100%;
}

.fmp-link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: #ffffff !important;
}

.fmp-link:visited {
    color: #ffffff !important;
}

.fmp-link:active {
    color: #ffffff !important;
}

.fmp-error {
    color: #ff0000;
    padding: 10px;
    background: #fff;
    border: 1px solid #ff0000;
}

/* 메뉴 개수에 따른 자동 정렬 */
.fmp-menu-count-1 .fmp-column {
    flex: 0 0 100%;
    max-width: 100%;
}

.fmp-menu-count-2 .fmp-column {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.fmp-menu-count-3 .fmp-column {
    flex: 0 0 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
}

.fmp-menu-count-4 .fmp-column {
    flex: 0 0 calc(25% - 30px);
    max-width: calc(25% - 30px);
}

.fmp-menu-count-5 .fmp-column {
    flex: 0 0 calc(20% - 32px);
    max-width: calc(20% - 32px);
}

.fmp-menu-count-6 .fmp-column {
    flex: 0 0 calc(16.666% - 33px);
    max-width: calc(16.666% - 33px);
}

.fmp-menu-count-7 .fmp-column,
.fmp-menu-count-8 .fmp-column,
.fmp-menu-count-9 .fmp-column,
.fmp-menu-count-10 .fmp-column {
    flex: 0 0 calc(14.285% - 34px);
    max-width: calc(14.285% - 34px);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .fmp-wrapper {
        gap: 30px;
        width: 100% !important;
    }
    
    .fmp-menu-count-5 .fmp-column,
    .fmp-menu-count-6 .fmp-column {
        flex: 0 0 calc(25% - 23px);
        max-width: calc(25% - 23px);
    }
    
    .fmp-menu-count-7 .fmp-column,
    .fmp-menu-count-8 .fmp-column,
    .fmp-menu-count-9 .fmp-column,
    .fmp-menu-count-10 .fmp-column {
        flex: 0 0 calc(25% - 23px);
        max-width: calc(25% - 23px);
    }
}

@media (max-width: 992px) {
    .fmp-wrapper {
        gap: 25px;
        width: 100% !important;
    }
    
    .fmp-column {
        min-width: 140px;
        text-align: left;
    }
    
    .fmp-menu-count-4 .fmp-column,
    .fmp-menu-count-5 .fmp-column,
    .fmp-menu-count-6 .fmp-column {
        flex: 0 0 calc(33.333% - 17px);
        max-width: calc(33.333% - 17px);
    }
    
    .fmp-menu-count-7 .fmp-column,
    .fmp-menu-count-8 .fmp-column,
    .fmp-menu-count-9 .fmp-column,
    .fmp-menu-count-10 .fmp-column {
        flex: 0 0 calc(33.333% - 17px);
        max-width: calc(33.333% - 17px);
    }
}

@media (max-width: 768px) {
    .fmp-wrapper {
        gap: 20px;
        justify-content: flex-start;
        width: 100% !important;
    }
    
    .fmp-column {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        min-width: 0;
        text-align: left;
    }
    
    .fmp-main {
        font-size: 15px;
        margin-bottom: 12px;
        text-align: left;
        color: #ffffff !important;
    }
    
    .fmp-link {
        font-size: 13px;
        text-align: left;
        color: #ffffff !important;
    }
}

@media (max-width: 480px) {
    .fmp-wrapper {
        gap: 15px;
        flex-direction: column;
        width: 100% !important;
    }
    
    .fmp-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100%;
        text-align: left;
    }
    
    .fmp-main {
        font-size: 14px;
        margin-bottom: 10px;
        text-align: left;
        color: #ffffff !important;
    }
    
    .fmp-link {
        font-size: 12px;
        text-align: left;
        color: #ffffff !important;
    }
}

