/* Section 1: Header */
.edu-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f8fc;
    color: #0b1f3a;
}

.edu-header {
    background-color: #fff;
    border-bottom: 1px solid #e6edf5;
    box-shadow: 0 4px 18px rgba(11, 31, 58, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.edu-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    height: 64px;
    gap: 22px;
}

.edu-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0b1f3a;
}

.edu-logo-img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.edu-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.edu-logo-text strong {
    color: #0b1f3a;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.edu-logo-text em {
    margin-top: 4px;
    color: #607086;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.edu-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.edu-nav-list li {
    margin: 0 8px;
    position: relative;
}

.edu-nav-list a {
    text-decoration: none;
    color: #17294a;
    font-size: 14px;
    font-weight: 800;
    transition: color 0.3s;
    padding: 23px 0 19px;
    display: block;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.edu-nav-list li.current-menu-item a,
.edu-nav-list li.active a,
.edu-nav-list a:hover {
    color: #0b63f6;
    border-bottom-color: #0b63f6;
}

.edu-header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.edu-header-auth {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.edu-header-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 48px;
}

.edu-search-toggle,
.edu-search-submit,
.edu-search-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.edu-search-toggle {
    height: 34px;
    padding: 0 2px;
    border-radius: 5px;
}

.edu-search-toggle:hover,
.edu-search-toggle:focus,
.edu-search-submit:hover,
.edu-search-submit:focus,
.edu-search-cancel:hover,
.edu-search-cancel:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}

.edu-search-toggle:hover,
.edu-search-cancel:hover {
    color: #145df4;
}

.edu-search-panel {
    position: absolute;
    top: 50%;
    right: 0;
    display: none;
    align-items: center;
    width: 262px;
    height: 38px;
    transform: translateY(-50%);
    background: transparent;
    z-index: 1010;
}

.edu-header-search.is-open {
    min-width: 48px;
}

.edu-header-search.is-open .edu-search-toggle {
    display: none;
}

.edu-header-search.is-open .edu-search-panel {
    display: flex;
}

.edu-search-panel input {
    width: 220px;
    min-width: 0;
    height: 38px;
    padding: 0 42px 0 14px;
    border: 1px solid #145df4;
    border-radius: 5px;
    color: #17294a;
    font-size: 14px;
    outline: none;
}

.edu-search-submit {
    position: absolute;
    left: 178px;
    width: 38px;
    height: 38px;
    color: #64748b;
}

.edu-search-cancel {
    height: 38px;
    padding: 0 0 0 10px;
}

.edu-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.edu-utility-link:hover {
    color: #145df4;
    text-decoration: none;
}

.edu-user-menu {
    position: relative;
}

.edu-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #17294a;
    padding: 4px 0 4px 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    max-width: 160px;
    border-radius: 18px;
    box-shadow: none;
    transition: background-color .16s ease, color .16s ease;
}

.edu-user-trigger:hover,
.edu-user-trigger:focus {
    background: #f6f9ff;
    color: #17294a;
    box-shadow: none;
    outline: none;
}

.edu-user-trigger img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #eef4ff;
}

.edu-user-trigger span {
    display: inline-block;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edu-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 238px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 1002;
}

.edu-user-card {
    display: flex;
    gap: 10px;
    padding: 10px 9px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #edf2f7;
}

.edu-user-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.edu-user-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.edu-user-card strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edu-user-card span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
}

.edu-user-menu:hover .edu-user-dropdown,
.edu-user-menu:focus-within .edu-user-dropdown,
.edu-user-menu.is-open .edu-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.edu-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 6px;
    padding: 10px 9px;
    color: #17294a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.edu-user-dropdown a:hover {
    background: #f3f7ff;
    color: #145df4;
    text-decoration: none;
}

.edu-user-dropdown i {
    width: 16px;
    text-align: center;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.edu-mobile-actions {
    align-items: center;
    gap: 15px;
}

.edu-action-icon {
    color: #0b63f6;
    font-size: 20px;
    text-decoration: none;
}

.edu-menu-toggle {
    background: none;
    border: none;
    color: #0b63f6;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.edu-mobile-menu {
    display: none;
    background-color: #fff;
    border-top: 1px solid #eee;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
}

.edu-mobile-menu.active {
    display: block;
}

.edu-mobile-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f7;
}

.edu-mobile-search input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d7e2f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.edu-mobile-search button {
    border: 0;
    border-radius: 6px;
    background: #145df4;
    color: #fff;
}

.edu-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.edu-mobile-nav-list li {
    border-bottom: 1px solid #f5f5f5;
}

.edu-mobile-nav-list a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.edu-mobile-nav-list li.current-menu-item a,
.edu-mobile-nav-list a:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

.edu-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    color: #145df4;
    font-size: 14px;
    font-weight: 800;
    min-width: 74px;
    height: 34px;
    padding: 0 17px;
    border: 1px solid #145df4;
    border-radius: 5px;
    transition: all 0.3s;
    background: #fff;
}

.edu-btn-login:hover {
    background-color: #145df4;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .edu-logo-text em {
        display: none;
    }

    .edu-nav-list li {
        margin: 0 6px;
    }

    .edu-nav-list a {
        font-size: 13px;
    }

    .edu-header-auth {
        gap: 10px;
    }

    .edu-utility-link {
        font-size: 13px;
    }

    .edu-search-toggle,
    .edu-search-cancel {
        font-size: 13px;
    }

    .edu-search-panel,
    .edu-header-search.is-open {
        width: 226px;
        min-width: 48px;
    }

    .edu-search-panel input {
        width: 184px;
    }

    .edu-search-submit {
        left: 142px;
    }
}

@media (max-width: 992px) {
    .edu-header-nav, .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }

    .edu-header-container {
        height: 68px;
    }

    .edu-logo-text strong {
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .edu-header-container {
        padding: 0 14px;
        gap: 12px;
    }

    .edu-logo-img {
        max-height: 34px;
    }

    .edu-logo-text {
        
    }
}
