/* TVET Quizzes listing (/page/tvet-quizs). Scoped to .tvq; uses the SINDHTTB navy (#002147) and gold (#ffd134). */
.tvq {
    --tvq-navy: #002147;
    --tvq-navy-soft: #0b3a6e;
    --tvq-gold: #ffd134;
    --tvq-border: #e1e6ee;
    --tvq-muted: #5b6573;
    --tvq-surface: #f5f7fa;
    margin: 8px 0 32px;
    font-size: 15px;
    line-height: 1.5;
    color: #1f2933;
}
.tvq-head { margin-bottom: 18px; }
.tvq-title {
    color: var(--tvq-navy);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px;
    padding-bottom: 10px;
    position: relative;
}
.tvq-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--tvq-gold);
}
.tvq-account { color: var(--tvq-muted); margin: 10px 0 0; }
.tvq-account a, .tvq-foot a { color: var(--tvq-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tvq-sep { margin: 0 4px; }
.tvq-notice {
    background: #fff8db;
    border-left: 4px solid var(--tvq-gold);
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0 0 18px;
}
.tvq-status {
    background: #eaf3ec;
    border-left: 4px solid #2e7d4f;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0 0 18px;
}

/* Grid: 3 columns on desktop, 2 on tablets, 1 on mobile. */
.tvq-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 991.98px) {
    .tvq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .tvq-title { font-size: 24px; }
}
@media (max-width: 575.98px) {
    .tvq-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .tvq-title { font-size: 22px; }
}

.tvq-card { display: flex; min-width: 0; margin: 0; }
.tvq-card-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--tvq-border);
    border-top: 4px solid var(--tvq-navy);
    border-radius: 10px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px rgba(0, 33, 71, .06);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.tvq-card-body:hover, .tvq-card-body:focus-within {
    box-shadow: 0 10px 24px rgba(0, 33, 71, .12);
    transform: translateY(-2px);
    border-top-color: var(--tvq-gold);
}
.tvq-card-title {
    color: var(--tvq-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}
.tvq-desc {
    color: var(--tvq-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.tvq-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
}
.tvq-meta > div { background: var(--tvq-surface); border-radius: 6px; padding: 7px 10px; min-width: 0; }
.tvq-meta dt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--tvq-muted);
    margin: 0;
}
.tvq-meta dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--tvq-navy); }
.tvq-left { font-size: 12px; font-weight: 600; color: var(--tvq-muted); }

/* Actions always sit at the bottom so buttons line up across a row. */
.tvq-actions { margin-top: auto; }
.tvq-actions form { margin: 0; }
.tvq-ack {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--tvq-muted);
    cursor: pointer;
}
.tvq-ack input { margin-top: 2px; flex: 0 0 auto; }
.tvq-btn, a.tvq-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--tvq-navy);
    border-radius: 6px;
    background: var(--tvq-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.tvq-btn:hover, a.tvq-btn:hover, .tvq-btn:focus, a.tvq-btn:focus { background: #fff; color: var(--tvq-navy); text-decoration: none; }
.tvq-btn:focus-visible { outline: 3px solid var(--tvq-gold); outline-offset: 2px; }
.tvq-btn[disabled], .tvq-btn[disabled]:hover {
    background: #d5dae2;
    border-color: #d5dae2;
    color: #3d4450;
    cursor: not-allowed;
}
.tvq-hint { margin: 6px 0 0; font-size: 13px; color: var(--tvq-muted); text-align: center; }

.tvq-empty {
    border: 1px dashed #c3ccd8;
    border-radius: 10px;
    background: #f8f9fb;
    padding: 32px 20px;
    text-align: center;
}
.tvq-empty-title { color: var(--tvq-navy); font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.tvq-empty p { color: var(--tvq-muted); margin: 0; }
.tvq-foot { margin: 18px 0 0; font-size: 13px; color: var(--tvq-muted); }

@media (prefers-reduced-motion: reduce) {
    .tvq-card-body, .tvq-btn { transition: none; }
    .tvq-card-body:hover, .tvq-card-body:focus-within { transform: none; }
}
