/* ===== Exams center ===== */
.exams-hero .section-kicker {
  margin-bottom: 1.1rem;
}

.exams-search-panel {
  margin-bottom: 2rem;
}

.portal-results-inline {
  margin: -1rem 0 2rem;
  padding: 1.05rem;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15,79,101,.08);
}

.exams-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.exams-portal-card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: 0 18px 42px rgba(15,79,101,.08);
}

.exams-portal-card .icon-chip {
  margin-bottom: .2rem;
}

.exams-portal-card h2 {
  color: var(--brand-dark);
  font-size: 1.25rem;
  font-weight: 850;
  margin: 0;
}

.exams-portal-card p {
  color: #496578;
  line-height: 1.7;
  margin-bottom: .25rem;
}

.exams-portal-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.portal-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.portal-featured-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15,79,101,.055);
  padding: .85rem;
}

.portal-featured-pill strong {
  display: block;
  color: var(--brand-dark);
  font-size: .96rem;
  line-height: 1.35;
}

.portal-featured-pill span {
  display: block;
  color: #667b86;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: .15rem;
}

.portal-featured-pill .exam-related-links {
  flex: 0 0 auto;
}

.portal-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portal-category-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15,79,101,.07);
  padding: 1rem;
}

.portal-category-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
}

.portal-category-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(11,185,165,.12);
  color: var(--brand-mid);
  font-size: 1.15rem;
}

.portal-category-header h3 {
  color: var(--brand-dark);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
}

.portal-category-header p {
  color: #667b86;
  font-size: .84rem;
  font-weight: 700;
  margin: .2rem 0 0;
}

.portal-category-count {
  min-width: 34px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf7f8;
  color: var(--brand-dark);
  font-weight: 850;
}

.portal-preview-list {
  display: grid;
  gap: .32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-preview-list li {
  color: #4e6570;
  font-size: .9rem;
  line-height: 1.45;
}

.portal-preview-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(11,185,165,.55);
  margin-right: .45rem;
  vertical-align: .1em;
}

.portal-category-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
}

.portal-see-all-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand-dark);
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}

.portal-see-all-link:hover,
.portal-see-all-link:focus-visible {
  color: #0e7f8e;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.exam-feature-card {
  background: #fff;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15,79,101,.055);
}

.exam-feature-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .9rem;
}

.exam-section-label {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  background: #edf7f8;
  color: var(--brand-dark);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.25;
  padding: .28rem .55rem;
}

.exam-feature-card h3 {
  color: var(--brand-dark);
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
}

.exam-feature-card p {
  color: #4b5f6b;
  line-height: 1.65;
  margin-bottom: 0;
}

.exam-mini-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}

.exam-mini-meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 999px;
  background: #f8fcfd;
  color: #5d7480;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
  padding: .3rem .55rem;
}

.exam-mini-meta i {
  color: var(--brand-mid);
}

.exam-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
}

.exam-related-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  background: rgba(11,185,165,.10);
  color: var(--brand-dark);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.25;
  padding: .34rem .58rem;
  text-decoration: none;
}

.exam-related-links a:hover,
.exam-related-links a:focus-visible {
  background: var(--brand-dark);
  color: #fff;
}

.exam-related-links--compact a {
  width: 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
}

.exam-related-links--compact a i {
  margin: 0;
}

.exam-related-links--compact a {
  font-size: 0;
}

.exam-related-links--compact a i {
  font-size: .95rem;
}

.exams-department-block {
  scroll-margin-top: 100px;
  margin-bottom: 2.2rem;
}

.exams-department-block:last-child {
  margin-bottom: 0;
}

.exams-department-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.exams-department-header h3 {
  color: var(--brand-dark);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 850;
  margin: .35rem 0 0;
}

.exams-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15,79,101,.10);
  color: var(--brand-dark);
  font-weight: 850;
  padding: .45rem .8rem;
  white-space: nowrap;
}

.exams-section-group {
  margin-top: 1.1rem;
}

.exams-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 18px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 26px rgba(15,79,101,.05);
  padding: .85rem 1rem;
  text-align: left;
}

.exams-section-toggle:hover,
.exams-section-toggle:focus-visible {
  border-color: rgba(11,185,165,.35);
  box-shadow: 0 14px 32px rgba(15,79,101,.08);
}

.exams-section-toggle[aria-expanded="true"] {
  border-color: rgba(11,185,165,.42);
  box-shadow: 0 14px 34px rgba(15,79,101,.09);
}

.exams-section-toggle > i {
  color: var(--brand-mid);
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.exams-section-toggle[aria-expanded="true"] > i {
  transform: rotate(180deg);
}

.exams-section-toggle-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-width: 0;
  flex: 1;
}

.exams-section-toggle h4 {
  color: var(--brand-dark);
  font-size: 1.06rem;
  font-weight: 850;
  margin: 0;
}

.exams-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  border-radius: 999px;
  background: #edf7f8;
  color: var(--brand-dark);
  font-weight: 850;
  flex: 0 0 auto;
}

.exams-section-panel {
  margin-left: 1.15rem;
  padding: .65rem 0 .15rem 1rem;
  border-left: 2px solid rgba(11,185,165,.24);
  background: linear-gradient(90deg, rgba(11,185,165,.055), rgba(255,255,255,0));
}

.exam-compact-list {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-list-item {
  border: 1px solid rgba(15,79,101,.08);
  border-radius: 14px;
  background: #fbfefe;
  overflow: hidden;
}

.exam-list-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  border: 0;
  background: transparent;
  color: inherit;
  padding: .72rem .85rem;
  text-align: left;
}

.exam-list-row--button {
  cursor: pointer;
}

.exam-list-row--button:hover,
.exam-list-row--button:focus-visible {
  background: #f2fafb;
}

.exam-list-row--button[aria-expanded="true"] {
  background: #f2fafb;
}

.exam-list-toggle-marker {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(11,185,165,.12);
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

.exam-list-title-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  min-width: 0;
  flex: 1;
}

.exam-list-title {
  color: var(--brand-dark);
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.35;
}

.exam-list-sample {
  display: inline-flex;
  border-radius: 999px;
  background: #eef7f8;
  color: #5c7480;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  padding: .24rem .5rem;
}

.exam-detail-panel {
  border-top: 1px solid rgba(15,79,101,.08);
  background: #fff;
  padding: .85rem;
}

.exam-detail-panel p {
  color: #4b5f6b;
  line-height: 1.65;
  margin-bottom: .65rem;
}

.department-exams-list {
  display: grid;
  gap: 1.25rem;
}

.department-exam-section {
  scroll-margin-top: 104px;
  background: #fff;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15,79,101,.07);
  padding: 1.1rem;
}

.department-exam-section + .department-exam-section {
  margin-top: 1.15rem;
}

.department-exam-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(15,79,101,.10);
  margin-bottom: .9rem;
  padding-bottom: .75rem;
}

.department-exam-section-toggle {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-bottom: 1px solid rgba(15,79,101,.10);
  background: transparent;
  color: inherit;
  margin-bottom: .85rem;
  padding: 0 0 .75rem;
  text-align: left;
}

.department-exam-section-toggle:hover strong,
.department-exam-section-toggle:focus-visible strong {
  color: #0e7f8e;
}

.department-exam-section-toggle strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.3;
  margin: .25rem 0 0;
}

.department-exam-section-toggle .department-exam-section-actions i {
  color: var(--brand-mid);
  transition: transform .2s ease;
}

.department-exam-section-toggle[aria-expanded="true"] .department-exam-section-actions i {
  transform: rotate(180deg);
}

.department-exam-section-panel {
  padding-top: .05rem;
}

.department-exam-section-header h3 {
  color: var(--brand-dark);
  font-size: 1.18rem;
  font-weight: 850;
  margin: .25rem 0 0;
}

.department-exam-section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
}

.portal-result-group {
  margin-bottom: 1rem;
}

.portal-result-group:last-child {
  margin-bottom: 0;
}

.exams-empty-state {
  margin-bottom: 1.4rem;
}

.exams-audit-card code {
  color: var(--brand-dark);
}

/* ===== Exams department pages ===== */
.exams-intro-card {
  background: #fff;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15,79,101,.08);
  padding: 1.35rem;
}

.exams-intro-card p {
  color: #496578;
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0;
}

.exam-static-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.exam-static-card {
  background: #fff;
  border: 1px solid rgba(15,79,101,.10);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(15,79,101,.07);
  padding: 1.15rem;
}

.exam-static-card h3 {
  color: var(--brand-dark);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.35;
  margin: .8rem 0 .6rem;
}

.exam-static-card p {
  color: #496578;
  line-height: 1.7;
  margin: 0;
}

.exam-guidance-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-guidance-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #496578;
  line-height: 1.65;
}

.exam-guidance-list i {
  color: var(--brand-mid);
  padding-top: .16rem;
}

.exam-steps {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: exam-step;
}

.exam-steps li {
  counter-increment: exam-step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  color: #496578;
  line-height: 1.55;
}

.exam-steps li::before {
  content: counter(exam-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(11,185,165,.12);
  color: var(--brand-dark);
  font-weight: 900;
}

.exam-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(15,79,101,.98), rgba(14,127,142,.95));
  border-radius: 24px;
  color: #fff;
  padding: 1.35rem;
  box-shadow: 0 18px 46px rgba(15,79,101,.16);
}

.exam-cta-band h3 {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 850;
  margin: 0 0 .45rem;
}

.exam-cta-band p {
  color: rgba(255,255,255,.84);
  line-height: 1.7;
  margin: 0;
}

.exam-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  flex: 0 0 auto;
}

.exam-cta-actions .btn-light {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 1199.98px) {
  .portal-featured-grid,
  .portal-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 991.98px) {
  .exams-portal-grid,
  .portal-featured-grid,
  .portal-category-grid {
    grid-template-columns: 1fr;
  }

  .exam-cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .exams-portal-card,
  .exams-intro-card,
  .exam-static-card,
  .exam-feature-card,
  .exam-cta-band {
    border-radius: 18px;
  }

  .exams-department-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .department-exam-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .department-exam-section-actions {
    justify-content: flex-start;
  }

  .exams-section-toggle-text,
  .exam-list-title-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .exams-section-panel {
    margin-left: .45rem;
    padding-left: .7rem;
  }

  .exam-list-row {
    align-items: flex-start;
  }


  .exam-static-grid {
    grid-template-columns: 1fr;
  }

  .exam-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .exam-steps li::before {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
}
