/* ══════════════════════════════════════════════════════
   ACADEMIST — exams.html styles
   ══════════════════════════════════════════════════════ */

.ex-hero {
  background: var(--ti);
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ex-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,70,229,.2), transparent);
  pointer-events: none;
}
.ex-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8); padding: 6px 16px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 24px;
}
.ex-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 16px;
  letter-spacing: -.02em;
}
.ex-hero h1 em { font-style: normal; color: var(--su); }
.ex-hero p {
  font-size: 1rem; color: rgba(255,255,255,.65);
  max-width: 580px; margin: 0 auto 36px; line-height: 1.7;
}
.ex-search-wrap {
  max-width: 480px; margin: 0 auto;
  position: relative;
}
.ex-search-wrap input {
  width: 100%; padding: 16px 20px 16px 48px;
  border-radius: 12px; border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: #fff;
  font-family: var(--font); font-size: .9rem; outline: none;
  transition: border .2s; box-sizing: border-box;
}
.ex-search-wrap input::placeholder { color: rgba(255,255,255,.35); }
.ex-search-wrap input:focus { border-color: var(--su); }
.ex-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.1rem; color: rgba(255,255,255,.4); pointer-events: none;
}

/* Filter tabs */
.ex-filters {
  background: var(--ti); padding: 0 24px 32px;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.ex-filter-btn {
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: transparent; color: rgba(255,255,255,.6);
  font-family: var(--font); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.ex-filter-btn:hover,
.ex-filter-btn.active {
  background: var(--su); border-color: var(--su); color: #111;
}

/* Stats strip */
.ex-stats {
  background: #0d1117; padding: 16px 24px;
  display: flex; justify-content: center; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ex-stat {
  text-align: center; padding: 12px 32px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.ex-stat:last-child { border-right: none; }
.ex-stat strong { display: block; font-size: 1.4rem; font-weight: 900; color: var(--su); }
.ex-stat span { font-size: .68rem; color: rgba(255,255,255,.4); letter-spacing: .06em; text-transform: uppercase; }

/* Body */
.ex-body { background: var(--bg); min-height: 60vh; }

.ex-category {
  padding: 56px 24px 24px;
  max-width: 1200px; margin: 0 auto;
}
.ex-category-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.ex-cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  font-size: 1.3rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.ex-cat-title { font-size: 1.1rem; font-weight: 800; color: var(--ti); }
.ex-cat-count { font-size: .72rem; color: var(--muted); font-weight: 600; }

/* Cards */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.ex-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid #e2e8f0; overflow: hidden;
  cursor: default; transition: box-shadow .2s, transform .15s;
  display: flex; flex-direction: column;
}
.ex-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.ex-card.hidden { display: none !important; }

.ex-card-top {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: flex-start; gap: 14px;
}
.ex-card-badge {
  width: 48px; height: 48px; border-radius: 12px;
  font-size: 1.4rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.ex-card-info { flex: 1; }
.ex-card-name { font-size: .95rem; font-weight: 800; color: var(--ti); margin-bottom: 3px; }
.ex-card-full { font-size: .7rem; color: var(--muted); line-height: 1.4; }
.ex-diff-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; margin-top: 6px;
}

.ex-card-body { padding: 16px 24px; flex: 1; }
.ex-card-desc {
  font-size: .82rem; color: var(--text);
  line-height: 1.7; margin-bottom: 14px;
}

.ex-meta-row {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.ex-meta-pill {
  padding: 4px 9px; background: #f1f5f9; border-radius: 999px;
  font-size: .65rem; font-weight: 700; color: var(--muted);
}

/* Timeline */
.ex-timeline-title {
  font-size: .65rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px; margin-top: 12px;
}
.ex-timeline-steps {
  display: flex; align-items: center;
  overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px;
}
.ex-tl-step {
  display: flex; flex-direction: column; align-items: center;
  min-width: 60px; text-align: center;
}
.ex-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-bottom: 6px; border: 2px solid white;
  box-shadow: 0 0 0 2px currentColor;
}
.ex-tl-label { font-size: .58rem; color: var(--muted); font-weight: 600; line-height: 1.3; }
.ex-tl-line {
  flex: 1; height: 1.5px; background: #e2e8f0;
  margin-bottom: 22px; min-width: 12px;
}

/* Tips */
.ex-tips-title {
  font-size: .65rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px; margin-top: 4px;
}
.ex-tip-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .78rem; color: var(--text); line-height: 1.5; margin-bottom: 5px;
}
.ex-tip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}

/* Footer of card */
.ex-card-footer {
  padding: 12px 24px; background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex; gap: 8px; margin-top: auto;
}
.ex-btn-practice {
  flex: 1; padding: 10px; border-radius: 8px; border: none;
  font-family: var(--font); font-size: .75rem; font-weight: 800;
  cursor: pointer; transition: filter .2s; text-align: center;
  text-decoration: none; display: block;
}
.ex-btn-practice:hover { filter: brightness(1.08); }
.ex-btn-guide {
  padding: 10px 14px; border-radius: 8px;
  background: #f1f5f9; color: var(--muted);
  border: none; font-family: var(--font); font-size: .75rem;
  font-weight: 700; cursor: pointer; transition: background .2s;
  text-decoration: none; display: flex; align-items: center;
}
.ex-btn-guide:hover { background: #e2e8f0; }

/* No results */
.ex-no-results {
  text-align: center; padding: 80px 24px; display: none;
}
.ex-no-results h3 { font-size: 1.1rem; color: var(--ti); margin-bottom: 8px; }
.ex-no-results p  { font-size: .85rem; color: var(--muted); }

/* CTA */
.ex-cta {
  background: var(--ti); padding: 64px 24px; text-align: center;
}
.ex-cta h2 { color: white; font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.ex-cta p  {
  color: rgba(255,255,255,.65); margin-bottom: 28px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.ex-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ex-cta-btns a {
  padding: 14px 28px; border-radius: 10px; font-weight: 800;
  font-size: .85rem; text-decoration: none; transition: all .2s;
}
.ex-cta-primary  { background: var(--su); color: #111; }
.ex-cta-secondary { background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.2); }
.ex-cta-primary:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.ex-cta-secondary:hover { background: rgba(255,255,255,.15); }

/* Mobile */
@media (max-width: 640px) {
  .ex-stat { padding: 12px 16px; }
  .ex-grid { grid-template-columns: 1fr; }
  .ex-category { padding: 40px 16px 16px; }
  .ex-filters { gap: 6px; }
  .ex-filter-btn { padding: 7px 12px; font-size: .65rem; }
}
