/* Fő címlap – agrarteszt6 panel design */

body.ndt-home {
  --qa-surface: #ffffff;
  --qa-surface-strong: #ffffff;
  --qa-glass-bg: #ffffff;
  --qa-glass-bg-hover: #ffffff;
}

body.ndt-home .qa-panel {
  background: #ffffff;
  border-color: rgba(7, 86, 41, 0.12);
  box-shadow: 0 18px 48px rgba(7, 86, 41, 0.08);
}

body.ndt-home .qa-panel::after {
  display: none;
}

body.ndt-home .qa-home-quiz-card__body {
  background: #ffffff;
}

body.ndt-home .navbar a,
body.ndt-home .navbar .nav-link {
  color: #fff;
}

body.ndt-home .navbar a:hover,
body.ndt-home .navbar .nav-link:hover {
  color: #fff;
  text-decoration: underline;
}

body.ndt-home .wrapper-container {
  max-width: min(var(--qa-max, 1180px), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px 48px;
}

.ndt-home__main {
  width: min(var(--qa-max, 1180px), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px 48px;
}

.qa-home {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 8px;
}

.qa-home__intro .qa-panel__inner {
  color: var(--qa-text);
  font-size: 18px;
  line-height: 1.65;
}

.qa-home__intro .qa-panel__inner h3 {
  margin: 0 0 0.75rem;
  color: var(--qa-text);
  font-size: 1.35rem;
  font-weight: 800;
}

.qa-home__intro .qa-panel__inner p:last-child {
  margin-bottom: 0;
}

.qa-home__intro-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.qa-home-quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.qa-home-quiz-card {
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.qa-home-quiz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(7, 86, 41, 0.14);
}

.qa-home-quiz-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.qa-home-quiz-card__link:hover {
  color: inherit;
  text-decoration: none;
}

.qa-home-quiz-card__media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--qa-border);
  background: color-mix(in srgb, var(--qa-primary) 8%, white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-home-quiz-card__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.qa-home-quiz-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 24px;
}

.qa-home-quiz-card__eyebrow {
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
}

.qa-home-quiz-card__eyebrow--coming-soon {
  background: linear-gradient(135deg, #ffe566 0%, #ffb830 52%, #ffd978 100%);
  color: #4a3600;
  border-color: rgba(255, 184, 48, 0.45);
}

.qa-home-quiz-card__eyebrow--online {
  background: linear-gradient(135deg, #7ee8a8 0%, #55d799 48%, #2fb86a 100%);
  color: #053d1f;
  border-color: rgba(47, 184, 106, 0.4);
}

.qa-home-quiz-card__eyebrow--closed {
  background: linear-gradient(135deg, #ff6b7a 0%, #f03e57 52%, #d92d45 100%);
  color: #fff;
  border-color: rgba(217, 45, 69, 0.35);
}

.qa-home-quiz-card__eyebrow--reg-semi-final,
.qa-home-quiz-card__eyebrow--online-semi-final {
  background: linear-gradient(135deg, #6b8cff 0%, #3849aa 50%, #2a3580 100%);
  color: #fff;
  border-color: rgba(56, 73, 170, 0.35);
}

.qa-home-quiz-card__eyebrow--final {
  background: linear-gradient(135deg, #0a6b3a 0%, #075629 48%, #043318 100%);
  color: #eafff2;
  border-color: rgba(4, 51, 24, 0.35);
}

.qa-home-quiz-card__eyebrow--on-setup,
.qa-home-quiz-card__eyebrow--archived {
  background: linear-gradient(135deg, #e8e8e8 0%, #c8c8c8 52%, #b0b0b0 100%);
  color: #333;
  border-color: rgba(0, 0, 0, 0.08);
}

.qa-home-quiz-card__title {
  margin: 0;
  font-family: var(--qa-font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--qa-text);
}

.qa-home-quiz-card__desc {
  margin: 0;
  color: var(--qa-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.qa-home-quiz-card__desc p:last-child {
  margin-bottom: 0;
}

.qa-home__app .ndt-app-promo {
  margin: 0;
}

body.ndt-home .footer {
  margin-top: 0;
  background-color: color-mix(in srgb, var(--qa-primary, #075629) 92%, #000);
}

@media (max-width: 900px) {
  .qa-home-quiz-grid,
  .qa-home__intro-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 834px) {
  body.ndt-home .wrapper-container,
  .ndt-home__main {
    padding-top: 12px;
  }
}
