/* ============================================================
   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; }
}


/* ============================================================
   Detail pages (exam, quiz, study material, eBook) — same light-blue look.
   Only loaded on pages that opt in via exam_hub_page_css().
   ============================================================ */
.tw-body .card.shadow-sm { border: 1px solid #d6e4fb !important; box-shadow: 0 2px 10px rgba(37, 99, 235, .06) !important; }
.tw-body .card.hover-lift { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tw-body .card.hover-lift:hover { transform: translateY(-2px); border-color: #93c0fa !important; box-shadow: 0 12px 26px rgba(37, 99, 235, .14) !important; }
.tw-body .btn-primary { background: #2563eb; border-color: #2563eb; }
.tw-body .btn-primary:hover, .tw-body .btn-primary:focus { background: #1d4ed8; border-color: #1d4ed8; }
.tw-body .section-eyebrow { color: #2563eb; }
.tw-body .section-title, .tw-body h2.h5 { color: #0f172a; font-weight: 700; }
.tw-body .rich-content { line-height: 1.75; color: #1e293b; overflow-wrap: anywhere; }
.tw-body .rich-content img { max-width: 100%; height: auto; border-radius: .6rem; }
.tw-body .faq-item { border: 1px solid #d6e4fb !important; border-radius: .9rem !important; margin-bottom: .55rem; overflow: hidden; background: #fff; }
.tw-body .faq-item .accordion-button { font-size: .92rem; font-weight: 600; background: #fff; color: #0f172a; }
.tw-body .faq-item .accordion-button:not(.collapsed) { background: #eaf2ff; color: #1d4ed8; box-shadow: none; }
.tw-body .faq-item .accordion-body { font-size: .9rem; line-height: 1.65; }

/* ============================================================
   Blog post & content pages: featured image, tags, author box, share bar, related posts
   ============================================================ */
.bp-hero { margin: 0 0 1rem; border-radius: 1.1rem; overflow: hidden; border: 1px solid #d6e4fb; background: #eaf2ff; }
.bp-hero img { display: block; width: 100%; max-height: 440px; object-fit: cover; }

.bp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.bp-tags span { display: inline-flex; align-items: center; background: #eaf2ff; color: #1e40af; border-radius: 999px; padding: .18rem .7rem; font-size: .76rem; font-weight: 600; }
.bp-tags i { font-size: .8rem; opacity: .7; }

.hub-article.post-content { font-size: 1.02rem; line-height: 1.85; }
.hub-article.post-content p { margin-bottom: 1.1rem; }
.hub-article.post-content ul, .hub-article.post-content ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }

/* author box */
.bp-author {
    display: flex; gap: 1rem; align-items: flex-start;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f9ff 100%);
    border: 1px solid #d6e4fb; border-radius: 1.1rem;
    padding: 1.1rem; margin-top: 1.6rem;
}
.bp-author-img { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .18); }
.bp-author-ph { display: flex; align-items: center; justify-content: center; background: #dbe8fd; color: #2563eb; font-size: 2rem; }
.bp-author-body { min-width: 0; flex: 1; }
.bp-author-label { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #2563eb; }
.bp-author h2 { font-size: 1.1rem; font-weight: 700; margin: .1rem 0 0; color: #0f172a; }
.bp-author-role { font-size: .8rem; color: #64748b; font-weight: 600; }
.bp-author p { margin: .5rem 0 0; font-size: .9rem; line-height: 1.6; color: #475569; }
.bp-author-links { display: flex; gap: .4rem; margin-top: .65rem; flex-wrap: wrap; }
.bp-author-links:empty { display: none; }
.bp-author-links a { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid #d6e4fb; color: #2563eb; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .15s, color .15s; }
.bp-author-links a:hover { background: #2563eb; color: #fff; }

/* share bar */
.bp-share { margin-top: 1.4rem; background: #fff; border: 1px solid #d6e4fb; border-radius: 1.1rem; padding: .85rem 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bp-share-label { font-size: .82rem; font-weight: 700; color: #0f172a; white-space: nowrap; }
.bp-share-label i { color: #2563eb; margin-right: .25rem; }
.bp-share-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.bp-share-btns a, .bp-share-btns button {
    display: inline-flex; align-items: center; gap: .35rem; border: 0; cursor: pointer;
    border-radius: 999px; padding: .32rem .8rem; font-size: .76rem; font-weight: 600; color: #fff; text-decoration: none; line-height: 1.4;
    transition: transform .15s, opacity .15s;
}
.bp-share-btns a:hover, .bp-share-btns button:hover { transform: translateY(-1px); opacity: .92; color: #fff; }
.s-wa { background: #16a34a; } .s-fb { background: #1877f2; } .s-x { background: #111827; }
.s-tg { background: #229ed9; } .s-in { background: #0a66c2; } .s-cp { background: #64748b; }
@media (max-width: 575.98px) {
    .bp-share-btns span { display: none; }                 /* icon-only on phones, keeps it on one tidy row */
    .bp-share-btns a, .bp-share-btns button { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 1rem; }
    .bp-share-btns .s-cp span { display: none; }
    .bp-author { padding: .9rem; gap: .8rem; }
    .bp-author-img { flex-basis: 60px; width: 60px; height: 60px; }
}

/* related posts */
.bp-rel-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .bp-rel-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.bp-rel { display: block; background: #fff; border: 1px solid #d6e4fb; border-radius: 1rem; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.bp-rel:hover { transform: translateY(-2px); border-color: #93c0fa; box-shadow: 0 12px 26px rgba(37, 99, 235, .14); color: inherit; }
.bp-rel img, .bp-rel-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eaf2ff; }
.bp-rel-ph { display: flex; align-items: center; justify-content: center; color: #2563eb; font-size: 1.6rem; }
.bp-rel-body { padding: .7rem .85rem .85rem; }
.bp-rel-title { font-size: .9rem; font-weight: 700; line-height: 1.35; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-rel-date { font-size: .72rem; color: #64748b; margin-top: .25rem; }
