.nml-ba {
    padding: 80px 0;
    background: var(--color-bg);
}

.nml-ba__layout {
    display: grid;
    grid-template-columns: 325px 1fr;
    align-items: start;
    gap: 85px;
}

.nml-ba__sidebar {
    position: sticky;
    top: 100px;
}

.nml-ba__sidebar-title {
    margin: 0 0 24px;
    color: var(--color-text-primary);
}

.nml-ba__cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.nml-ba__cat-item {
    border-bottom: 2px solid #D5DAFA;
}

.nml-ba__cat-item:first-child {
    border-top: 2px solid transparent;
}

.nml-ba__cat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    color: #0B101F;
    text-align: left;
    transition: all 0.3s;
    height: 66px;
}

.nml-ba__cat-item:hover .nml-ba__cat-btn {
    color: #303D60;
}

.nml-ba__cat-item:hover {
    border-bottom: 2px solid #889CF1;
}

.nml-ba__cat-btn--active {
    border-bottom: 2px solid #FF4171;
    font-weight: 700;
    transition: all 0.3s;
}

.nml-ba__cat-btn--active:hover {
    border-bottom: 2px solid #F1005B;
}

.nml-ba__cat-dot {
    display: none;
    width: 8px;
    height: 8px;
    margin: 8px;
    border-radius: 50%;
    background: #FF4171;
    flex-shrink: 0;
    transition: all 0.3s;
}

.nml-ba__cat-btn--active:hover .nml-ba__cat-dot {
    background: #F1005B;
}

.nml-ba__cat-btn--active .nml-ba__cat-dot {
    display: block;
}

.nml-ba__cat-btn--active::after {
    display: none;
}

.nml-ba__cat-item:has(.nml-ba__cat-btn--active) {
    border-bottom-color: #F1005B;
}

.nml-ba__filter-arrow,
.nml-ba__filter-clear {
    flex-shrink: 0;
    display: block;
}

.nml-ba__filter-arrow--hidden,
.nml-ba__filter-clear--hidden {
    display: none;
}

.nml-ba__filter-trigger {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #8A9BCF;
    cursor: pointer;
    gap: 8px;
}

.nml-ba__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.nml-ba__card {
    display: flex;
    flex-direction: column;
    border: 1px solid #D5DAFA;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(76, 131, 243, 0.2);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.3s;
}

.nml-ba__card:hover {
    border-color: #889CF1;
    box-shadow: 0 2px 4px rgba(76, 131, 243, 0.24);
}

.nml-ba__thumb {
    width: 100%;
    height: 232px;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid var(--color-line-light);
}

.nml-ba__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nml-ba__card-body {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 8px;
}

.nml-ba__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nml-ba__date {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.nml-ba__cat-badge {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 8px;
    background: rgba(255, 65, 113, 0.04);
    border: 1px solid #FF4171;
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--color-accent);
}

.nml-ba__card-title {
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
}

.nml-ba__card:hover .nml-ba__card-title {
    color: #162F6F;
    text-decoration-line: underline;
}

.nml-ba__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nml-ba__card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.nml-ba__author {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.nml-ba__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nml-ba__author-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #303D60;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nml-ba__sep {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nml-ba__read-time {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #303D60;
    white-space: nowrap;
}

.nml-ba__load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.nml-ba__load-more {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: rgba(22, 47, 111, 0.04);
    border: 1px solid #D5DAFA;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #162F6F;
    cursor: pointer;
    transition: all 0.3s;
}

.nml-ba__load-more:hover {
    background: #F5F6FA;
    border: 1px solid #889CF1;
}

.nml-ba__load-more:active {
    background: #EEF0FD;
    border: 1px solid #6281EC;
}

.nml-ba__load-more:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.nml-ba__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 16, 31, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nml-ba__overlay--visible {
    opacity: 1;
}

.nml-ba__drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 90dvh;
    overflow-y: auto;
}

.nml-ba__drawer--open {
    transform: translateY(0);
}

.nml-ba__drawer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 15px;
    position: relative;
}

.nml-ba__drawer-header:after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #D5DAFA;
    border-radius: 99px;
}

.nml-ba__drawer-title {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nml-ba__drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 8px;
    position: absolute;
    left: 20px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.nml-ba__drawer-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
    position: relative;
}

.nml-ba__drawer-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #8A9BCF;
    cursor: pointer;
    gap: 8px;
    transition: border-color 0.2s;
}

.nml-ba__drawer-select[aria-expanded="true"] {
    border-color: var(--color-line-blue);
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #8A9BCF;
}

.nml-ba__drawer-select svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nml-ba__drawer-select[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nml-ba__drawer-dropdown {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.nml-ba__drawer-dropdown--open {
    display: flex;
}

.nml-ba__drawer-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid #D5DAFA;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #0B101F;
    cursor: pointer;
    transition: all 0.3s;
}

.nml-ba__drawer-option:hover {
    background: rgba(22, 47, 111, 0.08);
    border: 1px solid #D5DAFA;
}

.nml-ba__drawer-option--selected {
    background: rgba(22, 47, 111, 0.08);
    border: 1px solid #D5DAFA;
}

.nml-ba__drawer-check {
    flex-shrink: 0;
    opacity: 0;
    color: var(--color-primary);
}

.nml-ba__drawer-option--selected .nml-ba__drawer-check {
    opacity: 1;
}

.nml-ba__drawer-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 0;
    padding: 10px 20px;
    border-top: 1px solid var(--color-line);
}

.nml-ba__drawer-cancel,
.nml-ba__drawer-apply {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    transition: all 0.3s;
}

.nml-ba__drawer-cancel {
    background: rgba(22, 47, 111, 0.04);
    border: 1px solid #D5DAFA;
    color: #162F6F;
}

.nml-ba__drawer-cancel:hover {
    background: #F5F6FA;
    border: 1px solid #889CF1;
}

.nml-ba__drawer-cancel:active {
    background: #F5F6FA;
    border: 1px solid #889CF1;
}

.nml-ba__drawer-apply {
    background: #162F6F;
    border: 1px solid #0F204D;
    color: #FFFFFF;
}

.nml-ba__drawer-apply:hover {
    background: #0F204D;
    border: 1px solid #040F2D;
}

.nml-ba__sticky-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    padding: 12px 24px;
    border-bottom: 1px solid var(--color-line);
    margin: 0 -24px;
    box-shadow: 0 2px 8px rgba(11, 16, 31, 0.06);
}

@media (max-width: 1024px) {
    .nml-ba__layout {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nml-ba {
        padding: 0 0 40px;
    }

    .nml-ba__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nml-ba__cats {
        display: none;
    }

    .nml-ba__sidebar {
        position: sticky;
        background: #FFF;
        padding: 40px 0 16px;
        top: 64px;
    }

    .nml-ba__sidebar:after{
        content: '';
        position: absolute;
        bottom: 0;
        left: -20px;
        right: 0;
        height: 1px;
        background: #D5DAFA;
        width: calc(100% + 40px);
        box-shadow: 0px 2px 6px 0px #4C83F314;
    }

    .nml-ba__filter-trigger {
        display: flex;
    }

    .nml-ba__overlay {
        display: block;
        pointer-events: none;
    }

    .nml-ba__overlay--visible {
        pointer-events: auto;
    }

    .nml-ba__drawer {
        display: flex;
        flex-direction: column;
    }

    .nml-ba__sticky-bar {
        display: flex;
    }

    .nml-ba__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nml-ba__sidebar-title {
        margin-bottom: 16px;
        font-size: 18px;
        line-height: 26px;
    }

    .nml-ba__load-more {
        width: 100%;
    }

    .nml-ba__card {
        border-radius: 8px;
    }

    .nml-ba__card-body {
        padding: 12px 16px 16px;
    }

    .nml-ba__card-title {
        margin: 2px 0 0 0;
    }

    .nml-ba__load-more-wrap {
        margin-top: 24px;
    }

    .nml-ba__load-more {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 12px 16px;
        background: #FFFFFF;
        border: 1px solid #162F6F;
        border-radius: 8px;
        font-size: 14px;
        line-height: 20px;
        font-weight: 700;
        color: #162F6F;
        cursor: pointer;
        transition: all 0.3s;
    }

    .nml-ba__load-more:hover {
        background: rgba(22, 47, 111, 0.04);
        border: 1px solid #0F204D;
        color: #040F2D;
    }

    .nml-ba__load-more:active {
        background: rgba(22, 47, 111, 0.04);
        border: 1px solid #0F204D;
        color: #040F2D;
    }

    .nml-ba__load-more:disabled {
        opacity: 0.4;
        pointer-events: none;
    }
}
