/* Alternatív nyitóoldal (/nyito2) */

/* Régi site header elrejtése csak ezen az oldalon */
body.nyito2-body > .header,
body.nyito2-body > .mobile-nav-button,
body.nyito2-body > #showme {
  display: none !important;
}

body.nyito2-body {
  background: #fffdf8 !important;
}

.nyito2 {
  --n2-ink: #0b1f3a;
  --n2-ink-soft: #1a3358;
  --n2-leaf: #1b9838;
  --n2-coral: #e23d3d;
  --n2-sand: #f3f1ea;
  --n2-paper: #fffdf8;
  --n2-muted: #4d5b70;
  --n2-line: rgba(11, 31, 58, 0.12);
  --n2-shadow: 0 18px 40px rgba(11, 31, 58, 0.1);
  --n2-font-display: "Syne", "Trebuchet MS", sans-serif;
  --n2-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--n2-ink);
  font-family: var(--n2-font-body);
  background: var(--n2-paper);
  min-height: 60vh;
  padding-top: 5.25rem;
  padding-bottom: 3rem;
}

/* A régi site navbar paddingjét ne örököljük – a fixed .nyito2-top már ad helyet */
.nyito2 > .wrapper-container {
  padding-top: 1.5rem !important;
}

/* Üres CMS intro: a kvízrács kerüljön közelebb a fixed headerhez */
.nyito2.nyito2--no-intro {
  padding-top: 4.5rem;
}

.nyito2.nyito2--no-intro > .wrapper-container {
  padding-top: 0.65rem !important;
}

@media (max-width: 960px) {
  .nyito2 > .wrapper-container {
    padding-top: 1rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .nyito2.nyito2--no-intro > .wrapper-container {
    padding-top: 0.4rem !important;
  }

  .nyito2 .fp-quiz-grid {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .nyito2 .fp-quiz-grid > .fp-quiz-card,
  .nyito2 .fp-quiz-grid > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

.nyito2 * {
  box-sizing: border-box;
}

.nyito2-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.nyito2-intro {
  margin: 0 0 1rem;
  color: #1F3B80;
  font-family: var(--n2-font-body);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
}

/* Hagyományos fejléc – fixed */
.nyito2-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--n2-paper, #fffdf8);
  border-bottom: 1px solid var(--n2-line);
  box-shadow: 0 4px 18px rgba(11, 31, 58, 0.04);
}

.nyito2-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  min-height: 4.25rem;
  padding: 0.55rem 0;
}

.nyito2-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.nyito2-logo img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 170px;
}

.nyito2-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nyito2-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nyito2-nav__link {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: var(--n2-ink-soft) !important;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.nyito2-nav__link:hover,
.nyito2-nav__link.is-active {
  background: rgba(27, 152, 56, 0.12);
  color: #0f6b28 !important;
}

.nyito2-user {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  max-width: 22rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.06);
  color: var(--n2-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.nyito2-user__label {
  flex: 0 0 auto;
}

.nyito2-user__email {
  min-width: 0;
  color: var(--n2-ink);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nyito2-nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 0;
  padding: 0.55rem;
  border: 1px solid var(--n2-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nyito2-nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--n2-ink);
  border-radius: 2px;
}

/* Tartalom */
.nyito2-section {
  padding: 1.75rem 0 0.5rem;
}

.nyito2-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.35rem;
}

.nyito2-section__title {
  margin: 0;
  font-family: var(--n2-font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--n2-ink);
  line-height: 1.1;
}

.nyito2-section__note {
  margin: 0;
  max-width: 22rem;
  color: var(--n2-muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.nyito2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.nyito2-card {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--n2-paper);
  border: 1px solid var(--n2-line);
  box-shadow: var(--n2-shadow);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nyito2-card:hover,
.nyito2-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(11, 31, 58, 0.14);
  border-color: rgba(27, 152, 56, 0.35);
  outline: none;
}

.nyito2-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #d9e2ef center / cover no-repeat;
}

.nyito2-card__status {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--n2-ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(11, 31, 58, 0.12);
}

.nyito2-card[data-status="online"] .nyito2-card__status {
  background: #e7f8ec;
  color: #0d6b28;
}

.nyito2-card[data-status="online"] .nyito2-card__status::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--n2-leaf);
  box-shadow: 0 0 0 0 rgba(27, 152, 56, 0.55);
  animation: n2-pulse 1.8s ease-out infinite;
}

.nyito2-card[data-status="coming-soon"] .nyito2-card__status {
  background: #fff4d8;
  color: #8a5a00;
}

.nyito2-card[data-status="closed"] .nyito2-card__status,
.nyito2-card[data-status="archived"] .nyito2-card__status {
  background: #eceff3;
  color: #5b6570;
}

.nyito2-card[data-status="reg-semi-final"] .nyito2-card__status,
.nyito2-card[data-status="online-semi-final"] .nyito2-card__status,
.nyito2-card[data-status="final"] .nyito2-card__status,
.nyito2-card[data-status="live-semi-final"] .nyito2-card__status {
  background: #e8eefc;
  color: #243a8f;
}

.nyito2-card__body {
  padding: 0.95rem 1.05rem 1.1rem;
}

.nyito2-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--n2-font-display);
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.2;
  color: var(--n2-ink);
}

.nyito2-card__desc {
  margin: 0;
  color: var(--n2-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.nyito2-card__go {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--n2-leaf);
}

.nyito2-app {
  margin-top: 2.4rem;
  padding: 1.4rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.96), rgba(26, 51, 88, 0.94));
  color: #fff;
  box-shadow: var(--n2-shadow);
}

.nyito2-app__title {
  margin: 0 0 0.35rem;
  font-family: var(--n2-font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.nyito2-app__text {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  line-height: 1.4;
}

.nyito2-app__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.nyito2-app__badges a {
  display: inline-block;
  line-height: 0;
  transition: transform 0.18s ease;
}

.nyito2-app__badges a:hover {
  transform: translateY(-2px);
}

.nyito2-app__badges img {
  height: 46px;
  width: auto;
  max-width: 170px;
}

.nyito2-empty {
  padding: 2rem;
  border: 1px dashed var(--n2-line);
  border-radius: 16px;
  text-align: center;
  color: var(--n2-muted);
  background: rgba(255, 255, 255, 0.55);
}

@keyframes n2-pulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 152, 56, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(27, 152, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 152, 56, 0); }
}

@media (max-width: 900px) {
  .nyito2-top__inner {
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
  }

  .nyito2-nav-toggle {
    display: inline-block;
  }

  .nyito2-nav {
    display: none;
    flex: 1 1 100%;
    order: 10;
  }

  .nyito2-nav.is-open {
    display: block;
  }

  .nyito2-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding-bottom: 0.4rem;
  }

  .nyito2-nav__link {
    border-radius: 10px;
  }

  /* Egy sor: logo | e-mail | hamburger */
  .nyito2-user {
    order: 0;
    flex: 1 1 0;
    margin-left: 0;
    max-width: none;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
  }

  .nyito2-user__label {
    display: none;
  }
}

@media (max-width: 767px) {
  .nyito2-grid {
    grid-template-columns: 1fr;
  }

  .nyito2-logo img {
    height: 36px;
  }

  .nyito2-section {
    padding-top: 1.25rem;
  }
}

/* CMS single oldal (templates/single.php) */
.nyito2--single > .wrapper-container {
  max-width: 920px;
}

.nyito2-article {
  padding: 0.5rem 0 2rem;
}

.nyito2-article__title {
  margin: 0 0 1.25rem;
  color: var(--n2-ink);
  font-family: var(--n2-font-body);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nyito2-article__body {
  color: var(--n2-ink-soft);
  font-family: var(--n2-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

.nyito2-article__body p {
  margin: 0 0 1rem;
}

.nyito2-article__body a {
  color: #0f6b28;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nyito2-article__body h2,
.nyito2-article__body h3,
.nyito2-article__body h4 {
  margin: 1.5rem 0 0.65rem;
  color: var(--n2-ink);
  font-family: var(--n2-font-body);
  font-weight: 800;
  line-height: 1.25;
}

.nyito2-article__body ul,
.nyito2-article__body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.nyito2-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

@media (max-width: 767px) {
  .nyito2-article__cols {
    grid-template-columns: 1fr;
  }

  .nyito2-article__title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
}
