/* =========================================================
   Kukucskáló – egyedi kinézet
   Hely: templates/protostar/css/user.css
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap");

/* ---------- Alap: háttér, betű, szöveg ---------- */
html body.site {
  background: #eaf3fa;
  border-top: 0;
  padding: 28px 20px 0;
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1f2b37;
}

.site p { margin: 0 0 1em; }

.site h1, .site h2, .site h3, .site h4 {
  font-family: inherit;
  font-weight: 900;
  line-height: 1.2;
  color: #1f2b37;
  margin: 0 0 .5em;
}
.site h1 { font-size: 36px; color: #1b5d96; }
.site h2 { font-size: 28px; }
.site h3 { font-size: 22px; }
.site h4 { font-size: 19px; }

html body.site a { color: #1b5d96; }
html body.site a:hover { color: #123f68; }
.site a:focus-visible {
  outline: 3px solid #e0701e;
  outline-offset: 2px;
  border-radius: 6px;
}

.site img { max-width: 100%; height: auto; }

/* ---------- A nagy fehér keret eltüntetése ---------- */
.body .container,
.body .container-fluid {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* ---------- Fejléc ---------- */
.header { margin-bottom: 16px; }
.header img {
  display: block;
  border-radius: 22px;
}

/* ---------- Főmenü (gépen) ---------- */
.navigation {
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 8px;
  margin-bottom: 24px;
}
.navigation .nav-pills { margin: 0; }
.navigation .nav-pills > li > a {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: #1f2b37;
  padding: 11px 18px;
  margin: 0 2px;
  border-radius: 999px;
}
.navigation .nav-pills > li > a:hover,
.navigation .nav-pills > li > a:focus {
  background: #eaf3fa;
  color: #123f68;
}
html body.site .navigation .nav-pills > .active > a,
html body.site .navigation .nav-pills > .active > a:hover {
  background: #1b5d96;
  color: #ffffff;
}

/* Almenük (pl. Tudnivalók) */
.navigation .nav-child {
  border: 0;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(27, 93, 150, .18);
}
.navigation .nav-child a {
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
}

/* ---------- Tartalom: fehér, kerekített doboz ---------- */
#content {
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 26px;
  padding: 36px 40px;
}
#content .page-header {
  border-bottom: 0;
  margin: 0 0 12px;
  padding: 0;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 12px;
}

/* Beágyazott videók férjenek el */
#content iframe { max-width: 100%; }
#content iframe[src*="youtube"],
#content iframe[src*="vimeo"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

/* ---------- Oldalsáv-dobozok (a szürke dobozok helyett) ---------- */
#aside .well,
#sidebar .well {
  background: #ffffff;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  padding: 24px;
  margin-bottom: 20px;
}
#aside .well .page-header,
#sidebar .well .page-header {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  font-size: 22px;
  color: #1b5d96;
}

/* ---------- Gombok ---------- */
.site .btn {
  background: #eaf3fa;
  background-image: none;
  color: #1f2b37;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  text-shadow: none;
  font-weight: 800;
  padding: 10px 20px;
}
html body.site .btn-primary {
  background: #1b5d96;
  color: #ffffff;
}

/* ---------- Lábléc ---------- */
.footer {
  color: #45525f;
  font-size: 15px;
  padding: 16px 0 32px;
}
.footer hr { display: none; }

/* =========================================================
   Telefon és kis képernyő
   ========================================================= */
@media (max-width: 767px) {
  html body.site {
    padding: 12px 10px 0;
    font-size: 17px;
  }
  .site h1 { font-size: 28px; }
  .site h2 { font-size: 23px; }
  .site h3 { font-size: 20px; }

  .header img { border-radius: 16px; }

  .navigation {
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 16px;
  }

  /* Jól látható "Menü" gomb a kis szürke ikon helyett */
  .navigation .navbar .btn-navbar {
    float: none;
    display: inline-block;
    margin: 0;
    padding: 10px 20px;
    background: #1b5d96;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 17px;
    font-weight: 800;
  }
  .navigation .navbar .btn-navbar .icon-bar { display: none; }
  .navigation .navbar .btn-navbar::after { content: "☰  Menü"; }

  /* A lenyíló menü pontjai */
  .navigation .nav-collapse .nav > li > a {
    color: #1f2b37;
    font-weight: 700;
    font-size: 17px;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 2px 0;
  }

  #content {
    border-radius: 20px;
    padding: 24px 18px;
  }
  #aside .well,
  #sidebar .well {
    border-radius: 20px;
    padding: 20px;
  }
}

/* ---------- Kiegészítés: háttér biztosan kék ---------- */
html,
html body.site {
  background: #eaf3fa !important;
}
.body,
.body .container,
.body .container-fluid {
  background: transparent !important;
}

/* ---------- Kiegészítés: egységes Nunito a cikkekben és dobozokban ---------- */
#content p, #content div, #content li, #content td, #content th,
#content strong, #content b, #content em, #content i:not([class*="icon-"]), #content a,
#content span:not([class*="icon-"]),
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6,
#aside p, #aside div, #aside li, #aside a, #aside span:not([class*="icon-"]),
#sidebar p, #sidebar div, #sidebar li, #sidebar a, #sidebar span:not([class*="icon-"]) {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif !important;
}

/* ---------- Kiegészítés 2: térkép, videók, lapozógombok ---------- */
#content iframe[src*="google.com/maps"] {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0 !important;
  border-radius: 18px;
}
#content iframe, #content video,
#aside iframe, #aside video,
#sidebar iframe, #sidebar video {
  border: 0 !important;
  border-radius: 16px;
  max-width: 100%;
}
.site .pager li > a,
.site .pager li > span {
  background: #eaf3fa;
  border: 0;
  border-radius: 999px;
  color: #1b5d96;
  font-weight: 800;
  padding: 10px 20px;
}
.site .pager li > a:hover,
.site .pager li > a:focus {
  background: #1b5d96;
  color: #ffffff;
}

/* ---------- Kiegészítés 2: telefonos menü ---------- */
@media (max-width: 767px) {
  .navigation {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
  }
  .navigation .navbar {
    margin: 0;
    min-height: 0;
    float: none;
  }
  .navigation .nav-collapse.in {
    background: #ffffff;
    border-radius: 20px;
    padding: 8px;
    margin-top: 10px;
  }
  .navigation .nav-collapse .nav { margin: 0; }
  #content { margin-bottom: 16px; }
}

/* ---------- Kiegészítés 3: almenük telefonon is látszanak ---------- */
@media (max-width: 767px) {
  .navigation .nav-collapse .nav-child {
    display: block;
    position: static;
    float: none;
    box-shadow: none;
    background: transparent;
    margin: 0 0 6px 14px;
    padding: 0 0 0 10px;
    border-left: 3px solid #eaf3fa;
    border-radius: 0;
  }
  .navigation .nav-collapse .nav-child::before,
  .navigation .nav-collapse .nav-child::after { display: none; }
  .navigation .nav-collapse .nav-child a {
    color: #1f2b37;
    font-size: 16px;
    padding: 9px 12px;
  }
}

/* ---------- Kiegészítés 4: teljes szélességű Menü gomb telefonon ---------- */
@media (max-width: 767px) {
  .navigation .navbar,
  .navigation .navbar.pull-left {
    float: none;
    width: 100%;
  }
  .navigation .navbar .btn-navbar {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 20px;
    font-size: 18px;
  }
}

/* ---------- Kiegészítés 5: almenük telefonon koppintásra nyílnak ---------- */
.kk-lenyito { display: none; }
@media (max-width: 767px) {
  .kk-js .navigation .nav-collapse .nav > li.parent { position: relative; }
  .kk-js .navigation .nav-collapse .nav > li.parent > a { padding-right: 64px; }
  .kk-js .navigation .nav-collapse .nav-child { display: none; }
  .kk-js .navigation .nav-collapse li.kk-nyitva > .nav-child { display: block; }
  .kk-lenyito {
    display: block;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 52px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #eaf3fa;
    color: #1b5d96;
    font-size: 22px;
    line-height: 44px;
    padding: 0;
    cursor: pointer;
  }
  .kk-lenyito span { display: inline-block; transition: transform .2s; }
  .kk-nyitva > .kk-lenyito span { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .kk-lenyito span { transition: none; }
}

/* ---------- Kiegészítés 6: lenyíló menü javítása telefonon ---------- */
@media (max-width: 767px) {
  /* a fehér doboz nőjön együtt a lenyitott almenüvel */
  .navigation .nav-collapse.in {
    height: auto !important;
    overflow: visible;
  }
  /* az almenüt csak a nyíl nyitja-csukja, a koppintás ("hover") nem */
  .kk-js .navigation .nav-collapse .nav > li > .nav-child,
  .kk-js .navigation .nav-collapse .nav > li:hover > .nav-child,
  .kk-js .navigation .nav-collapse .nav > li:focus-within > .nav-child {
    display: none !important;
  }
  .kk-js .navigation .nav-collapse .nav > li.kk-nyitva > .nav-child,
  .kk-js .navigation .nav-collapse .nav > li.kk-nyitva:hover > .nav-child {
    display: block !important;
  }
  /* a kis felfelé mutató csúcs eltüntetése */
  .navigation .nav-collapse .nav-child::before,
  .navigation .nav-collapse .nav-child::after {
    display: none !important;
    content: none !important;
  }
}