:root {
  --primary: #f37b21;
  --primary-dark: #d96510;
  --text: #1a1a2e;
  --muted: #5c5c7a;
  --bg: #f5f6fa;
  --white: #fff;
  --border: #e8e8ef;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--text);
}

.header-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 8px;
}

.header-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.header-search button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.header-search button:hover {
  background: var(--primary-dark);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-outline {
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: #fff5ee;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.main-nav a {
  padding: 6px 12px;
  color: var(--text);
  font-size: 0.88rem;
  border-radius: 4px;
  text-decoration: none;
}

.main-nav a:hover {
  background: #fff5ee;
  color: var(--primary);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff5ee 0%, #ffffff 60%);
  padding: 48px 0 40px;
  text-align: center;
}

.hero-with-image {
  padding: 0;
  background: var(--white);
}

.hero-with-image .container.hero-content {
  text-align: center;
}

.hero-visual {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
}

.hero-visual--banner {
  position: relative;
  max-width: 100%;
}

.hero-feature-img {
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.35) 0%,
    rgba(26, 26, 46, 0.55) 100%
  );
  padding: 32px 16px;
}

.hero-banner-overlay .hero-content {
  width: 100%;
}

.hero-banner-overlay h1 {
  color: var(--white);
  font-size: 2.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-banner-overlay .hero p,
.hero-banner-overlay p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-cta-row {
  margin-top: 16px;
}

.btn-on-image.btn-outline {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--white);
  color: var(--primary);
}

.btn-on-image.btn-outline:hover {
  background: var(--white);
}

/* College images */
.college-card-img-wrap {
  display: block;
  margin: 0 -16px 12px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.college-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--bg);
  transition: transform 0.25s ease;
}

.college-card-img-wrap {
  background: #e8eef5;
}

.college-card:hover .college-card-img {
  transform: scale(1.03);
}

.college-banner-wrap {
  max-height: 280px;
  overflow: hidden;
  background: var(--bg);
}

.college-banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.goal-card-with-img {
  padding: 0;
  overflow: hidden;
}

.goal-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.goal-card-with-img h3,
.goal-card-with-img .count,
.goal-card-with-img ul {
  padding: 0 20px;
}

.goal-card-with-img h3 {
  padding-top: 12px;
}

.goal-card-with-img ul {
  padding-bottom: 16px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-search {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 1rem;
}

/* Sections */
section {
  padding: 36px 0;
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.section-title span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: normal;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.goal-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.goal-card:hover {
  box-shadow: var(--shadow);
}

.goal-card h3 {
  color: var(--primary);
  margin-bottom: 4px;
}

.goal-card .count {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.goal-card ul {
  list-style: none;
  font-size: 0.88rem;
}

.goal-card li {
  padding: 2px 0;
}

.college-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.college-card h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.college-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.college-card .rating {
  color: #f5a623;
  font-weight: 600;
}

.college-card .fees {
  font-weight: 700;
  color: var(--primary);
}

.college-card .actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.college-card .actions .btn {
  font-size: 0.8rem;
  padding: 6px 10px;
}

/* Tool cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tool-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.tool-card h3 {
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Table */
.data-table {
  width: 100%;
  background: white;
  border-radius: var(--radius);
  border-collapse: collapse;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.data-table th {
  background: #fafafa;
  font-weight: 600;
}

/* Page header */
.page-header {
  background: white;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 1.6rem;
}

.page-header p {
  color: var(--muted);
  margin-top: 4px;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  margin-top: 48px;
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  color: #aaa;
  font-size: 0.85rem;
  padding: 3px 0;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.content-box {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.badge {
  display: inline-block;
  background: #fff5ee;
  color: var(--primary);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.tab.active,
.tab:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  text-decoration: none;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

/* Continue exploring — on every page */
.explore-next {
  background: white;
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 24px;
}

.explore-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.explore-link-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.explore-link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.explore-link-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.explore-link-card strong {
  color: var(--primary);
  font-size: 0.95rem;
}

.explore-link-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* Legal pages */
.legal-content h2 {
  margin: 28px 0 12px;
  font-size: 1.15rem;
  color: var(--text);
}

.legal-content h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
}

.legal-content ul {
  margin: 8px 0 16px 1.25rem;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content p {
  margin-bottom: 12px;
  color: var(--muted);
}

/* Auth modal */
body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(4px);
}

.auth-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  padding: 24px 24px 28px;
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.auth-modal__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.auth-modal__logo span {
  color: var(--text);
}

.auth-modal__tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin: 16px 0 20px;
}

.auth-tab {
  border: none;
  background: none;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-modal__hero h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.auth-modal__sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-modal__linkish {
  font-size: 0.85rem;
  color: #2563eb;
  margin-bottom: 16px;
}

.auth-benefits {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: var(--text);
}

.auth-benefits span:first-child {
  font-size: 1.1rem;
}

.auth-field {
  display: block;
  margin-bottom: 14px;
}

.auth-field__label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.auth-field__label em {
  color: #e11d48;
  font-style: normal;
}

.auth-field__wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.auth-field__wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.auth-field__icon {
  padding: 0 10px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.auth-field__wrap input,
.auth-field__wrap select {
  flex: 1;
  border: none;
  padding: 12px 10px;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  background: transparent;
}

.auth-field__wrap--phone .auth-phone-code {
  padding: 0 10px;
  font-size: 0.85rem;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  background: #f9fafb;
}

.auth-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  color: var(--text);
}

.auth-toggle__control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
  cursor: pointer;
}

.auth-check input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.auth-login-prompt {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}

.auth-link-btn {
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.auth-submit:hover {
  background: var(--primary-dark);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-form__message {
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 6px;
}

.auth-form__message.is-success {
  background: #ecfdf5;
  color: #047857;
}

.auth-form__message.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

/* Admin leads table */
.leads-table-wrap {
  overflow-x: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.leads-table th,
.leads-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.leads-table th {
  background: var(--bg);
  font-weight: 600;
  white-space: nowrap;
}

.cutoff-block__meta p {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cutoff-table td strong {
  color: var(--primary);
}

/* Forms */
.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.form-success {
  background: #ecfdf5;
  color: #047857;
  padding: 10px 12px;
  border-radius: 6px;
}

/* College predictor */
.predictor-result-card {
  margin-bottom: 14px;
}

.predictor-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.predictor-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.chance-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.chance-badge--safe {
  background: #ecfdf5;
  color: #047857;
}

.chance-badge--match {
  background: #eff6ff;
  color: #1d4ed8;
}

.chance-badge--reach {
  background: #fff7ed;
  color: #c2410c;
}

.chance-badge--unlikely {
  background: #fef2f2;
  color: #b91c1c;
}

.chance-badge--unknown {
  background: #f3f4f6;
  color: #6b7280;
}

/* Compare */
.compare-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-result-box {
  margin-top: 20px;
}

.compare-college-headers {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.compare-thumb {
  width: 100%;
  max-width: 140px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 8px;
}

.compare-col-header {
  text-align: center;
}

.compare-table th {
  width: 28%;
  background: var(--bg);
}

/* Reviews */
.reviews-toolbar {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reviews-list .review-card,
.reviews-list--compact .review-card {
  margin-bottom: 14px;
}

.review-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.review-card__title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.review-card__body {
  color: var(--text);
  line-height: 1.55;
}

.review-stars .star {
  color: #ddd;
  font-size: 1rem;
}

.review-stars .star--on {
  color: #f59e0b;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.review-tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--muted);
}

.review-helpful {
  margin-top: 10px;
  font-size: 0.8rem;
}

.review-college-name {
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.review-college-name a {
  color: var(--primary);
  text-decoration: none;
}

.home-reviews-section {
  background: #f8f9fc;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.home-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.reviews-grid-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reviews-page-section {
  padding-bottom: 48px;
}

.reviews-page-list .review-card {
  margin-bottom: 16px;
}

.review-filter-select {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .reviews-grid-home {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .compare-select-grid,
  .predictor-compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-college-headers {
    grid-template-columns: 1fr;
  }
}

/* Explore Programs (homepage) */
.explore-programs {
  background: var(--white);
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
}

.explore-programs__title {
  margin-bottom: 20px;
}

.program-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.program-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.program-chips::-webkit-scrollbar {
  display: none;
}

.program-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.program-chip.is-active {
  border-color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.program-chips-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.program-chips-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.explore-program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.explore-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: opacity 0.2s, transform 0.2s;
}

.explore-card.is-hidden {
  display: none;
}

.explore-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.explore-card__head h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.explore-card__sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.explore-card__icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.9;
}

.explore-card__cta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.explore-card__cta:hover {
  text-decoration: underline;
}

.ranking-score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}

.ranking-score-box {
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}

.ranking-score-box em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.ranking-score-box strong {
  font-size: 1.1rem;
  color: var(--text);
}

.explore-link-list {
  list-style: none;
  flex: 1;
}

.explore-link-list li {
  margin-bottom: 10px;
}

.explore-link-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.explore-link-list a:hover {
  color: var(--primary);
}

.compare-mini-list {
  list-style: none;
  flex: 1;
}

.compare-mini-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.compare-mini-row:hover {
  border-color: var(--primary);
  background: #fffaf6;
}

.compare-mini-row small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.72rem;
}

.compare-vs {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.explore-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  align-content: flex-start;
}

.mini-chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  background: #fafbfc;
}

.mini-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5ee;
}

.course-finder-list {
  list-style: none;
  flex: 1;
}

.course-finder-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.course-finder-list a:hover {
  color: var(--primary);
}

.course-finder-list strong {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .explore-program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .explore-program-grid {
    grid-template-columns: 1fr;
  }
  .ranking-score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
