/* Archive MCQ Styles - Optimized for Performance */
.nm-topic-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.nm-archive-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}

.nm-archive-hero h1 {
    margin: 0 0 8px 0;
    font-size: 2em;
    font-weight: 800;
}

.nm-archive-hero p {
    margin: 0;
    font-size: 1em;
    opacity: 0.95;
}

.nm-topic-tabs {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.nm-topic-tabs-title {
    font-size: 1em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nm-tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.nm-topic-tab {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nm-topic-tab:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.nm-topic-tab-name {
    display: block;
    font-weight: 700;
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 4px;
}

.nm-topic-tab:hover .nm-topic-tab-name,
.nm-topic-tab:hover .nm-topic-tab-count {
    color: white;
}

.nm-topic-tab-count {
    display: block;
    font-size: 0.8em;
    color: #667eea;
    font-weight: 600;
}

.nm-questions-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.nm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.nm-section-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 800;
    color: #2c3e50;
}

.nm-question-count {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    color: #666;
}

.nm-questions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nm-question-card-clean {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.nm-question-card-clean:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.nm-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nm-card-topic-badge {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 700;
}

.nm-card-date {
    color: #999;
    font-size: 0.8em;
    font-weight: 600;
}

.nm-card-question-title {
    margin: 0 0 15px 0;
}

.nm-card-question-link {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.nm-card-question-link:hover {
    color: #667eea;
}

.nm-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.nm-difficulty-tag {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
}

.difficulty-easy {
    background: #d4edda;
    color: #155724;
}

.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

.nm-answer-btn {
    background: #667eea;
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nm-answer-btn:hover {
    background: #764ba2;
    color: white;
    transform: translateX(3px);
}

.nm-pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.nm-pagination-wrapper .page-numbers {
    background: white;
    color: #2c3e50;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    display: inline-block;
}

.nm-pagination-wrapper .page-numbers:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.nm-pagination-wrapper .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.nm-no-results {
    background: white;
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nm-no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.nm-no-results h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.nm-no-results p {
    color: #666;
    font-size: 1.05em;
}

@media (max-width: 767px) {
    .nm-topic-wrap {
        padding: 0 15px;
    }
    
    .nm-archive-hero {
        padding: 30px 20px;
    }
    
    .nm-archive-hero h1 {
        font-size: 1.6em;
    }
    
    .nm-tabs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nm-questions-section {
        padding: 20px 15px;
    }
    
    .nm-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/* Custom Breadcrumb Styling */
.nm-custom-breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.nm-custom-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nm-custom-breadcrumb a:hover {
    color: #764ba2;
}

.nm-custom-breadcrumb .separator {
    color: #999;
    font-weight: 300;
    margin: 0 5px;
}

.nm-custom-breadcrumb .current {
    color: #2c3e50;
    font-weight: 600;
}

@media (max-width: 767px) {
    .nm-custom-breadcrumb {
        padding: 10px 15px;
        font-size: 0.85em;
    }
}
/* Improved Contrast for Accessibility */
.nm-custom-breadcrumb a {
    color: #5056d6; /* Darker blue for better contrast */
}

.nm-custom-breadcrumb a:hover {
    color: #3d42a8; /* Even darker on hover */
}

.nm-topic-tab {
    color: #2c3e50; /* Dark text */
}

.nm-answer-btn,
.nm-load-more-btn {
    background: #5056d6; /* WCAG AAA compliant */
}

.nm-answer-btn:hover,
.nm-load-more-btn:hover {
    background: #3d42a8;
}

/* Ensure links are visually distinct */
a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}
