/* CSS Document */
@import url(//fonts.googleapis.com/earlyaccess/nanumgothic.css);
@import url(//cdn.rawgit.com/hiun/NanumSquare/master/nanumsquare.css);/* 나눔 스퀘어*/

:root {
  --main: #001d3f;
    --primary-color: #005bac;
    --accent-color: #00a0e9;
    --bg-light: #eef5fc;
    --text-dark: #1D3557;
    --text-gray: #6C757D;
    --white: #FFFFFF;
    --font-main: 'Noto Sans KR', sans-serif;
    --font-title: 'Montserrat', sans-serif;
    --header-height: 90px;
    --max-width: 1200px;
}
/* common */
html, body {margin:0; padding:0; }

div, ul, ol, li, dl, dt, dd, form, fieldset, input, button, p, h1, h2, h3, h4, h5, h6, blockquote, iframe, th, td { margin:0; padding:0; }
img { border:0; vertical-align:top; }
li { list-style:none; /*float:left;*/ display:inline;}


/* style */

*{margin:0;
  padding:0;
  border:0;}
  


html{
	 margin:0;	 
	 padding:0;
	 width:100%;
	 }
	 
body{margin:0;	 
	 padding:0;
	 font-size:12px;
	 color:#1d0c01;
	 font-style:normal;
	 width:100%;
	 font-family: 'Noto Sans KR', sans-serif!important;
	 background:#ffffff;
	 }
	 
a { color:#1d0c01;
    text-decoration:none;}
	
	
a:link, a:visited {color:unset;text-decoration:none}
a:hover{color:#bebebe;
        text-decoration:none;}
		
table{border:0;
      border-collapse:0;
	  border-spacing:0;}

td{vertical-align:middle;}
	  
ul, ol, li,{margin:0;
   padding:0;
   vertical-align:top;
   float:left;}
   
header,footer,nav,section,article,address{margin:0; padding:0; font-style:normal;}





* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%;}
button { font-family: var(--font-main); }
section { /*padding: 100px 0;*/position: relative; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4, h5, h6{font-family: 'Noto Sans KR', sans-serif;}
/* 섹션 타이틀 */
.section-title {
    text-align: center; margin-bottom: 60px; font-size: 2.2rem;
    font-weight: 700; color: var(--primary-color); position: relative;
}
.section-title::after {
    content: ''; display: block; width: 50px; height: 4px;
    background: var(--accent-color); margin: 20px auto 0;
}
.text-white { color: var(--white) !important; }
.text-white::after { background: var(--white); }

/* 버튼 평면 디자인 */
.btn-nav-reg, .tab-btn, .tab-btn.active, .btn-more, .btn-sticky-split {
    box-shadow: none !important; border: 1px solid #eee;
}

/* =========================================
   [2] Top Bar
   ========================================= */
.top-bar { background-color: #f8f9fa; border-bottom: 1px solid #e1e8ed; height: 40px; display: flex; justify-content: center; }
.top-bar-inner { width: 100%; max-width: none; padding: 0 60px; display: flex; justify-content: flex-end; align-items: center; gap: 15px; }
.auth-links { font-size: 0.8rem; color: #666; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.auth-links a:hover { color: var(--primary-color); text-decoration: underline; }
.auth-links .sep { color: #ccc; font-size: 0.7rem; }
.group-sep { color: #ccc; font-size: 0.7rem; margin-top: 1px; }
.lang-switch { display: flex; align-items: center; font-size: 0.8rem; font-weight: 700; }
.lang-btn { background: none; border: none; cursor: pointer; color: #ccc; font-family: var(--font-title); font-weight: 700; padding: 0; transition: 0.3s; }
.lang-btn:hover { color: var(--primary-color); }
.lang-btn.active { color: var(--text-dark); text-decoration: underline; }
.lang-switch .sep { color: #ccc; margin: 0 5px; font-size: 0.7rem; }

/* =========================================
   [3] Header & Nav
   ========================================= */
header {
    position: sticky; top: 0; width: 100%; height: var(--header-height);
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid #eee;
}
.header-inner { width: 100%; max-width: none; padding: 0 60px; height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo-link { flex-shrink: 0; }
.logo-img { height: 65px; width: auto; }
nav { flex: 1; display: flex; justify-content: center; padding: 0 20px; height: 100%; }
.nav-links { display: flex; gap: 45px; height: 100%; }
.nav-links li.dropdown { position: relative; padding: 0; height: 100%; display: flex; align-items: center; }
.nav-links .drop-btn { font-weight: 500; font-size: 1.15rem; color: var(--text-dark); display: block; position: relative; }
.nav-links .drop-btn::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px; background: var(--accent-color); transition: 0.3s;
}
.nav-links li.dropdown:hover .drop-btn::after { width: 100%; }
.nav-links li.dropdown:hover .drop-btn { color: var(--accent-color); }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: white; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 10px; padding: 15px 0; opacity: 0; visibility: hidden; transition: all 0.3s ease;
    z-index: 1000; border-top: 3px solid var(--accent-color);
}
.nav-links li.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; top: 100%; }
.dropdown-menu li { display: block; }
.dropdown-menu li a { display: block; padding: 12px 25px; font-size: 1rem; color: #555; transition: 0.2s; font-weight: 500; }
.dropdown-menu li a:hover { background: #f8f9fa; color: var(--primary-color); padding-left: 25px; }
.header-right { display: flex; align-items: center; }
.btn-nav-reg {
    background: var(--primary-color); color: var(--white) !important; padding: 14px 35px; border-radius: 50px; font-weight: 800; font-size: 1rem; transition: 0.3s; white-space: nowrap; border: none;
}
.btn-nav-reg:hover { background: var(--accent-color); transform: translateY(-2px); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); margin-left: 15px; }







   
   
/* common */

#wrap{width:100%; float:left; min-width:1200px; overflow:hidden;}/* min-width:최소너비*/
.center{margin:0 auto;}/* min-width:최소너비*/

#topWrap{width:100%; height:100px; position:fixed; top:0; left:0; background:var(--main); padding:0; z-index:200; } /* 상단 메뉴*/
#mainPage #topWrap{/*background:none;*/}
.topWrapOv{background:#fff !important;box-shadow: 0 3px 4px rgb(0 0 0 / 30%); }


#mGnbArea{width:100%; float:left; position:relative; z-index:200; padding:10px 0;}
.mGnbAreaOv{background:#dff0f7;}
@media (max-width:1400px){
	#mGnbArea{min-width:1400px;}
	#mGnbArea > div.center{margin:0px 0px;}
}
.mGnbWrap{width:100%; float:left; position:relative; z-index:200;}

/*
.mGnbWrap{width:100%; float:left; position:relative; z-index:200;}
.mLogo{float:left; width:300px; padding:7px 0; position:absolute; left:0; z-index:200;}
@media (max-width:1600px){
	.mLogo{position:fixed;left:221px;}
}
@media (max-width:1500px){
	.mGnbWrap{left: 150px;}
}
*/

.mLogo{float:left; width:300px; padding:0px 0; position:absolute; left:0%; top:0px; z-index:200;}
.mLogo img{width:200px;}
.openLogo{position:absolute;top:20px;right:0px;z-index:200;}


.logGnb{position:absolute; top:0px; right:0px; z-index:200;}
.logGnb li{padding-left:4px;  font-size:13px; line-height:20px; color:#fff;}
.logGnb li.on{padding-left:4px;  font-size:13px; line-height:20px; color:#000;}
.logGnb li.on a{color:#000;}
.logGnb li a{color:#fff; line-height:20px;}
.logGnb li a:hover{color:var(--main); font-weight: bold;}

.topSnsWrap{position:absolute; top:40px; right:0px; z-index:200; display:none;}
.topSnsWrap li{padding-left:20px;  font-size:13px; line-height:20px;}
.topSnsWrap li a{color:#fff; line-height:20px;}
.topSnsWrap li a:hover{color:var(--main);}

.topSnsWrap li a .off{display:block;}
.topSnsWrap li a .on{display:none;}
.topSnsWrap li a:hover .off{display:none;}
.topSnsWrap li a:hover .on{display:block;}



.mGnb{float:left; width:100%; padding-top:0px; position:relative; z-index:100; text-align:right;}/* 메인메뉴 너비*/
.mGnb ul{text-align:left; display:inline-block; padding-top:15px;}
.mGnb ul li{position:relative; display:inline-block; z-index:200; line-height:30px;  font-size:16px; text-align:left;} 
.mGnb ul li a{color:#fff; font-weight:bold; display:inline-block; width:100%; padding:20px 30px; line-height:24px; font-size:17px; text-decoration:none} 
.mGnb ul li a span{font-size:14px; font-weight:400;color:#fff;}
.mGnb ul li.onn a span{color:var(--main);}
.mGnb ul li.on a{color:var(--main);}
.mGnb ul li.onn a {color:#000;}
.mGnb ul li:hover a{font-weight:bold; text-decoration:none; color:var(--main);}
.mGnb ul li.select {border:none;}
.mGnb ul li.select a{color:var(--main);text-decoration:none}


.mGnb ul li.on .subM ul{/*background:#009cc4;*/}

.mGnb ul li .subM{width:100%;  position:absolute; z-index:200; top:58px; left:-10px; display:none;} /* 상단메뉴 높이 : top */
.mGnb ul li .subM ul{width:100%; float:left; padding-top:30px; padding-left:0;}
.mGnb ul li .subM ul li{width:100%; float:left; line-height:20px;  font-size:13px; text-align:right;}
.mGnb ul li .subM ul li a{color:var(--main); text-decoration:none; background:none; padding:5px 15px 5px 0; box-sizing:border-box; font-weight:normal; line-height:20px; font-size:14px;}
.mGnb ul li .subM ul li a:hover{font-weight:bold;}
.mGnb ul li.on .subM ul li a{color:#000 !important;}

.mGnb ul li.select .subM ul li a{color:#0074ff;}

#tmWrap{width:100%; position:absolute; background:#ffffff; /*border-top:1px solid #df9393;*/  height:250px; z-index:10; top:100px; left:0; display:none; opacity: 0.9;} 



#partnerWrap{width:100%; float:left; background:#fff; padding:50px 0 20px 0;}
.partner{width:100%; float:left; text-align:center;}
.ptn{display:inline-block; text-align: center;}
.ptn:first-child{padding-left:0;}
.ptn span{display:inline-block; margin-right:5px; margin-left: 5px; margin-top: 10px; color:#fff; font-size:14px; line-height:30px; height: 30px; background: var(--main); border-radius: 20px; padding: 0 10px;}
.ptn img{display:inline-block; padding-right:0px; padding-top:5px;}



#footWrap{width:100%; float:left; background:var(--main); padding:40px 0; position:relative;}

.foot{width:100%; float:left; position:relative;}
.address{width:100%;  float:left; line-height:30px; font-size:16px; color:#fff;}
.copyright{width:100%;  float:left; line-height:30px; font-size:16px; color:#fff; font-weight:400;}
.e-marathon{position:absolute; top:0px; right:0;}
.e-marathon .emaratonBy{position:relative;}
.e-marathon .emaratonBubble{position:absolute; top:20px; right:0; font-size:14px; width:300px; display:none; text-align:right; color:#f1f1f1;}
.e-marathon:hover .emaratonBubble{display:block;}


/* sub Common*/
.title1 {
width: 100%;
    box-sizing: border-box;
    padding: 0px;
    color: #292929;
    font-size: 29px;
    font-weight: 700;
    text-align: center;
    margin-top: 0px;
}
#subTopWrap{width:100%;}
.subTopTit{width:100%; padding-top:50px; font-size:36px; font-weight:bold; color:#292929; text-align:center;}

#subWrap{width:100%; margin-top:0px;}
#subContWrap{width:100%; max-width:1200px; margin:0 auto; padding:80px 0;}
.subContWrap{width:100%; max-width:1000px; padding:50px 10px;margin: 0 auto;}
.subContTit{width:100%; padding-bottom:50px; font-size:24px; font-weight:bold; color:#292929; text-align:left; display:none;}
.subCont{width:100%; min-height:500px; font-size:18px;text-align:center;}

/* 외국인용 */
.foreignerWrap{position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); z-index:999; display:none;}
.foreignerWrap .fWrap{width:1200px; height:100%; margin:0px auto;}
.foreignerWrap .fWrap .foreignerClose{width:100%; height:40px; margin-top:20px; text-align:right;}
.foreignerWrap .fWrap .foreignerClose a{display:inline-block; width:30px; height:30px; line-height:30px; font-size:26px; background:#dff0f7; color:#fff; text-align:center;}
.foreignerWrap .fWrap .foreigner{width:100%; height:90%; text-align:center; overflow-y:scroll; overflow-x:hidden;}







/* =========================================
   [10] Sponsors
   ========================================= */
#sponsors { background: var(--white); padding: 40px 0; border-top: 1px solid #eee; }
.sponsor-container { background: var(--white); padding: 0; }
.sponsor-row { display: flex; align-items: center; border-bottom: 1px solid #eee; padding: 15px 0; }
.sponsor-row:last-child { border-bottom: none; padding-bottom: 0; }
.sponsor-row:first-child { padding-top: 0; }

.sponsor-label {
    width: 140px;
    /* [수정] 폰트 사이즈 및 굵기 조정 (너무 두껍지 않게) */
    font-weight: 700;  /* 기존 900 -> 700 */
    font-size: 1.4rem; /* 기존 1.2rem -> 1.1rem */
    color: var(--text-dark);
    flex-shrink: 0;
}

.sponsor-logos { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; flex: 1; }
.sponsor-img { height: 45px; width: auto; object-fit: contain; }

/* =========================================
   [11] Footer & Others
   ========================================= */
footer { background: #1a1f26; color: #8d97a5; padding: 70px 0; text-align: center; font-size: 0.95rem; line-height: 1.8; }
.footer-address strong { color: #fff; font-weight: 700; margin-right: 10px; }
.footer-copyright { margin-top: 25px; color: #666; font-size: 0.9rem; }
.footer-powered { margin-top: 8px; font-size: 0.85rem; color: #666; font-style: italic; }
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 모바일 메뉴 */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav-container { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: white; z-index: 2000; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.mobile-nav-container.active { right: 0; }
.mobile-header { padding: 20px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.mobile-title { font-weight: 900; font-size: 1.4rem; color: var(--primary-color); letter-spacing: -0.5px; }
.btn-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: #333; }
.mobile-body { flex: 1; overflow-y: auto; padding: 0; background: #fff; }
.mobile-body ul { list-style: none; padding: 0; margin: 0; }
.mobile-utility { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; background: #f8f9fa; border-bottom: 1px solid #e1e8ed; }
.mobile-utility .auth-links, .mobile-utility .lang-switch { margin: 0; font-size: 0.95rem; color: #555; font-weight: 600; }
.mobile-utility .sep { color: #ccc; margin: 0 10px; font-size: 0.8rem; }
.mobile-utility a:hover { color: var(--primary-color); }
.mobile-utility .lang-btn { padding: 5px 10px; font-size: 0.95rem; color: #999; font-weight: 600; transition: all 0.3s ease; }
.mobile-utility .lang-btn.active { color: var(--primary-color); font-weight: 800; background: #eef5fc; border-radius: 4px; }
.mobile-body .nav-links { display: flex; flex-direction: column; gap: 0; height: auto; }
.mobile-body .nav-links li.dropdown { display: block; height: auto; border-bottom: 1px solid #f0f0f0; width: 100%; }
.mobile-body .drop-btn { padding: 15px 25px; font-size: 1.2rem; font-weight: 700; color: var(--text-dark); width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; background: #fff; white-space: nowrap; box-shadow: none !important; }
.mobile-body .drop-btn::after { position: static !important; width: auto !important; height: auto !important; background: none !important; content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 0.9rem; color: #ddd; transition: transform 0.3s; margin-left: 10px; }
.mobile-body .drop-btn.open { color: var(--accent-color); background: #fbfbfb; }
.mobile-body .drop-btn.open::after { transform: rotate(180deg); color: var(--accent-color); }
.mobile-body .nav-links li.dropdown:hover .drop-btn::after { width: auto !important; }
.mobile-body .dropdown-menu { position: static !important; transform: none !important; box-shadow: none !important; border: none !important; border-radius: 0 !important; opacity: 1 !important; visibility: visible !important; width: 100%; background: #f8f9fa; display: none; padding: 10px 0; border-top: 1px solid #eee; }
.mobile-body .dropdown-menu.show { display: block; }
.mobile-body .dropdown-menu li a { padding: 15px 35px; font-size: 1rem; color: #666; display: block; width: 100%; }
.mobile-body .dropdown-menu li a:hover, .mobile-body .dropdown-menu li a:active { color: var(--primary-color); background: #eef2f5; }


/* =========================================
   [13] Media Queries (Responsive)
   ========================================= */

/* A. Tablet & Mobile (1200px 이하 공통) */
@media (max-width: 1200px) {

    /* 1. [전체 레이아웃] 여백 및 폰트 밸런스 */
    .container { max-width: 100%; padding: 0 20px; }

    /* 섹션 간격 (40px 유지) */
    section { padding: 40px 0; }

    /* [수정] 섹션 제목 크기 확대 (1.6rem -> 2.0rem) */
    /* 제목이 커졌으므로 아래 여백도 살짝 더 줍니다 (25px -> 35px) */
    .section-title {
        font-size: 2.0rem;
        margin-bottom: 35px;
        line-height: 1.2;
    }
    .section-title::after { margin: 15px auto 0; width: 45px; }

    /* [수정] 본문 서브 헤드라인 밸런스 조정 */
    /* 제목과 본문 사이를 이어주는 문구 크기를 키워 자연스럽게 연결 */
    .intro-headline { font-size: 1.25rem; line-height: 1.5; margin-bottom: 20px; }
    p { font-size: 0.95rem; line-height: 1.6; }

    /* 2. 헤더 & 네비게이션 */
    header {
        padding: 0 25px;
        justify-content: space-between;
        height: 80px;
    }

    .logo-img {
        /* [유지] 로고 크기 55px */
        height: 55px;
        width: auto;
    }

    .header-inner { padding: 0; width: 100%; }
    .top-bar, nav, .btn-nav-reg { display: none !important; }
    .mobile-menu-btn { display: block; font-size: 1.8rem; margin-left: auto; }

	.mobile-body .nav-links li.dropdown:last-child{padding-bottom:80px;}


    /* 8. 후원사 */
    .sponsor-container { padding: 10px 0; }
    .sponsor-row {
        flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px 0;
    }
    .sponsor-label {
        width: 100%; border-bottom: 2px solid var(--accent-color);
        padding-bottom: 8px; text-align: center;
        font-size: 1.4rem;
    }
    .sponsor-logos { justify-content: center; width: 100%; gap: 15px; }
    .sponsor-img { height: 35px; }

    /* 9. 모바일 하단 고정바 (Sticky Bar) */
    .mobile-sticky-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 12px 15px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 9999;
        gap: 10px;
        box-sizing: border-box;
    }
    .btn-sticky-split {
        flex: 1; height: 50px; border-radius: 50px; font-weight: 700; font-size: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        display: flex; justify-content: center; align-items: center;
        cursor: pointer;
    }
    .btn-apply { background: #005bac; color: white; border: none; }
    .btn-check { background: #fff; color: #555; border: 1px solid #ddd; }

    footer {
        padding: 40px 0 100px;
        font-size: 0.8rem;
        text-align: center;
        line-height: 1.6;
    }
    /* Footer 텍스트 색상 및 마진 조정 (보내주신 HTML 기준) */
    .footer-address { margin-bottom: 15px; color: #555; }
    .footer-copyright { margin-bottom: 5px; color: #888; }
    .footer-powered { color: #ccc; font-size: 0.75rem; }

    /* [핵심] PC에서만 보이는 요소 (| 기호 숨기기) */
    .pc-only {
        display: none;
    }

    /* [핵심] 모바일에서 줄 바꿈 (블록 요소로 변경) */
    .m-block {
        display: block;
    }
	.btn-apply{color: white !important;}
}

/* B. 아주 작은 모바일 (360px 이하) 대응 */
@media (max-width: 380px) {
    .section-title { font-size: 1.6rem; } /* 작은 폰에서는 제목 약간 줄임 */
    .board-subject { max-width: 130px; }
    .gallery-grid.col-3, .gallery-grid.center-pc { grid-template-columns: 1fr; }
}
