﻿body {
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* 전체 컨테이너: max-width를 1920으로 제한 (-> 1280으로 변경)하고 가운데 정렬 */
#divContainer.clsContainer {
    width: 100%;
    height: auto;
    /*height: 9999px;*/
    max-width: 1280px;
    margin: 0 auto;
    /*border: 1px solid red;*/
    /* 약간그림자 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05), 0 0 6px rgba(0, 0, 0, 0.03);
    /* 미세한 배경색 차이 */
    background-color: #ffffff;
    border-radius: 8px;
}


#divMain {
    margin-top: 75px; /* header 가 fixed 라 마진 줘야됌 태블릿은 60 모바일은 50 */
    /*margin-bottom: 75px;*/
    /*border: 3px dotted red;*/
}

    @media (max-width: 1024px) and (min-width: 768px) {
        #divMain {
            margin-top: 65px;
        }
    }

    @media (max-width: 767px) {
        #divMain {
            margin-top: 55px;
        }
    }

/*-----------------------------------------*/
/* 메인 배너 스타일 */
.clsMainBanner {
    text-align: center;
    /*border-radius: 30px;*/
    padding: 30px;
    background-image: url("../Contents/img/UT-Menu-Index-back.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    background-color: transparent; /* 배경색 투명하게 */
    /*min-height: 330px;  a모바일일땐 530px */
    /* LandingMain Slides와 비슷하게*/
    border-radius: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 -2px 3px rgba(0,0,0,0.03), inset 0 1px 0 rgba(0,0,0,0.02);
    margin: 0.5rem 0.5rem; /***** 상하/좌우 여백 메인 양 옆 테블릿(초기)은 1.5rem 모바일  0em *****/
}
/*
.clsMainBannerMenu {
    border: 1px solid green;
    display: inline-block;
    margin: 30px;
}
    */
    /* 활성화된 메뉴 스타일 
    .clsMainBannerMenu.active a {
        background-color: #4CAF50;
        color: white;
        font-weight: bold;
    }
    */

/* 타이틀 영역 */
#divMainBanner .clsMainTitle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.clsTitleIllustration {
    width: 45px;
    height: 45px;
    margin-right: 10px;
}

/* 오각형 이미지 스타일 수정 */
.clsMainBannerMenuPentagon {
    display: block;
    margin: 0 auto;
    width: 180px !important;
    height: auto;
    position: relative;
    z-index: 10;
    background-color: transparent !important; /* 배경색 투명하게 */
    box-shadow: none; /* 그림자 제거 */
    /*border: 1px solid red;*/
}
    .clsMainBannerMenuPentagon.clsMobile {
        /*border: 1px solid blue;*/
    }

    .clsMainBannerMenuPentagon a {
        display: block;
        width: 100%;
        height: 100%;
        background: none !important; /* 배경 투명하게 유지 */
        border: none;
        padding: 0;
    }

.clsPentagonImg {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    max-width: 180px; /* 최대 너비 제한 */
    animation: pulse 3s infinite ease-in-out;
}
    .clsPentagonImg:hover {
        transform: scale(1.05);
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);       
    }

    50% {
        transform: scale(1.05);        
    }
}



/* 메뉴 컨테이너 수정 - 오각형 이미지를 중앙에 배치 */
#divMainBanner .clsMenuContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 상단 정렬 */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* 메뉴 컬럼 */
#divMainBanner .clsMenuColumn {
    width: 35%; /* 너비 축소하여 중앙에 공간 확보 */
    display: flex;
    flex-direction: column;
}


/* 카테고리 버튼 */
#divMainBanner .clsCategoryBtn {
    background-color: #00c853;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    position: relative; /* 추가: 자식 요소의 absolute 포지셔닝을 위해 */
}
    .clsCategoryBtn:hover {
        /*background-color: #00a844;*/
    }
    /* 포인터 이미지 스타일 */
    .clsPointerImg {
        position: absolute;
        bottom: -10px; /* 버튼 아래로 10px 이동 */
        left: 50%; /* 가로 중앙 정렬 시작점 */
        transform: translateX(-50%); /* 가로 중앙 정렬 완료 */
        width: 20px; /* 이미지 너비 */
        height: auto; /* 높이 자동 조정 */
        z-index: 5; /* 다른 요소 위에 표시 */
        display: block; /* 초기에는 보이고 클릭 시 사라짐 */
    }

/* 서브메뉴 그룹 */
#divMainBanner .clsSubmenuGroup {
    display: none; /* none에서 flex로 변경하여 초기에 표시 */
    flex-direction: column;
    width: 100%;
}

/* 메뉴 아이템 스타일 */
#divMainBanner .clsMainBannerMenu {
    width: 100%;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    #divMainBanner .clsMainBannerMenu:not(.clsMainBannerMenuPentagon) a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 7px 10px;
        color: #333;
        text-decoration: none;
        transition: background-color 0.3s;
    }

        #divMainBanner .clsMainBannerMenu a:hover {
            background-color: #f5f5f5;
        }

#divMainBanner .clsMenuContent {
    text-align: left;
}

#divMainBanner .clsMenuTitle {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
}

#divMainBanner .clsMenuSubtitle {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

#divMainBanner .clsSelectIcon {
    width: 24px;
    height: 24px;
}

/* 활성화된 메뉴 스타일 */
#divMainBanner .clsMainBannerMenu.active a {
    /*background-color: #f0f9f0;*/
}

/* 모바일/데스크톱 전환 클래스 */
.clsNotMobile {
    display: block;
}

.clsMobile {
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .clsMainBanner {
        min-height: 530px; /* a모바일일땐 530px */
    }

    /* 타이틀 영역 조정 */
    #divMainBanner .clsMainTitle {
        margin-bottom: 20px;
    }

    .clsTitleIllustration {
        width: 35px;
        height: 35px;
    }

    .clsNotMobile {
        display: none;
    }

    .clsMobile {
        display: block;
        margin: 0 auto 20px auto;
    }

    .clsMainTitle h1 {
        font-size: 20px;
    }

    .clsTitleIllustration {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }

    /*--*/
    /* 메뉴 컨테이너 레이아웃 변경 */
    #divMainBanner .clsMenuContainer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }

    /* 메뉴 컬럼 가로 배치 */
    #divMainBanner .clsMenuColumn {
        width: 45%;
        margin: 0;
        flex: 0 0 auto;
        align-items: center; /* 중앙 정렬 */
    }

    /* 카테고리 버튼 조정 */
    #divMainBanner .clsCategoryBtn {
        width: 90%;
        padding: 10px;
        font-size: 15px;
        border-radius: 8px;
        margin-bottom: 10px;
    }



    /* 서브메뉴 그룹 조정 */
    #divMainBanner .clsSubmenuGroup {
        position: relative;
        width: 100%;
        display: none;
    }

    /* 서브메뉴 아이템 조정 */
    #divMainBanner .clsMainBannerMenu:not(.clsMainBannerMenuPentagon) {
        margin-bottom: 8px;
    }

        #divMainBanner .clsMainBannerMenu:not(.clsMainBannerMenuPentagon) a {
            padding: 10px;
        }

    #divMainBanner .clsMenuTitle {
        font-size: 15px;
    }

    #divMainBanner .clsMenuSubtitle {
        font-size: 11px;
    }

    #divMainBanner .clsSelectIcon {
        width: 18px;
        height: 18px;
    }


}

/* 더 작은 모바일 화면 대응 */
@media (max-width: 397px) {
    /* 메뉴 컬럼 전체 너비로 */
    #divMainBanner .clsMenuContainer {
        flex-direction: column;
    }

    #divMainBanner .clsMenuColumn {
        width: 100%;
        margin-bottom: 10px;
    }
    /* 서브메뉴 그룹 조정 */
    #divMainBanner .clsSubmenuGroup {
        position: relative;
        width: 95%;        
    }

    #divMainBanner .clsCategoryBtn {
        padding: 8px;
        font-size: 14px;
    }

    #divMainBanner .clsMenuTitle {
        font-size: 12px;
    }

    #divMainBanner .clsMenuSubtitle {
        font-size: 11px;
    }
}



/*-----------------------------------------*/

/* 콘텐츠 영역 스타일 */
.clsMainBannerContent {
    /*margin-top: 30px;*/
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 400px;
    text-align: left;
}


/* 로딩 인디케이터 스타일 */
.loading-indicator {
    text-align: center;
    padding: 40px;
}

/* 오류 메시지 스타일 */
.error-message {
    text-align: center;
    padding: 30px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}
