/* ── Reset & Base ─────────────────────────────────────────────────────────── */
.dn-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #222; }
.dn-wrap * { box-sizing: border-box; }
.dn-wrap a { text-decoration: none; }
.dn-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #2563eb;
    color: #fff !important;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.dn-btn:hover { background: #1d4ed8; }
.dn-btn-outline {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid #2563eb;
    color: #2563eb !important;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}
.dn-btn-outline:hover { background: #2563eb; color: #fff !important; }
.dn-section { padding: 72px 24px; }
.dn-container { max-width: 1100px; margin: 0 auto; }
.dn-section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 12px; }
.dn-section-sub { text-align: center; color: #555; font-size: 1.05rem; margin-bottom: 48px; }
.dn-page-intro {
    text-align: center;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOCK EXAM PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.dn-mock-exam-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 60px 24px;
    text-align: center;
}
.dn-mock-exam-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}
.dn-mock-exam-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
}
.dn-mock-exam-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}
.dn-mock-exam-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.dn-mock-exam-info-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}
.dn-mock-exam-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
    border-color: #2563eb;
}
.dn-mock-exam-info-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.dn-mock-exam-info-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.1;
}
.dn-mock-exam-info-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.dn-mock-exam-tips {
    background: #fffbeb;
    border: 2px solid #fcd34d;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}
.dn-mock-exam-tips-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 20px 0;
}
.dn-mock-exam-tips-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.dn-mock-exam-tips-list li {
    padding: 10px 0;
    border-bottom: 1px solid #fde68a;
    color: #78350f;
    font-size: 1rem;
    line-height: 1.6;
}
.dn-mock-exam-tips-list li:last-child {
    border-bottom: none;
}
.dn-mock-exam-tips-list li strong {
    color: #92400e;
}
.dn-mock-exam-start {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    border: 2px solid #86efac;
}
.dn-mock-exam-ready {
    font-size: 1.1rem;
    color: #166534;
    margin: 0 0 24px 0;
}
.dn-btn-start-exam {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff !important;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
    transition: all 0.25s ease;
}
.dn-btn-start-exam:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}
@media (max-width: 900px) {
    .dn-mock-exam-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .dn-mock-exam-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dn-mock-exam-title {
        font-size: 1.8rem;
    }
    .dn-mock-exam-tips {
        padding: 24px 20px;
    }
    .dn-mock-exam-start {
        padding: 28px 20px;
    }
    .dn-btn-start-exam {
        padding: 16px 36px;
        font-size: 1.1rem;
    }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.dn-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
    color: #1e3a8a;
    padding: 100px 24px 80px;
    text-align: center;
}
.dn-hero h1 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 24px; 
    line-height: 1.15; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    color: #1e3a8a;
}
.dn-hero p { font-size: 1.2rem; max-width: 650px; margin: 0 auto 24px; color: #4b5563; line-height: 1.7; }
.dn-hero ul { 
    list-style: none; 
    padding: 28px 36px; 
    margin: 0 auto 36px; 
    max-width: 500px; 
    text-align: left; 
    display: inline-block;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}
.dn-hero ul li { padding: 10px 0; font-size: 1.05rem; color: #374151; }
.dn-hero ul li::before { content: "✓  "; font-weight: 700; color: #2563eb; }
.dn-hero .dn-btn {
    padding: 18px 48px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.25s;
}
.dn-hero .dn-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}
.dn-hero-trust { margin-top: 28px; font-size: 0.95rem; color: #6b7280; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.dn-steps { background: #f8fafc; }
.dn-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.dn-step {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.dn-step:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}
.dn-step-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.dn-step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; color: #1e3a8a; }
.dn-step p { color: #6b7280; line-height: 1.7; margin-bottom: 0; font-size: 0.95rem; }
@media (max-width: 1024px) {
    .dn-steps-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.dn-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.dn-feature {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    background: #fff;
    transition: all 0.25s ease;
}
.dn-feature:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}
.dn-feature-icon { font-size: 3rem; margin-bottom: 18px; }
.dn-feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: #1e3a8a; }
.dn-feature p { color: #6b7280; line-height: 1.7; font-size: 0.95rem; }

/* ── Stats ────────────────────────────────────────────────────────────────── */
.dn-stats { background: #f8fafc; }
.dn-stats .dn-container {
    background: #fff;
    border-radius: 24px;
    padding: 56px 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}
.dn-stats-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 32px; 
    text-align: center; 
}
.dn-stats-grid > div {
    padding: 24px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border-radius: 16px;
    border: 1px solid #dbeafe;
}
.dn-stat-number { font-size: 2.8rem; font-weight: 800; color: #2563eb; }
.dn-stat-label { font-size: 0.95rem; color: #6b7280; margin-top: 8px; font-weight: 500; }
.dn-stats .dn-section-title { color: #1e3a8a; }
.dn-stats .dn-section-sub { color: #6b7280; }
@media (max-width: 900px) {
    .dn-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .dn-stats-grid { grid-template-columns: 1fr; }
    .dn-stats .dn-container { padding: 40px 24px; }
}

/* ── Entry Requirements ───────────────────────────────────────────────────── */
.dn-entry { background: #fff; }
.dn-entry-inner { max-width: 780px; margin: 0 auto; }
.dn-entry p { color: #444; line-height: 1.8; font-size: 1rem; margin-bottom: 16px; }
.dn-entry .dn-section-title { text-align: left; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.dn-cta { background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%); text-align: center; }
.dn-cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; color: #1e3a8a; }
.dn-cta p { color: #6b7280; font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.dn-cta-pills { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dn-pill {
    background: #fff;
    border: 2px solid #dbeafe;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.95rem;
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ── My Results summary & chart ─────────────────────────────────────────────── */
.dn-results-summary {
    background: linear-gradient(135deg, #f0f7ff 0%, #e5e7eb 100%);
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 32px;
}
.dn-results-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.dn-results-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dn-results-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a8a;
}
.dn-results-stat-lbl {
    font-size: 0.85rem;
    color: #555;
    margin-top: 4px;
}
.dn-results-chart {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dn-results-chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e3a8a;
    text-align: center;
}
/* Weekly vertical bar chart */
.dn-weekly-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    padding-top: 24px;
}
.dn-weekly-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.dn-weekly-bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e3a8a;
    height: 20px;
    margin-bottom: 4px;
}
.dn-weekly-bar-track {
    flex: 1;
    width: 100%;
    max-width: 40px;
    background: #f0f4f8;
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.dn-weekly-bar {
    width: 100%;
    background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}
.dn-weekly-bar-empty {
    background: transparent;
    min-height: 0;
}
.dn-weekly-bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dn-weekly-bar-count {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 2px;
}
.dn-results-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .dn-results-stats { gap: 12px; }
    .dn-results-stat { min-width: 80px; padding: 12px 16px; }
    .dn-results-stat-num { font-size: 1.2rem; }
}

/* ── Dashboard (logged-in landing) ───────────────────────────────────────────── */
.dn-dashboard { 
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    padding: 48px 24px 72px;
}
.dn-dashboard-welcome {
    text-align: center;
    margin-bottom: 48px;
}
.dn-dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 12px;
}
.dn-dashboard-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}
.dn-dashboard-stats-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    margin-bottom: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.dn-dashboard-stats-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 28px;
}
.dn-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.dn-dashboard-stat {
    text-align: center;
    padding: 20px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.dn-dashboard-stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.dn-dashboard-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 4px;
}
.dn-dashboard-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}
.dn-dashboard-actions {
    margin-bottom: 40px;
}
.dn-dashboard-actions-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 28px;
}
.dn-dashboard-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.dn-dashboard-buttons.dn-dashboard-buttons-3col {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}
.dn-dashboard-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 28px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.dn-dashboard-action-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    transform: translateY(-4px);
}
.dn-dashboard-action-card-primary {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}
.dn-dashboard-action-card-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}
.dn-dashboard-action-card-primary:hover .dn-dashboard-action-title,
.dn-dashboard-action-card-primary:hover .dn-dashboard-action-desc {
    color: #fff;
}
.dn-dashboard-action-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}
.dn-dashboard-action-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}
.dn-dashboard-action-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}
.dn-dashboard-footer {
    text-align: center;
}
.dn-dashboard-results-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #fff;
    color: #2563eb !important;
    border: 2px solid #2563eb;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.dn-dashboard-results-btn:hover {
    background: #2563eb;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}
.dn-dashboard-results-icon {
    font-size: 1.3rem;
}
@media (max-width: 1024px) {
    .dn-dashboard-buttons.dn-dashboard-buttons-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .dn-dashboard-title { font-size: 1.9rem; }
    .dn-dashboard-subtitle { font-size: 1rem; }
    .dn-dashboard-stats { 
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .dn-dashboard-stat { padding: 16px 12px; }
    .dn-dashboard-stat-icon { font-size: 1.6rem; }
    .dn-dashboard-number { font-size: 1.8rem; }
    .dn-dashboard-buttons,
    .dn-dashboard-buttons.dn-dashboard-buttons-3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dn-dashboard-action-card {
        padding: 28px 24px;
    }
    .dn-dashboard-action-icon { font-size: 3rem; }
}

/* ── Exam Simulator choice buttons ──────────────────────────────────────────── */
.dn-choice {
    padding: 60px 24px;
    text-align: center;
    background: #f8fafc;
}
.dn-choice h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e3a8a;
}
.dn-choice p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 40px;
}
.dn-choice-buttons {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.dn-choice-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 36px 48px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dn-choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.dn-choice-btn-free {
    background: #2563eb;
    color: #fff !important;
    border: 2px solid #2563eb;
}
.dn-choice-btn-free:hover { background: #1d4ed8; color: #fff !important; }
.dn-choice-btn-paid {
    background: #fff;
    color: #1e3a8a !important;
    border: 2px solid #1e3a8a;
}
.dn-choice-btn-paid:hover { background: #1e3a8a; color: #fff !important; }
.dn-choice-btn span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 8px;
}
.dn-choice-btn-paid span { opacity: 0.8; }

/* ── Subject quiz cards ─────────────────────────────────────────────── */
.dn-subject-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.dn-subject-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-height: 180px;
}
.dn-subject-card:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transform: translateY(-4px);
}
.dn-subject-card:hover .dn-subject-title {
    color: #fff;
}
.dn-subject-card:hover .dn-subject-meta {
    color: rgba(255, 255, 255, 0.9);
}
.dn-subject-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    filter: grayscale(0);
    transition: transform 0.25s;
}
.dn-subject-card:hover .dn-subject-icon {
    transform: scale(1.1);
}
.dn-subject-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.25s;
}
.dn-subject-meta {
    font-size: 0.88rem;
    color: #6b7280;
    text-align: center;
    transition: color 0.25s;
}
.dn-subject-empty,
.dn-subject-select {
    color: #555;
    font-size: 1rem;
    margin-top: 16px;
}
.dn-subject-select a {
    color: #2563eb;
    font-weight: 600;
}
/* Flashcard cards - different accent color */
.dn-flashcard-cards .dn-flashcard-card {
    border-color: #e5e7eb;
}
.dn-flashcard-cards .dn-flashcard-card:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}
.dn-flashcard-cards .dn-flashcard-card .dn-subject-meta {
    color: #10b981;
    font-weight: 600;
}
@media (max-width: 1024px) {
    .dn-subject-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .dn-subject-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dn-subject-card {
        padding: 24px 20px;
        min-height: 160px;
    }
    .dn-subject-icon {
        font-size: 3rem;
    }
    .dn-subject-title {
        font-size: 1rem;
    }
}

/* ── Logged-out preview dashboard ─────────────────────────────────────────── */
.dn-preview-dashboard .dn-dashboard-subtitle {
    max-width: 700px;
}
.dn-preview-cta-top {
    text-align: center;
    margin-bottom: 48px;
}
.dn-btn-cta {
    padding: 16px 40px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.dn-btn-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}
.dn-preview-login {
    display: block;
    margin-top: 16px;
    color: #6b7280;
    font-size: 0.95rem;
}
.dn-preview-login a {
    color: #2563eb;
    font-weight: 600;
}
.dn-preview-note {
    text-align: center;
    color: #6b7280;
    margin-bottom: 28px;
    font-size: 1rem;
}
/* Locked cards */
.dn-preview-cards .dn-subject-card {
    position: relative;
}
.dn-card-locked {
    opacity: 0.7;
    cursor: pointer;
}
.dn-card-locked:hover {
    opacity: 0.85;
    background: #f8fafc;
    border-color: #d1d5db;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.dn-card-locked .dn-subject-icon {
    filter: grayscale(0.5);
}
.dn-card-lock-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.2rem;
    opacity: 0.6;
}
.dn-card-free-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
/* Features section */
.dn-preview-features {
    margin-top: 64px;
    margin-bottom: 48px;
}
.dn-preview-features-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 32px;
}
.dn-preview-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.dn-preview-feature {
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.dn-preview-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.dn-preview-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}
.dn-preview-feature-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}
/* Bottom CTA */
.dn-preview-cta-bottom {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 16px;
    margin-top: 24px;
}
.dn-btn-cta-large {
    display: inline-block;
    padding: 18px 48px;
    background: #fff;
    color: #1e3a8a !important;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.25s;
}
.dn-btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.dn-preview-guarantee {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 16px;
    font-size: 0.95rem;
}
@media (max-width: 1024px) {
    .dn-preview-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .dn-preview-features-grid {
        grid-template-columns: 1fr;
    }
    .dn-preview-feature {
        padding: 24px 16px;
    }
    .dn-btn-cta-large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTS TABLE - Modern styling
   ═══════════════════════════════════════════════════════════════════════════ */
.dn-results-list-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 32px 0 16px 0;
}
.ays-quiz-user-results-container {
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
table#ays-quiz-user-score-page {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}
table#ays-quiz-user-score-page th {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 14px 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    white-space: nowrap;
}
table#ays-quiz-user-score-page th:first-child {
    border-radius: 10px 0 0 0;
}
table#ays-quiz-user-score-page th:last-child {
    border-radius: 0 10px 0 0;
}
table#ays-quiz-user-score-page td {
    padding: 14px 12px !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 0.95rem !important;
    color: #374151;
    vertical-align: middle !important;
}
table#ays-quiz-user-score-page tr:nth-of-type(odd) {
    background: #f8fafc !important;
}
table#ays-quiz-user-score-page tr:nth-of-type(even) {
    background: #fff !important;
}
table#ays-quiz-user-score-page tr:hover td {
    background: #e0f2fe !important;
}
table#ays-quiz-user-score-page tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}
table#ays-quiz-user-score-page tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}
/* Details button */
table#ays-quiz-user-score-page button.ays-quiz-user-sqore-pages-details {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}
table#ays-quiz-user-score-page button.ays-quiz-user-sqore-pages-details:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}
/* Score column emphasis */
table#ays-quiz-user-score-page td.ays-quiz-score-column {
    font-weight: 700;
    color: #1e3a8a;
}
/* Quiz name column */
table#ays-quiz-user-score-page td:first-child {
    font-weight: 600;
    color: #1e3a8a;
}
/* Duration column - compact formatting */
table#ays-quiz-user-score-page td.ays-quiz-duration-column {
    white-space: nowrap;
    color: #6b7280;
}
/* Responsive table */
@media (max-width: 768px) {
    table#ays-quiz-user-score-page th,
    table#ays-quiz-user-score-page td {
        padding: 10px 8px !important;
        font-size: 0.85rem !important;
    }
    table#ays-quiz-user-score-page button.ays-quiz-user-sqore-pages-details {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEWS / BLOG PAGE STYLING
   ═══════════════════════════════════════════════════════════════════════════ */
/* Page background */
.blog .site-content,
.archive .site-content,
.single-post .site-content {
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f4fd 100%);
    padding-bottom: 60px;
}
/* Article cards */
.blog article.post,
.archive article.post {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.blog article.post:hover,
.archive article.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(30, 58, 138, 0.12);
    border-color: #2563eb;
}
/* Article content area */
.blog article.post .post-content,
.archive article.post .post-content,
.blog article.post .entry-content,
.archive article.post .entry-content {
    padding: 24px;
}
/* Category badge */
.blog article.post .cat-links a,
.archive article.post .cat-links a {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: #1e3a8a !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Article title */
.blog article.post .entry-title,
.archive article.post .entry-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 12px 0 8px 0;
    line-height: 1.4;
}
.blog article.post .entry-title a,
.archive article.post .entry-title a {
    color: #1e3a8a !important;
    text-decoration: none;
    transition: color 0.2s;
}
.blog article.post .entry-title a:hover,
.archive article.post .entry-title a:hover {
    color: #2563eb !important;
}
/* Article meta (date) */
.blog article.post .entry-meta,
.archive article.post .entry-meta {
    font-size: 0.85rem;
    color: #1e3a8a;
    margin-bottom: 12px;
}
/* Article excerpt */
.blog article.post .entry-summary,
.archive article.post .entry-summary,
.blog article.post .entry-content p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}
/* Pagination */
.blog .ast-pagination,
.archive .ast-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.blog .ast-pagination .page-numbers,
.archive .ast-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    color: #1e3a8a;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.blog .ast-pagination .page-numbers:hover,
.archive .ast-pagination .page-numbers:hover {
    background: #e0f2fe;
    border-color: #2563eb;
}
.blog .ast-pagination .page-numbers.current,
.archive .ast-pagination .page-numbers.current {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-color: transparent;
}
/* Single post styling */
.single-post article.post {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 40px auto;
    padding: 48px;
}
.single-post .entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 16px;
    line-height: 1.3;
}
.single-post .entry-meta {
    color: #6b7280;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f4f8;
}
.single-post .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}
.single-post .entry-content h2,
.single-post .entry-content h3 {
    color: #1e3a8a;
    margin-top: 32px;
}
/* Responsive */
@media (max-width: 768px) {
    .blog article.post .post-content,
    .archive article.post .post-content,
    .blog article.post .entry-content,
    .archive article.post .entry-content {
        padding: 20px 24px;
    }
    .blog article.post .entry-title,
    .archive article.post .entry-title {
        font-size: 1.2rem;
    }
    .single-post article.post {
        margin: 20px 16px;
        padding: 28px 24px;
    }
    .single-post .entry-title {
        font-size: 1.5rem;
    }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .dn-hero h1 { font-size: 1.9rem; }
    .dn-hero { padding: 64px 20px; }
    .dn-section-title { font-size: 1.6rem; }
    .dn-stat-number { font-size: 2.2rem; }
    .dn-choice-buttons { flex-direction: column; align-items: center; }
    .dn-choice-btn { min-width: 100%; max-width: 280px; }
}
