

.nts-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-dark);
    text-transform: uppercase;
}

.nts-level-badge.level-co-ban { background: rgba(var(--secondary-rgb), 0.1); color: #1d7a34; }
.nts-level-badge.level-nang-cao { background: rgba(var(--primary-rgb), 0.1); color: var(--primary-dark); }
.nts-level-badge.level-chuyen-gia { background: rgba(224, 168, 0, 0.12); color: #a67300; }

.nts-rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.nts-rating-stars {
    position: relative;
    display: inline-flex;
    color: #e0e0e0;
}

.nts-rating-stars__fg {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    overflow: hidden;
    width: var(--nts-rating-percent, 0%);
    color: #f5a623;
}

.nts-rating-stars svg { flex: 0 0 auto; fill: currentColor; }

.nts-rating-count {
    font-size: 13px;
    color: #666;
}

.nts-star-picker {
    display: inline-flex;
    gap: 4px;
}

.nts-star-picker .nts-star {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #d8d8d8;
    transition: color .15s ease, transform .15s ease;
}

.nts-star-picker .nts-star:hover,
.nts-star-picker .nts-star.is-active {
    color: #f5a623;
    transform: scale(1.1);
}

.nts-gated-teaser {
    position: relative;
    max-height: 620px;
    overflow: hidden;
    margin-bottom: -1px;
}

.nts-gated-teaser::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.nts-gated-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--secondary-rgb), 0.05));
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    margin: 30px 0;
}

.nts-gated-card__icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nts-gated-card__body { flex: 1 1 auto; }

.nts-gated-card__title {
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 4px;
}

.nts-gated-card__desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px;
}

.nts-gated-card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--secondary);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s ease;
}

.nts-gated-card__button:hover { background: #1d7a34; }

@media screen and (max-width: 549px) {
    .nts-gated-card { flex-direction: column; text-align: center; }
}

.nts-gated-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 25, 45, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nts-gated-modal.is-open { display: flex; }

.nts-gated-modal__panel {
    background: #fff;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    padding: 30px;
    position: relative;
}

.nts-gated-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.nts-gated-modal__title {
    margin: 0 0 6px;
    color: var(--primary-dark);
}

.nts-gated-modal__desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

.nts-gated-modal__field { margin-bottom: 14px; }

.nts-gated-modal__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.nts-gated-modal__field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.nts-gated-modal__submit {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 6px;
}

.nts-gated-modal__submit:disabled { opacity: .6; cursor: not-allowed; }

.nts-gated-modal__link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 10px;
    padding: 0;
}

.nts-gated-modal__message {
    font-size: 13px;
    color: #1d7a34;
    min-height: 18px;
    margin-top: 12px;
}

.nts-gated-modal__message.is-error { color: #c0392b; }

.nts-gated-modal__download { margin-top: 4px; }

.nts-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.nts-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.nts-article-card__thumb { position: relative; }
.nts-article-card__thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }

.nts-article-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }

.nts-article-card__title {
    font-size: 17px;
    margin: 10px 0 8px;
    color: var(--primary-dark);
}

.nts-article-card__excerpt { font-size: 14px; color: #666; flex: 1; }

.nts-article-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.nts-article-filter a {
    padding: 8px 16px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #444;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.nts-article-filter a:hover,
.nts-article-filter a.is-active {
    background: var(--primary);
    color: #fff;
}
