/* Particle canvas is behind everything */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.exam-landing { position: relative; z-index: 1; }
.exam-index-landing { padding-top: 56px; }
.exam-index-cards-container { position: relative; }

/* Gradient glow behind cards */
.cards-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(30,111,232,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Top bar */
.exam-index-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 10px 20px;
  background: rgba(10,14,30,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.exam-index-header-title {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exam-index-header-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.exam-index-header-back:hover { background: rgba(255,255,255,0.12); }

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.brand-logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #1e6fe8, #4f8ef7);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(30,111,232,0.4);
}
.brand-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
.brand-logo-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  display: block;
}

.exam-index-hero-title {
  color: white;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.exam-index-hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 0;
}

/* Card icon glow */
.exam-type-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}
.exam-type-card:hover .exam-type-icon-wrap { transform: scale(1.1); }

.icon-center  { background: linear-gradient(135deg, rgba(30,111,232,0.3), rgba(79,142,247,0.2)); box-shadow: 0 0 20px rgba(30,111,232,0.2); }
.icon-coupon  { background: linear-gradient(135deg, rgba(249,115,22,0.3), rgba(251,146,60,0.2)); box-shadow: 0 0 20px rgba(249,115,22,0.2); }
.icon-demo    { background: linear-gradient(135deg, rgba(167,139,250,0.3), rgba(196,181,253,0.2)); box-shadow: 0 0 20px rgba(167,139,250,0.2); }
.icon-home    { background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(52,211,153,0.2)); box-shadow: 0 0 20px rgba(16,185,129,0.2); }

.exam-type-card.card-center:hover  { border-color: #1e6fe8; box-shadow: 0 0 40px rgba(30,111,232,0.25); }
.exam-type-card.card-coupon:hover  { border-color: #f97316; box-shadow: 0 0 40px rgba(249,115,22,0.25); }
.exam-type-card.card-demo:hover    { border-color: #a78bfa; box-shadow: 0 0 40px rgba(167,139,250,0.25); }
.exam-type-card.card-home:hover    { border-color: #10b981; box-shadow: 0 0 40px rgba(16,185,129,0.25); }

.card-arrow {
  margin-top: auto;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.exam-type-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* Footer bar */
.exam-landing-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  z-index: 1;
}

@media (max-width: 768px) {
  .exam-landing-hero { padding-block: 4.5rem 1.5rem; }
  .exam-type-card { padding: 1.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .exam-index-header { padding: 8px 12px; }
  .exam-index-header-title { font-size: 12px; }
  .exam-index-header-back { font-size: 12px; padding: 5px 10px; }
  .exam-index-header-back span { display: none; }

  .exam-landing-hero { padding-block: 4rem 1.25rem; }
  .brand-logo-icon { width: 40px; height: 40px; font-size: 1.25rem; }
  .brand-logo-text { font-size: 1.25rem; }
  .exam-index-hero-sub { font-size: 0.9rem; padding-inline: 0.5rem; }

  .exam-type-icon-wrap { width: 60px; height: 60px; font-size: 1.6rem; }
  .exam-type-title { font-size: 1.05rem; }
}
