/* ==========================================================================
   NPC-Logic / RIL-Games projektoldal
   1) Színséma: a rilgames.eu háttér- és szövegszíne megcserélve
   2) A projektoldal saját elrendezései (np- előtag)
   ========================================================================== */

/* --- 1) Színséma ---------------------------------------------------------- */
:root {
  /* szöveg <-> háttér csere */
  --text-color-black: #fff;
  --text-color-white: #1c1c28;
  --bg-white: #1c1c28;
  --background-color: #22222f;
  --background-grey: #22222f;
  --bg-grey: #22222f;
  --text-color-grey: #b4b4c0;
  --text-grey: #b4b4c0;
  --color-grey-10: rgba(255, 255, 255, 0.1);

  /* a kiemelő színeken (gomb, címke, kiemelt doboz) a szöveg sötét marad */
  --np-ink: #1c1c28;
  --np-border: rgba(255, 255, 255, 0.1);
}

body {
  color: var(--text-color-black);
}

.Button_buttonFilled__4iUvF,
.Label_labelFilled__1cCvs,
.TestYourSkillsV2_challenge__sqqaK,
.np-callout {
  color: var(--np-ink);
}

.BenefitsSection_benefitItem__mOQpV,
.TestYourSkillsV2_card__40cYR,
.np-card,
.np-faq__item {
  border: 1px solid var(--np-border);
}

.Navbar_container__LbTBz {
  border-bottom: 1px solid var(--np-border);
}

/* --- 2) Elrendezések ------------------------------------------------------ */
.np-btn {
  width: auto;
}

.np-section {
  width: 90%;
  max-width: 1296px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  scroll-margin-top: 180px;
}

.np-section--narrow {
  max-width: 936px;
}

/* teljes szélességű sáv (mint a rilgames.eu fehér szekciói) */
.np-band {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 64px 0;
  background: var(--bg-white);
  scroll-margin-top: 126px;
}

.np-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 936px;
  text-align: center;
}

.np-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.np-text--center {
  text-align: center;
  align-items: center;
}

.np-lead {
  color: var(--text-orange);
}

/* felsorolás a logó rombuszával */
.np-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.np-list li {
  position: relative;
  padding-left: 28px;
}

.np-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--gr-primary);
  border-radius: 2px;
  transform: rotate(45deg);
}

@media screen and (min-width: 1200px) {
  .np-list--cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

/* szöveg + kép */
.np-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.np-split > .np-text {
  max-width: 640px;
}

.np-split__media {
  width: min(560px, 100%);
  flex-shrink: 0;
}

@media screen and (min-width: 1200px) {
  .np-split {
    flex-direction: row;
    justify-content: space-between;
    gap: 64px;
  }

  .np-split--reverse {
    flex-direction: row-reverse;
  }
}

/* kártyák */
.np-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media screen and (min-width: 1200px) {
  .np-cards--2 {
    grid-template-columns: 1fr 1fr;
  }

  .np-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.np-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 32px 24px;
  background: var(--bg-white);
  border-radius: 30px;
  box-shadow: 0 0 28px 0 rgba(0, 0, 0, 0.25);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.np-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.35);
}

.np-card:hover .BenefitsSection_icon__MIvTe {
  transform: scale(1.08) rotate(-4deg);
}

.np-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.np-feature__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.np-feature__title svg {
  flex-shrink: 0;
}

/* kiemelt mondat (a rilgames.eu „Fő kihívás” dobozának mintájára) */
.np-callout {
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: var(--label-br-orange);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
}

.np-callout--blue {
  background-color: #cee3fd;
}

.np-callout--center {
  max-width: 900px;
  text-align: center;
}

/* GYIK */
.np-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media screen and (min-width: 1200px) {
  .np-faq {
    grid-template-columns: 1fr 1fr;
  }
}

.np-faq__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg-white);
  border-radius: 16px;
}

.np-band .np-faq__item,
.np-band .np-card {
  background: var(--background-color);
}

/* táblázat */
.np-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--np-border);
  border-radius: 16px;
}

.np-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
  font-size: 18px;
  line-height: 1.5;
}

.np-table th,
.np-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--np-border);
}

.np-table tr:last-child td {
  border-bottom: 0;
}

.np-table th {
  background: var(--gr-primary);
  color: var(--np-ink);
  font-weight: 700;
}

.np-table td:first-child {
  font-weight: 700;
}

/* sorok: kép + szöveg (a rilgames.eu játékmód-sorainak mintájára) */
.np-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
}

.np-rows .TestYourSkillsV2_modeImageWrap__2aGgR {
  max-width: 100%;
}

@media screen and (min-width: 1200px) {
  .np-rows .TestYourSkillsV2_modeRow__u_5gs {
    align-items: flex-start;
    gap: 48px;
  }
}

.np-note {
  width: 90%;
  max-width: 936px;
  padding: 40px 0 64px;
  text-align: center;
  color: var(--text-color-grey);
}

.np-cardlink {
  margin-top: auto;
}

.np-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.np-legal > div {
  background: var(--bg-white);
  border: 1px solid var(--np-border);
}

/* --- Képhelyőrző ---------------------------------------------------------- */
.np-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 12px, rgba(255, 255, 255, 0) 12px 24px);
  color: var(--text-color-grey);
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.np-ph__code {
  padding: 2px 12px;
  border-radius: 100px;
  background: var(--gr-primary);
  color: var(--np-ink);
  font-weight: 700;
  font-size: 16px;
}

.np-ph__size {
  opacity: 0.7;
}

/* --- Igazítások ----------------------------------------------------------- */
/* a görgetésre megjelenő burkoló elemek töltsék ki a helyüket */
.np-section > .AnimateOnScroll_root__zfRTr {
  width: 100%;
}

.np-header {
  margin: 0 auto;
}

.np-split > * {
  min-width: 0;
}

.np-split > :has(> .np-text) {
  flex: 1 1 0;
  width: 100%;
  max-width: 640px;
}

.np-split > :has(> .np-split__media) {
  flex-shrink: 0;
  width: min(560px, 100%);
}

.np-split > * > .np-split__media {
  width: 100%;
}

/* a sötét vonalas készség-ikonok világos lapkát kapnak, hogy sötét háttéren is látsszanak */
.CognitiveSkillsSection_skillIcon___8aMd {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.CognitiveSkillsSection_skillIcon___8aMd img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* hosszú, egyszavas főcímek (pl. „Pedagógusoknak”) keskeny kijelzőn se lógjanak ki */
@media screen and (max-width: 1199px) {
  .Text_h1__ctya1,
  .Text_h1-highlighted__F69Dl {
    font-size: clamp(26px, 8vw, 36px);
    overflow-wrap: break-word;
  }
}

/* az oldalról beúszó elemek ne okozzanak vízszintes görgetést mobilon */
.page_container___4KXm {
  width: 100%;
  overflow-x: clip;
}

/* ==========================================================================
   3) Reszponzív igazítások
   Töréspontok: telefon < 768px, tablet 768–1199px, asztali >= 1200px
   ========================================================================== */

/* --- Telefon és tablet ---------------------------------------------------- */
@media screen and (max-width: 1199px) {
  /* a tartalom a rögzített fejléc alatt kezdődjön, ne mögötte */
  .page_container___4KXm {
    margin-top: 126px;
  }

  /* a lenyíló menü a fejléc aljához igazodik, nem lóg rá a szlogenre */
  .MobileNavbar_menu__DxiKz {
    top: 100%;
    border-bottom: 1px solid var(--np-border);
  }

  .MobileNavbar_menu__DxiKz ul {
    padding-top: 1.5rem;
    gap: 1.5rem;
  }

  /* hosszú szavak a címsorokban se lógjanak ki */
  .Text_h2__zRVgz {
    font-size: clamp(24px, 7.2vw, 32px);
    overflow-wrap: anywhere;
  }

  .Text_subtitle__o__ba,
  .Text_subtitle-small__3F_VF {
    overflow-wrap: anywhere;
  }

  .np-band {
    padding: 48px 0;
    scroll-margin-top: 126px;
  }

  .np-callout {
    font-size: 18px;
  }

  .Footer_section__OWH4L {
    padding: 56px 20px;
  }

  /* karusszel: a kártyák ne nőjenek a képernyő 90%-ára tableten */
  .TestYourSkillsV2_card__40cYR {
    width: min(90vw, 340px);
    min-width: min(90vw, 340px);
  }

  .TestYourSkillsV2_track__SGvSk {
    margin-inline: auto;
  }

  .np-rows {
    gap: 48px;
  }
}

/* --- Telefon -------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  /* alacsonyabb fejléc, hogy több hely maradjon a tartalomnak */
  .MobileNavbar_container__cg96z {
    height: 88px;
  }

  .MobileNavbar_navbarTop__uwIxX {
    padding: 0.5rem 1.25rem;
  }

  .MobileNavbar_navbarTop__uwIxX > a {
    gap: 4px;
  }

  .MobileNavbar_navbarTop__uwIxX > a > img {
    width: 128px;
    height: auto;
  }

  .MobileNavbar_navbarTop__uwIxX .Text_button-small__B720v {
    font-size: 12px !important;
  }

  .page_container___4KXm {
    margin-top: 88px;
  }

  .np-section,
  .np-band,
  .BenefitsSection_container__vUSGb,
  .CognitiveSkillsSection_container__tt66S,
  .TestYourSkillsV2_container__0oi61 {
    scroll-margin-top: 100px;
  }

  .np-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  /* a háromoszlopos táblázat vízszintes görgetés nélkül is kiférjen */
  .np-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .np-table th,
  .np-table td {
    padding: 10px 8px;
    vertical-align: top;
  }
}

/* --- Tablet --------------------------------------------------------------- */
@media screen and (min-width: 600px) and (max-width: 1199px) {
  /* a hero gombjai egymás mellett, nem teljes szélességben */
  .Hero_buttonContainer__38QP1 {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media screen and (min-width: 700px) and (max-width: 1199px) {
  .np-cards--3,
  .np-faq {
    grid-template-columns: 1fr 1fr;
  }

  .np-list--cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }

  .BenefitsSection_benefitsContainer__QfKFS {
    flex-direction: row;
    align-items: stretch;
  }

  .BenefitsSection_benefitAnim__NypJT {
    width: calc(50% - 12px);
    max-width: none;
  }

  .BenefitsSection_benefitItem__mOQpV {
    max-width: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  /* kép + szöveg sorok egymás mellett */
  .np-rows .TestYourSkillsV2_modeRow__u_5gs {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .np-rows .TestYourSkillsV2_modeImageWrap__2aGgR {
    width: 220px;
    height: auto;
  }

  .CognitiveSkillsSection_itemsContainer__Ucz6J {
    flex-direction: row;
    gap: 32px;
  }

  .CognitiveSkillsSection_itemColumn__9sOR2 {
    flex: 1 1 0;
  }
}

@media screen and (min-width: 900px) and (max-width: 1199px) {
  .np-cards--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Asztali -------------------------------------------------------------- */
@media screen and (min-width: 1200px) {
  /* a 126px magas rögzített fejléc ne takarja el a tartalom tetejét */
  .page_container___4KXm {
    margin-top: 126px;
  }
}

/* „Egy rendszer, három kivitel”: a rilgames.eu-ról örökölt fehér (itt sötét) szekcióháttér helyett
   a lap háttere, különben az előtte álló sötét sáv után világos csík marad, és a cím a doboz élére kerül */
.TestYourSkillsV2_container__0oi61 {
  background-color: transparent;
}

/* --- Képek ---------------------------------------------------------------- */
.np-img {
  display: block;
  width: 100%;
  height: auto;
}

.np-img--photo {
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.TestYourSkillsV2_cardImageWrap__8nlQF .np-img--photo,
.TestYourSkillsV2_modeImageWrap__2aGgR .np-img--photo {
  border-radius: 20px;
}
