/* ============================================================
   Exam Pages (e.g. /assam-police-test) — compact, light-blue, mobile-first.
   Self-contained on purpose (own file, own version) so it never depends on a
   cached copy of style.css.
   ============================================================ */
/* ---------- header logo (header itself is the shared .tw-head from topic.css, same as Live Mock Tests) ---------- */
.tw-head-icon.has-logo { background:#fff; border:1px solid #d5e4f8; flex:0 0 44px; height:44px; overflow:hidden; }
.tw-head-icon.has-logo img { max-width:80%; max-height:80%; object-fit:contain; }
@media (min-width:768px){ .tw-head-icon.has-logo { flex-basis:52px; height:52px; } }

/* ---------- sections ---------- */
.hub-section { margin-top: 1.6rem; }
.hub-section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.hub-section-head h2 { font-size: 1.05rem; font-weight: 700; margin: 0; color: #0f172a; }
.hub-count {
    font-size: .7rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #e3eeff;
    border-radius: 999px;
    padding: .1rem .6rem;
    white-space: nowrap;
}

/* ---------- exam cards ---------- */
.hub-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px)  { .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 992px)  { .hub-grid { grid-template-columns: repeat(3, 1fr); } }

.hub-card {
    position: relative;
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #d6e4fb;
    border-radius: 1rem;
    padding: .9rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hub-card:hover, .hub-card:focus-visible {
    transform: translateY(-2px);
    border-color: #93c0fa;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .14);
    color: inherit;
}
.hub-card:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.hub-card-logo {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: .85rem;
    background: #eff6ff;
    border: 1px solid #d6e4fb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hub-card-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.hub-card-body { min-width: 0; flex: 1; padding-right: 1.1rem; }
.hub-card h3 {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .15rem;
    color: #0f172a;
    overflow-wrap: anywhere;
}
.hub-card p {
    margin: 0 0 .5rem;
    font-size: .78rem;
    line-height: 1.45;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hub-card-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.hub-pill {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    border-radius: 999px;
    padding: .1rem .55rem;
    font-size: .7rem;
    font-weight: 600;
    background: #eaf2ff;
    color: #1e40af;
    line-height: 1.5;
}
.hub-pill.is-free { background: #e7f8ee; color: #15803d; }
.hub-pill.is-locked { background: #fdecec; color: #b91c1c; }
.hub-card-go {
    position: absolute;
    right: .7rem;
    bottom: .7rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    transition: background .18s, color .18s;
}
.hub-card:hover .hub-card-go { background: #2563eb; color: #fff; }
.hub-badge {
    position: absolute;
    top: .6rem;
    right: .6rem;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    background: #2563eb;
    border-radius: 999px;
    padding: .12rem .55rem;
}
.hub-badge.b-sale { background: #dc2626; }
.hub-badge.b-new  { background: #16a34a; }
.hub-badge.b-hot  { background: #ea580c; }

/* ---------- article ---------- */
.hub-article {
    background: #fff;
    border: 1px solid #d6e4fb;
    border-radius: 1rem;
    padding: 1.1rem 1.15rem;
    font-size: .94rem;
    line-height: 1.75;
    color: #1e293b;
    overflow-wrap: anywhere;
}
.hub-article h2, .hub-article h3 { font-weight: 700; margin: 1.4rem 0 .6rem; color: #0f172a; }
.hub-article h2 { font-size: 1.2rem; }
.hub-article h3 { font-size: 1.05rem; }
.hub-article > :first-child { margin-top: 0; }
.hub-article > :last-child { margin-bottom: 0; }
.hub-article img { max-width: 100%; height: auto; border-radius: .6rem; }
.hub-article a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
.hub-article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.hub-article td, .hub-article th { border: 1px solid #d6e4fb; padding: .45rem .7rem; }
.hub-article th { background: #eff6ff; }
.hub-article blockquote { border-left: 3px solid #3b82f6; background: #f3f8ff; padding: .6rem 1rem; margin: 1rem 0; border-radius: 0 .5rem .5rem 0; color: #475569; }

/* ---------- FAQ ---------- */
.hub-faq .faq-item { border: 1px solid #d6e4fb !important; border-radius: .9rem !important; margin-bottom: .55rem; overflow: hidden; background: #fff; }
.hub-faq .accordion-button { font-size: .92rem; font-weight: 600; padding: .8rem 1rem; background: #fff; color: #0f172a; }
.hub-faq .accordion-button:not(.collapsed) { background: #eaf2ff; color: #1d4ed8; box-shadow: none; }
.hub-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .2); }
.hub-faq .accordion-body { font-size: .9rem; line-height: 1.65; padding: .8rem 1rem 1rem; }

/* ---------- larger screens ---------- */
@media (min-width: 768px) {
    .hub-section { margin-top: 2rem; }
    .hub-section-head h2 { font-size: 1.2rem; }
    .hub-article { padding: 1.6rem 1.8rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hub-card, .hub-card-go { transition: none; }
    .hub-card:hover { transform: none; }
}
