/* ============================================
   ExamsCourse.com - Main Stylesheet
   ============================================ */

:root {
    --bg-page: #F8F9FA;
    --bg-card: #FFFFFF;
    --heading: #1E40AF;
    --subheading: #3B82F6;
    --text-body: #1F2937;
    --text-muted: #4B5563;
    --btn-primary-bg: #2563EB;
    --btn-primary-text: #FFFFFF;
    --btn-primary-hover: #1D4ED8;
    --border-light: #E5E7EB;
    --success: #10B981;
    --error: #DC2626;
    --warning: #F59E0B;
    --card-radius: 1rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    color: var(--heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
h3 { font-size: 1.2rem; font-weight: 600; }

.subheading {
    color: var(--subheading);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-1px);
}

.btn-primary.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-primary.btn-full {
    width: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--btn-primary-bg);
    color: var(--btn-primary-bg);
    padding: 0.7rem 1.4rem;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background-color: #EFF6FF;
}

.btn-outline.btn-sm {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading);
}

.brand-dot {
    color: var(--subheading);
    font-weight: 400;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--btn-primary-bg);
}

.btn-nav {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text) !important;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
}

.btn-nav:hover {
    background: var(--btn-primary-hover) !important;
    color: white !important;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-body);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input-border, #D1D5DB);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    background: var(--bg-card);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--btn-primary-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ========== ALERTS ========== */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #E6F7EC;
    color: #0B5E42;
    border: 1px solid var(--success);
}

.alert-error {
    background: #FEF2F2;
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid var(--warning);
}

.alert-info {
    background: #EFF6FF;
    color: var(--heading);
    border: 1px solid var(--subheading);
}

/* ========== AUTH PAGES ========== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.auth-footer a {
    color: var(--btn-primary-bg);
    text-decoration: none;
    font-weight: 600;
}

/* ========== DASHBOARDS ========== */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h1 {
    margin-bottom: 0.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--heading);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* ========== QUIZ ========== */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.quiz-timer {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading);
}

.question-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.8rem;
    border: 1px solid var(--border-light);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.question-number {
    font-weight: 600;
    color: var(--text-muted);
}

.question-difficulty {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    text-transform: uppercase;
    font-weight: 600;
}

.question-difficulty.easy {
    background: #E6F7EC;
    color: #0B5E42;
}

.question-difficulty.medium {
    background: #FFFBEB;
    color: #92400E;
}

.question-difficulty.hard {
    background: #FEF2F2;
    color: var(--error);
}

.question-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    background: #F1F5F9;
    border-color: var(--btn-primary-bg);
}

.option-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--btn-primary-bg);
    cursor: pointer;
}

.option-item label {
    cursor: pointer;
    flex: 1;
}

.short-answer-area textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--input-border, #D1D5DB);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.quiz-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ========== RESULTS ========== */
.result-container {
    max-width: 900px;
    margin: 0 auto;
}

.result-summary {
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--card-radius);
    margin-bottom: 2rem;
}

.result-summary.passed {
    background: #E6F7EC;
    border: 2px solid var(--success);
}

.result-summary.failed {
    background: #FEF2F2;
    border: 2px solid var(--error);
}

.result-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--heading);
    margin: 0.5rem 0;
}

.result-details {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-status {
    margin: 1rem 0;
}

.badge-success {
    background: var(--success);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-error {
    background: var(--error);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.answer-review {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--border-light);
}

.answer-review.correct {
    border-left-color: var(--success);
    background: #F9FAFB;
}

.answer-review.wrong {
    border-left-color: var(--error);
    background: #F9FAFB;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.review-question {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.review-answer {
    font-size: 0.9rem;
}

.your-answer {
    display: block;
}

.correct-answer {
    display: block;
    color: var(--success);
    font-weight: 500;
}

.review-explanation {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-page);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

/* ========== PAST PAPERS ========== */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.paper-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.paper-icon {
    font-size: 2rem;
}

.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.paper-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand h3 {
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--btn-primary-bg);
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .brand-tagline {
        display: none;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .quiz-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .result-summary {
        padding: 1.5rem;
    }
    
    .result-score {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .papers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .quiz-navigation button {
        width: 100%;
    }
}

/* ============================================
   Breadcrumb & Navigation Styles
   ============================================ */

.breadcrumb-nav {
    background: var(--bg-card);
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
}

.breadcrumb-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--btn-primary-bg);
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.1rem 0.2rem;
}

.breadcrumb-item a:hover {
    color: var(--btn-primary-hover);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-body);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0.2rem;
    user-select: none;
}

/* Back Button */
.back-button-container {
    margin-bottom: 0.75rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    color: var(--text-body);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--bg-page);
    border-color: var(--btn-primary-bg);
    transform: translateX(-2px);
}

/* Page Header with Back Button */
.page-header-with-back {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.page-header-with-back .page-title {
    flex: 1;
    min-width: 200px;
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0.25rem;
}

.page-header .subheading {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.4rem 0.8rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    .breadcrumb-list {
        flex-wrap: nowrap;
    }
    .breadcrumb-item {
        font-size: 0.75rem;
    }
    .page-header-with-back {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ============================================
   Create Question Form - MCQ Options
   ============================================ */

.mcq-option-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    background: var(--bg-page);
    transition: border-color 0.2s;
}

.mcq-option-row:hover {
    border-color: var(--btn-primary-bg);
}

.mcq-option-row input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    accent-color: var(--btn-primary-bg);
    cursor: pointer;
    appearance: radio !important;
    -webkit-appearance: radio !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    margin: 0 !important;
}

.mcq-option-row input[type="radio"]:checked {
    accent-color: var(--btn-primary-bg);
}

.mcq-option-row .option-label {
    font-weight: 600;
    min-width: 70px;
    color: var(--text-body);
    cursor: pointer;
}

.mcq-option-row .option-input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--input-border);
    border-radius: 0.25rem;
    font-size: 0.95rem;
}

.mcq-option-row .option-input:focus {
    outline: none;
    border-color: var(--btn-primary-bg);
}

.mcq-option-row .correct-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: #E6F7EC;
    padding: 0.15rem 0.5rem;
    border-radius: 2rem;
    font-weight: 600;
}

.mcq-option-row .correct-badge.active {
    background: var(--success);
    color: white;
}

/* Fix for any theme override */


input[type="radio"]:checked {
    accent-color: var(--btn-primary-bg);
    background: var(--btn-primary-bg) !important;
    border-color: var(--btn-primary-bg) !important;
}




/* ============================================
   HOMEPAGE STYLES
   ============================================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    color: white;
    padding: 4rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.hero-section h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.hero-search input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 1rem;
}
.hero-search button {
    border-radius: 0.75rem;
}
.hero-quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-quick-links a {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-quick-links a:hover {
    background: rgba(255,255,255,0.25);
}

/* Metrics Bar */
.metrics-bar {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}
.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.metric-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading);
}
.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Home Sections */
.home-section {
    margin-bottom: 2.5rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.section-header h2,
.section-header h3 {
    margin: 0;
}
.section-link {
    color: var(--btn-primary-bg);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.section-link:hover {
    text-decoration: underline;
}

/* Data Tables */
.data-table-container {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}
.data-table th {
    background: var(--bg-page);
    font-weight: 600;
    color: var(--heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.data-table tbody tr:hover {
    background: var(--bg-page);
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table a {
    color: var(--btn-primary-bg);
    text-decoration: none;
    font-weight: 500;
}
.data-table a:hover {
    text-decoration: underline;
}
.text-center {
    text-align: center;
}

/* Two Column Section */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.column-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

/* Card List */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-page);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-body);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}
.list-item:hover {
    border-color: var(--btn-primary-bg);
    background: #EFF6FF;
}
.list-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.list-item-title {
    font-weight: 500;
    font-size: 0.95rem;
}
.list-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.list-item-arrow {
    color: var(--btn-primary-bg);
    font-weight: 600;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.article-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-body);
    transition: all 0.2s;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--btn-primary-bg);
}
.article-category {
    display: inline-block;
    background: #EFF6FF;
    color: var(--btn-primary-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.article-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.article-read-more {
    color: var(--btn-primary-bg);
    font-weight: 600;
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin: 2rem 0;
}
.cta-section h2 {
    color: white;
    margin-bottom: 0.5rem;
}
.cta-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-section .btn-outline {
    border-color: white;
    color: white;
}
.cta-section .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1rem;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-search {
        flex-direction: column;
    }
    .two-column-section {
        grid-template-columns: 1fr;
    }
    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}


/* ============================================
   NEW MODULE PAGES
   ============================================ */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-body);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--btn-primary-bg);
    color: white;
    border-color: var(--btn-primary-bg);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-body);
    transition: all 0.2s;
    display: block;
}
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--btn-primary-bg);
}
.info-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.info-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.info-card-link {
    color: var(--btn-primary-bg);
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-sm {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
}

