:root {
  --brand: #b91c45;
  --brand-dark: #8f1534;
  --navy: #111827;
  --blue: #2563eb;
  --green: #15904f;
  --amber: #f6c453;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --soft-2: #fff8e7;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eef3f8;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

.site-header,
main,
.footer {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, var(--brand), #8b1534);
  padding: 18px;
  text-align: center;
}

.brand {
  color: #ffffff;
  display: block;
  text-decoration: none;
}

.brand strong {
  color: #ffffff;
  display: block;
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1;
}

.brand span {
  color: rgba(255, 255, 255, 0.9);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: var(--navy);
  padding: 8px 12px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  padding: 9px 14px;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.search {
  display: flex;
  width: min(100%, 680px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 5px;
}

.search input {
  appearance: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 999px 0 0 999px;
  font-size: 15px;
  min-height: 38px;
  outline: 0;
  padding: 8px 14px;
}

.search input:focus {
  box-shadow: inset 0 0 0 2px rgba(185, 28, 69, 0.12);
}

.search button,
.read-link,
.social-btn,
.cta {
  border: 0;
  border-radius: 999px;
  background: #172554;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 16px;
  text-decoration: none;
}

.search button {
  flex: 0 0 auto;
  min-width: 92px;
}

.search button:hover,
.read-link:hover,
.social-btn:hover,
.cta:hover {
  background: #000000;
  color: #ffffff;
}

main {
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow-x: hidden;
  padding: 14px 20px 20px;
}

.page-title h1,
.post-head h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.page-title p,
.post-head p {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.social-actions,
.cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 230px));
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
}

.social-actions.compact {
  justify-content: start;
  margin: 16px 0 0;
}

.social-btn,
.cta {
  font-size: 15px;
  gap: 8px;
  min-height: 46px;
  padding: 9px 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.social-btn:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.social-icon,
.cta span {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
  line-height: 1;
  width: 26px;
}

.social-icon svg {
  fill: #ffffff;
  height: 17px;
  width: 17px;
}

.social-btn.whatsapp,
.cta.whatsapp {
  background: linear-gradient(135deg, #118642, #0d6f37);
}

.social-btn.telegram,
.cta.telegram {
  background: linear-gradient(135deg, #1f72d2, #1557a8);
}

.top-links {
  border: 1px solid #e8c65a;
  border-radius: 10px;
  background: #ffffff;
  margin: 0 0 14px;
  overflow: hidden;
}

.section-head,
.box-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 14px;
}

.section-head {
  background: linear-gradient(135deg, var(--brand), #8b1730);
  border-bottom: 1px solid var(--brand-dark);
}

.section-head h2,
.box-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  min-width: 0;
}

.section-head a,
.box-head a {
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  margin-left: auto;
  padding-left: 8px;
  text-decoration: none;
}

.top-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.top-list a {
  background: var(--soft-2);
  border-right: 1px solid #edd076;
  border-bottom: 1px solid #edd076;
  color: #001e84;
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px 14px;
  text-decoration: none;
}

.top-list a:nth-child(2n) {
  border-right: 0;
}

.top-list span {
  font-weight: 700;
}

.top-list strong {
  color: var(--green);
  font-size: 12px;
}

.search-note {
  border: 1px solid #f0c45a;
  background: var(--soft-2);
  border-radius: var(--radius);
  margin: 12px 0;
  padding: 12px;
  text-align: center;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.update-box,
.info-copy,
.page-title,
.category-list article,
.post-detail > section,
.post-head {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  min-width: 0;
  overflow: hidden;
}

.post-detail > .quick-view,
.post-detail > .summary-panel .quick-view {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.box-head {
  background: linear-gradient(135deg, var(--brand), #8b1730);
  border-bottom: 1px solid var(--brand-dark);
}

.box-result .box-head {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.box-admit-card .box-head {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.box-latest-jobs .box-head {
  background: linear-gradient(135deg, #15803d, #166534);
}

.box-answer-key .box-head {
  background: linear-gradient(135deg, #ea580c, #9a3412);
}

.box-admission .box-head {
  background: linear-gradient(135deg, #0891b2, #155e75);
}

.box-documents .box-head {
  background: linear-gradient(135deg, #475569, #1e293b);
}

.box-result {
  border-color: #bfdbfe;
}

.box-admit-card {
  border-color: #ddd6fe;
}

.box-latest-jobs {
  border-color: #bbf7d0;
}

.box-answer-key {
  border-color: #fed7aa;
}

.box-admission {
  border-color: #a5f3fc;
}

.box-documents {
  border-color: #cbd5e1;
}

.update-box ul {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
}

.update-box li {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 10px 0;
}

.update-box li:last-child {
  border-bottom: 0;
}

.update-box li a {
  color: #001e84;
  font-weight: 700;
  text-decoration: none;
}

.update-box li span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.empty {
  color: var(--muted);
  margin: 0;
  padding: 14px;
  text-align: center;
}

.info-copy {
  margin-top: 14px;
}

.info-copy h2,
.detail-table h2,
.content-box h2,
.useful-links h2,
.faq-box h2,
.notice-title h2 {
  margin: 0;
  background: var(--brand);
  border-bottom: 1px solid var(--brand-dark);
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  padding: 12px 14px;
}

.info-copy p {
  margin: 0;
  padding: 14px;
}

.page-title {
  margin-bottom: 14px;
  padding: 18px;
  text-align: left;
}

.page-title h1,
.post-head h1 {
  color: var(--brand);
}

.page-title p,
.post-head p {
  color: var(--muted);
}

.category-list {
  display: grid;
  gap: 12px;
}

.category-list article {
  padding: 14px;
}

.category-list h2 {
  margin: 0;
  font-size: 20px;
}

.category-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.category-list p {
  color: var(--muted);
  margin: 8px 0;
}

.mini-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.mini-meta span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 9px;
}

.post-detail {
  display: grid;
  gap: 12px;
}

.post-head {
  background: #fbfdff;
  border-color: #dbe3ef;
  padding: 18px;
  text-align: left;
}

.post-head-main {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 220px;
}

.post-title-area {
  min-width: 0;
}

.post-kicker {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.post-head h1 {
  color: #111827;
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: 0;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.post-meta-line span {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.post-head p {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.post-share-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.post-share-card > strong {
  color: #475569;
  font-size: 13px;
}

.share-whatsapp {
  align-items: center;
  background: #128c4a;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  text-decoration: none;
}

.share-whatsapp:hover {
  background: #0b6f38;
  color: #ffffff;
}

.notice-title p,
.content-box > div {
  margin: 0;
  padding: 14px;
}

.summary-panel {
  border-color: #dbe3ef;
  box-shadow: none;
}

.summary-panel h2 {
  background: #111827;
  border-bottom: 1px solid #111827;
  color: #ffffff;
  font-size: 16px;
  margin: 0;
  padding: 11px 14px;
}

.quick-view {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
}

.quick-view div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 12px;
}

.quick-view div:last-child {
  border-right: 1px solid var(--line);
}

.quick-view strong {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.quick-view span {
  color: var(--ink);
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.priority-links {
  border-color: #e5e7eb;
  box-shadow: none;
}

.priority-links h2 {
  background: #0f766e;
  border-bottom-color: #0f766e;
}

.action-links {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px;
}

.action-link {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 13px;
  text-decoration: none;
}

.action-link.primary {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.action-link:hover {
  border-color: var(--brand);
}

.action-link strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
}

.action-link span {
  align-self: end;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.action-link.disabled {
  background: #f8fafc;
  color: var(--muted);
}

.action-link.disabled span {
  color: var(--muted);
}

.priority-links .action-link.disabled:hover {
  background: #f8fafc;
  border-color: #dbe3ef;
  color: var(--muted);
}

.priority-links .action-link.disabled:hover strong,
.priority-links .action-link.disabled:hover span {
  color: var(--muted);
}

.priority-links .action-link:hover span {
  color: #ffffff;
}

.priority-links .action-link:hover {
  background: #0f766e;
  color: #ffffff;
}

.priority-links .action-link:hover strong {
  color: #ffffff;
}

.detail-table,
.content-box,
.faq-box {
  border-color: #e5e7eb;
  box-shadow: none;
}

.post-disclaimer {
  align-items: start;
  background: #fffbeb;
  border: 1px solid #facc15;
  border-left: 5px solid #ca8a04;
  border-radius: var(--radius);
  color: #713f12;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.post-disclaimer strong {
  color: #92400e;
  font-size: 14px;
}

.post-disclaimer span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.content-box table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.content-box th,
.content-box td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.content-box img {
  height: auto;
  max-width: 100%;
}

.content-box > div {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.content-box > div > *:first-child {
  margin-top: 0;
}

.content-box > div > *:last-child {
  margin-bottom: 0;
}

.content-box > div h2,
.content-box > div h3,
.content-box > div h4 {
  color: var(--brand);
  line-height: 1.25;
  margin: 18px 0 8px;
}

.content-box p {
  margin: 0 0 10px;
}

.content-box a {
  color: #0f766e;
  font-weight: 800;
}

.content-box blockquote {
  background: #f8fafc;
  border-left: 4px solid #0f766e;
  margin: 12px 0;
  padding: 10px 12px;
}

.content-box figure {
  margin: 12px 0;
}

.content-box figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  text-align: center;
}

.content-box hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.content-box pre {
  background: #0f172a;
  border-radius: var(--radius);
  color: #ffffff;
  overflow-x: auto;
  padding: 12px;
}

.content-box ul,
.content-box ol {
  margin: 10px 0;
  padding-left: 22px;
}

.content-box li {
  margin-bottom: 6px;
}

.table-grid,
.link-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.table-grid div,
.link-table div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  border-top: 1px solid #eef2f7;
  min-height: 50px;
}

.table-grid div:nth-child(odd),
.link-table div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.table-grid strong,
.table-grid span,
.link-table strong,
.link-table a,
.link-table span {
  padding: 11px;
}

.table-grid strong,
.link-table strong {
  background: #f8fafc;
  color: var(--brand);
}

.link-table a {
  font-weight: 700;
  text-align: center;
}

.post-detail .detail-table h2,
.post-detail .content-box h2,
.post-detail .useful-links h2,
.post-detail .faq-box h2,
.summary-panel h2 {
  font-size: 16px;
  letter-spacing: 0;
  padding: 11px 14px;
}

.post-detail .detail-table h2,
.post-detail .content-box h2,
.post-detail .faq-box h2 {
  background: #1f2937;
  border-bottom-color: #1f2937;
}

.compact-details {
  background: #ffffff;
  padding: 10px;
  gap: 8px;
}

.compact-details div {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
}

.compact-details div:nth-child(odd) {
  border-right: 1px solid #e5e7eb;
}

.faq-box ul {
  margin: 0;
  padding: 14px 18px 14px 32px;
}

.faq-box li {
  margin-bottom: 10px;
}

.footer {
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8fafc;
  color: var(--muted);
  padding: 0;
}

.footer-brand {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 16px;
}

.footer-brand strong {
  color: var(--brand);
}

.footer-brand strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.footer-brand p {
  margin: 8px auto 0;
  max-width: 760px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.footer-grid section {
  border-right: 1px solid var(--line);
  padding: 16px;
}

.footer-grid section:last-child {
  border-right: 0;
}

.footer-grid h2 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 16px;
}

.footer-grid a {
  display: block;
  border-top: 1px solid #eef0f4;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 0;
  text-decoration: none;
}

.disclaimer,
.copyright {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  text-align: center;
}

.disclaimer {
  background: var(--soft-2);
  color: #6b4b00;
}

.footer-trust {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--navy);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.footer-trust span {
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  padding: 10px;
}

.footer-trust span:last-child {
  border-right: 0;
}

code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 4px;
}

@media (min-width: 861px) {
  .category-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-detail {
    max-width: 960px;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .header-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid,
  .footer-trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-view {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-head-main,
  .action-links {
    grid-template-columns: 1fr;
  }

  .post-head-main {
    gap: 12px;
  }

  .quick-view div:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .quick-view div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .table-grid,
  .link-table,
  .mini-meta {
    grid-template-columns: 1fr;
  }

  .table-grid div:nth-child(odd),
  .link-table div:nth-child(odd),
  .footer-grid section {
    border-right: 0;
  }

  .footer-grid section,
  .footer-trust span {
    border-bottom: 1px solid var(--line);
  }

  .footer-trust span {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  body {
    background: #ffffff;
    font-size: 14px;
  }

  .site-header {
    border-left: 0;
    border-right: 0;
  }

  .header-top {
    padding: 12px;
  }

  .brand strong {
    font-size: 28px;
  }

  .brand span {
    font-size: 12px;
  }

  .nav {
    padding: 0 10px 10px;
  }

  .nav a {
    font-size: 13px;
    min-height: 38px;
    padding: 8px 12px;
  }

  .search {
    display: flex;
    width: 100%;
  }

  .search button {
    min-width: 82px;
    width: auto;
    padding-inline: 12px;
  }

  main {
    border: 0;
    padding: 10px;
  }

  .page-title h1,
  .post-head h1 {
    font-size: 25px;
  }

  .social-actions,
  .cta-row,
  .top-list,
  .board-grid,
  .footer-grid,
  .footer-trust {
    grid-template-columns: 1fr;
  }

  .cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-actions,
  .social-actions.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .post-share-card {
    padding: 10px;
  }

  .post-share-card > strong {
    display: none;
  }

  .share-whatsapp {
    width: 100%;
  }

  .social-btn {
    font-size: 13px;
    min-height: 42px;
    padding: 9px 12px;
  }

  .social-icon {
    display: none;
  }

  .quick-view {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quick-view div,
  .quick-view div:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .quick-view div + div,
  .quick-view div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .quick-view span {
    font-size: 15px;
  }

  .top-list a,
  .top-list a:nth-child(2n) {
    border-right: 0;
  }

  .section-head,
  .box-head {
    padding: 11px 12px;
  }

  .category-list h2 {
    font-size: 18px;
  }

  .table-grid div,
  .link-table div {
    grid-template-columns: 1fr;
  }

  .link-table a {
    text-align: left;
  }

  .post-head,
  .page-title,
  .category-list article {
    padding: 14px;
  }

  .post-head-main {
    gap: 12px;
  }

  .post-head p {
    font-size: 14px;
  }

  .action-links {
    gap: 8px;
    padding: 10px;
  }

  .action-link {
    min-height: auto;
    padding: 12px;
  }
}
