:root {
  --ink: #132027;
  --muted: #62717b;
  --line: #dbe5e8;
  --page: #f6f8f8;
  --card: #ffffff;
  --green: #0f766e;
  --blue: #2364aa;
  --saffron: #d97706;
  --red: #c1121f;
  --shadow: 0 16px 42px rgba(19, 32, 39, .11);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--page); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p, a, span, strong { overflow-wrap: anywhere; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px clamp(14px, 4vw, 54px);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 160px; font-weight: 900; }
.brand > span { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: linear-gradient(135deg,var(--green),var(--blue)); border-radius: 8px; }
.logo-brand { min-width: 190px; gap: 8px; }
.logo-brand img { width: 142px; height: 54px; object-fit: contain; display: block; }
.logo-brand strong { line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 9px 10px; border-radius: 6px; font-size: 13px; font-weight: 800; color: #263943; }
.nav a:hover { background: #e9f4f1; color: var(--green); }
.menu-toggle { display: none; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: white; font-weight: 800; }

.ticker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 16px clamp(14px,4vw,54px) 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.ticker a { display: grid; place-items: center; min-height: 72px; padding: 12px; background: white; font-size: 13px; font-weight: 800; text-align: center; }
.ticker a:hover { color: white; background: var(--green); }

.hero { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 28px; align-items: center; padding: 46px clamp(14px,4vw,54px); }
.label { margin: 0 0 10px; color: var(--green); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.hero h1, .page-shell h1, .detail-card h1 { margin: 0; font-size: clamp(34px,5vw,64px); line-height: 1.02; letter-spacing: 0; }
.hero p { max-width: 720px; color: #44535c; font-size: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 900; }
.primary { color: white; background: var(--green); }
.secondary { color: var(--green); background: white; border-color: rgba(15,118,110,.32); }
.hero-card, .sidebox, .search-card, .detail-card, .feedback-card, .test-card, .list-panel { background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.hero-card { padding: 20px; }
.score-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.score-row b { font-size: 26px; }
.score-link { color: inherit; text-decoration: none; transition: background .18s ease, color .18s ease; border-radius: 8px; padding-inline: 8px; }
.score-link:hover { background: #eaf6f3; color: var(--green); }
.score-link:hover b { color: var(--green); }
.red-date { color: var(--red); font-weight: 900; }

.shortcut-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 0 clamp(14px,4vw,54px) 34px; }
.shortcut-grid a { min-height: 110px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(19,32,39,.06); }
.shortcut-grid strong, .shortcut-grid span { display: block; }
.shortcut-grid strong { font-size: 18px; margin-bottom: 5px; }
.shortcut-grid span { color: var(--muted); font-size: 13px; }
.shortcut-grid a:hover { border-color: var(--green); transform: translateY(-2px); }

.layout, .detail-shell { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 24px; padding: 0 clamp(14px,4vw,54px) 46px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 26px 0 12px; border-bottom: 2px solid #2f5361; }
.section-head h2, .section-head h1 { margin: 0; padding: 8px 13px; background: var(--blue); color: white; border-radius: 7px 7px 0 0; font-size: 20px; }
.section-head a { margin-bottom: 8px; color: var(--blue); font-weight: 900; }
.section-head.big { display: block; border: 0; margin-top: 34px; }
.section-head.big h1 { display: inline-block; font-size: clamp(30px,4vw,48px); }
.section-head.big p { color: var(--muted); max-width: 800px; }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.mini-grid a { padding: 14px; background: white; color: #285a7c; font-weight: 800; }
.vacancy-list { display: grid; gap: 10px; }
.vacancy-card { display: grid; grid-template-columns: minmax(0,1fr) 170px; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.vacancy-card:hover { border-color: var(--green); box-shadow: 0 12px 28px rgba(19,32,39,.08); }
.vacancy-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.vacancy-meta { display: grid; gap: 6px; text-align: right; }
.vacancy-meta span { color: white; background: var(--green); border-radius: 6px; padding: 5px 8px; font-weight: 900; }
.vacancy-meta b { color: var(--red); font-size: 13px; }

.current-affairs, .tool-grid, .mock-cards, .pdf-grid, .career-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.current-affairs { grid-template-columns: repeat(2,1fr); }
.current-affairs a, .tool-grid a, .mock-cards a, .pdf-grid a, .career-grid article { min-height: 86px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: white; font-weight: 900; }
.current-affairs span, .tool-grid span, .mock-cards span, .pdf-grid span { display: block; margin-top: 6px; color: var(--green); font-size: 13px; }

.sidebar { display: grid; align-content: start; gap: 14px; }
.search-card { padding: 14px; }
.search-card label { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 900; }
.search-card input, .feedback-card input, .feedback-card textarea, .test-controls select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfd; }
.sidebox { display: grid; gap: 8px; padding: 16px; box-shadow: none; }
.sidebox h2 { margin: 0 0 4px; font-size: 18px; color: var(--blue); }
.sidebox a { padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; }

.detail-shell { align-items: start; padding-top: 32px; }
.detail-card { padding: clamp(18px,3vw,34px); }
.detail-card h2 { margin-top: 26px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--blue); }
.detail-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 22px 0; }
.detail-stats div { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfb; }
.detail-stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; }
.detail-links { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-links a, .detail-link-btn { padding: 10px 12px; border-radius: 8px; color: white; background: var(--green); font-weight: 900; border: 0; cursor: pointer; font: inherit; text-decoration: none; }
.detail-link-btn:hover, .detail-links a:hover { background: #0b655c; }
.apply-banner { margin: 22px 0 8px; }
.apply-banner-btn { width: 100%; min-height: 48px; }
.apply-pending { margin: 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 8px; background: #fff8e8; color: #6a4d00; font-weight: 800; }
.section-note { margin: 0 0 12px; color: var(--muted); font-weight: 800; }
.section-note a { color: var(--blue); }
.empty-note { padding: 18px; border: 1px dashed var(--line); border-radius: 8px; background: #f8fbfb; color: var(--muted); font-weight: 800; }
.notice-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; background: rgba(10,20,24,.52); }
.notice-modal[hidden] { display: none; }
.notice-dialog { width: min(520px,100%); padding: 24px; border-radius: 12px; background: white; box-shadow: var(--shadow); border: 1px solid var(--line); }
.notice-dialog h2 { margin-top: 0; color: var(--blue); }
.notice-close { float: right; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.notice-hint { margin-bottom: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.vacancy-top-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.half-btn { width: 100%; text-align: center; }
.date-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; color: var(--muted); font-weight: 800; }
.post-heading-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; margin-bottom: 10px; }
.post-logo { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 8px; }
.post-heading-row .label { margin-bottom: 6px; }
.post-category-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.post-category-row span { padding: 7px 10px; background: var(--blue); color: white; border-radius: 4px; font-size: 12px; font-weight: 900; }
.source-name { margin: 8px 0 0; color: var(--muted); font-weight: 800; text-align: center; }
.sub-heading { margin: 0 0 12px; color: #2f5361; font-size: 1.2rem; }
.lead-text { font-size: 1.05rem; line-height: 1.7; color: #44535c; }
.schedule-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.schedule-row div, .posts-table, .links-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.schedule-row div { padding: 12px; background: #f8fbfb; }
.schedule-row span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.advt-line { margin: 10px 0; font-weight: 800; }
.posts-table, .links-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.posts-table th, .links-table th { background: var(--blue); color: white; text-align: left; padding: 10px 12px; }
.posts-table td, .links-table td { padding: 10px 12px; border-top: 1px solid var(--line); background: white; }
.posts-table .total-row td { background: #f3f8fb; }
.links-table .link-action { color: var(--red); font-weight: 900; text-decoration: none; border: 0; background: transparent; cursor: pointer; font: inherit; }
.link-pending { color: var(--muted); font-weight: 700; }
.post-box-grid, .custom-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 10px 0 18px; }
.post-box-grid.cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
.post-box, .custom-card-grid article { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfb; }
.post-box span, .custom-card-grid span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.post-box strong, .custom-card-grid strong { color: var(--ink); }
.post-box b { color: var(--green); }
.total-box { background: #eaf6f3; }
.custom-info-list { display: grid; gap: 8px; padding-left: 20px; }
.custom-info-list a, .custom-card-grid a, .custom-info-table a { color: var(--red); font-weight: 900; }
.important-link-list { display: grid; gap: 8px; margin: 10px 0 18px; }
.important-link-list div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.important-link-list span { font-weight: 900; color: #285a7c; }
.important-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 10px 0 18px; }
.important-tool-grid article { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.important-tool-grid span { color: #285a7c; font-weight: 900; }
.link-card-grid button { padding: 0; }
.old-date { text-decoration: line-through; color: var(--muted); margin-right: 8px; }
.notice-board-list { display: grid; gap: 8px; }
.notice-board-list a { display: block; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; }
.notice-board-list a.is-hot { color: var(--red); }
.footer a { color: var(--blue); }

.page-shell { padding: 0 clamp(14px,4vw,54px) 46px; }
.list-panel { display: grid; gap: 8px; padding: 18px; box-shadow: none; }
.list-panel h2 { margin: 0 0 8px; }
.list-panel a { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfd; font-weight: 800; }
.list-panel b { color: var(--green); }
.big-tools a { min-height: 96px; }
.career-grid article h2 { margin-top: 0; color: var(--blue); }
.career-grid article p { color: var(--muted); }
.career-grid article a { color: var(--green); font-weight: 900; }

.feedback-card, .test-card { max-width: 900px; margin: 34px auto; padding: clamp(18px,3vw,34px); }
.feedback-card form, .test-controls { display: grid; gap: 14px; }
.feedback-card label, .test-controls label { display: grid; gap: 7px; font-weight: 900; }
#feedbackStatus, .result-box { display: block; margin-top: 16px; color: var(--green); font-weight: 900; }
.quiz-area { margin-top: 22px; display: grid; gap: 12px; }
.quiz-area fieldset { border: 1px solid var(--line); border-radius: 8px; background: white; }
.quiz-area label { display: block; margin: 8px 0; }
.result-box { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #eaf6f3; }
.result-box span { display: block; }

.footer { margin: 20px clamp(14px,4vw,54px) 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 800; }

@media (max-width: 1050px) {
  .ticker, .shortcut-grid { grid-template-columns: repeat(2,1fr); }
  .hero, .layout, .detail-shell { grid-template-columns: 1fr; }
  .current-affairs, .tool-grid, .mock-cards, .pdf-grid, .career-grid { grid-template-columns: repeat(2,1fr); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav:not(.static) { display: none; position: absolute; top: 64px; left: 14px; right: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
  .nav.open { display: grid; }
}

@media (max-width: 640px) {
  .ticker, .shortcut-grid, .mini-grid, .current-affairs, .tool-grid, .mock-cards, .pdf-grid, .career-grid, .detail-stats { grid-template-columns: 1fr; }
  .vacancy-card { grid-template-columns: 1fr; }
  .vacancy-meta { text-align: left; }
  .nav.static { display: none; }
  .hero h1, .page-shell h1, .detail-card h1 { font-size: 34px; }
  .vacancy-top-actions, .post-box-grid, .post-box-grid.cards, .custom-card-grid, .schedule-row { grid-template-columns: 1fr; }
  .post-heading-row { grid-template-columns: 1fr; }
  .post-logo { width: 72px; height: 72px; }
  .important-link-list div { display: grid; }
  .important-tool-grid { grid-template-columns: 1fr; }
  .important-tool-grid article { display: grid; }
}
