/* ==========================================================================
   메뉴 통합 스타일 (menu.css)
   ========================================================================== */

/* 1. PC TOP MEGA MENU BUTTON & PANEL */
.knu-mega-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    background: #f4f6f9;
    border: 1px solid #dcdfe6;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-right: 12px;
    text-decoration: none;
}
.knu-mega-toggle-btn:hover,
.knu-mega-toggle-btn.active {
    background: #e6005c;
    color: #fff;
    border-color: #e6005c;
    box-shadow: 0 4px 15px rgba(230, 0, 92, 0.25);
}
@media (max-width: 1024px) {
    .knu-mega-toggle-btn { display: none; }
}

.knu-mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #e6005c;
    border-bottom: 1px solid #e5e8f0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 40px 0;
}
.knu-mega-panel.show {
    display: block;
    animation: megaFadeIn 0.25s ease forwards;
}
@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.knu-mega-inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
    position: relative;
}
.knu-mega-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}
.knu-mega-col {
    border-right: 1px solid #f0f2f6;
    padding-right: 20px;
}
.knu-mega-col:last-child {
    border-right: none;
    padding-right: 0;
}
.knu-mega-title {
    font-size: 19px;
    font-weight: 850;
    color: #111;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #222;
    display: block;
    text-decoration: none;
}
.knu-mega-title:hover { color: #e6005c; }
.knu-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.knu-mega-list li {
    margin-bottom: 10px;
}
.knu-mega-list li a {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: all 0.2s;
}
.knu-mega-list li a:hover {
    color: #e6005c;
    transform: translateX(4px);
}
.knu-mega-close {
    position: absolute;
    top: -25px;
    right: 30px;
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.knu-mega-close:hover { background: #e6005c; }

/* 2. BANNER BOTTOM ALL-SERVICE MENU (menu_all.php) */
.knu-all-service-section {
    background: #f8f9fc;
    border-bottom: 1px solid #e8ecf2;
    padding: 60px 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}
@media (max-width: 768px) {
    .knu-all-service-section { padding: 40px 0; }
}
.knu-all-service-inner {
    max-width: 1440px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.knu-all-service-header {
    text-align: center;
    margin-bottom: 40px;
}
.knu-all-service-badge {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 800;
    color: #e6005c;
    background: rgba(230, 0, 92, 0.08);
    border-radius: 50px;
    margin-bottom: 10px;
}
.knu-all-service-heading {
    font-size: 32px;
    font-weight: 850;
    color: #111;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}
@media (max-width: 768px) {
    .knu-all-service-heading { font-size: 24px; }
}
.knu-all-service-sub {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Service Card Grid */
.knu-service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
@media (min-width: 768px) and (max-width: 1199px) {
    .knu-service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .knu-service-grid { display: flex; flex-direction: column; gap: 14px; }
}

.knu-service-card {
    background: #ffffff;
    border: 1px solid #dde3ed;
    border-radius: 20px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.knu-service-card:hover {
    transform: translateY(-6px);
    border-color: #e6005c;
    box-shadow: 0 15px 35px rgba(230, 0, 92, 0.08);
}
.knu-card-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #111;
}
.knu-service-card:hover .knu-card-head {
    border-color: #e6005c;
}
.knu-card-title {
    font-size: 22px;
    font-weight: 850;
    color: #111;
    margin: 0 0 6px;
    display: block;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.knu-service-card:hover .knu-card-title {
    color: #e6005c;
}
.knu-card-subtext {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.knu-card-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    flex-grow: 1;
}
.knu-card-list li {
    border-bottom: 1px solid #f2f4f8;
}
.knu-card-list li:last-child {
    border-bottom: none;
}
.knu-card-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 650;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
}
.knu-card-list li a:hover {
    color: #e6005c;
    padding-left: 6px;
}
.knu-card-list li a::after {
    content: "›";
    font-size: 18px;
    color: #ccc;
    font-weight: 400;
}
.knu-card-list li a:hover::after {
    color: #e6005c;
}

.knu-card-footer {
    padding-top: 14px;
    border-top: 1px dashed #e2e6f0;
    text-align: center;
}
.knu-card-more-btn {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 750;
    color: #4a5568;
    background: #f4f6f9;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.knu-service-card:hover .knu-card-more-btn {
    background: #e6005c;
    color: #ffffff;
}

/* 3. MOBILE ACCORDION STYLES FOR MOBILE MENU */
@media screen and (max-width: 1199.98px) {
    .knu-mobile-accordion-item {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }
    .knu-mobile-accordion-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        font-size: 15.5px;
        font-weight: 800;
        color: #0f172a;
        cursor: pointer;
        min-height: 44px;
        line-height: 1.35;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .knu-mobile-accordion-item.active .knu-mobile-accordion-head {
        color: #2563eb;
        background: #f8fafc;
    }
    .knu-mobile-accordion-icon {
        font-size: 18px;
        color: #2563eb;
        font-weight: 800;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        flex-shrink: 0;
        margin-left: 8px;
    }
    .knu-mobile-accordion-item.active .knu-mobile-accordion-icon {
        transform: rotate(45deg);
    }
    .knu-mobile-accordion-body {
        display: none;
        padding: 10px 12px 12px;
        border-top: 1px dashed #e2e8f0;
        background: #f8fafc;
    }
    .knu-mobile-accordion-item.active .knu-mobile-accordion-body {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .knu-mobile-accordion-body a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        background: #fff;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 650;
        color: #334155;
        text-decoration: none;
        text-align: center;
        line-height: 1.35;
        word-break: keep-all;
        transition: all 0.2s ease;
        min-height: 36px;
    }
    .knu-mobile-accordion-body a:hover,
    .knu-mobile-accordion-body a:active {
        background: #eff6ff;
        border-color: #2563eb;
        color: #1d4ed8;
    }
}
