/* =========================================================
   CONTENT PAGES  - exams list, exam page, govt jobs, study material.
   Built on tokens from global.css. One layout: page head, then a main column of cards + a side column.
========================================================= */
.cx { padding: 26px 0 72px; }
.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cx-grid--one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .cx-grid { grid-template-columns: minmax(0, 1fr); } }
.cx-main { min-width: 0; display: grid; gap: 16px; }
.cx-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.cx-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-s); min-width: 0; }
.cx-card > h2, .cx-head h2 { margin: 0 0 12px; font-size: 1.28rem; line-height: 1.3; }
.cx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cx-head h2 { margin-bottom: 0; }
.cx-head a, .cx-more { font-size: .92rem; font-weight: 600; color: var(--brand-ink); }
.cx-sub { margin: 4px 0 14px; color: #566077; font-size: .96rem; }
.cx-side .cx-card { padding: 18px 18px 16px; }
.cx-side .cx-card h2 { font-size: 1.05rem; margin-bottom: 10px; }
@media (max-width: 600px) { .cx-card { padding: 18px 16px; border-radius: 14px; } }

/* long text typed in admin */
.cx-body { color: #2a3342; line-height: 1.8; font-size: 1.02rem; overflow-wrap: anywhere; }
.cx-body > :first-child { margin-top: 0; } .cx-body > :last-child { margin-bottom: 0; }
.cx-body h2 { font-size: 1.18rem; margin: 24px 0 8px; } .cx-body h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.cx-body p { margin: 0 0 12px; } .cx-body ul, .cx-body ol { padding-left: 22px; margin: 0 0 14px; }
.cx-body a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.cx-body img { max-width: 100%; height: auto; border-radius: 10px; }
.cx-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .95rem; display: block; overflow-x: auto; }
.cx-body th, .cx-body td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; }
.cx-body th { background: #f7f8fb; }

/* section tabs (exam sub-pages) */
.cx-tabs { padding: 14px 0 0; }
.cx-tabs__row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.cx-tabs a { flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #2a3342; font-size: .94rem; font-weight: 500; white-space: nowrap; }
.cx-tabs a:hover { text-decoration: none; border-color: #f3c4b4; }
.cx-tabs a.is-active { background: #fff3ee; border-color: #f3c4b4; color: var(--brand-ink); font-weight: 600; }

/* key facts / dates */
.cx-dl { margin: 0; display: grid; }
.cx-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid #eef2f6; }
.cx-dl > div:first-child { border-top: 0; padding-top: 0; }
.cx-dl dt { color: #566077; }
.cx-dl dd { margin: 0; font-weight: 600; text-align: right; }
.cx-dl--big > div { padding: 13px 0; }
.cx-dl--big dd { font-family: var(--font-head); }

/* chips (govt categories, study classes, exams) */
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #2a3342; font-size: .93rem; }
.cx-chips a:hover { text-decoration: none; border-color: #f3c4b4; color: var(--brand-ink); }
.cx-chips small { color: var(--muted); font-size: .82rem; }

/* simple link list in the side column */
.cx-links { list-style: none; margin: 0; padding: 0; display: grid; }
.cx-links li { border-top: 1px solid #eef2f6; }
.cx-links li:first-child { border-top: 0; }
.cx-links a { display: block; padding: 10px 0; color: var(--ink); font-weight: 500; line-height: 1.4; }
.cx-links a:hover { color: var(--brand-ink); text-decoration: none; }
.cx-links small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* notifications / posts */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 13px 0; border-top: 1px solid #eef2f6; }
.post-list li:first-child { border-top: 0; padding-top: 2px; }
.post-list a { color: var(--ink); font-family: var(--font-head); font-weight: 600; line-height: 1.4; }
.post-list a:hover { color: var(--brand-ink); text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; color: #566077; font-size: .88rem; }
.post-meta b { color: #2a3342; font-weight: 600; }

/* exams list */
.ex-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.ex-group { padding: 8px 0 0; }
.ex-group + .ex-group { margin-top: 18px; }
.ex-group h2 { margin: 0 0 12px; font-size: 1.28rem; display: flex; align-items: baseline; gap: 10px; }
.ex-group h2 span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } }
.ex-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); min-width: 0; }
.ex-card:hover { text-decoration: none; border-color: #f3c4b4; box-shadow: var(--shadow-s); }
.ex-card b { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.ex-card span { color: #566077; font-size: .9rem; line-height: 1.45; }
.ex-card .ex-next { margin-top: 6px; color: #2a3342; font-weight: 600; font-size: .9rem; }
.ex-card .ex-next i { font-style: normal; color: var(--muted); font-weight: 400; }

/* study resources */
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-top: 1px solid #eef2f6; }
.res-list li:first-child { border-top: 0; padding-top: 2px; }
.res-list h3 { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.4; }
.res-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: #566077; font-size: .88rem; }
.res-meta a { color: var(--brand-ink); text-decoration: underline; }
.res-desc { margin: 6px 0 0; color: #3b4553; font-size: .94rem; line-height: 1.6; }
.res-open { flex: none; padding: 8px 16px; border: 1px solid var(--brand-ink); border-radius: 10px; color: var(--brand-ink); font-weight: 600; font-size: .9rem; white-space: nowrap; background: #fff; }
.res-open:hover { text-decoration: none; background: var(--brand-ink); color: #fff; }
@media (max-width: 600px) { .res-list li { flex-direction: column; gap: 10px; } .res-open { align-self: flex-start; } }
.board-card h2 a { color: inherit; }
.board-card h2 a:hover { color: var(--brand-ink); text-decoration: none; }
.cx-empty { color: #566077; margin: 0; line-height: 1.7; }
.cx .quick-answer { margin: 0; }

/* author page */
.au-photo { float: right; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 0 8px 16px; }
.au-tag { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #f7f8fb; font-size: .9rem; color: #2a3342; }
.cx-sub { margin: 14px 0 8px; font-size: .88rem; color: #566077; }
