/* Section pages (includes/section-page.php): Jobs, Admit Card, Results,
   Admission, Exam, Scholarships, Syllabus, Current Affairs, Assamese Story.
   Each page sets --sx (its colour) and --sx-soft (its tint) on .sx-page. */

.sx-page {
    --ink: #10213a;
    --muted: #5b6b80;
    --line: #e3e9f1;
    --card: #fff;
    --radius: 14px;
    color: var(--ink);
    font-family: Roboto, Arial, sans-serif;
    padding-bottom: 36px;
}
.sx-page *,
.sx-page *::before,
.sx-page *::after { box-sizing: border-box; }
.sx-page h1,
.sx-page h2,
.sx-page h3 { letter-spacing: 0; color: var(--ink); }
.sx-page a { color: inherit; text-decoration: none; }
.sx-page [hidden] { display: none !important; }
.sx-ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }

/* ---------- breadcrumb ---------- */
.sx-crumb { display: flex; align-items: center; gap: 8px; padding: 16px 0 12px; font-size: 13px; color: var(--muted); }
.sx-crumb a { color: var(--sx); font-weight: 500; }
.sx-crumb a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.sx-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
    gap: 24px;
    overflow: hidden;
    padding: 30px 32px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--sx) 16%, transparent) 0 120px, transparent 121px),
        linear-gradient(120deg, var(--sx-soft) 0%, #fff 78%);
    border: 1px solid color-mix(in srgb, var(--sx) 18%, #fff);
}
.sx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: #fff; color: var(--sx);
    font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--sx) 14%, transparent);
}
.sx-hero h1 { margin: 14px 0 8px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; line-height: 1.12; }
.sx-hero h1 span { color: var(--sx); }
.sx-hero-copy > p { margin: 0; max-width: 56ch; color: var(--muted); font-size: 16px; line-height: 1.55; }
.sx-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.sx-points li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: #24344d; }
.sx-points .sx-ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--sx); color: #fff; stroke-width: 3; }
.sx-region { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.sx-region a { padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sx-region a:hover { color: var(--sx); }
.sx-region a[aria-current] { background: var(--sx); color: #fff; }

.sx-hero-art { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 190px; }
.sx-watermark {
    position: absolute; right: -6px; bottom: -18px;
    font-size: 74px; font-weight: 800; line-height: 1; white-space: nowrap;
    color: color-mix(in srgb, var(--sx) 9%, transparent);
    pointer-events: none;
}
.sx-orb {
    display: grid; place-items: center;
    width: 64px; height: 64px; border-radius: 18px;
    background: linear-gradient(140deg, var(--sx), color-mix(in srgb, var(--sx) 60%, #000));
    color: #fff; box-shadow: 0 12px 24px -10px var(--sx);
}
.sx-orb .sx-ic { width: 32px; height: 32px; }
.sx-hero-art .sx-orb { position: absolute; top: 0; right: 6px; transform: rotate(-6deg); }
.sx-stats { position: relative; display: flex; gap: 10px; margin-right: 80px; }
.sx-stats div { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.sx-stats b { display: block; font-size: 24px; font-weight: 800; color: var(--sx); line-height: 1.1; }
.sx-stats span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-next {
    position: relative; display: grid; gap: 2px;
    padding: 12px 14px; border-radius: 12px; background: #fff;
    border-left: 4px solid var(--sx);
    box-shadow: 0 10px 24px -16px rgba(16, 33, 58, 0.45);
}
.sx-next small { font-size: 11px; font-weight: 700; color: var(--sx); text-transform: uppercase; letter-spacing: 0.4px; }
.sx-next strong { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-next span { font-size: 12px; color: var(--muted); }

/* ---------- layout ---------- */
.sx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; margin-top: 22px; align-items: start; }
/* Grid items would otherwise grow to their widest child (the status tabs). */
.sx-layout > * { min-width: 0; }

/* toolbar */
.sx-toolbar { display: flex; gap: 10px; padding: 10px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px -14px rgba(16, 33, 58, 0.4); }
.sx-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: #f5f8fb; border: 1px solid transparent; color: var(--muted); }
.sx-search:focus-within { border-color: var(--sx); background: #fff; }
.sx-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.sx-toolbar select { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; color: var(--ink); max-width: 210px; }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sx-tabs button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    font: inherit; font-size: 13px; font-weight: 600; color: #34465f; cursor: pointer;
}
.sx-tabs button span { padding: 1px 7px; border-radius: 999px; background: #eef2f7; font-size: 12px; }
.sx-tabs button:hover { border-color: var(--sx); color: var(--sx); }
.sx-tabs button[aria-pressed='true'] { background: var(--sx); border-color: var(--sx); color: #fff; }
.sx-tabs button[aria-pressed='true'] span { background: rgba(255, 255, 255, 0.25); }
.sx-count { margin: 12px 2px; font-size: 13px; color: var(--muted); }

/* shared card bits */
.sx-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s; }
.sx-card:hover { border-color: color-mix(in srgb, var(--sx) 35%, var(--line)); box-shadow: 0 14px 28px -20px rgba(16, 33, 58, 0.55); transform: translateY(-1px); }
.sx-card h2, .sx-card h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.sx-card h2 a:hover, .sx-card h3 a:hover { color: var(--sx); }
.sx-cat { display: inline-block; max-width: 100%; padding: 3px 9px; border-radius: 6px; background: var(--sx-soft); color: var(--sx); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-org { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.sx-desc { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: #44546b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.sx-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eef2f7; color: #34465f; }
.sx-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-open, .s-released, .s-upcoming { background: #e5f7ee; color: #12805a; }
.s-closing, .s-today { background: #fff1e0; color: #c2410c; }
.s-closed, .s-over { background: #f1f3f6; color: #6b7686; }
.s-new { background: #ffe6ea; color: #d40f34; }
.s-declared { background: #eaf1ff; color: #1d4ed8; }
.sx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 40px; padding: 0 16px; border-radius: 10px;
    border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.sx-page .sx-btn.primary { background: var(--sx); color: #fff; box-shadow: 0 8px 16px -10px var(--sx); }
.sx-page .sx-btn.primary:hover { filter: brightness(1.08); }
.sx-page .sx-btn.ghost { background: #fff; border-color: var(--line); color: #2b3c55; }
.sx-page .sx-btn.ghost:hover { border-color: var(--sx); color: var(--sx); }
.sx-page .sx-btn.outline { background: #fff; border-color: var(--sx); color: var(--sx); }
.sx-page .sx-btn.outline:hover { background: var(--sx); color: #fff; }
.sx-mini { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--sx) !important; }
.sx-mini:hover { text-decoration: underline; }
.sx-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--sx) !important; }
.sx-thumb-ph { display: grid; place-items: center; background: var(--sx-soft); color: var(--sx); }
.sx-thumb-ph .sx-ic { width: 40%; height: 40%; max-width: 46px; max-height: 46px; }

/* ---------- Jobs: two-column job cards ---------- */
.sxp-jobs .sx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sx-job { display: flex; flex-direction: column; padding: 18px; }
.sx-job.is-featured { border-color: color-mix(in srgb, var(--sx) 45%, var(--line)); }
.sx-job.is-featured::after { content: 'Featured'; position: absolute; top: -9px; left: 16px; padding: 2px 10px; border-radius: 999px; background: #e9082c; color: #fff; font-size: 11px; font-weight: 700; }
.sx-job-top { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.sx-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.sx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 14px 0 0; padding: 12px; list-style: none; border-radius: 10px; background: #f7f9fc; }
.sx-facts li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.sx-facts .sx-ic { color: var(--sx); margin-top: 2px; }
.sx-facts small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.sx-job .sx-actions { margin-top: auto; padding-top: 14px; }

/* ---------- Admit Card: hall-ticket rows ---------- */
.sxp-admit .sx-list { display: grid; gap: 14px; }
.sx-ticket { display: grid; grid-template-columns: 92px minmax(0, 1fr) 220px; overflow: hidden; }
.sx-ticket-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    background: linear-gradient(160deg, var(--sx), color-mix(in srgb, var(--sx) 65%, #000)); color: #fff;
}
.sx-ticket-date b { font-size: 30px; font-weight: 800; line-height: 1; }
.sx-ticket-date small { font-size: 12px; font-weight: 600; text-transform: uppercase; opacity: 0.85; }
.sx-ticket-body { padding: 16px 18px; min-width: 0; }
.sx-ticket-stub {
    position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px;
    padding: 16px 18px; border-left: 2px dashed var(--line); background: #fbfcfe;
}
.sx-ticket-stub::before,
.sx-ticket-stub::after { content: ''; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.sx-ticket-stub::before { top: -10px; }
.sx-ticket-stub::after { bottom: -10px; }
.sx-ticket-stub .sx-chip { align-self: flex-start; }
.sx-ticket-stub .sx-mini { justify-content: center; }

/* ---------- Results: result board ---------- */
.sxp-results .sx-list { display: grid; gap: 12px; }
.sx-result { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.sx-result-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sx-soft); color: var(--sx); }
.sx-result-ic .sx-ic { width: 26px; height: 26px; }
.sx-result-title { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.sx-result-title h2, .sx-result-title h3 { margin: 0; }
.sx-result .sx-desc { -webkit-line-clamp: 1; margin-top: 6px; }
.sx-result-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ---------- Admission: course cards with application window ---------- */
.sxp-admission .sx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sx-adm { display: flex; flex-direction: column; overflow: hidden; }
.sx-adm-media { position: relative; }
.sx-adm-img { display: block; width: 100%; aspect-ratio: 1200 / 520; object-fit: cover; background: var(--sx-soft); }
.sx-adm-media .sx-chip { position: absolute; top: 12px; right: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.sx-adm-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.sx-window { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--sx-soft); }
.sx-window-dates { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; }
.sx-window-dates span:last-child { text-align: right; }
.sx-window-dates small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.sx-bar { height: 7px; margin-top: 10px; border-radius: 99px; background: #fff; overflow: hidden; }
.sx-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sx), color-mix(in srgb, var(--sx) 55%, #ff9f43)); }
.sx-adm .sx-actions { margin-top: auto; padding-top: 14px; }

/* ---------- Exam: month-by-month calendar ---------- */
.sx-group + .sx-group { margin-top: 22px; }
.sx-group-title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--sx) !important; }
.sx-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sxp-ctassam .sx-list { display: grid; gap: 12px; }
.sxp-ctassam .sx-group { display: grid; gap: 10px; }
.sxp-ctassam .sx-group-title { margin-bottom: 2px; }
article.sx-ctassam { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; }
.sx-ctassam-date { display: grid; place-items: center; align-content: center; height: 72px; border-radius: 14px; background: var(--sx-soft); color: var(--sx); border: 1px solid color-mix(in srgb, var(--sx) 25%, #fff); }
.sx-ctassam-date b { font-size: 26px; font-weight: 800; line-height: 1; }
.sx-ctassam-date small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
article.sx-ctassam.is-past { opacity: 0.72; }
article.sx-ctassam.is-past .sx-ctassam-date { background: #f1f3f6; color: #6b7686; border-color: var(--line); }
.sx-ctassam-body .sx-desc { -webkit-line-clamp: 1; margin-top: 6px; }

/* ---------- Scholarships: award cards ---------- */
.sxp-scholarship .sx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sx-sch { display: flex; flex-direction: column; overflow: hidden; }
.sx-sch-ribbon {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--sx) 92%, #fff), color-mix(in srgb, var(--sx) 60%, #f59e0b));
    color: #fff;
}
.sx-sch-medal { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.sx-sch-medal .sx-ic { width: 22px; height: 22px; }
.sx-sch-ribbon small { display: block; font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.4px; }
.sx-sch-ribbon b { font-size: 15px; }
.sx-sch-ribbon .sx-chip { margin-left: auto; background: #fff; }
.sx-sch-body { padding: 16px 18px 0; flex: 1; }
.sx-sch .sx-actions { padding: 0 18px 18px; }

/* ---------- Syllabus: subject tiles ---------- */
.sxp-syllabus .sx-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sx-syl { display: flex; flex-direction: column; padding: 18px; border-top: 4px solid var(--sx); }
.sx-syl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sx-syl-doc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--sx-soft); color: var(--sx); font-size: 12px; font-weight: 800; }
.sx-syl-doc .sx-ic { width: 20px; height: 20px; }
.sx-syl .sx-desc { -webkit-line-clamp: 3; }
.sx-syl .sx-actions { margin-top: auto; padding-top: 14px; }
.sx-syl .sx-btn { flex: 1; padding: 0 10px; }

/* ---------- Current Affairs: dated news digest ---------- */
.sxp-affairs .sx-group { display: grid; gap: 12px; }
.sx-news { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px; }
.sx-news-img { width: 150px; height: 100px; border-radius: 10px; object-fit: cover; }
.sx-news-body { min-width: 0; align-self: center; }
.sx-news .sx-meta { align-items: center; }
.sx-news .sx-more { margin-left: auto; }
.sx-news.is-lead { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 14px; background: linear-gradient(120deg, var(--sx-soft), #fff 70%); }
.sx-news.is-lead .sx-news-img { width: 100%; height: 100%; min-height: 200px; }
.sx-news.is-lead h3 { font-size: 22px; }
.sx-news.is-lead .sx-desc { -webkit-line-clamp: 4; }

/* ---------- Assamese Story: magazine grid ---------- */
.sxp-story .sx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
article.sx-story { display: flex; flex-direction: column; overflow: hidden; }
.sx-story-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.sx-story-media { display: block; overflow: hidden; }
article.sx-story:hover .sx-story-img { transform: scale(1.04); }
.sx-story-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.sx-page.sxp-story h2[lang='as'],
.sx-page.sxp-story .sx-desc[lang='as'] { font-family: 'Noto Serif Bengali', 'Nirmala UI', 'Vrinda', serif; }
.sx-page.sxp-story h2[lang='as'] { font-size: 19px; line-height: 1.5; }
.sx-page.sxp-story .sx-desc { -webkit-line-clamp: 3; font-size: 15px; line-height: 1.75; }
.sx-story-body .sx-more { margin-top: auto; padding-top: 12px; }
article.sx-story.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
article.sx-story.is-lead .sx-story-img { height: 100%; aspect-ratio: auto; min-height: 260px; }
article.sx-story.is-lead .sx-story-body { padding: 26px 28px; justify-content: center; background: linear-gradient(140deg, var(--sx-soft), #fff 75%); }
.sx-page.sxp-story article.is-lead h2[lang='as'] { font-size: 26px; }
.sx-page.sxp-story article.is-lead .sx-desc { -webkit-line-clamp: 5; }
.sx-page.sxp-story .sx-hero h1 { font-family: Roboto, Arial, sans-serif; }
.sx-page.sxp-story .sx-watermark { font-family: 'Noto Serif Bengali', 'Nirmala UI', serif; }

/* ---------- empty state ---------- */
.sx-empty { display: grid; justify-items: center; gap: 6px; padding: 46px 20px; text-align: center; border: 1px dashed color-mix(in srgb, var(--sx) 35%, var(--line)); border-radius: var(--radius); background: linear-gradient(180deg, var(--sx-soft), #fff); }
.sx-empty .sx-orb { margin-bottom: 8px; }
.sx-empty h2 { margin: 0; font-size: 19px; }
.sx-empty p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

/* ---------- sidebar ---------- */
/* The column scrolls with the page (pinning a column taller than the screen would hide
   its lower part); it stretches to the list's height so its last item, the bottom ad,
   can stay pinned once it is reached. */
.sx-side { display: grid; gap: 16px; align-self: stretch; align-content: start; }
.sx-side > :last-child { position: sticky; top: 16px; }
.sx-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sx-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; font-size: 15px; font-weight: 800; color: #fff !important; background: var(--sx); }
.sx-side-list { margin: 0; padding: 6px 0; list-style: none; counter-reset: sx; }
.sx-side-list li { counter-increment: sx; }
.sx-side-list a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px; padding: 9px 16px; }
.sx-side-list a::before { content: counter(sx); grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--sx-soft); color: var(--sx); font-size: 12px; font-weight: 800; }
.sx-side-list a:hover span { color: var(--sx); }
.sx-side-list span { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-side-list small { font-size: 12px; color: var(--muted); }
.sx-explore { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.sx-explore a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.sx-explore a span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--sx-soft); color: var(--sx); }
.sx-explore a:hover { border-color: var(--sx); color: var(--sx); }
/* Ad slots (includes/ads.php) inside the list span the full row. */
.sx-list > .ad-slot,
.sx-group > .ad-slot { grid-column: 1 / -1; margin: 4px auto; }
.sx-side > .ad-slot { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .sx-layout { grid-template-columns: minmax(0, 1fr) 250px; }
    .sxp-syllabus .sx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-ticket { grid-template-columns: 84px minmax(0, 1fr) 190px; }
}
@media (max-width: 920px) {
    .sx-layout { grid-template-columns: minmax(0, 1fr); }
    .sx-side { grid-template-columns: 1fr 1fr; }
    .sx-side > :last-child { position: static; }
    .sx-hero { grid-template-columns: 1fr; padding: 24px; }
    .sx-hero-art { min-height: 0; }
    .sx-hero-art .sx-orb { display: none; }
    .sx-stats { margin-right: 0; }
    .sx-watermark { font-size: 56px; }
}
@media (max-width: 700px) {
    .sx-crumb { padding-top: 12px; }
    .sx-hero { padding: 20px 18px; border-radius: 14px; }
    .sx-hero h1 { font-size: 26px; }
    .sx-hero-copy > p { font-size: 14.5px; }
    .sx-region { display: flex; }
    .sx-region a { flex: 1; text-align: center; padding: 8px 6px; font-size: 13px; }
    .sx-toolbar { flex-wrap: wrap; }
    .sx-search { flex-basis: 100%; }
    .sx-toolbar select { flex: 1; max-width: none; }
    .sx-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .sx-tabs button { flex: none; }
    .sxp-jobs .sx-list,
    .sxp-admission .sx-list,
    .sxp-scholarship .sx-list,
    .sxp-syllabus .sx-list,
    .sx-page.sxp-story .sx-list { grid-template-columns: 1fr; }
    .sx-side { grid-template-columns: 1fr; }
    .sx-ticket { grid-template-columns: 74px minmax(0, 1fr); }
    .sx-ticket-stub { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; border-left: 0; border-top: 2px dashed var(--line); }
    .sx-ticket-stub::before, .sx-ticket-stub::after { display: none; }
    .sx-ticket-stub .sx-btn { flex: 1; }
    .sx-result { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
    .sx-result-ic { width: 44px; height: 44px; }
    .sx-result-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
    article.sx-ctassam { grid-template-columns: 60px minmax(0, 1fr); }
    .sx-ctassam-date { height: 60px; }
    .sx-ctassam-cta { grid-column: 1 / -1; }
    .sx-ctassam-cta .sx-btn { width: 100%; }
    .sx-news, .sx-news.is-lead { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
    .sx-news-img, .sx-news.is-lead .sx-news-img { width: 96px; height: 80px; min-height: 0; }
    .sx-news.is-lead h3 { font-size: 17px; }
    article.sx-story.is-lead { grid-template-columns: 1fr; }
    article.sx-story.is-lead .sx-story-img { min-height: 0; aspect-ratio: 16 / 9; }
    article.sx-story.is-lead .sx-story-body { padding: 18px; }
    .sx-page.sxp-story article.is-lead h2[lang='as'] { font-size: 21px; }
    .sx-job-top { grid-template-columns: 48px minmax(0, 1fr); }
    .sx-logo { width: 48px; height: 48px; }
    .sx-job-top .sx-chip { grid-column: 1 / -1; justify-self: start; }
    .sx-watermark { font-size: 44px; }
}

/* ---------- Job cards: stack the header when the card itself is narrow ---------- */
.sx-job { container-type: inline-size; }
@container (max-width: 440px) {
    .sx-job-top { grid-template-columns: 48px minmax(0, 1fr); }
    .sx-job-top .sx-logo { width: 48px; height: 48px; }
    .sx-job-top .sx-chip { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Notice page (notice.php) ---------- */
.sxn-crumb-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxn .sx-crumb { flex-wrap: nowrap; }
.sxn .sx-layout { margin-top: 6px; }
.sxn-article { min-width: 0; }
.sxn-head { padding: 24px 26px; border-radius: 18px; background: linear-gradient(120deg, var(--sx-soft) 0%, #fff 80%); border: 1px solid color-mix(in srgb, var(--sx) 18%, #fff); }
.sxn-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sxn-type { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: #fff; color: var(--sx); font-size: 12px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--sx) 20%, #fff); }
.sxn-head h1 { margin: 12px 0 6px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.sxn-head .sx-actions { margin-top: 16px; }
.sxn-facts { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 14px; gap: 12px; background: #fff; border: 1px solid var(--line); }
.sxn-figure { margin: 18px 0 0; }
.sxn-figure img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 14px; background: #f5f8fb; border: 1px solid var(--line); }
.sxn-lead { margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: #24344d; font-weight: 500; }
.sxn-content { margin-top: 16px; font-size: 16px; line-height: 1.8; color: #2b3a52; overflow-wrap: anywhere; }
.sxn-content img { max-width: 100%; height: auto; }
/* Tables in notice content scroll sideways on small screens instead of squashing. */
.sxn-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.sxn-content th, .sxn-content td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.sxn-content th { background: var(--sx-soft); }
.sxn-links { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sxn-links h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; font-size: 15px; font-weight: 800; color: #fff !important; background: var(--sx); }
.sxn-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-weight: 600; }
.sxn-links a:first-of-type { border-top: 0; }
.sxn-links a small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.sxn-links a b { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border-radius: 8px; background: var(--sx-soft); color: var(--sx); font-size: 13px; }
.sxn-links a:hover b { background: var(--sx); color: #fff; }
.sxn-back { display: inline-flex; margin-top: 22px; font-weight: 700; color: var(--sx) !important; }
.sxn.sxp-story .sxn-head h1[lang='as'],
.sxn.sxp-story .sxn-content[lang='as'],
.sxn.sxp-story .sxn-lead[lang='as'] { font-family: 'Noto Serif Bengali', 'Nirmala UI', 'Vrinda', serif; }
.sxn.sxp-story .sxn-content { font-size: 18px; line-height: 2; }
@media (max-width: 700px) {
    .sxn-head { padding: 18px 16px; border-radius: 14px; }
    .sxn-head .sx-actions .sx-btn { flex: 1; }
    .sxn-facts { grid-template-columns: 1fr 1fr; }
    .sxn-content { font-size: 15.5px; }
}
@media (max-width: 380px) {
    .sxn-facts { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    /* Exam and result rows: the status chip goes under the title on phones. */
    .sx-result-title { flex-direction: column; align-items: flex-start; gap: 6px; }
}
