/* =========================================================
   components.css — cards, tabs, accordion
   ========================================================= */

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + .8vw, 1.5rem);
  transition: box-shadow .25s var(--ease);
}
.degree { min-height: 168px; }
.degree:hover { box-shadow: 0 2px 4px rgba(16, 40, 38, .05), 0 12px 28px rgba(16, 40, 38, .08); }
.aid { padding: 2rem 1.75rem; }

/* ---------- Tabs ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.tab {
  min-height: 56px;
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  background: #edf3f1;
  color: var(--ink-800);
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tab:hover { background: #dfebe7; }
.tab:active { background: #d3e4df; }
.tab:focus-visible { outline: none; box-shadow: var(--ring); }
.tab.is-active { background: var(--teal-500); color: var(--white); }
.tab.is-active:hover { background: var(--teal-600); }
.faq-category { display: none; }

.tab-panel { animation: panel-in .3s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: .75rem; }
.acc {
  border: 1px solid #eef1f0;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.acc[open] { background: var(--teal-50); border-color: var(--teal-50); }
.acc__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.25rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease);
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q::after {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236b7475' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='m2 4.5 4 3.5 4-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.acc[open] > .acc__q::after { transform: rotate(180deg); }
.acc__q:hover { color: var(--teal-500); }
.acc__q:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--teal-500); }
.acc__a { padding: 0 1.25rem 1.25rem; overflow: hidden; }
.acc__a p { font-size: .8125rem; line-height: 1.7; color: var(--ink-600); max-width: 900px; }
