@import url(http://fonts.googleapis.com/earlyaccess/nanumgothic.css);

#wrap { width:100%; font-family:'Nanum Gothic'; font-size:13px; }
#header,#location p,#container { width:1068px; margin:0 auto; }

#header #logo { float:left; padding:23px 0 25px; width:186px; }
#header #gnb { float:right; margin:45px 0 39px; font-size:1.25em; font-weight:bold; }
#header #gnb li { float:left; margin-left:43px; }
#header #gnb li a { color:#000; }
#header:after { content:''; display:block; clear:both; }

#location { height:43px; background:url('image/bg_location.gif') repeat-x; }
#location p img { vertical-align:middle;}
#location p a { margin:14px 10px; color:#454545; vertical-align:middle;}

#container { padding-top:30px; }

#lnb { float:left; }
#lnb ul { width:177px; border-top:2px solid #656552; border-bottom:2px solid #656552; background-color:#f3f3e7; font-size:0.93em; }
#lnb ul li { border-bottom:1px solid #dbdbcb; font-weight:bold; }
#lnb ul li.last { border-bottom:0; }
#lnb ul li a { padding:18px 0 18px 15px; display:block; color:#656565; }
#lnb ul li.current a { color:#18aecb; }
#lnb ul li ul { border:0; background-color:#b4b4a4; }
#lnb ul li ul li { border-bottom:1px solid #9b9b81; }
#lnb ul li ul li a { color:#fff; }
#lnb ul li.current ul li a { padding-left:25px; color:#fff; }
#lnb ul li ul li.current a { color:#ffea00; }

#content { float:left; margin-left:50px; width:841px; }
#content h1 { border-bottom:2px solid #8c8c8c; margin-bottom:34px; padding-bottom:26px; font-size:2.2em; font-weight:bold; }

#container:after { content:''; display:block; clear:both; }

#footer { border-top:1px solid #c2c2c2; margin-top:50px; padding-top:32px; color:#145565; text-align:center; }


sub, sup {
	top: -0.3em;
	font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;

	}

/* Family Site Dropdown - Independent CSS */
.family-site-dropdown {
    position: relative;
}

.family-site-dropdown > a {
    cursor: pointer;
    display: block;
    position: relative;
    padding-right: 20px;
}

/* Styled dropdown arrow */
.dropdown-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    transition: all 0.3s ease;
}

.family-site-dropdown:hover .dropdown-arrow {
    border-top-color: #18aecb;
    transform: translateY(-50%) rotate(180deg);
}

.family-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 19px); /* Adjusted to align with location bar */
    right: -20px; /* Reduced right margin */
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border: 1px solid #e0e0e0;
    z-index: 1000;
}

/* Add invisible bridge to prevent dropdown from closing */
.family-dropdown-content::before {
    content: '';
    position: absolute;
    top: -19px;
    left: 0;
    right: 0;
    height: 19px;
}

.family-site-dropdown:hover .family-dropdown-content {
    display: block;
}

.dropdown-section {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.family-dropdown-content a {
    display: block;
    color: #666 !important;
    padding: 8px 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: normal !important;
    transition: all 0.3s ease;
}

.family-dropdown-content a:hover {
    color: #18aecb !important;
    padding-left: 10px;
}
