/* Academy Mock Tests — public pages */
.academy-tests-page {
    color: #1e293b;
    line-height: 1.65;
    font-size: 17px;
}

.academy-tests-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 22px;
}

.academy-tests-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #1e3a8a;
    font-weight: 700;
}

.academy-tests-hero p {
    margin: 0;
    color: #475569;
    max-width: 760px;
}

.academy-tests-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.academy-tests-stat-pill {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 600;
}

.academy-tests-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 8px;
    align-items: flex-end;
}

.academy-tests-filters input[type="search"],
.academy-tests-filters select {
    border: 1px solid #94a3b8;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
    min-width: 160px;
}

.academy-tests-filters input[type="search"] {
    flex: 1;
    min-width: 200px;
}

.academy-tests-filters button {
    border: 0;
    background: #1d4ed8;
    color: #fff;
    border-radius: 8px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.academy-tests-filters button:hover {
    background: #1e40af;
}

.academy-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.academy-tests-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.academy-test-thumb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.academy-test-thumb-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .16);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.academy-test-thumb-media {
    position: relative;
    background: #f1f5f9;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
}

.academy-test-thumb-media img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    display: block;
    background: #fff;
}

.academy-test-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 260px;
    padding: 20px;
    text-align: center;
    color: #475569;
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%);
}

.academy-test-thumb-placeholder i {
    font-size: 52px;
    color: #dc2626;
}

.academy-test-thumb-placeholder span {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    max-width: 220px;
}

.academy-test-thumb-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(29, 78, 216, .92);
    color: #fff;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.academy-test-thumb-body {
    padding: 14px 16px 16px;
}

.academy-test-thumb-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    color: #0f172a;
}

.academy-test-thumb-meta {
    margin: 0 0 8px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}

.academy-test-thumb-meta strong {
    color: #334155;
}

.academy-test-thumb-rating {
    margin: 0;
    font-size: 13px;
    color: #b45309;
    font-weight: 600;
}

.academy-tests-period {
    margin-top: 28px;
}

.academy-tests-period-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dbeafe;
}

.academy-tests-period-head h2 {
    margin: 0;
    font-size: 22px;
    color: #1e3a8a;
}

.academy-tests-period-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.academy-tests-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 20px;
}

.academy-tests-jump a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.academy-tests-jump a:hover {
    background: #dbeafe;
    text-decoration: none;
}

.academy-tests-academy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 4px;
}

.academy-chip {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #93c5fd;
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.academy-chip:hover {
    background: #eff6ff;
    text-decoration: none;
    color: #1d4ed8;
}

.academy-chip.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.academy-test-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    transition: border-color .15s, box-shadow .15s;
}

.academy-test-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .12);
    text-decoration: none;
    color: inherit;
}

.academy-test-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #0f172a;
    line-height: 1.35;
}

.academy-test-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.academy-test-meta strong {
    color: #334155;
}

.academy-test-stars {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 600;
}

.academy-test-stars .fa-star,
.academy-test-stars .fa-star-half-stroke {
    margin-right: 1px;
}

.academy-test-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}

.academy-tests-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    color: #64748b;
}

/* Detail page */
.academy-test-detail {
    max-width: 920px;
}

.academy-test-detail-header {
    margin-bottom: 20px;
}

.academy-test-detail-header h1 {
    margin: 0 0 10px;
    font-size: 26px;
    color: #0f172a;
}

.academy-test-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.academy-test-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.academy-test-btn-primary {
    background: #1d4ed8;
    color: #fff;
}

.academy-test-btn-primary:hover {
    background: #1e40af;
    color: #fff;
    text-decoration: none;
}

.academy-test-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.academy-test-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}

.academy-test-cover {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.academy-test-pdf-frame {
    width: 100%;
    min-height: 520px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.academy-test-answer-image {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.academy-test-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.academy-test-section h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #0f172a;
}

.academy-test-answers {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 16px;
    line-height: 1.7;
}

.academy-test-answers p {
    margin: 0 0 10px;
}

/* Star rating widget */
.academy-rating-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.academy-rating-stars {
    display: inline-flex;
    gap: 4px;
}

.academy-rating-stars button {
    background: none;
    border: 0;
    padding: 2px;
    font-size: 26px;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
}

.academy-rating-stars button.is-active,
.academy-rating-stars button:hover {
    color: #f59e0b;
}

.academy-rating-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

/* Comments */
.academy-comments-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
}

.academy-comment-input {
    width: 100%;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.academy-comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.academy-comment-item:last-child {
    border-bottom: 0;
}

.academy-comment-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.academy-comment-text {
    margin: 0;
    color: #334155;
}

.academy-tests-breadcrumb {
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
}

.academy-tests-breadcrumb a {
    color: #1d4ed8;
    text-decoration: none;
}

.academy-tests-breadcrumb a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .academy-tests-hero h1 {
        font-size: 24px;
    }

    .academy-test-pdf-frame {
        min-height: 360px;
    }

    .academy-tests-thumb-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .academy-test-thumb-media,
    .academy-test-thumb-media img,
    .academy-test-thumb-placeholder {
        min-height: 220px;
        height: 220px;
    }
}
