@charset "utf-8";

/*========================================================================
패밀리 사이트 (상단 바)
========================================================================*/
#topLine { 
    position:relative; 
    width:100%; 
    background:#fff; /* 흰색 배경 */
    border-bottom:1px solid #ddd;
}

#header {
    margin-top:40px;
}

.family-site-wrap { 
    /* max-width 제거 또는 100%로 변경하여 왼쪽 정렬 강화 */
    width:100%;
    padding:0 40px; /* 좌우 여백 */
    box-sizing:border-box;
    height:40px; 
    display:flex; 
    align-items:center; 
    justify-content:space-between; /* 양쪽 정렬로 변경 */
    background:#000;
}

.family-site-list { 
    display:flex; 
    gap:30px; 
    margin:0; 
    padding:0; 
    list-style:none; 
}

.family-site-member {
    display: none; /* 기본 숨김 (Digilab에서만 노출) */
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.family-site-member li a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.family-site-member li a:hover {
    opacity: 1;
}

.family-site-list li { 
    position:relative; 
    display:flex; 
    align-items:center; 
}

.family-site-list li a { 
    color:#ffffff; 
    font-size:13px; 
    font-weight:400; 
    text-decoration:none; 
    transition:all 0.3s;
    letter-spacing:-0.5px;
    opacity:0.8;
}

/* Hover 효과 */
.family-site-list li a:hover { 
    color:#ffffff; 
    opacity:1;
}

/* 활성화(Active) 상태 디자인 */
.family-site-list li.active a { 
    color:#ffffff; 
    font-weight:700; 
    opacity:1;
}

/* 활성화된 메뉴 하단 포인트 */
.family-site-list li.active::after {
    content:'';
    position:absolute;
    bottom:-12px;
    left:0;
    width:100%;
    height:4px;
    background:#ffffff;
}

/* 비활성화 메뉴 호버 시 하단 포인트 (반투명) */
.family-site-list li:not(.active):hover::after {
    content:'';
    position:absolute;
    bottom:-12px;
    left:0;
    width:100%;
    height:4px;
    background:rgba(255,255,255,0.5);
}

@media all and (max-width:768px) {
    .family-site-wrap { padding:0 15px; }
    .family-site-list { gap:20px; }
    .family-site-list li a { font-size:12px; }
}

/*========================================================================
Digilab 테마 (흰색 배경)
========================================================================*/
#topLine.theme-white .family-site-wrap {
    background: #ffffff;
}

#topLine.theme-white .family-site-list li a {
    color: #333333;
    font-weight: 500;
}

#topLine.theme-white .family-site-list li.active a {
    color: var(--point-color);
    font-weight: 700;
}

#topLine.theme-white .family-site-list li.active::after {
    background: var(--point-color);
}

#topLine.theme-white .family-site-list li:not(.active):hover::after {
    background: rgba(0, 0, 0, 0.1);
}

#topLine.theme-white .family-site-member {
    display: flex;
}

#topLine.theme-white .family-site-member li a {
    color: #666666;
    font-weight: 500;
}

#topLine.theme-white .family-site-member li a:hover {
    color: var(--point-color);
}
