/* Nemes-GéSZI 2026 – cikkoldal, konszolidált CSS
   A meglévő article-nav-bg-photo / article-nav-bg-solid osztályokat megtartja.
   A TinyMCE által tárolt HTML változatlan marad. */

/* Elrendezés */
.article-page {
  font-family: 'Inter', sans-serif;
  max-width: 1360px;
  width: calc(100% - 40px);
  padding: 34px 0 64px;
  color: #233445;
}
.article-page .row { margin-left: -15px; margin-right: -15px; }
.article-page .article-main { padding-right: 32px; min-width: 0; }
.article-page .article-aside { padding-left: 18px; padding-top: 0; }

/* Cím és kiemelt kép */
.article-page .article-title-block { margin: 0 0 28px; }
.article-page .article-eyebrow {
  font: 700 12px/1.5 'Inter', sans-serif;
  letter-spacing: .12em;
  color: #087da8;
  margin-bottom: 12px;
}
.article-page .article-title {
  font: 800 clamp(34px, 3.4vw, 52px)/1.13 'Manrope', sans-serif;
  letter-spacing: -.035em;
  color: #122c3c;
  margin: 0;
  overflow-wrap: break-word;
}
.article-page .content-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 15px;
}
.article-page .article-intro {
  position: static;
  z-index: auto;
  margin: 25px 0 22px;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font: 700 21px/1.6 'Manrope', sans-serif;
  letter-spacing: -.012em;
  color: #183b4b;
  text-align: left;
}
.article-page .article-intro p { margin: 0 0 14px; }

/* Cikktörzs – olvashatóság és TinyMCE kompatibilitás */
.article-page .article-body {
  width: 100%;
  max-width: 790px;
  padding: 0;
  margin: 32px auto 0;
  font: 400 20px/1.75 'Inter', sans-serif;
  color: #243447;
  text-align: left;
  overflow-wrap: anywhere;
}
/* A korábban tapasztalt 16px-es felülírás ellen célzott szabályok.
   A címsorok méretét és a beágyazott médiaelemeket nem érintik. */
@media (min-width: 768px) {
  .article-page .article-body,
  .article-page .article-body p,
  .article-page .article-body li,
  .article-page .article-body span {
    font-size: 20px !important;
    line-height: 1.75 !important;
  }
}
.article-page .article-body p {
  margin: 0 0 1.5em;
  letter-spacing: 0;
  text-align: left !important;
}
.article-page .article-body li { margin-bottom: 8px; text-align: left !important; }
.article-page .article-body strong,
.article-page .article-body b { font-weight: 700; }
.article-page .article-body h2,
.article-page .article-body h3,
.article-page .article-body h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: #163b50;
  margin: 1.5em 0 .6em;
  text-align: left !important;
}
.article-page .article-body h2 { font-size: 30px; }
.article-page .article-body h3 { font-size: 25px; }
.article-page .article-body h4 { font-size: 21px; }
.article-page .article-body ul { list-style: disc; padding-left: 28px; }
.article-page .article-body ol { list-style: decimal; padding-left: 28px; }
.article-page .article-body img,
.article-page .article-body video,
.article-page .article-body iframe { max-width: 100%; height: auto; }
.article-page .article-body table { max-width: 100%; display: block; overflow-x: auto; }
.article-page .article-body a { color: #007eac; text-decoration: underline; text-underline-offset: 3px; }

/* Metaadatok és elválasztók */
.article-page .date-left,
.article-page .date-right {
  float: none;
  display: inline-block;
  font-size: 13px;
  line-height: 1.8;
  color: #687a89;
  margin-right: 20px;
}
.article-page hr { border-color: #e8edf1; margin: 22px 0; }

/* Jobb oldali friss hírek */
.article-page .article-aside-heading { background: transparent; border: 0; padding: 0 0 10px; margin: 0 0 12px; }
.article-page .article-aside-heading h3 {
  font: 800 22px/1.3 'Manrope', sans-serif;
  text-align: left;
  margin: 0;
  color: #183b4b;
}
.article-page .article-news-card {
  background: #fff;
  border: 1px solid #e7edf1;
  border-radius: 13px;
  padding: 16px;
  margin: 0 0 18px;
  box-shadow: 0 6px 24px rgba(20, 50, 70, .045);
}
.article-page .article-news-card h3 {
  font: 700 17px/1.4 'Manrope', sans-serif;
  margin: 0 0 12px;
  text-align: left !important;
  color: #17394c;
}
.article-page .article-news-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.article-page .article-news-card p { font-size: 14px; line-height: 1.6; text-align: left !important; }
.article-page .article-news-card a { color: #007eac; }

/* Főképes fejléc és egyszínű tartalék */
.article-hero#head.secondary { height: 205px; min-height: 205px; }
.article-hero#head.secondary h1 {
  font: 800 clamp(30px, 3vw, 46px)/1.2 'Manrope', sans-serif;
  height: auto;
  bottom: 25px;
  margin: 0;
  max-width: 1000px;
}
body.article-nav-bg-solid #head.article-hero.secondary { background: #203f4d !important; }
body.article-nav-bg-photo #head.article-hero.secondary {
  background-color: #203f4d !important;
  background-image: linear-gradient(rgba(20, 48, 64, .85), rgba(20, 48, 64, .85)), var(--article-hero-image, none) !important;
  background-position: center, center 35% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
body[class*="article-nav-bg-"] #head.article-hero.secondary::after {
  background: transparent !important;
  pointer-events: none;
}

/* Alap navigáció: a logók és a HTML menüszerkezet változatlan */
body[class*="article-nav-bg-"]:not(.article-nav-scrolled) .navbar-inverse .navbar-nav > li > a {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
@media (min-width: 1200px) {
  body[class*="article-nav-bg-"]:not(.article-nav-scrolled) .navbar.navbar-inverse .navbar-nav.mainNav > li > a {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  body:not(.article-nav-scrolled) .navbar.navbar-inverse .navbar-nav.mainNav > li > a {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* Fehér, rögzített navigáció görgetéskor */
body.article-nav-scrolled .navbar.navbar-inverse {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11000;
  background: rgba(255, 255, 255, .98);
  border: 0;
  box-shadow: 0 5px 22px rgba(15, 35, 48, .12);
  min-height: 64px;
}
body.article-nav-scrolled .navbar-inverse .navbar-nav > li > a { color: #18384a; text-shadow: none; }
body.article-nav-scrolled .navbar-inverse .navbar-brand { margin-top: 0; }
body.article-nav-scrolled .navbar-inverse .navbar-brand img { max-height: 48px; width: auto; }
body.article-nav-scrolled .navbar-inverse .navbar-toggle { margin-top: 14px; }

/* Lenyíló almenük */
@media (min-width: 768px) {
  body[class*="article-nav-bg-"] .navbar.navbar-inverse .navbar-nav.mainNav > li > .dropdown-menu {
    background: #fff !important;
    background-image: none !important;
    opacity: 1 !important;
    min-width: 260px;
    padding: 8px 0;
    border: 1px solid #e2eaf0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(14, 42, 58, .17);
    overflow: hidden;
    z-index: 11020;
  }
  body[class*="article-nav-bg-"] .navbar.navbar-inverse .navbar-nav.mainNav .dropdown-menu > li > a {
    font-family: 'Manrope', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.45;
    color: #18384a !important;
    text-shadow: none !important;
    white-space: normal;
    padding: 10px 18px;
    background: transparent !important;
  }
  body[class*="article-nav-bg-"] .navbar.navbar-inverse .navbar-nav.mainNav .dropdown-menu > li > a:hover,
  body[class*="article-nav-bg-"] .navbar.navbar-inverse .navbar-nav.mainNav .dropdown-menu > li > a:focus {
    color: #007fa6 !important;
    background: #eaf7fb !important;
  }
}

/* Reszponzív töréspontok */
@media (max-width: 1199px) {
  .article-page { width: calc(100% - 36px); }
  .article-page .article-main { padding-right: 15px; }
  .article-page .article-aside { padding-left: 15px; }
}
@media (max-width: 991px) {
  .article-page .article-aside { margin-top: 40px; }
}
@media (max-width: 767px) {
  .article-page { width: calc(100% - 32px); padding-top: 22px; }
  .article-page .article-main,
  .article-page .article-aside { padding: 0 15px; }
  .article-page .article-title { font-size: 34px; }
  .article-page .article-title-block { margin-bottom: 22px; }
  .article-page .article-intro { font-size: 19px; }
  .article-page .article-body { font-size: 18px; line-height: 1.7; }
  .article-page .article-body p,
  .article-page .article-body li,
  .article-page .article-body span { font-size: 18px !important; line-height: 1.7 !important; }
  .article-page .article-body h2 { font-size: 25px; }
  .article-page .article-body h3 { font-size: 22px; }
  .article-hero#head.secondary { height: 205px !important; min-height: 205px !important; }
  .article-hero#head.secondary h1 {
    position: relative;
    top: 145px;
    bottom: auto;
    margin: 0;
    font-size: 29px;
    line-height: 1.2;
  }
  body.article-nav-scrolled .navbar-inverse .navbar-collapse { background: #fff; }
  body.article-nav-scrolled .navbar-inverse .navbar-nav > li > a { color: #18384a; }
}
