/**/
.cont{width:100%;max-width:var(--cont);margin:auto auto;}
/* Header (GNB) */
header#masthead {
    position:sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.site-logo {
    height: 100%;
    padding: .8em 0;
}
.admin-bar header#masthead {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar header#masthead {
        top: 46px;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
}

.logo-link {
    font-size: 26px;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.logo-link span { color: var(--primary); }

.gnb-wrapper .nav {
    display: flex;
    gap: 32px;
    margin-bottom:0
}

.nav-item a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 18px;
}
.nav-item a:hover { color: var(--primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Footer */
footer#colophon {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    color: var(--text-main);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(1, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}
.footer-links {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
    display: block;
}
.footer-info-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links h5 {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links ul li a {
    font-size: 14px;
    color: var(--text-muted);
}
.footer-links ul li a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-logo-link img {
    height: 60px;
    margin-bottom: 18px;
}
.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .header-inner { height: 70px; }
    .gnb-wrapper { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

header.entry-header {
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0; /* 패딩 약간 확대 */
    background: var(--pale-blue);
    border-bottom: 1px solid var(--border);
}

.entry-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.entry-breadcrumb a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.entry-breadcrumb a:hover {
    color: var(--primary);
}

.entry-breadcrumb .sep {
    opacity: 0.5;
    font-size: 11px;
}

.entry-breadcrumb svg {
    color: var(--text-muted);
    margin-bottom: 1px;
}

/* Header Logo Styling */
.site-logo { display: flex; align-items: center; }
.main-logo { height: 40px; width: auto; display: block; }
@media (max-width: 768px) { .main-logo { height: 32px; } }

/* Footer Logo Styling */
.footer-main-logo { height: 32px; width: auto; margin-bottom: 20px; opacity: 0.8; filter: grayscale(1) brightness(2); }

/* --- Dynamic GNB Dropdown (WP Menu Compatible) --- */
.nav { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav .menu-item { position: relative; padding: 25px 0; }
.nav .menu-item > a { font-size: 18px; font-weight: 500; letter-spacing:-0.5px;color: var(--text-main); text-decoration: none; transition: var(--transition); }
.nav .menu-item:hover > a { color: var(--secondary); }

/* Dropdown Support */
.menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    min-width: 210px;
    padding: 15px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    z-index: 100;
    border: 1px solid var(--border-light);
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li { padding: 0 !important; }
.sub-menu li a {
    display: block;
    padding: 12px 25px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.sub-menu li a:hover {
    background: var(--bg-pale);
    color: var(--secondary);
    padding-left: 30px;
}