/* Layout Styles */

/* Wrapper */
#wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
#header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

/* Logo Area */
.logo_area {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site_id {
    margin: 0;
}

.site_id img {
    height: 40px;
    width: auto;
}

/* Search */
.srch_lnb {
    flex: 1;
    max-width: 500px;
}

.srch_field {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 25px;
    padding: 8px 20px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.srch_field:focus-within {
    border-color: #3498db;
}

.srch_label {
    flex: 1;
    display: flex;
    align-items: center;
}

.srch_label input {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 16px;
    width: 100%;
}

.srch_label input:focus {
    outline: none;
    box-shadow: none;
}

.btn_srch {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn_srch:hover {
    background-color: #2980b9;
}

/* Mobile Menu Button */
.btn_lnb {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 24px;
}

/* Navigation */
#mainHeaderMenuArea {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    position: relative;
    min-height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.depth01 {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 70px;
}

.depth01 > li {
    position: relative;
    display: flex;
    align-items: center;
}

.depth01 > li > a {
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.5;
    height: 70px;
    border-bottom: 3px solid transparent;
}

.depth01 > li > a:hover,
.depth01 > li:hover > a,
.depth01 > li.act > a {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #fff;
    color: #fff;
    font-weight: 600;
}

/* Dropdown Menu */
.depth02 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-top: 4px solid #667eea;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    overflow: hidden;
}

.depth01 > li:hover .depth02 {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.depth02 li {
    margin: 0;
    padding: 0;
}

.depth02 li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    line-height: 1.5;
    min-height: 48px;
    position: relative;
}

.depth02 li:last-child a {
    border-bottom: none;
}

.depth02 li a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding-left: 2rem;
    font-weight: 500;
}

.depth02 li a:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
}

/* New Tab 스타일 */
.depth02 li.new_tab a::after {
    content: "새창";
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    background-color: #e74c3c;
    color: #fff;
    font-size: 10px;
    border-radius: 3px;
    font-weight: 600;
}

/* 긴 메뉴 항목을 위한 스타일 */
.depth02 {
    max-width: 300px;
    white-space: normal;
}

.depth02 li a {
    white-space: normal;
    word-break: keep-all;
}

/* Main Container */
#container {
    flex: 1;
    margin-top: 0;
}

/* Footer */
#footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: auto;
}

.footer_top {
    padding: 3rem 0;
    border-bottom: 1px solid #34495e;
}

.footer_top .inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.company_info h3 {
    color: #3498db;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.company_info address {
    font-style: normal;
    line-height: 1.8;
    color: #bdc3c7;
}

.contact_info dt {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.contact_info dd {
    color: #bdc3c7;
    margin-bottom: 0.25rem;
}

.footer_links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer_links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer_links a:hover {
    color: #3498db;
}

.footer_bottom {
    padding: 1.5rem 0;
}

.bot {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.certify {
    flex: 1;
}

.certify ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.certify ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.certify ul li a:hover {
    color: #3498db;
}

.certify ul li span {
    font-weight: 600;
}

.certify address {
    font-style: normal;
    color: #95a5a6;
    margin-bottom: 0.5rem;
    font-size: 14px;
    line-height: 1.6;
}

.certify .copy {
    color: #95a5a6;
    margin: 0;
    font-size: 14px;
}

.agency {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.agency a {
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.agency a:hover {
    opacity: 1;
}

.agency img {
    height: 40px;
    width: auto;
}

/* Quick Set Menu */
.quick_set {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-top: 3px solid #667eea;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 600px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.quick_set.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick_set .tit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.btn_lnb_close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn_lnb_close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.quicListAddFrm {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
}

.cur_quick dt {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.cur_quick .numSet {
    display: inline-block;
    margin: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e1e8ff;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.cur_quick .numSet.fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 현재 퀵메뉴 아이콘별 색상 */
.cur_quick .numSet.ico3 {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.cur_quick .numSet.ico4 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.cur_quick .numSet.ico10 {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
}

.cur_quick .numSet.ico11 {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.cur_quick .numSet.ico12 {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.cur_quick .numSet strong {
    font-size: 15px;
    font-weight: 600;
}

.btn_del {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: none;
}

.cur_quick .numSet.fill .btn_del {
    display: block;
}

.whole_quick {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.wq_tit {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #667eea;
    position: relative;
}

.wq_tit::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.whole_quick dl {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.whole_quick dl:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 아이콘별 색상 구분 */
.whole_quick dl.ico1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px 12px 0 0;
}

.whole_quick dl.ico2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 12px 12px 0 0;
}

.whole_quick dl.ico3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 12px 12px 0 0;
}

.whole_quick dl.ico4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 12px 12px 0 0;
}

.whole_quick dl.ico5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-radius: 12px 12px 0 0;
}

.whole_quick dl.ico6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    border-radius: 12px 12px 0 0;
}

.whole_quick dt {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e1e8ff;
}

.whole_quick dd {
    margin-bottom: 0.5rem;
}

.whole_quick label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #555;
}

.whole_quick label:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.whole_quick input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.whole_quick input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.q_btn_box {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e8ff;
}

.q_btn_box button {
    padding: 1rem 2rem;
    margin: 0 0.75rem;
    border: 2px solid #667eea;
    border-radius: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    min-width: 120px;
}

.q_btn_box button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.q_btn_box button.submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

.q_btn_box button.submit:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}


.q_btn_box button.submit {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.q_btn_box button:hover {
    background-color: #f8f9fa;
}

.q_btn_box button.submit:hover {
    background-color: #2980b9;
}

/* LNB Bottom */
.lnb_bot {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lnb_bot_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lnb_bot_inner .right_box {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.lnb_bot_inner a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.lnb_bot_inner a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lnb_bot_inner a.lnk_myzeus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.lnb_bot_inner a.lnk_myzeus:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Mobile hidden elements */
.m_none {
    display: inline-block;
}

/* Large Desktop */
@media (min-width: 1400px) {
    .depth01 > li > a {
        padding: 0 3.5rem;
        font-size: 17px;
        height: 80px;
    }
    
    .depth02 {
        min-width: 320px;
    }
    
    .depth02 li a {
        padding: 1.25rem 2rem;
        font-size: 16px;
        min-height: 52px;
    }
    
    #mainHeaderMenuArea {
        min-height: 80px;
    }
    
    .depth01 {
        height: 80px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    #header .inner {
        padding: 1rem 15px;
    }
    
    .logo_area {
        gap: 1rem;
    }
    
    .depth01 {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .depth01 > li > a {
        padding: 0 1.5rem;
        font-size: 15px;
        height: 60px;
    }
    
    #mainHeaderMenuArea {
        min-height: 60px;
    }
    
    .depth01 {
        height: 60px;
    }
    
    .footer_top .inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .btn_lnb {
        display: block;
    }
    
    .srch_lnb {
        display: none;
    }
    
    #mainHeaderMenuArea {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    #mainHeaderMenuArea.active {
        display: block;
    }
    
    .depth01 {
        flex-direction: column;
    }
    
    .depth01 > li > a {
        padding: 1rem;
        border-bottom: 1px solid #34495e;
    }
    
    .depth02 {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #34495e;
        border-radius: 0;
        border-top: none;
        display: none;
        max-width: none;
        min-width: auto;
        padding: 0;
    }
    
    .depth01 > li.active .depth02 {
        display: block;
    }
    
    .depth02 li a {
        padding: 0.75rem 2rem;
        color: #bdc3c7;
        border-bottom: 1px solid #2c3e50;
        font-size: 14px;
        white-space: normal;
    }
    
    .depth02 li a:hover {
        background-color: #2c3e50;
        padding-left: 2.5rem;
        color: #3498db;
    }
    
    /* 모바일에서 new_tab 스타일 조정 */
    .depth02 li.new_tab a::after {
        font-size: 9px;
        padding: 0.1rem 0.3rem;
    }
    
    .footer_top .inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer_links ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .bot {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .certify ul {
        justify-content: center;
    }
    
    .agency {
        justify-content: center;
    }
    
    .m_none {
        display: none;
    }
    
    /* 모바일 퀵메뉴 설정 */
    .quick_set {
        max-height: 400px;
    }
    
    .quicListAddFrm {
        padding: 1rem;
    }
    
    .cur_quick .numSet {
        margin: 0.25rem;
        padding: 0.4rem 0.8rem;
        font-size: 13px;
    }
    
    .whole_quick dl {
        padding: 0.75rem;
    }
    
    .q_btn_box button {
        padding: 0.6rem 1.2rem;
        font-size: 14px;
    }
    
    .lnb_bot_inner .right_box {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .lnb_bot_inner a {
        font-size: 13px;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    #header .inner {
        padding: 0.75rem 10px;
    }
    
    .site_id img {
        height: 32px;
    }
    
    .footer_top {
        padding: 2rem 0;
    }
    
    .footer_links ul {
        justify-content: center;
    }
}
