/* ======= Alap háttér és betűtípus ======= */
body {
  background-color: #dfe3e6;
  font-family: Arial, sans-serif;
}

/* ======= Navigációs sáv ======= */
.navbar {
  background-color: #2b3e50 !important;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

/* ======= Tartalom és menü közti térköz ======= */
.content-container {
  margin-top: 2rem;
}

/* ======= Hírek, Keresés, Bulletin ======= */
.card,
#search-box,
#bulletin {
  background-color: #cfdbe9;
  border: 1px solid #aebfd1;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 20px;
}

/* ======= Gombok ======= */
.btn-primary {
  background-color: #2b6cb0;
  border-color: #2b6cb0;
}

.btn-primary:hover {
  background-color: #265a96;
  border-color: #265a96;
}

/* ======= Lábléc ======= */
footer {
  background-color: #dfe3e6;
  padding: 1rem 0;
  text-align: center;
  color: #333;
  font-size: 0.9rem;
}

/* ======= Regisztrációs doboz ======= */
.register-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  margin: 50px auto;
  background-color: #2563eb;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* ======= EWS színek ======= */
.score-0 { background-color: #a8e6a1 !important; }
.score-1 { background-color: #fff59d !important; }
.score-2 { background-color: #ffe066 !important; }
.score-3 { background-color: #f28b82 !important; }

.ews-box {
  background-color: #34435a !important;
  color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ======= Jelentéslap keret ======= */
.report-wrapper {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  margin: 30px auto;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ======= SBAR szekciók ======= */
.section {
  display: flex;
  background-color: #fff;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.section-label {
  width: 100px;
  min-width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  padding: 10px;
  text-align: center;
}

.section-content {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* SBAR színezés */
.section-content.situation { background-color: #fff3cd; }
.section-content.background { background-color: #fce4ec; }
.section-content.assessment { background-color: #f3e5f5; }
.section-content.recommendation { background-color: #e3f2fd; }

.section-label.situation { background-color: #f4b400; }
.section-label.background { background-color: #f48fb1; }
.section-label.assessment { background-color: #ce93d8; }
.section-label.recommendation { background-color: #90caf9; }

/* ======= Field ======= */
.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 8px;
  width: 100%;
}

.field span {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: left;
}

.field label {
  flex: 1 0 200px;
  font-weight: 500;
}

.field select,
.field input,
.field textarea,
.field button {
  flex: 2 1 300px;
  max-width: 300px;
  margin-left: auto;
  display: block;
}

/* ======= Gomb javítás desktop nézetben ======= */
@media (min-width: 769px) {
  .field-body button {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 90px;
    max-width: 110px;
    height: auto;
    background-color: #2b6cb0;       /* ugyanaz, mint a mentés */
    color: white;
    border: none;
    border-radius: 5px;              /* ez adja a lekerekítést */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
  }

  .field-body button:hover {
    background-color: #265a96;       /* hover szín */
  }
  select[name="reason_not_given"] {
    margin-left: auto;
    display: block;
    max-width: 300px;
  }
  .select-right {
    margin-left: auto;
    display: block;
    max-width: 300px;
  }
}

/* ======= Dátum + ágygombok ======= */
.top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar input[type="date"],
.top-bar button {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* ======= Mező tartalom és gomb ======= */
.field-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 10px;
}

.field-body button {
  margin-left: auto;
}

.field-content {
  text-align: left;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 250px;
  cursor: pointer;
}

/* ======= Mobil optimalizálás ======= */
@media (max-width: 768px) {
  .field {
    flex-direction: row; /* ← maradjon egy sorban */
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
  }

  .field-label {
    flex: 0 0 auto;
    font-weight: bold;
    margin-right: 8px;
  }

  .field-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: 10px;
  }

  .field-content {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px; /* vagy 80–120px */
    vertical-align: middle;
  }

  .field-body button {
    flex: 0 0 auto;
    max-width: 100px;
    font-size: 13px;
    padding: 4px 8px;
    white-space: nowrap;
    border-radius: 10px;
  }

  select[name="reason_not_given"] {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
  }

  .field select,
  .field input,
  .field textarea {
    width: 100%;
    max-width: 100%;
  }

  .section {
    flex-direction: column;
  }

  .section-content div,
  .section-content span {
    text-align: left;
  }

  .section-label {
    writing-mode: horizontal-tb;
    width: 100%;
    font-size: 20px;
  }

  .report-wrapper {
    padding: 15px;
    margin: 15px 10px;
  }
}

/* ======= További mező formázás ======= */
.field-control {
  text-align: left !important;
  justify-content: flex-start !important;
  display: block !important;
  width: 100%;
}

/* ======= Modal az adatmegjelenítéshez ======= */
#dataModal {
  /* display: none;  <-- Ez marad meg */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  display: none; /* <<< EZ LEGYEN AZ UTOLSÓ ÉS EGYETLEN display! */
}

.modal-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: left;
  white-space: pre-wrap;
  font-size: 16px;
  color: #333;
}

.modal-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;   /* EZ az extra javaslat */
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
}

/* (Globális) modal close gomb – ez maradjon általános */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #888;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

/* === Híroldal (news.php) stílusok === */

.news-box {
  background-color: #e9f2fb;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 60px;
  transition: all 0.3s ease-in-out;
}

.news-box:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.news-box h1 {
  font-weight: 600;
  font-size: 2rem;
}

.news-meta {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.news-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.news-content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 40px;
}

.news-content p {
  margin-bottom: 1rem;
}

.news-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 arány */
  height: 0;
  margin-bottom: 40px;
}

.news-video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: none;
  top: 0;
  left: 0;
  border-radius: 8px;
}

@media (max-width: 576px) {
  .news-box {
    padding: 20px;
  }

  .news-box h1 {
    font-size: 1.5rem;
  }

  .news-content {
    font-size: 1rem;
  }
}

/* === Tools csempék hover / active === */

a.card:hover,
a.card:focus,
a.card:active {
  background-color: #1c366b;
  color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a.card:hover .card-title,
a.card:hover .card-text {
  color: #ffffff;
}

/* === BMI OLDAL – KERET (kék doboz) === */
.bmi-card {
  background-color: #eaf2fb;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  margin: 40px auto;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* === BMI MODÁL KERET – ALACSONYABB MAGASSÁG, NINCS SCROLL === */
#bmiModal .modal-dialog {
  max-width: 420px;
  margin: 1.5rem auto;
}

#bmiModal .modal-content {
  background-color: #e0effd;
  border-radius: 16px;
  padding: 20px 25px;
  border: none;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  max-height: none;
  overflow: hidden;
}

/* === MODÁL TARTALOM === */
.bmi-modal-content {
  background-color: #eaf4ff;
  padding: 15px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* === Inputblokkok közel egymáshoz, kisebb távolságok === */
.bmi-modal-content .form-group {
  margin-bottom: 12px;
}

.bmi-modal-content .form-label {
  margin-bottom: 4px;
  font-size: 1rem;
  text-align: left;
}

.bmi-modal-content .form-control {
  padding: 7px 10px;
  font-size: 1rem;
}

/* === Eredmény szakasz: kis távolsággal alatta === */
#bmi-result-container {
  margin-top: 14px;
  text-align: center;
}

.bmi-result {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 4px;
  text-align: center;
}

.bmi-result.normal { color: #198754; }
.bmi-result.underweight,
.bmi-result.overweight { color: #d8a400; }
.bmi-result.obese,
.bmi-result.severe { color: #dc3545; }

/* === KÖZÉPRE IGAZÍTÁS MODÁLHOZ === */
#bmiModal .modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0 auto;
}

/* === VIP & GCS MODÁL – ULTRAKOMPAKT STÍLUS === */
.vip-modal-content {
  background-color: #eaf4ff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  font-size: 0.94rem;
}

.vip-modal-content .modal-header {
  padding: 4px 8px;
  margin-bottom: 2px;
  border-bottom: none;
}

.vip-modal-content .modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.vip-modal-content h6 {
  margin: 0 0 2px 0;
  font-size: 0.94rem;
  font-weight: bold;
}

.vip-score-lines {
  padding: 0;
  margin: 0;
  line-height: 1.2;
}

.vip-score-lines div {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.vip-clickable:hover {
  background-color: #dceeff;
  border-radius: 6px;
  padding-left: 4px;
}

#vip-result, #gcs-result {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
}

/* Mobil optimalizálás */
@media (max-width: 576px) {
  .vip-modal-content { padding: 6px; }
  .vip-score-lines div { font-size: 0.88rem; }
  #vip-result, #gcs-result { font-size: 0.9rem; }
  .form-select { font-size: 0.9rem; padding: 4px 6px; }
}

/* === MOBILNÉZET FINOMÍTÁS === */
@media (max-width: 576px) {
  #bmiModal .modal-dialog { max-width: 90%; margin: 1rem auto; }
  #bmiModal .modal-content { padding: 15px 20px; }
  .bmi-modal-content { padding: 12px; }
  .bmi-result { font-size: 1.1rem; }
  .bmi-modal-content .form-group { margin-bottom: 10px; }
}

/* Egységes kék háttér, keret és scroll nélkül – csak BSA, MAP, GFR */
#bsaModal .modal-content,
#mapModal .modal-content,
#gfrModal .modal-content {
  background-color: #e0effd;     /* világoskék háttér */
  border: none;                  /* fehér keret eltűntetése */
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  max-height: none;
  overflow: hidden;
}

/* Eredménydoboz */
#rsi-result {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}

/* intubációs cseklista */
.airway-box {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: 90%;
  background: #f8fcff;
  border: 2px solid #0d6efd30;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  z-index: 10000;
  padding: 1rem;
  font-family: sans-serif;
  /* ÚJ: görgetéshez szükséges */
  max-height: 85vh;
  overflow-y: auto;
}
.airway-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
/* >>> csak az airway-re: */
.airway-box .close-btn {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}
.airway-content { font-size: 0.92rem; }
.airway-section {
  border-left: 3px solid #0d6efd40;
  background-color: #eef7ff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
/* >>> csak az airway-re: */
.airway-section .section-title {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
/* >>> csak az airway-re: */
.airway-section .airway-details {
  font-size: 0.85rem;
  margin: 0.3rem 0 0 1.5rem;
  padding-left: 1rem;
}

/* Bootstrap d-none override – csak akkor hagyd bent, ha tényleg kell */
/* csak az airway komponensben rejtsen */
.airway-box .d-none { display: none !important; }

/* gyerek eszközök */
/* Táblázat fejléc */
#deviceTable thead {
  background: linear-gradient(to right, #30cfc0, #ffc15e);
  color: black;
  font-weight: bold;
}

/* Oszlopfejlécek színezése külön */
#deviceTable th:nth-child(1) { background-color: #30cfc0; color: white; }
#deviceTable th:nth-child(2) { background-color: #ffc15e; color: black; }
#deviceTable th:nth-child(3) { background-color: #30cfc0; color: white; }

/* Váltakozó sorok színezése minden oszlopban */
#deviceTable tbody tr:nth-child(odd) td:nth-child(1) { background-color: #c2f2ed; }
#deviceTable tbody tr:nth-child(even) td:nth-child(1) { background-color: #a6e3dc; }

#deviceTable tbody tr:nth-child(odd) td:nth-child(2) { background-color: #fff2dc; }
#deviceTable tbody tr:nth-child(even) td:nth-child(2) { background-color: #ffe3b8; }

#deviceTable tbody tr:nth-child(odd) td:nth-child(3) { background-color: #d6f7f1; }
#deviceTable tbody tr:nth-child(even) td:nth-child(3) { background-color: #c0ebe5; }

/* Határolók és szöveg igazítása */
#deviceTable th, #deviceTable td {
  border: 1px solid #ccc;
  vertical-align: middle;
  text-align: center;
}
#deviceTable td:first-child {
  text-align: left;
  font-weight: 500;
}

/* ===== Portál jellegű hírkártyák ===== */

/* Kártyák alap stílusa */
.featured-article, 
.secondary-article,
.news-grid .card {
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: #fff;
  opacity: 0;                 /* Fade-in indulás */
  animation: fadeInUp 0.6s ease forwards;
}

/* Hover kiemelés */
.featured-article:hover,
.secondary-article:hover,
.news-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  background-color: #f2f2f2;
}

/* Kiemelt cikk címe */
.featured-article .card-title a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
}
.featured-article .card-title a:hover {
  color: #0056b3;
}

/* Másodlagos és rács cikkek címe */
.secondary-article .card-title a,
.news-grid .card-title a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}
.secondary-article .card-title a:hover,
.news-grid .card-title a:hover {
  color: #0056b3;
}

/* Excerpt (kivonat) szöveg */
.card-text {
  line-height: 1.4;
}

/* Bulletin stílus */
#bulletin {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#bulletin h5 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}
#bulletin a.btn {
  font-size: 0.85rem;
}

/* Képméretek egységesítése */
.featured-img  { height: 360px; object-fit: cover; }
.secondary-img { height: 200px; object-fit: cover; }
.grid-img      { height: 180px; object-fit: cover; }

/* Hover sötétítés a képeken */
.news-card .card-img-top {
  transition: filter .25s ease;
}
.news-card:hover .card-img-top {
  filter: brightness(85%);
}

/* Fade-in animáció */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobil optimalizálás */
@media (max-width: 576px) {
  .featured-article .card-title a {
    font-size: 1.2rem;
  }
  .secondary-article .card-title a,
  .news-grid .card-title a {
    font-size: 1rem;
  }
}

/* ===== NEWS PAGE (namespaced) ===== */
.news-page .np-article { border-radius: 10px; }

/* Cím + meta visszafogott tipó */
.news-page .np-title {
  font-weight: 700;
  line-height: 1.25;
}
.news-page .np-meta  { opacity: .85; }

/* ---- SZÖVEGES cikk: hero/cover kép (vágás megengedett, a tetejét preferáljuk) ---- */
.news-page .np-hero {
  margin: 0;
  overflow: hidden;
  background: #eef2f7;
}
.news-page .np-hero-img {
  width: 100%;
  height: 420px;                 /* portálos, egységes magasság */
  object-fit: cover;
  object-position: top;          /* a felső rész előnyt élvez */
  display: block;
  border-radius: 0;
}

/* ---- KÉPES/VIDEÓS cikk: TELJES média, NEM vágunk ---- */
.news-page .np-full {
  margin: 1rem auto;
  text-align: center;
}
.news-page .np-full img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 6px;
  /* finom, modern árnyék (enyhe) */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.news-page .np-caption {
  margin-top: .5rem;
}

/* Videó wrap – középre, szellősen */
.news-page .np-video-wrap {
  margin: 1rem auto;
  max-width: 100%;
}
.news-page .np-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Törzsszöveg – kényelmes sorhossz, szellős ritmus */
.news-page .np-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #243042;
  max-width: 65ch;               /* olvasható sorhossz */
}
.news-page .np-content p { margin-bottom: 1rem; }
.news-page .np-content h2,
.news-page .np-content h3,
.news-page .np-content h4 {
  margin-top: 1.25rem;
  margin-bottom: .75rem;
  font-weight: 700;
}
/* CKEditor-ból érkező képek: max 100%, finom shadow */
.news-page .np-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Oldalsó kártyák (További cikkek) */
.news-page .np-side {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  background: #fff;
}
.news-page .np-side:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  background: #f7f7f7;
}
.news-page .np-side-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.news-page .np-side-title {
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Reszponzív finomhangolás */
@media (max-width: 576px){
  .news-page .np-hero-img { height: 260px; }
  .news-page .np-content  { font-size: 1rem; }
  .news-page .np-title    { font-size: 1.5rem; }
}
@media (min-width: 577px) and (max-width: 991.98px){
  .news-page .np-hero-img { height: 320px; }
  .news-page .np-title    { font-size: 1.75rem; }
}
/* ===== Kártyák – egységes, modern megjelenés + hover ===== */
.news-card {
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
  background-color: #fff;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.news-card .card-img-top {
  transition: filter .2s ease;
}
.news-card:hover .card-img-top {
  filter: brightness(0.95);
}

/* ===== Index képek viselkedése tartalomtípus szerint ===== */
/* 16:9 cover – SZÖVEGES/Videós cikkekhez */
.news-card .cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;  /* inkább a felső rész látszódjon */
  display: block;
  border-radius: 6px 6px 0 0;
}

/* Eredeti arány – KÉPES posztokhoz (mém/fotó), nincs vágás */
.news-card .image-post-img {
  width: 100%;
  height: auto;          /* arányt tart */
  object-fit: contain;
  display: block;
  background: #f8f9fb;   /* ha oldalt csík marad, legyen kulturált */
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
}

/* Magassági korlátok (desktopon ne legyen túl nagy) */
.featured-article .image-post-img { max-height: 420px; }
.secondary-article .image-post-img { max-height: 280px; }
.news-grid .image-post-img       { max-height: 220px; }

/* ===== Bulletin board képkezelés ===== */
#bulletin .b-thumb {
  width: 100%;
  display: block;
  margin-bottom: .5rem;
  border-radius: 6px;
}
#bulletin .b-thumb.cover-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}
#bulletin .b-thumb.image-post-img {
  height: auto;
  object-fit: contain;
  max-height: 180px;     /* hogy ne legyen túl magas a jobb hasábban */
  background: #f8f9fb;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
}

/* ===== Oldalsó (news.php) mini kártyákhoz is passzoló képbeállítások ===== */
.news-page .np-side-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ===== Reszponzív finomhangolás ===== */
@media (max-width: 576px){
  .featured-article .image-post-img { max-height: 300px; }
  .secondary-article .image-post-img { max-height: 220px; }
  .news-grid .image-post-img       { max-height: 200px; }
}
@media (min-width: 577px) and (max-width: 991.98px){
  .featured-article .image-post-img { max-height: 360px; }
}
/* ===== NEWS PAGE (namespaced) ===== */
.news-page .np-article { border-radius: 10px; }

/* Cím + meta visszafogott tipó */
.news-page .np-title {
  font-weight: 700;
  line-height: 1.25;
}
.news-page .np-meta { opacity: .85; }

/* ---- SZÖVEGES cikk: hero/cover (vágás megengedett, tetejét preferáljuk) ---- */
.news-page .np-hero {
  margin: 0;
  overflow: hidden;
  background: #eef2f7;
}
.news-page .np-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 0;
}

/* ---- KÉPES POSZT: teljes kép, NEM vágunk ---- */
.news-page .np-full {
  margin: 1rem auto;
  text-align: center;
}
.news-page .np-full img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* enyhe árnyék */
}
.news-page .np-caption { margin-top: .5rem; }

/* ---- Videó: középre, 16:9 ---- */
.news-page .np-video-wrap { margin: 1rem auto; max-width: 100%; }
.news-page .np-video iframe { width: 100%; height: 100%; border: 0; }

/* Törzsszöveg – kényelmes sorhossz, szellős ritmus */
.news-page .np-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #243042;
  max-width: 65ch;
}
.news-page .np-content p { margin-bottom: 1rem; }
.news-page .np-content h2,
.news-page .np-content h3,
.news-page .np-content h4 {
  margin-top: 1.25rem;
  margin-bottom: .75rem;
  font-weight: 700;
}
/* CKEditor-ból érkező képek: max 100%, finom shadow */
.news-page .np-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Oldalsó kártyák (További cikkek) */
.news-page .np-side {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  background: #fff;
}
.news-page .np-side:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  background: #f7f7f7;
}
.news-page .np-side-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.news-page .np-side-title {
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Reszponzív finomhangolás */
@media (max-width: 576px){
  .news-page .np-hero-img { height: 260px; }
  .news-page .np-content  { font-size: 1rem; }
  .news-page .np-title    { font-size: 1.5rem; }
}
@media (min-width: 577px) and (max-width: 991.98px){
  .news-page .np-hero-img { height: 320px; }
  .news-page .np-title    { font-size: 1.75rem; }
}
/* ===== Videós kártya jelvény + media wrapper ===== */
.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}
.video-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 1.25rem;
  line-height: 1;
  padding: .35rem .55rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 999px;
  pointer-events: none;
  user-select: none;
}
.news-page .np-video-wrap { margin: 1rem auto; max-width: 100%; width: 100%; }
.news-page .np-video { width: 100%; }
.news-page .np-video iframe { width: 100%; height: 100%; display: block; border: 0; }

/* CKEditor-ból beillesztett education cikkek ne törjék a gridet */
.news-page .np-content .hews-article{
  max-width:100% !important;
  margin:0 !important;
}
.news-page .np-content svg{
  max-width:100%;
  height:auto;
  display:block;
}
/* --- CK-ből jövő blokk teljes "reszponzív-izálása" --- */
.news-page .np-content,
.news-page .np-article .card-body { overflow-wrap:anywhere; }

/* semmi se lehessen szélesebb a hasábnál */
.news-page .np-content img,
.news-page .np-content video,
.news-page .np-content iframe,
.news-page .np-content table,
.news-page .np-content pre,
.news-page .np-content code,
.news-page .np-content figure,
.news-page .np-content svg {
  max-width:100% !important;
  box-sizing:border-box;
}

/* az SVG-k magasságát CSS-ből szabályozzuk (attribútum felülírása) */
.news-page .np-content svg[height="auto"] { height:auto !important; }

/* a CK-ből jövő figure ne hagyjon oldalsó auto margót */
.news-page .np-content figure { margin-left:0; margin-right:0; }

/* biztos, hogy a Bootstrap oszlop ne "feszítse" túl a sort */
@media (min-width: 992px){
  .news-page .col-lg-8,
  .news-page .col-lg-4 { min-width:0; }
}
/* --- Grid-robosztusság: az oszlopok zsugorodhassanak --- */
.news-page .col-12.col-lg-8,
.news-page .col-12.col-lg-4 {
  min-width: 0;              /* kulcs! különben a bal oszlop letolja a jobbat */
}

/* Hosszú szavak/URL-ek se törjék szét a layoutot */
.news-page .np-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Pre/code ne tartson végtelen szélességet */
.news-page .np-content pre,
.news-page .np-content code {
  white-space: pre-wrap;
}

/* Minden beágyazott média legyen folyékony */
.news-page .np-content img,
.news-page .np-content svg,
.news-page .np-content canvas,
.news-page .np-content iframe,
.news-page .np-content video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Education-cikkek: ne törje meg a hasábelrendezést ===== */

/* 1) Asztali nézetben a két hasáb maradjon egy sorban, és a bal hasáb tudjon zsugorodni */
@media (min-width: 992px) {
  .news-page .row.g-4 {
    flex-wrap: nowrap;             /* ne vigye le a jobb oldalt új sorba */
  }
  .news-page .row.g-4 > .col-lg-8 {
    min-width: 0;                  /* ENGEDJE a zsugorodást (ez a lényeg) */
  }
  .news-page .row.g-4 > .col-lg-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

/* 2) A beillesztett oktatási (CKE) tartalom fegyelmezése */
.news-page .np-content {
  overflow: hidden;                /* ha valami kilógna, ne tágítsa a hasábot */
}

.news-page .np-content img,
.news-page .np-content svg,
.news-page .np-content video,
.news-page .np-content iframe,
.news-page .np-content canvas {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.news-page .np-content .hews-article{
  max-width: 100% !important;
  margin: 0 !important;
}

/* 3) Törhetetlen hosszú darabok (pl. ritka HTML tokenek) ne feszítsenek szét semmit */
.news-page .np-content,
.news-page .np-content * {
  overflow-wrap: anywhere;
  word-break: break-word;
}