/**
 * Novel Tech CMS - Public Styles
 * Version: 1.2.0
 */

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */

.ntcms-clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* ============================================================
   COURSE ARCHIVE PAGE
   ============================================================ */

.ntcms-archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ntcms-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.ntcms-archive-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #111827;
}

.ntcms-archive-header p {
    font-size: 18px;
    color: #6b7280;
}

.ntcms-filter-bar {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ntcms-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ntcms-filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ntcms-filter-btn:hover,
.ntcms-filter-btn.active {
    background: #7c3aed;
    color: #fff;
}

/* ============================================================
   COURSE GRID
   ============================================================ */

.ntcms-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ntcms-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ntcms-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.ntcms-course-thumb {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.ntcms-course-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntcms-course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ntcms-course-badge--free {
    background: #16a34a;
    color: #fff;
}

.ntcms-course-badge--paid {
    background: #7c3aed;
    color: #fff;
}

.ntcms-course-badge--bundle {
    background: #f59e0b;
    color: #fff;
}

.ntcms-course-info {
    padding: 20px;
}

.ntcms-course-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.ntcms-course-title a {
    color: #111827;
    text-decoration: none;
}

.ntcms-course-title a:hover {
    color: #7c3aed;
}

.ntcms-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    font-size: 12px;
    color: #6b7280;
}

.ntcms-course-excerpt {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 12px 0;
}

.ntcms-course-progress {
    margin: 15px 0;
}

.ntcms-progress-bar {
    background: #e5e7eb;
    border-radius: 99px;
    height: 6px;
    overflow: hidden;
}

.ntcms-progress-fill {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    height: 100%;
    border-radius: 99px;
    transition: width 0.3s;
}

.ntcms-progress-text {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

.ntcms-course-footer {
    padding: 15px 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ntcms-course-price {
    font-size: 20px;
    font-weight: 700;
    color: #7c3aed;
}

.ntcms-course-price--free {
    color: #16a34a;
}

.ntcms-course-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: #7c3aed;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.ntcms-course-btn:hover {
    background: #6d28d9;
    color: #fff;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.ntcms-pagination {
    text-align: center;
    margin-top: 40px;
}

.ntcms-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.ntcms-pagination .page-numbers.current {
    background: #7c3aed;
    color: #fff;
}

.ntcms-pagination .page-numbers:hover:not(.current) {
    background: #e5e7eb;
}

/* ============================================================
   SINGLE COURSE PAGE - HERO SECTION
   ============================================================ */

.ntcms-cp-wrap {
    width: 100%;
    max-width: 100%;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #374151;
    background: #fff;
    position: relative;
    overflow-x: hidden;
}

.ntcms-cp-hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ntcms-cp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,14,30,.96) 0%, rgba(10,14,30,.6) 55%, rgba(10,14,30,.25) 100%);
}

.ntcms-cp-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 70px;
    text-align: center;
}

.ntcms-cp-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.ntcms-cp-hero__cats {
    margin-bottom: 14px;
}

.ntcms-cp-hero__cats a {
    color: #f59e0b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ntcms-cp-hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(32px, 5vw, 56px);
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
    font-weight: 400;
}

.ntcms-cp-hero__excerpt {
    color: rgba(255,255,255,.75);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ntcms-cp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.ntcms-cp-hero__meta-badge {
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.ntcms-cp-hero__meta span:not(.ntcms-cp-hero__meta-badge) {
    background: rgba(255,255,255,.08);
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}

/* ============================================================
   SINGLE COURSE PAGE - BODY LAYOUT
   ============================================================ */

.ntcms-cp-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

.ntcms-cp-sidebar-sticky {
    position: sticky;
    top: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.ntcms-cp-sidebar-sticky .ntcms-cp-hero__card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.ntcms-cp-sidebar-body {
    padding: 20px;
}

/* ============================================================
   SINGLE COURSE PAGE - SECTIONS
   ============================================================ */

.ntcms-cp-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.ntcms-cp-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ntcms-cp-section h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 26px;
    color: #111827;
    margin: 0 0 16px;
    font-weight: 400;
    line-height: 1.2;
}

.ntcms-cp-section p,
.ntcms-cp-section li {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

/* ============================================================
   OUTCOMES / CHECKLIST
   ============================================================ */

.ntcms-cp-outcomes {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    padding: 20px 24px;
}

.ntcms-cp-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.ntcms-cp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.ntcms-cp-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   REQUIREMENTS
   ============================================================ */

.ntcms-cp-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ntcms-cp-req-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    padding-left: 0;
}

.ntcms-cp-req-list li::before {
    content: '→';
    color: #7c3aed;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   COURSE CURRICULUM ACCORDION
   ============================================================ */

.ntcms-cp-curr-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .18s;
}

.ntcms-cp-curr-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

.ntcms-cp-curr-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: #f9fafb;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

.ntcms-cp-curr-hd:hover {
    background: #f3f4f6;
}

.ntcms-cp-curr-hd-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.ntcms-cp-curr-hd-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ntcms-cp-curr-hd-count {
    font-size: 12px;
    color: #9ca3af;
}

.ntcms-cp-curr-chevron {
    color: #9ca3af;
    transition: transform .2s;
    flex-shrink: 0;
}

.ntcms-cp-curr-section.is-open .ntcms-cp-curr-chevron {
    transform: rotate(180deg);
}

.ntcms-cp-curr-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.ntcms-cp-curr-section.is-open .ntcms-cp-curr-items {
    display: block;
}

.ntcms-cp-curr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    border-top: 1px solid #f9fafb;
    font-size: 14px;
    color: #374151;
    transition: background .15s;
}

.ntcms-cp-curr-item:hover {
    background: #f9fafb;
}

.ntcms-cp-curr-item a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.ntcms-cp-curr-item a:hover {
    text-decoration: underline;
}

.ntcms-cp-curr-item.is-done {
    opacity: .55;
}

.ntcms-cp-curr-item.is-locked {
    color: #9ca3af;
}

.ntcms-cp-curr-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.ntcms-cp-curr-title {
    flex: 1;
    min-width: 0;
}

.ntcms-cp-curr-dur {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.ntcms-cp-drip {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}

.ntcms-cp-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #dbeafe;
    color: #1e40af;
}

/* ============================================================
   PROMO VIDEO
   ============================================================ */

.ntcms-cp-promo-video {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.ntcms-cp-promo-video .ntcms-responsive-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.ntcms-cp-promo-video .ntcms-responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   ENROLLMENT CARD / SIDEBAR BUTTONS
   ============================================================ */

.ntcms-cp-progress-wrap {
    margin-bottom: 14px;
}

.ntcms-cp-progress-bar {
    background: #e5e7eb;
    border-radius: 99px;
    height: 7px;
    overflow: hidden;
    margin-bottom: 6px;
}

.ntcms-cp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 99px;
}

.ntcms-cp-progress-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.ntcms-cp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .18s;
    line-height: 1;
    margin-bottom: 10px;
}

.ntcms-cp-btn--primary {
    background: #7c3aed;
    color: #fff;
}

.ntcms-cp-btn--primary:hover {
    background: #6d28d9;
    color: #fff;
    transform: translateY(-1px);
}

.ntcms-cp-btn--gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.ntcms-cp-btn--gold:hover {
    opacity: .9;
    color: #fff;
}

.ntcms-cp-btn--outline {
    background: transparent;
    color: #7c3aed;
    border: 2px solid #7c3aed;
    margin-bottom: 0;
}

.ntcms-cp-btn--outline:hover {
    background: #7c3aed;
    color: #fff;
}

.ntcms-cp-details-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.ntcms-cp-details-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    padding: 6px 0;
    border-bottom: 1px solid #f9fafb;
}

.ntcms-cp-details-list li:last-child {
    border-bottom: none;
}

.ntcms-cp-details-list strong {
    color: #111827;
}

/* ============================================================
   PASSWORD GATE
   ============================================================ */

.ntcms-cp-pw-gate {
    text-align: center;
    padding: 60px 40px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.ntcms-cp-pw-gate h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 24px;
    color: #111827;
    margin-bottom: 20px;
    font-weight: 400;
}

.ntcms-cp-pw-input {
    width: 100%;
    max-width: 380px;
    padding: 11px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    font-family: 'DM Sans', system-ui, sans-serif;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ntcms-cp-pw-input:focus {
    outline: none;
    border-color: #7c3aed;
}

.ntcms-cp-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 14px;
}

/* ============================================================
   BUNDLE COURSE STYLES
   ============================================================ */

.ntcms-bundle-courses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ntcms-bundle-course-card {
    display: flex;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ntcms-bundle-course-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.ntcms-bundle-course-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ntcms-bundle-course-thumb-placeholder {
    width: 120px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.ntcms-bundle-course-info {
    flex: 1;
}

.ntcms-bundle-course-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.ntcms-bundle-course-title a {
    color: #1e293b;
    text-decoration: none;
}

.ntcms-bundle-course-title a:hover {
    color: #7c3aed;
}

.ntcms-bundle-course-locked {
    font-size: 13px;
    color: #64748b;
}

.ntcms-bundle-progress-header {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

/* ============================================================
   LESSON PLAYER (FULL VIEWPORT)
   ============================================================ */

/* Critical player CSS is injected via wp_head, but these are fallbacks */
.ntcms-player {
    margin-bottom: 24px;
    border-radius: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ntcms-responsive-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.ntcms-responsive-embed iframe,
.ntcms-responsive-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video duration display */
.ntcms-video-duration {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 24px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    z-index: 30;
    pointer-events: none;
    letter-spacing: 0.3px;
}

/* ============================================================
   ACCESS DENIED / GATE PAGES
   ============================================================ */

.ntcms-lp-access-denied {
    text-align: center;
    padding: 60px 40px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.ntcms-lock-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.ntcms-lp-access-denied h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #111827;
}

.ntcms-lp-access-denied p {
    color: #6b7280;
    margin-bottom: 24px;
}

.ntcms-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 10px;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

.ntcms-nav-btn--prev {
    background: #f3f4f6;
    color: #111827;
    border-color: #f3f4f6;
}

.ntcms-nav-btn--prev:hover {
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: #111827;
}

.ntcms-nav-btn--next {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.ntcms-nav-btn--next:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.ntcms-nav-btn--cert {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-color: transparent;
}

.ntcms-nav-btn--cert:hover {
    opacity: .9;
    color: #fff;
}

/* ============================================================
   DASHBOARD STYLES
   ============================================================ */

.ntcms-dashboard {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.ntcms-dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #1a1f2e;
    border-radius: 16px;
    padding: 24px 0;
    color: #fff;
}

.ntcms-dashboard-sidebar__user {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.ntcms-dashboard-sidebar__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.ntcms-dashboard-sidebar__user-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.ntcms-dashboard-sidebar__user-info span {
    font-size: 12px;
    opacity: 0.6;
}

.ntcms-dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ntcms-dashboard-nav li {
    margin: 0;
}

.ntcms-dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
}

.ntcms-dashboard-nav a:hover,
.ntcms-dashboard-nav li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ntcms-dashboard-nav li.active a {
    border-left: 3px solid #7c3aed;
}

.ntcms-dashboard-main {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ntcms-dashboard-main__header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.ntcms-dashboard-main__welcome {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Dashboard Forms */
.ntcms-dash-form {
    max-width: 600px;
}

.ntcms-dash-form__group {
    margin-bottom: 20px;
}

.ntcms-dash-form__group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.ntcms-dash-form__group input,
.ntcms-dash-form__group textarea,
.ntcms-dash-form__group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.ntcms-dash-form__group input:focus,
.ntcms-dash-form__group textarea:focus,
.ntcms-dash-form__group select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.ntcms-dash-form__notice {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ntcms-dash-form__notice--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ntcms-dash-form__notice--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Dashboard Course Cards */
.ntcms-dash-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ntcms-dash-course-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.ntcms-dash-course-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ntcms-dash-course-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.ntcms-dash-course-info {
    padding: 16px;
}

.ntcms-dash-course-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.ntcms-dash-course-title a {
    color: #111827;
    text-decoration: none;
}

.ntcms-dash-course-title a:hover {
    color: #7c3aed;
}

/* Dashboard Certificate Cards */
.ntcms-dash-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ntcms-dash-cert-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ntcms-dash-cert-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ntcms-dash-cert-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.ntcms-dash-cert-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* ============================================================
   REVIEWS STYLES
   ============================================================ */

.ntcms-course-reviews {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.ntcms-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.ntcms-reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ntcms-reviews-average {
    text-align: center;
}

.ntcms-reviews-average .average-rating {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
}

.ntcms-reviews-average .stars {
    margin-top: 5px;
}

.ntcms-reviews-stats {
    flex: 1;
}

.ntcms-review-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.ntcms-review-stat .stat-label {
    width: 30px;
    font-size: 13px;
    color: #6b7280;
}

.ntcms-review-stat .stat-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.ntcms-review-stat .stat-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 3px;
}

.ntcms-review-stat .stat-count {
    width: 40px;
    font-size: 12px;
    color: #9ca3af;
}

.ntcms-reviews-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ntcms-reviews-sort select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
}

.ntcms-reviews-container {
    margin-top: 20px;
}

.ntcms-reviews-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.ntcms-reviews-pagination {
    margin-top: 20px;
    text-align: center;
}

.ntcms-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.ntcms-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.ntcms-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ntcms-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ntcms-reviewer-name {
    font-weight: 600;
    color: #111827;
}

.ntcms-review-date {
    font-size: 12px;
    color: #9ca3af;
}

.ntcms-review-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.ntcms-review-rating .star,
.ntcms-stars .star {
    color: #fbbf24;
    font-size: 16px;
    line-height: 1;
}

.ntcms-review-rating .star.empty,
.ntcms-stars .star.empty {
    color: #e5e7eb;
}

.ntcms-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ntcms-review-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.ntcms-review-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.ntcms-review-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ntcms-review-helpful {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ntcms-review-helpful button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.ntcms-review-helpful button:hover {
    background: #f3f4f6;
    color: #7c3aed;
}

.ntcms-review-helpful button:disabled {
    opacity: 0.6;
    cursor: default;
}

.ntcms-review-admin-actions {
    margin-left: auto;
}

.ntcms-review-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.ntcms-review-delete:hover {
    background: #fee2e2;
}

/* Review Form */
.ntcms-review-form {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.ntcms-review-form h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #111827;
}

.ntcms-rating-input {
    margin-bottom: 16px;
}

.ntcms-rating-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.ntcms-stars-input {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.ntcms-stars-input input {
    display: none;
}

.ntcms-stars-input label {
    font-size: 24px;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.2s;
}

.ntcms-stars-input label:hover,
.ntcms-stars-input label:hover ~ label,
.ntcms-stars-input input:checked ~ label {
    color: #fbbf24;
}

.ntcms-review-form-notice {
    margin-top: 16px;
}

.ntcms-review-form-notice.success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 8px;
}

.ntcms-review-form-notice.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
}

/* ============================================================
   CERTIFICATE VERIFICATION
   ============================================================ */

.ntcms-cert-verify-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ntcms-cert-verify-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.ntcms-cert-verify-form button {
    width: 100%;
    padding: 12px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ntcms-cert-verify-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
}

.ntcms-cert-verify-result.success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.ntcms-cert-verify-result.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

/* ============================================================
   COHORTS STYLES
   ============================================================ */

.ntcms-cohorts-container {
    margin: 20px 0;
}

.ntcms-cohort-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ntcms-cohort-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
}

.ntcms-cohort-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}

.ntcms-cohort-description {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 15px;
}

.ntcms-cohort-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.ntcms-cohort-status--active {
    background: #d1fae5;
    color: #065f46;
}

.ntcms-cohort-status--upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.ntcms-cohort-status--archived {
    background: #f3f4f6;
    color: #374151;
}

.ntcms-cohort-register-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #7c3aed;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Cohort Members */
.ntcms-cohort-members {
    margin-top: 20px;
}

.ntcms-cohort-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ntcms-cohort-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
}

/* Cohort Discussions */
.ntcms-cohort-discussions {
    margin-top: 30px;
}

.ntcms-discussion-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.ntcms-discussion-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.ntcms-discussion-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.ntcms-discussion-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* ============================================================
   USER ID DISPLAY SHORTCODE
   ============================================================ */

.ntcms-user-id-display {
    display: inline-block;
    background: #f0fdf4;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    font-family: monospace;
    font-size: 14px;
}

.ntcms-user-id-display strong {
    color: #166534;
}

.ntcms-user-id-display button {
    margin-left: 12px;
    padding: 4px 8px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    cursor: pointer;
}

.ntcms-user-id-notice {
    background: #fee2e2;
    padding: 10px;
    border-radius: 6px;
    color: #991b1b;
}

/* ============================================================
   COMPLETION POPUP
   ============================================================ */

.ntcms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: ntcms-fade-in 0.2s ease;
}

.ntcms-popup-container {
    background: #fff;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: ntcms-slide-up 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.ntcms-popup-header {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    padding: 32px 24px 24px;
    text-align: center;
    color: #fff;
}

.ntcms-popup-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.ntcms-popup-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.ntcms-popup-body {
    padding: 32px 24px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
}

.ntcms-popup-body p {
    margin: 0 0 16px;
}

.ntcms-popup-footer {
    padding: 0 24px 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ntcms-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}

.ntcms-popup-btn-primary {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.ntcms-popup-btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.ntcms-popup-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.ntcms-popup-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    color: #1f2937;
}

.ntcms-popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
    line-height: 1;
}

.ntcms-popup-close:hover {
    color: #fff;
}

@keyframes ntcms-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ntcms-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SPINNER ANIMATION
   ============================================================ */

@keyframes nc-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 1100px) {
    .ntcms-cp-hero__inner {
        padding: 40px 28px 50px;
    }
    .ntcms-cp-body {
        grid-template-columns: 1fr 320px;
        gap: 36px;
        padding: 36px 28px 64px;
    }
}

@media (max-width: 900px) {
    .ntcms-dashboard {
        flex-direction: column;
    }
    .ntcms-dashboard-sidebar {
        width: 100%;
    }
    .ntcms-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 800px) {
    .ntcms-cp-hero {
        min-height: 220px;
        align-items: center;
    }
    .ntcms-cp-hero__inner {
        padding: 32px 20px 40px;
    }
    .ntcms-cp-body {
        grid-template-columns: 1fr;
        padding: 28px 20px 56px;
    }
    .ntcms-cp-sidebar {
        order: -1;
    }
    .ntcms-cp-sidebar-sticky {
        position: static;
    }
    .ntcms-cp-checklist {
        grid-template-columns: 1fr;
    }
    .ntcms-cp-outcomes {
        padding: 20px;
    }
    .ntcms-cp-hero h1 {
        font-size: 28px;
    }
    .ntcms-bundle-course-card {
        flex-direction: column;
    }
    .ntcms-bundle-course-thumb,
    .ntcms-bundle-course-thumb-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .ntcms-course-grid {
        grid-template-columns: 1fr;
    }
    .ntcms-archive-header h1 {
        font-size: 28px;
    }
    .ntcms-reviews-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .ntcms-cp-hero {
        min-height: 180px;
    }
    .ntcms-cp-hero__inner {
        padding: 24px 16px 32px;
    }
    .ntcms-cp-hero h1 {
        font-size: 24px;
    }
    .ntcms-cp-hero__excerpt {
        font-size: 14px;
        margin-bottom: 18px;
    }
    .ntcms-cp-body {
        padding: 20px 16px 48px;
        gap: 28px;
    }
    .ntcms-cp-section h2 {
        font-size: 22px;
    }
    .ntcms-cp-curr-hd {
        padding: 14px 16px;
    }
    .ntcms-cp-curr-item {
        padding: 11px 16px;
    }
    .ntcms-cp-pw-gate {
        padding: 36px 20px;
    }
    .ntcms-cp-hero__meta {
        gap: 8px;
    }
    .ntcms-cp-hero__meta-badge,
    .ntcms-cp-hero__meta span:not(.ntcms-cp-hero__meta-badge) {
        padding: 4px 10px;
        font-size: 11px;
    }
    .ntcms-review-header {
        flex-direction: column;
    }
    .ntcms-popup-container {
        width: 92%;
    }
    .ntcms-popup-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .ntcms-popup-body {
        padding: 24px 20px;
    }
}

@media (max-width: 520px) {
    .ntcms-filter-group {
        gap: 8px;
    }
    .ntcms-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .ntcms-course-meta {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ntcms-archive-header h1 {
        font-size: 24px;
    }
    .ntcms-course-card .ntcms-course-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .ntcms-course-btn {
        text-align: center;
    }
}

/* ============================================================
   BUNDLE NOTICE ON COURSE PAGE
   ============================================================ */

.ntcms-bundle-course-notice {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.ntcms-bundle-notice--enrolled {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #065f46;
}

.ntcms-bundle-notice--upsell {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    color: #4c1d95;
}

.ntcms-bundle-course-notice a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.ntcms-bundle-course-notice a:hover {
    text-decoration: none;
}

.ntcms-bundle-notice-cta {
    display: inline-block;
    margin-left: 8px;
    background: #7c3aed;
    color: #fff !important;
    text-decoration: none !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ntcms-bundle-notice-cta:hover {
    background: #6d28d9;
    color: #fff !important;
}