
/* 애니메이션 */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideOpenFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes menuButtonAnimation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

/* 공통 스타일 */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background: #003366;
    transform: translateY(-3px);
}

/* 1440px 이하 */
@media (max-width: 1440px) {
    
	.lay_1200{
		width:100%;
		min-width:100%;
	}
	
	#hd {
        position: relative;
		min-width:auto;
    }
    
	.hd_top .container{
		width:100%;
		justify-content:center;
	}
	
	.hd_mid .container{
		flex-direction:column;
		height:auto;
		width:100%;
		min-width:auto;
		justify-content:center;
	}
	
	.hd_mid .container h1{
		font-size:unset;
	}
	
	.gnb_bg{
		top:193px;
	}
	
	.page_banner{
		margin-top:0;
	}
	
	#ft{
		min-width:auto;
		padding:40px;
	}
	#ft .container{
		flex-direction:column;
		width:100%;
		min-width:auto;
		flex-wrap:nowrap;
		text-align:center;
	}
	
	#ft .logo img{
		height:60px;
		width:auto;
	}
	.footer-link-box .footer-links{
		justify-content:center;
	}
	#ft .col-md-4{
		width:100%;
	}
	
	#ft .related-sites-container{
		display:none;
	}
}

/* 1024px 이하 (태블릿) */
@media (max-width: 1035px) {
    body {
        min-width: 100%;
    }
    
    .lay_1440 {
        padding: 0 20px;
    }
    
    .hd_top .container,
    .hd_mid .container {
        width: 100%;
    }
    
    .gnb .nav-item {
        padding: 0 20px;
    }
    
    .gnb .nav-link {
        font-size: 18px;
    }
    

    
    #ft .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .footer-link-box .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-link-box .footer-links a {
        margin-bottom: 10px;
    }
}

/* 768px 이하 
@media (max-width: 768px) {
    .main_board .container .board_area,
    .main_board .youtube,
    .company_banner {
        width: 100%;
    }
    
    .open_plaza {
        padding: 40px 0;
    }
    
    .section_header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section_title {
        font-size: 24px;
    }
    
    .tab_menu {
        width: 100%;
        justify-content: center;
    }
    
    .tab_btn {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .tab_panel {
        padding: 20px;
    }
    
    .company_banner ul {
        justify-content: space-between;
        flex-direction: column;
    }
}
*/
/* 480px 이하 (모바일) */
@media (max-width: 768px) {
    /* 헤더 */
    #hd {
        min-width: auto;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .hd_top {
        display: none;
    }
    
    .hd_mid {
        height: 60px;
        padding: 0;
    }
    
    .hd_mid .container {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
    }
    
    /* 로고 */
    .logo {
        text-align: center;
        width: 100%;
        margin: 0;
		padding-top:5px;
		height:60px;
		font-size:unset;
    }
    
    .logo img {
        width: auto;
        height: 50px;
        margin: 0;
		margin-left:27px;
    }
    
    /* 전체메뉴 버튼 */
    .all_menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 24px;
        margin-right: 0;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
        position: absolute;
		right:20px;
		top:20px;
    }

    .all_menu span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .all_menu span:nth-child(1) {
        top: 0;
		margin-top:10px
    }

    .all_menu span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .all_menu span:nth-child(3) {
        bottom: 0;
    }

    
    /* GNB 메뉴 */
    .gnb {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
        flex-direction: column;
    }
    
    .gnb.active {
        display: flex;
        animation: slideOpenFromRight 0.3s ease-out;
    }
    
    .gnb .nav {
		flex:1;
        flex-direction: column;
		justify-content:flex-start;
        padding: 0;
    }
    
    .gnb .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #eee;
    }
    
    .gnb .nav-link {
        height: 50px;
        padding: 0 20px;
        line-height: 50px;
        font-size: 16px;
        color: #333;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        cursor: pointer;
    }
    
    .gnb .nav-link:after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-left: 10px;
    }
    
    .gnb .nav-item.active > .nav-link:after {
		transform: rotate(-135deg);
    }
    
    .gnb .dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        border: none;
        background: #f8f9fa;
        overflow: hidden;
        transition: all 0.3s ease;
        padding: 0;
        display: block !important;
    }
    
    .gnb .nav-item.active > .dropdown-menu {
        height: 500px;
		display:block;
    }
    
    .gnb .dropdown-item {
        padding: 15px 30px;
        color: #333;
        font-size: 15px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
        display: block;
        text-decoration: none;
    }
    
    
    .gnb .dropdown-item:hover {
        background: #f0f0f0;
        color: #333;
    }
    
    /* 메뉴 오버레이 */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .menu-overlay.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    /* 스크롤바 커스텀 */
    .gnb::-webkit-scrollbar {
        width: 4px;
    }
    
    .gnb::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .gnb::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
    
    .gnb::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    /* 본문 여백 조정 */
    body {
        padding-top: 60px;
    }

    .list-title{
		font-size:25px;
	}
    /* 푸터 영역 조정 */
    #ft {
        margin-top: 0;
		min-width:100%;
		padding:30px 0;
    }
	
	#ft .logo, #ft .footer-link-box,#ft .related-sites-container{
		display:none;
	}
	
	#ft .container{
		display:block;
		text-align:center;
	}
	
	#ft .row{
		margin-top:0;
	}
	
	
	/* 모바일 메뉴 하단 영역 */
    .mobile-menu-footer {
        padding: 20px 20px 150px;
        border-top: 1px solid #eee;
        background: #f8f9fa;
    }

    .mobile-sns-links {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .mobile-sns-links a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

    .mobile-sns-links a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .mobile-sns-links a i {
        font-size: 20px;
        color: #333;
    }

    .mobile-login-buttons {
        display: flex;
        gap: 10px;
    }

    .mobile-login-buttons a {
        flex: 1;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .mobile-login-buttons .login-btn {
        background: #fff;
        color: #333;
        border: 1px solid #ddd;
    }

    .mobile-login-buttons .join-btn {
        background: var(--primary-color);
        color: #fff;
    }

    .mobile-login-buttons a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
	
	.mobile-menu-footer{
		display:block;
	}
	
	
	
} 