/* Class Filter */
.ete-class-filter { display:flex; gap:8px; margin:15px 0; flex-wrap:wrap; }
.ete-class-btn { display:inline-block; padding:8px 18px; border:2px solid #ddd; border-radius:25px; text-decoration:none; color:#333; font-weight:600; transition:all .2s; }
.ete-class-btn:hover, .ete-class-btn.active { background:#11608c; color:#fff; border-color:#11608c; }
.ete-class-badge { display:inline-block; background:#11608c; color:#fff; padding:3px 10px; border-radius:12px; font-size:12px; font-weight:600; }

/* Exam Grid */
.ete-exam-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:20px; margin:20px 0; }
.ete-exam-card { background:#fff; border-radius:12px; box-shadow:0 2px 12px rgba(0,0,0,.08); overflow:hidden; display:flex; flex-direction:column; }
.ete-exam-card-image { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.ete-exam-card-header { padding:20px 20px 10px; }
.ete-exam-card-header h4 { margin:8px 0 0; font-size:16px; }
.ete-access-badge { display:inline-block; margin-left:5px; padding:3px 9px; border-radius:12px; font-size:11px; font-weight:700; }
.ete-access-badge.is-active { background:#d9f3e3; color:#17653a; }
.ete-access-badge.is-locked { background:#fff0cd; color:#7a5600; }
.ete-exam-card-body { padding:0 20px 15px; flex:1; }
.ete-exam-desc { color:#666; font-size:14px; margin:5px 0; }
.ete-exam-meta { display:flex; gap:15px; font-size:13px; color:#888; margin:10px 0; flex-wrap:wrap; }
.ete-exam-meta i { margin-right:3px; }
.ete-best-score { background:#f0f7f0; padding:8px 12px; border-radius:6px; font-size:13px; margin-top:8px; }
.ete-product-price { margin-top:12px; color:#111827; font-size:22px; font-weight:800; }
.ete-exam-card-footer { padding:15px 20px; border-top:1px solid #f0f0f0; }
.ete-start-btn { display:block; text-align:center; background:#11608c; color:#fff !important; padding:10px; border-radius:8px; text-decoration:none !important; font-weight:600; transition:background .2s; }
.ete-start-btn:hover { background:#0d4e70; }
.ete-buy-btn { background:#0c7b68; }
.ete-buy-btn:hover { background:#075f51; }

/* Homepage exam shop */
.ete-home-exams { width:100%; padding:64px 20px; background:#f4f8fa; }
.ete-exam-shop-catalog { margin-top:64px; border-top:1px solid #d9e3e8; }
.ete-home-exams-inner { width:min(1120px, 100%); margin:0 auto; }
.ete-home-exams-heading { max-width:720px; margin-bottom:30px; }
.ete-home-exams-heading > span { display:block; margin-bottom:7px; color:#0c7b68; font-size:13px; font-weight:800; text-transform:uppercase; }
.ete-home-exams-heading h2 { margin:0 0 10px; color:#13212b; font-size:34px; line-height:1.2; letter-spacing:0; }
.ete-home-exams-heading p { margin:0; color:#53636d; font-size:17px; line-height:1.6; }
.ete-shop-group + .ete-shop-group { margin-top:42px; }
.ete-shop-group-heading { display:flex; align-items:baseline; justify-content:space-between; gap:20px; max-width:980px; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #d7e1e6; }
.ete-shop-group-heading h3 { margin:0; color:#13212b; font-size:24px; line-height:1.3; letter-spacing:0; }
.ete-shop-group-heading span { color:#52636d; font-size:14px; font-weight:700; }
.ete-shop-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:22px; max-width:980px; }
.ete-shop-card { display:grid; grid-template-columns:minmax(170px, 42%) minmax(0, 1fr); min-height:250px; overflow:hidden; border:1px solid #d9e3e8; border-radius:8px; background:#fff; box-shadow:0 8px 24px rgba(30,56,70,.08); }
.ete-shop-card-image { display:block; min-height:100%; background:#dcebf0; text-decoration:none !important; }
.ete-shop-card-image img { display:block; width:100%; height:100%; object-fit:cover; }
.ete-home-exams .ete-shop-card.is-paid { grid-template-columns:1fr; min-height:0; }
.ete-home-exams .ete-shop-card.is-paid .ete-shop-card-image { display:block; min-height:0; aspect-ratio:37/25; overflow:hidden; background:#dcebf0; }
.ete-home-exams .ete-shop-card.is-paid .ete-shop-card-image img { object-fit:cover; object-position:center; }
.ete-shop-card-free-visual { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:250px; padding:24px; border-right:1px solid #cfe0df; background:#e5f3f1; color:#0b5260 !important; text-align:center; }
.ete-shop-grade-number { font-size:58px; font-weight:800; line-height:.9; }
.ete-shop-grade-label { margin-top:6px; color:#11608c; font-size:16px; font-weight:800; text-transform:uppercase; }
.ete-shop-card-free-visual strong { margin-top:18px; color:#153946; font-size:15px; line-height:1.35; }
.ete-shop-card-content { display:flex; flex-direction:column; min-width:0; padding:22px; }
.ete-shop-card-badges { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.ete-shop-class { align-self:flex-start; padding:4px 8px; border-radius:4px; background:#e5f5f1; color:#075f51; font-size:12px; font-weight:800; }
.ete-shop-access { padding:4px 8px; border-radius:4px; font-size:12px; font-weight:800; }
.ete-shop-access.is-free { background:#e8f4e9; color:#256038; }
.ete-shop-access.is-paid { background:#fff0cd; color:#775400; }
.ete-shop-card h3, .ete-shop-card h4 { margin:12px 0 13px; color:#13212b; font-size:20px; line-height:1.3; letter-spacing:0; overflow-wrap:anywhere; }
.ete-shop-meta { display:flex; flex-wrap:wrap; gap:6px 14px; color:#64747d; font-size:13px; }
.ete-shop-meta span { position:relative; }
.ete-shop-meta span + span::before { content:' '; position:absolute; left:-8px; top:50%; width:3px; height:3px; border-radius:50%; background:#d29b1f; transform:translateY(-50%); }
.ete-shop-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:20px; }
.ete-shop-price { color:#13212b; font-size:21px; white-space:nowrap; }
.ete-shop-price.is-free { color:#256038; }
.ete-exam-price-display { display:inline-block; direction:ltr; unicode-bidi:isolate; white-space:nowrap; }
.ete-shop-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:9px 15px; border-radius:6px; background:#11608c; color:#fff !important; text-decoration:none !important; font-weight:700; white-space:nowrap; }
.ete-shop-button:hover { background:#0d4e70; }
.ete-shop-button.is-purchase { background:#0c7b68; }
.ete-shop-button.is-purchase:hover { background:#075f51; }

/* Purchase gate and checkout confirmation */
.ete-access-gate { max-width:660px; padding:30px; border:1px solid #d9e3e8; border-left:5px solid #0c7b68; border-radius:8px; background:#fff; box-shadow:0 5px 20px rgba(30,56,70,.08); }
.ete-access-gate h3 { margin:13px 0 8px; font-size:25px; letter-spacing:0; }
.ete-access-gate p { color:#52636d; line-height:1.6; }
.ete-access-gate-price { margin:18px 0 12px; color:#13212b; font-size:26px; font-weight:800; }
.ete-access-gate .ete-start-btn { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:10px 18px; }
.ete-access-back { display:block; margin-top:18px; color:#11608c; }
.ete-thankyou-access { margin:28px 0; padding:24px; border:1px solid #cfe2dc; border-radius:8px; background:#f2faf7; }
.ete-thankyou-access h2 { margin-top:0; }
.ete-thankyou-actions { display:flex; flex-wrap:wrap; gap:10px; }
.ete-thankyou-actions .ete-start-btn { display:inline-flex; align-items:center; min-height:44px; padding:10px 18px; }

/* LearnPress exam course sidebar action */
body.ete-paid-exam-course .edublink-course-details-sidebar-buttons { display:none; }
body.ete-paid-exam-course .edublink-course-details-features-item.course-student { display:none; }
body.ete-paid-exam-course .edublink-related-course-content-wrapper { display:none; }
.ete-course-purchase-action { margin-top:22px; }
.ete-course-purchase-button { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; padding:11px 18px; border-radius:6px; background:#0c7b68; color:#fff !important; text-align:center; text-decoration:none !important; font-weight:700; line-height:1.35; transition:background .2s ease; }
.ete-course-purchase-button:hover, .ete-course-purchase-button:focus { background:#075f51; color:#fff !important; }
.ete-course-purchase-button.is-access { background:#11608c; }
.ete-course-purchase-button.is-access:hover, .ete-course-purchase-button.is-access:focus { background:#0d4e70; }

@media (max-width:900px) {
    .ete-shop-grid { grid-template-columns:1fr; max-width:640px; }
}

/* Results Table */
.ete-results-table { width:100%; border-collapse:collapse; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,.06); }
.ete-results-table th { background:#f8f9fa; padding:10px 15px; text-align:left; font-size:13px; }
.ete-results-table td { padding:10px 15px; border-top:1px solid #f0f0f0; font-size:14px; }
.ete-score-badge { display:inline-block; padding:3px 10px; border-radius:12px; font-weight:700; font-size:13px; }
.ete-score-good { background:#d4edda; color:#155724; }
.ete-score-ok { background:#fff3cd; color:#856404; }
.ete-score-bad { background:#f8d7da; color:#721c24; }

/* Math answer rendering */
.ete-frac { display:inline-flex; flex-direction:column; align-items:center; flex-shrink:0; vertical-align:middle; margin:0 3px; font-size:.85em; line-height:1.2; white-space:nowrap; }
.ete-frac-num { border-bottom:1.5px solid currentColor; padding:0 4px 2px; text-align:center; }
.ete-frac-den { padding:2px 4px 0; text-align:center; }

/* Exam Taking */
.ete-exam-taking { max-width:800px; }
.ete-exam-header { display:flex; justify-content:space-between; align-items:flex-start; padding:15px 0; border-bottom:2px solid #11608c; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.ete-exam-header h3 { margin:0 0 5px; }
.ete-timer { background:#ff4444; color:#fff; padding:10px 20px; border-radius:8px; font-size:20px; font-weight:700; white-space:nowrap; }
.ete-timer.warning { animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.ete-question-card { background:#fff; border:1px solid #e8e8e8; border-radius:10px; padding:20px; margin:15px 0; }
.ete-question-header { display:flex; justify-content:space-between; margin-bottom:10px; }
.ete-question-number { font-weight:700; color:#11608c; }
.ete-question-points { color:#888; font-size:13px; }
.ete-question-text { font-size:16px; margin-bottom:15px; line-height:1.5; }

.ete-answers-mc { display:flex; flex-direction:column; gap:8px; }
.ete-answer-option { display:flex; align-items:center; gap:10px; padding:12px 15px; border:2px solid #e8e8e8; border-radius:8px; cursor:pointer; transition:all .2s; }
.ete-answer-option:hover { border-color:#11608c; background:#f8f9ff; }
.ete-answer-option input:checked + span { font-weight:600; }
.ete-answer-option input:checked ~ span { color:#11608c; }
.ete-answer-option:has(input:checked) { border-color:#11608c; background:#f0f2ff; }

.ete-number-input { width:100%; max-width:300px; padding:12px 15px; border:2px solid #e8e8e8; border-radius:8px; font-size:16px; }
.ete-number-input:focus { border-color:#11608c; outline:none; }

/* Topic sections */
.ete-exam-section-heading { margin:28px 0 12px; padding:14px 16px; border-left:4px solid #11608c; background:#f4f8fa; }
.ete-exam-section-heading span { display:block; color:#11608c; font-size:12px; font-weight:700; text-transform:uppercase; }
.ete-exam-section-heading h4 { margin:2px 0 0; font-size:18px; }

.ete-section-analysis { margin:28px 0; }
.ete-section-analysis-heading { margin-bottom:14px; }
.ete-section-analysis-heading h4 { margin:0 0 4px; font-size:21px; }
.ete-section-analysis-heading p { margin:0; color:#65717a; }
.ete-section-analysis-grid { display:grid; gap:14px; }
.ete-section-result { border:1px solid #dfe5e8; border-left-width:5px; border-radius:8px; padding:18px; background:#fff; }
.ete-section-recommend { border-left-color:#c7353b; }
.ete-section-optional { border-left-color:#c78916; }
.ete-section-secure { border-left-color:#27834a; }
.ete-section-result-top { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.ete-section-key { display:block; color:#11608c; font-size:12px; font-weight:700; text-transform:uppercase; }
.ete-section-result h5 { margin:3px 0 0; font-size:18px; }
.ete-section-score { flex:0 0 auto; text-align:right; }
.ete-section-score strong { display:block; font-size:25px; line-height:1; }
.ete-section-score span { display:block; margin-top:5px; color:#65717a; font-size:12px; }
.ete-section-progress { height:7px; margin:14px 0; overflow:hidden; border-radius:4px; background:#edf0f2; }
.ete-section-progress span { display:block; height:100%; background:#11608c; }
.ete-section-level { margin:0 0 7px; font-weight:700; }
.ete-section-feedback { margin:0; color:#3f4a52; line-height:1.55; }
.ete-section-modules { display:grid; gap:8px; margin-top:14px; }
.ete-module-link { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:11px 13px; border:1px solid #cfdce3; border-radius:6px; color:#123c53; text-decoration:none !important; background:#f8fbfc; }
.ete-module-link:hover { border-color:#11608c; background:#f1f7f9; }
.ete-module-copy { display:flex; flex-direction:column; min-width:0; }
.ete-module-copy strong { overflow-wrap:anywhere; }
.ete-module-copy small { margin-top:2px; color:#637783; }
.ete-module-action { flex:0 0 auto; color:#11608c; font-size:13px; font-weight:700; }
.ete-module-planned { color:#616b71; background:#f5f5f5; border-color:#ddd; }
.ete-module-planned .ete-module-action { color:#777; }
.ete-section-analysis-compact { margin:8px 0 16px; }
.ete-section-analysis-compact .ete-section-analysis-heading p { display:none; }
.ete-section-analysis-compact .ete-section-feedback { font-size:13px; }

.ete-exam-actions { display:flex; justify-content:space-between; margin-top:25px; padding-top:20px; border-top:1px solid #eee; }
.ete-cancel-btn { padding:12px 25px; border:2px solid #ddd; border-radius:8px; text-decoration:none; color:#666; }
.ete-submit-btn { padding:12px 35px; background:#11608c; color:#fff; border:none; border-radius:8px; font-size:16px; font-weight:700; cursor:pointer; }
.ete-submit-btn:hover { background:#0d4e70; }
.ete-submit-btn:disabled { background:#ccc; cursor:not-allowed; }

/* Result View */
.ete-result-summary { display:flex; justify-content:space-between; align-items:center; padding:20px; background:#fff; border-radius:10px; margin:15px 0; box-shadow:0 2px 8px rgba(0,0,0,.06); flex-wrap:wrap; gap:15px; }
.ete-result-score { text-align:center; padding:15px 25px; border-radius:10px; }
.ete-big-score { display:block; font-size:48px; font-weight:800; }
.ete-result-question { padding:15px; margin:10px 0; border-radius:8px; border-left:4px solid; }
.ete-result-question.ete-correct { background:#f0fff0; border-color:#28a745; }
.ete-result-question.ete-wrong { background:#fff5f5; border-color:#dc3545; }
.ete-rq-header { display:flex; justify-content:space-between; font-size:13px; color:#666; margin-bottom:5px; }
.ete-rq-text { font-size:15px; margin-bottom:8px; }
.ete-rq-answer { font-size:14px; color:#555; }

/* Mobile */
@media (max-width:600px) {
    .ete-exam-grid { grid-template-columns:1fr; }
    .ete-exam-header { flex-direction:column; }
    .ete-timer { align-self:flex-end; }
    .ete-section-result { padding:15px; }
    .ete-section-result-top { flex-direction:column; gap:10px; }
    .ete-section-score { text-align:left; }
    .ete-module-link { align-items:flex-start; flex-direction:column; gap:5px; }
    .ete-home-exams { padding:44px 16px; }
    .ete-home-exams-heading h2 { font-size:28px; }
    .ete-shop-group-heading { align-items:flex-start; flex-direction:column; gap:4px; }
    .ete-shop-grid { grid-template-columns:1fr; }
    .ete-shop-card { grid-template-columns:1fr; min-height:0; }
    .ete-shop-card-image { min-height:0; aspect-ratio:16/9; }
    .ete-home-exams .ete-shop-card.is-paid .ete-shop-card-image { aspect-ratio:37/25; }
    .ete-shop-card-free-visual { min-height:0; border-right:0; border-bottom:1px solid #cfe0df; }
    .ete-shop-card-content { padding:18px; }
    .ete-shop-card-bottom { align-items:flex-start; flex-direction:column; }
    .ete-shop-button { width:100%; }
    .ete-access-gate { padding:22px 18px; }
    .ete-course-purchase-action { margin-bottom:72px; }
}

