.ncg-topbar-wrapper {
    width: 1200px;
    margin: 0 auto;
}

.sidebar {
    margin: -1px 0;
    width: 180px;
}

.sidebar h3 {
    font-size: 14px;
    text-align: center;
    background: #f6f6f6;
    width: 100%;
    padding: 6px 0;
    border-top: 2px solid #1e8efe;
    border-bottom: 1px solid #1e8efe;
}

.sidebar ul .type-item {
    width: 100%;
    font-size: 14px;
    padding: 12px 0;
    text-align: center;
    background: #f6f6f6;
    position: relative;
}

.sidebar ul .type-item:hover {
    background: white;
}

.sidebar ul .type-item.selected {
    background: white;
    border-bottom: 1px solid #1e8efe;
    border-top: 1px solid #1e8efe;
    color: #1e8efe;
}

.sidebar ul .type-item.selected.all {
    border-top: none;
}

.sidebar ul .type-item.selected .active-tag {
    position: absolute;
    width: 32px;
    height: 32px;
    background: #5ea0ff;
    right: -16px;
    top: 6px;
    transform: rotate(-45deg);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.sidebar ul a {
    color: #575757;
    text-decoration: none;
}

.program-container {
    flex: 1;
    margin-top: -1px;
    margin-left: 2px;
    border-top: 2px solid #1e8efe;
    background: #f6f6f6;
}

.filter-bar {
    padding: 2px 8px;
    border-bottom: 1px solid #1e8efe;
}

.sort-bar {
    font-size: 13px;
}

.sort-bar .sort-item i {
    background: url(../images/sort-arrow1.png);
    background-size: contain;
    width: 8px;
    height: 12px;
    vertical-align: middle;
    display: inline-block;
    margin-right: 4px;
}

.sort-bar .sort-item {
    color: inherit;
    text-decoration: none;
    margin-right: 6px;
}

.sort-bar .sort-item:hover,
.sort-bar .sort-item.selected{
    color: #5ea0ff;
}

.sort-bar .sort-item.selected i,
.sort-bar .sort-item:hover i {
    background: url(../images/sort-arrow.png);
    background-size: contain;
    width: 8px;
    height: 12px;
}

.sort-bar .sort-item.selected.desc i {
    transform: rotate(180deg);
}

.pagination-bar {
    padding: 4px 8px;
    border-bottom: 1px solid #5ea0ff;
    border-top: 1px solid #5ea0ff;
    display: flex;
    justify-content: flex-end;
}

.pagination-bar .pagination {
    margin: 0;
}

.program-list {
    display: grid;
    padding: 8px;
    grid-template-columns: auto auto auto;
    gap: 12px;
}

.program-card {
    border-radius: 8px;
    background: white;
    padding: 8px;
    display: flex;
    align-items: center;
    column-gap: 12px;
    height: 110px;
}

.program-card .p-name:hover {
    color: #5ea0ff;
}

.program-img {
    width: 120px;
    height: 100%;
    border-radius: 6px;
}

.program-view-img {
    width: 180px;
    border-radius: 8px;
}

.program-detail .program-img-container {
    width: 240px;
    height: 200px;
}

.program-detail .program-info {
    padding: 8px 0 8px 24px;
    font-size: 14px;
}

.program-description {
    border-top: 1px solid #5ea0ff;
}

.dialog-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(115, 115, 115, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
}

.purchase-dialog {
    width: 400px;
    height: 390px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.purchase-dialog h3 {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}
.purchase-dialog .qr-img-container {
    width: 300px;
    height: 300px;
    margin: 10px auto;
}
.purchase-dialog .qr-img-container img {
    width: 100%;
    height: 100%;
}