:root {
  --sged-accent: #0f9d8a;
  --sged-accent-deep: #0d7364;
  --sged-accent-soft: rgba(15, 157, 138, 0.1);
  --sged-ink: #16343a;
  --sged-muted: #62797f;
  --sged-bg: #eef5f4;
  --sged-card: #ffffff;
  --sged-line: #d8e5e4;
  --sged-line-strong: #bfd6d4;
  --sged-shadow: 0 16px 42px rgba(17, 56, 61, 0.08);
  --sged-shadow-hover: 0 20px 46px rgba(15, 66, 71, 0.14);
  --sged-radius-lg: 26px;
  --sged-radius-md: 18px;
  --sged-radius-sm: 14px;
}

.post-type-archive-college .rishi-search-count,
.tax-college_degree .rishi-search-count,
.post-type-archive-exam .rishi-search-count {
  display: none;
}

.sged-page {
  background:
    radial-gradient(circle at top right, rgba(15, 157, 138, 0.12), transparent 24rem),
    linear-gradient(180deg, #f7fbfb 0%, var(--sged-bg) 100%);
  color: var(--sged-ink);
  padding-bottom: 12px;
}

.sged-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.sged-page,
.sged-page p,
.sged-page li,
.sged-page td,
.sged-page th,
.sged-page dd {
  color: var(--sged-ink);
}

.sged-hero {
  padding: 34px 0 12px;
}

.sged-hero__inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #17363c 0%, #0f7768 58%, #0b5d52 100%);
  color: #fff;
  padding: 30px 32px;
  border-radius: 30px;
  box-shadow: var(--sged-shadow);
}

.sged-hero__inner::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 64%);
  pointer-events: none;
}

.sged-hero__inner h1,
.sged-section-heading h2,
.sged-card h3,
.sged-compact-item h4,
.sged-degree-cluster__head h3,
.sged-program-item__title h3,
.sged-cta-band h2 {
  color: inherit;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

.sged-hero__inner h1 {
  max-width: 920px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.sged-hero__inner p {
  margin: 12px 0 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

.sged-eyebrow,
.sged-card__eyebrow,
.sged-stat-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.sged-eyebrow {
  color: #acefe5;
  margin-bottom: 10px;
}

.sged-section {
  padding: 14px 0 42px;
}

.sged-section-heading {
  margin-bottom: 18px;
}

.sged-section-heading--split,
.sged-degree-cluster__head,
.sged-cta-band,
.sged-filter-panel__top,
.sged-results-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sged-section-heading p,
.sged-card__summary,
.sged-panel p,
.sged-compact-item p,
.sged-degree-cluster__head p,
.sged-program-item__title p,
.sged-cta-band p,
.sged-filter-panel__top p {
  margin: 10px 0 0;
  color: var(--sged-muted);
  line-height: 1.65;
}

.sged-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sged-inline-stat,
.sged-degree-cluster__count,
.sged-filter-panel__summary,
.sged-active-filter,
.sged-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sged-line);
  background: #fff;
  color: var(--sged-ink);
  font-size: 0.92rem;
}

.sged-inline-stat strong,
.sged-filter-panel__summary strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
}

.sged-filter-panel,
.sged-panel,
.sged-card,
.sged-degree-cluster,
.sged-stat-card,
.sged-cta-band,
.sged-program-item,
.sged-compact-item {
  background: var(--sged-card);
  border: 1px solid var(--sged-line);
  border-radius: var(--sged-radius-lg);
  box-shadow: var(--sged-shadow);
}

.sged-filter-panel {
  padding: 20px;
  margin-bottom: 18px;
}

.sged-filter-panel__summary {
  align-self: center;
  background: linear-gradient(180deg, #f7fffd 0%, #eef8f7 100%);
}

.sged-filter-panel__summary span {
  color: var(--sged-muted);
}

.sged-filter-panel__grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sged-filter-panel__grid--exam {
  grid-template-columns: 1.6fr 1fr 1fr;
}

.sged-filter-panel__search {
  grid-column: span 2;
}

.sged-filter-panel__grid--exam .sged-filter-panel__search {
  grid-column: span 1;
}

.sged-filter-panel label,
.sged-card__facts div,
.sged-fact-list div,
.sged-table td,
.sged-table th {
  font-size: 0.95rem;
}

.sged-filter-panel label span {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: var(--sged-ink);
}

.sged-filter-panel input,
.sged-filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--sged-line);
  border-radius: var(--sged-radius-sm);
  padding: 0 14px;
  background: #fff;
  color: var(--sged-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sged-filter-panel select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sged-muted) 50%),
    linear-gradient(135deg, var(--sged-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.sged-filter-panel input:focus,
.sged-filter-panel select:focus {
  outline: none;
  border-color: var(--sged-accent);
  box-shadow: 0 0 0 4px rgba(15, 157, 138, 0.12);
}

.sged-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sged-active-filter {
  background: rgba(15, 157, 138, 0.08);
  border-color: rgba(15, 157, 138, 0.14);
}

.sged-active-filter strong {
  margin-right: 2px;
}

.sged-filter-panel__actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sged-button,
.sged-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sged-button {
  border: none;
  background: var(--sged-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 157, 138, 0.2);
}

.sged-button:hover,
.sged-link-pill:hover {
  transform: translateY(-1px);
}

.sged-button--ghost,
.sged-link-pill {
  background: rgba(15, 157, 138, 0.08);
  color: var(--sged-accent-deep);
  box-shadow: none;
}

.sged-button--block {
  width: 100%;
  margin-top: 16px;
}

.sged-results-bar {
  margin-bottom: 16px;
  padding: 0 4px;
}

.sged-results-bar p,
.sged-results-bar span {
  margin: 0;
  color: var(--sged-muted);
}

.sged-results-bar strong {
  color: var(--sged-ink);
}

.sged-card-grid,
.sged-stats-grid {
  display: grid;
  gap: 16px;
}

.sged-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sged-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sged-card,
.sged-stat-card,
.sged-panel,
.sged-degree-cluster {
  padding: 18px;
}

.sged-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.sged-card:hover,
.sged-compact-item:hover,
.sged-program-item:hover {
  box-shadow: var(--sged-shadow-hover);
}

.sged-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sged-card__eyebrow {
  color: var(--sged-accent-deep);
}

.sged-card__micro {
  color: var(--sged-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.sged-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-top: 4px;
}

.sged-card h3 a,
.sged-degree-cluster__head h3 a,
.sged-table a,
.sged-compact-item h4 a {
  text-decoration: none;
  color: var(--sged-ink);
}

.sged-card__summary {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sged-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sged-chip-row--compact {
  gap: 8px;
}

.sged-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 0.9rem;
}

.sged-chip--soft {
  background: var(--sged-accent-soft);
  color: var(--sged-accent-deep);
}

.sged-card__facts,
.sged-fact-list {
  display: grid;
  gap: 10px;
}

.sged-card__facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--sged-line);
  padding-top: 14px;
}

.sged-card__facts div,
.sged-fact-list div {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fcfc 0%, #f1f7f6 100%);
}

.sged-card__facts dt,
.sged-fact-list dt {
  font-weight: 700;
  color: var(--sged-ink);
  margin-bottom: 3px;
}

.sged-card__facts dd,
.sged-fact-list dd {
  margin: 0;
  color: var(--sged-muted);
  line-height: 1.55;
}

.sged-card__footer {
  margin-top: auto;
}

.sged-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.sged-anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 157, 138, 0.08);
  color: var(--sged-accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.sged-stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sged-stat-card__label {
  color: var(--sged-accent-deep);
}

.sged-stat-card__value {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sged-ink);
}

.sged-two-column {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 18px;
}

.sged-panel {
  padding: 22px;
}

.sged-single .sged-panel:last-child {
  position: sticky;
  top: 24px;
  align-self: start;
}

.sged-fact-list--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sged-fact-list--tight {
  gap: 8px;
}

.sged-program-stack,
.sged-compact-list {
  display: grid;
  gap: 12px;
}

.sged-program-item {
  overflow: hidden;
}

.sged-program-item summary {
  list-style: none;
}

.sged-program-item summary::-webkit-details-marker {
  display: none;
}

.sged-program-item__summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 48px 18px 20px;
  cursor: pointer;
}

.sged-program-item__summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--sged-accent-deep);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.sged-program-item[open] .sged-program-item__summary::after {
  transform: rotate(45deg);
}

.sged-program-item__title h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.sged-program-item__title p {
  margin-top: 6px;
}

.sged-program-item__highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sged-program-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sged-accent-soft);
  color: var(--sged-accent-deep);
  font-size: 0.88rem;
}

.sged-program-pill strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sged-program-item__content {
  padding: 0 20px 18px;
}

.sged-degree-cluster__head h3 {
  font-size: 1.35rem;
  margin-top: 8px;
}

.sged-compact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.sged-compact-item__body {
  min-width: 0;
}

.sged-compact-item h4 {
  font-size: 1.04rem;
  line-height: 1.35;
}

.sged-compact-item p {
  margin-top: 6px;
  font-size: 0.92rem;
}

.sged-compact-item__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}

.sged-compact-item__facts span {
  color: var(--sged-muted);
  font-size: 0.9rem;
}

.sged-compact-item__facts strong {
  color: var(--sged-ink);
}

.sged-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sged-line);
  border-radius: var(--sged-radius-lg);
  background: #fff;
  box-shadow: var(--sged-shadow);
}

.sged-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sged-card);
}

.sged-table th,
.sged-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sged-line);
  text-align: left;
  vertical-align: top;
}

.sged-table th {
  background: #e8f6f3;
  color: var(--sged-accent-deep);
  font-weight: 700;
}

.sged-table tbody tr:hover {
  background: #f8fcfb;
}

.sged-date-pill {
  min-height: 32px;
  padding: 0 12px;
  background: var(--sged-accent-soft);
  border-color: transparent;
  color: var(--sged-accent-deep);
}

.sged-cta-band {
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(15, 157, 138, 0.08), rgba(22, 52, 58, 0.04));
  align-items: center;
}

.sged-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.sged-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sged-line);
  background: #fff;
  color: var(--sged-ink);
  text-decoration: none;
  font-weight: 700;
}

.sged-pagination .page-numbers.current {
  background: var(--sged-accent);
  border-color: var(--sged-accent);
  color: #fff;
}

.sged-empty {
  padding: 24px;
  border: 1px dashed var(--sged-line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sged-muted);
}

@media (max-width: 1100px) {
  .sged-card-grid,
  .sged-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sged-filter-panel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sged-filter-panel__search {
    grid-column: span 3;
  }
}

@media (max-width: 980px) {
  .sged-two-column,
  .sged-program-item__summary {
    grid-template-columns: 1fr;
  }

  .sged-single .sged-panel:last-child {
    position: static;
  }

  .sged-program-item__highlights {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .sged-shell {
    width: min(100vw - 20px, 1180px);
  }

  .sged-hero__inner,
  .sged-panel,
  .sged-card,
  .sged-stat-card,
  .sged-degree-cluster,
  .sged-filter-panel,
  .sged-cta-band,
  .sged-program-item__summary,
  .sged-program-item__content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sged-hero__inner,
  .sged-panel,
  .sged-card,
  .sged-stat-card,
  .sged-degree-cluster,
  .sged-filter-panel,
  .sged-cta-band,
  .sged-program-item {
    border-radius: 20px;
  }

  .sged-section-heading--split,
  .sged-degree-cluster__head,
  .sged-cta-band,
  .sged-filter-panel__top,
  .sged-filter-panel__actions,
  .sged-results-bar,
  .sged-compact-item {
    flex-direction: column;
    align-items: stretch;
  }

  .sged-card-grid,
  .sged-stats-grid,
  .sged-fact-list--compact,
  .sged-card__facts,
  .sged-filter-panel__grid,
  .sged-filter-panel__grid--exam {
    grid-template-columns: 1fr;
  }

  .sged-filter-panel__search {
    grid-column: span 1;
  }

  .sged-program-item__highlights {
    margin-top: 2px;
  }
}

@media (max-width: 560px) {
  .sged-hero__inner {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .sged-hero__inner h1 {
    font-size: 1.8rem;
  }

  .sged-chip,
  .sged-program-pill,
  .sged-inline-stat,
  .sged-active-filter,
  .sged-date-pill {
    font-size: 0.84rem;
  }

  .sged-table,
  .sged-table thead,
  .sged-table tbody,
  .sged-table tr,
  .sged-table td {
    display: block;
    width: 100%;
  }

  .sged-table thead {
    display: none;
  }

  .sged-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--sged-line);
  }

  .sged-table td {
    border: none;
    padding: 8px 14px;
  }

  .sged-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--sged-accent-deep);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}
