/*
Theme Name: ÓE Téma
Theme URI: https://nagysmarton.hu
Author: Nagy Sándor Márton
Author URI: https://nagysmarton.hu
Description: Saját fejlesztésű téma - Bootstrap 5.3.7 használatával
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obudai
*/

/* -------------------------------------------------------
   0) Alapok, betűkészlet
-------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* Bootstrap 5 változók felülírása */
:root {
  --bs-primary: #1d294d;
  --bs-primary-rgb: 29, 41, 77;
  --bs-secondary: #fcaf17;
  --bs-secondary-rgb: 252, 175, 23;
  --bs-info: #9ad1f0;
  --bs-info-rgb: 154, 209, 240;

  --bs-body-bg: #f6f6f6;
  --bs-body-font-family: "Open Sans", sans-serif;

  --bs-link-color: #1d294d;
  --bs-link-hover-color: #fcaf17;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1d294d;
  --bs-btn-border-color: #1d294d;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #fcaf17;
  --bs-btn-hover-border-color: #fcaf17;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #fcaf17;
  --bs-btn-active-border-color: #fcaf17;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1d294d;
  --bs-btn-disabled-border-color: #1d294d;
}

footer a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
footer a:hover {
  color: #fcaf17;
}

/* Sticky footer layout */
html,
body {
  height: 100%;
  background: #fff !important;
}
body {
  min-height: 100svh; /* modern mobilokon is pontos */
  display: flex;
  flex-direction: column;
}

a {
  color: #1d294d;
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: #fcaf17;
}

.page-content {
  /* ez fog “nyúlni” */
  flex: 1 0 auto;
}

footer {
  /* a footer lecsúszik az aljára */
  margin-top: auto;
}

body {
  background: #f6f6f6;
  color: #6b6b6b;
}
.page-content {
  background: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: "Open Sans", sans-serif;
  color: #1d294d;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dark-blue-bg {
  background: #1d294d;
}
.logo {
  width: 235px;
}

.dropdown-menu {
  background-color: #1d294d !important;
  border-bottom: 2px solid #fcaf17 !important;
}
.dropdown-menu a {
  color: #fff !important;
  text-transform: uppercase;
}
#mainMenu a {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1px;
}

.page-content .container {
  background: #fff;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(73, 92, 136, 0.12);
}

.sidebar-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(73, 92, 136, 0.12);
}

.transparent-bg {
  background: transparent !important;
  box-shadow: none !important;
}

h1.title {
  background-color: #fff;
  color: #1d294d;
  padding: 10px;
  border-radius: 0px;
  padding: 10px 0px;
  margin-bottom: 24px;
  margin-left: -6px;
  margin-right: -6px;
  font-weight: 700;
  border-bottom: 1px solid #1d294d;
}

/* -------------------------------------------------------
   1) Navbar – színek és alap állapot
-------------------------------------------------------- */

.navbar {
  border-bottom: 2px solid #fcaf17;
  box-shadow: 0px 5px 24px;
}

.navbar-nav .nav-link {
  color: #fff;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff;
  opacity: 0.85;
}

/* Aktív menüpont jelölése */
.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current-menu-parent > .nav-link,
.navbar-nav .current-menu-ancestor > .nav-link {
  color: #fcaf17 !important;
  font-weight: 700;
}

/* Aktív menüpont hover állapotban is maradjon narancssárga */
.navbar-nav .current-menu-item > .nav-link:hover,
.navbar-nav .current-menu-parent > .nav-link:hover,
.navbar-nav .current-menu-ancestor > .nav-link:hover {
  color: #fcaf17 !important;
  opacity: 1;
}

/* A dropdown panel mindig legyen a felső sor elemei felett */
.navbar .dropdown-menu {
  position: absolute; /* desktop alap */
  overflow: visible;
  z-index: 2000; /* elég magas, hogy a top-szint caretje se üljön rá */
}

/* -------------------------------------------------------
     2) TOP szintű dropdown (top1 → top2)
     Modern „rés-mentes” megjelenítés translate-tel
  -------------------------------------------------------- */
.navbar-nav > .dropdown > .dropdown-menu {
  margin-top: 0; /* nincs negatív margin → nincs hover-rés */
  transform: translateY(-0.5rem); /* finom előtolás, animálható */
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    visibility 0s linear 0.12s;
}

/* Desktop: hoverre jelenjen meg, szépen csúszva */
@media (hover: hover) and (pointer: fine) {
  .navbar-nav > .dropdown:hover > .dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 0.12s ease,
      opacity 0.12s ease,
      visibility 0s;
  }
}

/* Mobil/JS: amikor a Bootstrap .show-t rak rá, ugyanaz a végállapot */
.navbar-nav > .dropdown > .dropdown-menu.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    visibility 0s;
}

/* -------------------------------------------------------
     3) 2–3. szint (oldalra nyíló submenu-k)
     – jobbra az alap, open-left esetén balra nyíljon
  -------------------------------------------------------- */
.dropdown-submenu {
  position: relative;
}

/* Jobbra nyíló (alap) */
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin: 0;
  transform: translateX(0.25rem); /* kis „párna”, rés nélkül */
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    visibility 0s linear 0.12s;
}

/* Balra nyíló (ha a <li> kapja: open-left) */
.dropdown-submenu.open-left > .dropdown-menu {
  left: auto;
  right: 100%;
  transform: translateX(-0.25rem);
}

/* Desktop: hoverre mutassuk az alszintet */
@media (hover: hover) and (pointer: fine) {
  .dropdown-submenu:hover > .dropdown-menu,
  .dropdown-submenu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 0.12s ease,
      opacity 0.12s ease,
      visibility 0s;
  }
}

/* Mobil/JS: .show esetén látszódjon (akár 2., akár 3. szint) */
.dropdown-submenu > .dropdown-menu.show,
.dropdown-submenu.open-left > .dropdown-menu.show {
  display: block;
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    visibility 0s;
}

/* -------------------------------------------------------
     4) Ikonok / caretek a belső (2–3. szintű) toggle-okon
     – Desktop: oldalra mutató nyilak (› / ‹)
     – Mobil: lenyitás/felnyitás (▾ / ▴)
  -------------------------------------------------------- */

/* Bootstrap caret „lenullázása" a belső toggle-okon:
     - ne maradjanak háromszög-borderok / marginok
     - NEM használunk !important-et, hogy a saját szabályaink felülírhassák
  */
.dropdown-menu .dropdown-item.dropdown-toggle::after {
  border: 0;
  margin-left: 0;
  vertical-align: middle;

  /* Saját ikon pozicionálása - javított */
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  float: none;
  opacity: 0.6;
  width: auto;
  height: auto;

  /* a content-et lent, desktop/mobil media query-kben állítjuk */
}

/* Desktopon oldalirányú nyilak: jobbra az alap, open-left esetén balra */
@media (hover: hover) and (pointer: fine) {
  .dropdown-menu .dropdown-item.dropdown-toggle::after {
    content: "›";
  }
  .dropdown-submenu.open-left > a.dropdown-toggle::after {
    content: "‹";
  }
}

/* Mobilon fel/le nyilak: zárt → ▾, nyitott → ▴ */
@media (max-width: 991.98px) {
  .dropdown-menu .dropdown-item.dropdown-toggle::after {
    content: "▾";
  }
  .dropdown-menu .dropdown-item.dropdown-toggle[aria-expanded="true"]::after {
    content: "▴";
  }

  /* Mélyebb szintű menüpontok ikonjai is */
  .dropdown-submenu .dropdown-item.dropdown-toggle::after {
    content: "▾";
  }
  .dropdown-submenu
    .dropdown-item.dropdown-toggle[aria-expanded="true"]::after {
    content: "▴";
  }
}

a.dropdown-item.dropdown-toggle {
  margin-right: 10px;
  position: relative;
  padding-right: 2rem; /* Helyet hagyunk a nyíl ikonnak */
}

/* Stabil nyíl ikon pozicionálás */
a.dropdown-item.dropdown-toggle::after {
  position: absolute !important;
  right: 0.75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}

/* -------------------------------------------------------
     5) Mobil / tablet (lg alatt): stackelt submenu-k
     – minden submenu egymás alatt jelenik meg, nem oldalra
  -------------------------------------------------------- */
@media (max-width: 991.98px) {
  /* A collapse-en belül statikus elrendezés – ne legyen absolute/float */
  .navbar .dropdown-menu {
    position: static;
    float: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0;
    display: none; /* alap: rejtve */
    border: 0; /* opcionális vizuális tisztítás */
    box-shadow: none; /* opcionális */
    width: 100%; /* szépen törjön a szélesség */
  }

  /* .show állapotban látszódjon */
  .navbar .dropdown-menu.show {
    display: block;
  }

  /* A 2–3. szint már ne próbáljon oldalra nyílni mobilon */
  .dropdown-submenu > .dropdown-menu,
  .dropdown-submenu.open-left > .dropdown-menu {
    position: static !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    display: none; /* alap: rejtve */
  }

  /* 3. szintű menüpontok kezelése */
  .dropdown-submenu .dropdown-submenu > .dropdown-menu {
    position: static !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    display: none; /* alap: rejtve */
  }

  /* .show állapotban látszódjon minden szint */
  .dropdown-submenu > .dropdown-menu.show,
  .dropdown-submenu .dropdown-submenu > .dropdown-menu.show {
    display: block !important;
  }

  /* CSS-only megoldás a mélyebb szintű menüpontok kezeléséhez */
  .dropdown-submenu > .dropdown-toggle:focus + .dropdown-menu,
  .dropdown-submenu > .dropdown-toggle:active + .dropdown-menu,
  .dropdown-submenu .dropdown-submenu > .dropdown-toggle:focus + .dropdown-menu,
  .dropdown-submenu
    .dropdown-submenu
    > .dropdown-toggle:active
    + .dropdown-menu {
    display: block !important;
  }

  /* Hover állapot mobilon is működjön */
  .dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
  }
  .dropdown-submenu .dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
  }

  /* Kattintásos megnyitás mobilon - CSS-only megoldás */
  .dropdown-submenu > .dropdown-toggle:target + .dropdown-menu,
  .dropdown-submenu
    .dropdown-submenu
    > .dropdown-toggle:target
    + .dropdown-menu {
    display: block !important;
  }

  /* Bootstrap saját .show osztály használata minden szinten */
  .dropdown-submenu > .dropdown-menu.show,
  .dropdown-submenu .dropdown-submenu > .dropdown-menu.show,
  .dropdown-submenu .dropdown-submenu .dropdown-submenu > .dropdown-menu.show {
    display: block !important;
  }

  /* Bootstrap data-bs-toggle="dropdown" támogatás minden szinten */
  .dropdown-submenu [data-bs-toggle="dropdown"] + .dropdown-menu,
  .dropdown-submenu
    .dropdown-submenu
    [data-bs-toggle="dropdown"]
    + .dropdown-menu {
    display: none;
  }

  .dropdown-submenu [data-bs-toggle="dropdown"]:focus + .dropdown-menu,
  .dropdown-submenu [data-bs-toggle="dropdown"]:active + .dropdown-menu,
  .dropdown-submenu
    .dropdown-submenu
    [data-bs-toggle="dropdown"]:focus
    + .dropdown-menu,
  .dropdown-submenu
    .dropdown-submenu
    [data-bs-toggle="dropdown"]:active
    + .dropdown-menu {
    display: block !important;
  }

  /* Hierarchia jelölése: beljebb húzás */
  .dropdown-menu .dropdown-item {
    padding-left: 1.25rem;
  }
  .dropdown-menu .dropdown-menu .dropdown-item {
    padding-left: 2rem;
  }
  .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item {
    padding-left: 2.75rem;
  }

  /* Hosszú listák: ne lógjon ki a viewportból (opcionális) */
  .navbar .dropdown-menu.show {
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Speciális szabály a mélyebb szintű menüpontok megjelenítéséhez */
  .dropdown-submenu .dropdown-submenu .dropdown-menu {
    position: static !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    display: none;
  }

  /* 4. szintű menüpontok kezelése */
  .dropdown-submenu .dropdown-submenu .dropdown-submenu > .dropdown-menu {
    position: static !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    display: none;
  }

  /* Minden szintű .show osztály kezelése */
  .dropdown-submenu .dropdown-submenu .dropdown-menu.show,
  .dropdown-submenu .dropdown-submenu .dropdown-submenu > .dropdown-menu.show {
    display: block !important;
  }

  /* 4. szintű hierarchia jelölése */
  .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item {
    padding-left: 3.5rem;
  }

  /* Általános szabály minden mélységű menüponthoz */
  .navbar .dropdown-menu .dropdown-menu {
    position: static !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    display: none;
  }

  /* Minden mélységű .show osztály kezelése */
  .navbar .dropdown-menu .dropdown-menu.show {
    display: block !important;
  }

  /* Mélyebb szintű menüpontok ikonjainak kezelése */
  .navbar .dropdown-menu .dropdown-menu .dropdown-item.dropdown-toggle::after {
    content: "▾";
  }

  .navbar
    .dropdown-menu
    .dropdown-menu
    .dropdown-item.dropdown-toggle[aria-expanded="true"]::after {
    content: "▴";
  }
}
/* NEW STYLES-------------------------------------------------*/

/* FOOTER STYLES---------------------------------------------*/
.social-line {
  border-top: 1px solid #e7e7e7;
  width: 74%;
  margin-top: 20px;
}

.social-container {
  gap: 5px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: left;
  align-items: center;
  flex-grow: 0;
}

@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: auto !important;
    gap: 4px;
  }
}

/* Social media ikonok reszponzivitása */
@media (max-width: 768px) {
  .social-container {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: left;
    flex-grow: 0 !important;
  }

  .social-container .wp-block-column {
    flex-basis: auto !important;
    max-width: 50px;
  }

  .social-container img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .social-container {
    gap: 4px;
  }

  .social-container img {
    width: 35px;
    height: 35px;
  }
}
/* FOOTER STYLES END-----------------------------------------*/

/* -------------------------------------------------------
   SLIDE DOWN ANIMÁCIÓ
   Dropdown menü lecsúszó animációja
-------------------------------------------------------- */

/* Slide down keyframe animáció */
@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

/* Slide down animáció alkalmazása */
.navbar-nav > .dropdown > .dropdown-menu.show {
  animation: slideDown 0.4s ease-out;
}

/* Hover esetén is alkalmazza az animációt */
@media (hover: hover) and (pointer: fine) {
  .navbar-nav > .dropdown:hover > .dropdown-menu,
  .navbar-nav > .dropdown:focus > .dropdown-menu,
  .navbar-nav > .dropdown:active > .dropdown-menu {
    animation: slideDown 0.4s ease-out;
    padding-top: 15px;
    padding-bottom: 0px;
    border: none;
    border-radius: 0px;
  }
}

.dropdown-menu .dropdown-level-2 {
  padding-top: 0px;
  padding-bottom: 0px;
  border: none;
  border-radius: 0px;
}

.dropdown-menu .dropdown-level-3 {
  padding-top: 0px;
  padding-bottom: 0px;
  border: none;
  border-radius: 0px;
}

.dropdown-item {
  padding-top: 10px;
  padding-bottom: 10px;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  background-color: #fcaf17;
  color: #fff;
}

/* Aktív dropdown menüpont jelölése */
.dropdown-menu .current-menu-item > .dropdown-item,
.dropdown-menu .current-menu-parent > .dropdown-item,
.dropdown-menu .current-menu-ancestor > .dropdown-item {
  background-color: #fcaf17;
  color: #fff !important;
  font-weight: 700;
}

/* Aktív dropdown menüpont hover állapotban */
.dropdown-menu .current-menu-item > .dropdown-item:hover,
.dropdown-menu .current-menu-parent > .dropdown-item:hover,
.dropdown-menu .current-menu-ancestor > .dropdown-item:hover {
  background-color: #fcaf17;
  color: #fff !important;
  opacity: 0.9;
}

/* NEW STYLES END---------------------------------------------*/

/* -------------------------------------------------------
   MODERN TÁBLÁZAT STÍLUSOK
   Elegáns, responsive táblázatok a téma színeivel
-------------------------------------------------------- */

/* Táblázat alap stílusok */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(29, 41, 77, 0.1);
  border-radius: 10px;
  overflow: hidden;
  font-size: 15px;
}

/* Táblázat fejléc - csak akkor, ha van thead/th struktúra */
thead {
  background: linear-gradient(135deg, #1d294d 0%, #2a3a5f 100%);
  color: #fff;
}

.wp-block-table td,
.wp-block-table th {
  border: none;
}

thead th {
  padding: 1.4em !important;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-bottom: 3px solid #fcaf17 !important;
}

/* Táblázat sorok */
tbody tr {
  border-bottom: 1px solid #e7e7e7;
  transition: all 0.3s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

/* Egységes háttérszín minden sorhoz */
tbody tr {
  background-color: #f9f9f9;
}

/* Cella stílusok */
tbody td {
  padding: 0.875rem 1.25rem;
  color: #333;
  vertical-align: middle;
}

/* Első oszlop kiemelése */
tbody td:first-child {
  font-weight: 600;
  color: #1d294d;
}

/* Linkek a táblázatban */
table a {
  color: #1d294d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

table a:hover {
  color: #fcaf17;
  text-decoration: underline;
}

/* Táblázat lábjegyzet */
tfoot {
  background-color: #f6f6f6;
  font-weight: 600;
  border-top: 2px solid #1d294d;
}

tfoot td {
  padding: 1rem 1.25rem;
  color: #1d294d;
}

/* Speciális cellák - státusz jelölők */
td.status-active,
td.statusz-aktiv {
  color: #28a745;
  font-weight: 600;
}

td.status-inactive,
td.statusz-inaktiv {
  color: #dc3545;
  font-weight: 600;
}

td.status-pending,
td.statusz-folyamatban {
  color: #fcaf17;
  font-weight: 600;
}

/* Középre igazított cellák */
td.center,
th.center {
  text-align: center;
}

/* Jobbra igazított cellák (számokhoz) */
td.right,
th.right,
td.number,
th.number {
  text-align: right;
}

/* Kicsi táblázat variáns */
table.table-sm thead th {
  padding: 0.75rem 1rem;
  font-size: 12px;
}

table.table-sm tbody td {
  padding: 0.625rem 1rem;
  font-size: 14px;
}

/* Bordázott táblázat variáns */
table.table-bordered {
  border: 2px solid #1d294d;
}

table.table-bordered th,
table.table-bordered td {
  border: 1px solid #e7e7e7;
}

table.table-bordered thead th {
  border-bottom: 3px solid #fcaf17;
}

/* Kompakt táblázat (nincs zebra) */
table.table-compact tbody tr:nth-child(even) {
  background-color: #fff;
}

/* Színes fejléc variánsok */
table.table-primary thead {
  background: linear-gradient(135deg, #1d294d 0%, #2a3a5f 100%);
}

table.table-secondary thead {
  background: linear-gradient(135deg, #fcaf17 0%, #ffc04d 100%);
  color: #1d294d;
}

table.table-secondary thead th {
  border-bottom-color: #1d294d;
}

table.table-info thead {
  background: linear-gradient(135deg, #9ad1f0 0%, #b4ddf5 100%);
  color: #1d294d;
}

table.table-info thead th {
  border-bottom-color: #1d294d;
}

/* Responsive táblázat - görgetősáv kisebb képernyőkön */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(29, 41, 77, 0.1);
}

.table-responsive table {
  margin: 0;
  box-shadow: none;
}

/* Mobilra optimalizált táblázat */
@media (max-width: 767.98px) {
  /* Kártyaszerű megjelenítés mobilon */
  table.table-mobile thead {
    display: none;
  }

  table.table-mobile tbody,
  table.table-mobile tr,
  table.table-mobile td {
    display: block;
    width: 100%;
  }

  table.table-mobile tr {
    margin-bottom: 1rem;
    border: 2px solid #1d294d;
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(29, 41, 77, 0.1);
  }

  table.table-mobile tr:hover {
    transform: none;
  }

  table.table-mobile td {
    text-align: right;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e7e7e7;
    position: relative;
    padding-left: 50%;
  }

  table.table-mobile td:last-child {
    border-bottom: none;
  }

  table.table-mobile td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: 700;
    text-align: left;
    color: #1d294d;
  }

  /* Normál táblázatok kisebb betűméret */
  table:not(.table-mobile) {
    font-size: 13px;
  }

  table:not(.table-mobile) thead th {
    padding: 0.75rem 0.5rem;
    font-size: 11px;
  }

  table:not(.table-mobile) tbody td {
    padding: 0.625rem 0.5rem;
  }
}

/* Tablet optimalizálás */
@media (min-width: 768px) and (max-width: 991.98px) {
  table {
    font-size: 14px;
  }

  thead th {
    padding: 0.875rem 1rem;
    font-size: 12px;
  }

  tbody td {
    padding: 0.75rem 1rem;
  }
}

/* Nyomtatási stílusok */
@media print {
  table {
    border: 2px solid #1d294d;
    box-shadow: none;
  }

  thead {
    background: #1d294d !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Táblázaton belüli ikonok/badge-ek */
table .badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 5px;
}

table .badge-primary {
  background-color: #1d294d;
  color: #fff;
}

table .badge-secondary {
  background-color: #fcaf17;
  color: #1d294d;
}

table .badge-info {
  background-color: #9ad1f0;
  color: #1d294d;
}

table .badge-success {
  background-color: #28a745;
  color: #fff;
}

table .badge-warning {
  background-color: #ffc107;
  color: #1d294d;
}

table .badge-danger {
  background-color: #dc3545;
  color: #fff;
}

/* Rendezhetőség jelzése */
th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 2rem;
}

th.sortable::after {
  content: "⇅";
  position: absolute;
  right: 0.75rem;
  opacity: 0.5;
  font-size: 14px;
}

th.sortable.asc::after {
  content: "▲";
  opacity: 1;
  color: #fcaf17;
}

th.sortable.desc::after {
  content: "▼";
  opacity: 1;
  color: #fcaf17;
}

/* Speciális optimalizálás az üres első sor problémájára */
table tr:first-child:empty {
  display: none;
}

/* Jobb megjelenés kis táblázatokhoz (mint a képzési követelmények) */
table.compact-table {
  max-width: 800px;
  margin: 2rem auto;
}

table.compact-table thead th {
  background: linear-gradient(135deg, #1d294d 0%, #2a3a5f 100%);
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table.compact-table tbody td {
  text-align: left;
  line-height: 1.6;
}

/* Kredit információ kiemelése */
td[class*="kredit"] {
  font-weight: 600;
  color: #1d294d;
  background-color: #f0f7fc;
  border-left: 4px solid #fcaf17;
  padding-left: 1rem !important;
}

/* Természettudományos, gazdasági, informatikai kategóriák */
td.category-termeszet {
  background-color: #e8f5e8;
  border-left: 4px solid #28a745;
}

td.category-gazdasag {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}

td.category-info {
  background-color: #d1ecf1;
  border-left: 4px solid #17a2b8;
}

/* Táblázat címe stílus */
.table-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d294d;
  margin-bottom: 1rem;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #f6f6f6 0%, #e9ecef 100%);
  border-radius: 10px;
  border-left: 5px solid #fcaf17;
}

/* WordPress táblázat blokkok javítása - nincs thead/th struktúra */
.wp-block-table {
  margin: 1.5rem 0 !important;
  overflow: visible !important;
  position: relative !important;
}

.wp-block-table table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  background-color: #fff !important;
  box-shadow: 0 4px 4px 2px rgba(29, 41, 77, 0.15) !important;
  border-radius: 12px !important;
  overflow: visible !important;
  font-size: 15px !important;
  border: none !important;
  box-sizing: border-box !important;
}

/* Sorok stílusa */
.wp-block-table tbody tr {
  transition: all 0.3s ease !important;
}

/* Egységes háttérszín WordPress táblázatokhoz */
.wp-block-table tbody tr {
  background-color: #f9f9f9 !important;
}

/* Cella stílusok */
.wp-block-table tbody td {
  padding: 0.875rem 1.25rem !important;
  color: #212529 !important;
  vertical-align: middle !important;
  border-right: 1px solid #e7e7e7 !important;
  border-bottom: 1px solid #e7e7e7 !important;
  border-collapse: separate !important;
  box-sizing: border-box !important;
}

.wp-block-table tbody td:last-child {
  border-right: none !important;
}

.wp-block-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Első oszlop kiemelése (kategóriák) */
.wp-block-table tbody tr td:first-child {
  font-weight: 600 !important;
  color: #1d294d !important;
  background-color: #f8f9fa !important;
  position: relative !important;
}

/* Kredit számok kiemelése */
.wp-block-table tbody td:contains("kredit") {
  font-weight: 700 !important;
  color: #1d294d !important;
}

/* Üres cellák kezelése */
.wp-block-table tbody td:empty {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  font-style: italic !important;
  text-align: center !important;
}

/* Linkek a táblázatban */
.wp-block-table a {
  color: #1d294d !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.wp-block-table a:hover {
  color: #fcaf17 !important;
  text-decoration: underline !important;
}

/* Böngésző-kompatibilitási javítás a táblázat border-ekhez és árnyék megjelenítéshez */
.wp-block-table table,
.wp-block-table table * {
  -webkit-box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Biztosítjuk, hogy a szülő elemek sem vágják le az árnyékot */
.wp-block-table,
.wp-block-table *,
.wp-block-table::before,
.wp-block-table::after {
  overflow: visible !important;
}

/* Firefox-specifikus javítás */
@-moz-document url-prefix() {
  .wp-block-table table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .wp-block-table tbody td {
    border-right: 1px solid #e7e7e7 !important;
    border-bottom: 1px solid #e7e7e7 !important;
  }

  .wp-block-table tbody td:last-child {
    border-right: none !important;
  }

  .wp-block-table tbody tr:last-child td {
    border-bottom: none !important;
  }
}

/* Chrome/Webkit-specifikus javítás */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .wp-block-table table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
}

/* Mobil optimalizálás WordPress táblázatokhoz */
@media (max-width: 767.98px) {
  .wp-block-table table {
    font-size: 13px !important;
  }

  .wp-block-table tbody tr:first-child td {
    font-size: 11px !important;
    padding: 0.75rem 0.5rem !important;
  }

  .wp-block-table tbody td {
    padding: 0.625rem 0.5rem !important;
  }
}

.wp-block-post-excerpt__more-link {
  display: inline-block;
  background: #1d294d;
  padding: 8px;
  color: #fff;
  margin: 12px 0px;
}

.wp-block-post-excerpt__more-link:hover {
  background: #fcaf17;
  color: #ffffff;
}

.wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.25rem;
}

.wpcf7-list-item input[type="checkbox"] {
  width: 1em;
  height: 1em;
  margin: 0;
}

.oe-last-updated {
  background-color: #1d294d;
  color: #83b3d3 !important;
  padding: 10px !important;
  text-align: right !important;
  border-top: 1px solid #3a3a3a;
}

.onetap-toggle-label img {
  margin-bottom: 30px !important;
}

svg.search-icon {
  margin-top: 8px;
}

/* -------------------------------------------------------
   Ivory Search – egységes megjelenés
   Illeszkedés a sötétkék-narancs arculathoz
-------------------------------------------------------- */
.is-menu .is-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background-color: #fff;
  border: 2px solid rgba(29, 41, 77, 0.1);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(29, 41, 77, 0.12);
  font-family: "Open Sans", sans-serif;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  min-width: 260px;
}

.is-menu .is-search-form:focus-within {
  border-color: #fcaf17;
  box-shadow: 0 0 0 3px rgba(252, 175, 23, 0.2);
}

.is-menu .is-search-input {
  flex: 1 1 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d294d;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  outline: 0;
}

.is-menu .is-search-input::placeholder {
  color: rgba(29, 41, 77, 0.55);
  font-weight: 400;
}

.is-menu .is-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fcaf17;
  color: #1d294d;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.is-menu .is-search-submit:hover,
.is-menu .is-search-submit:focus {
  background: #f7a000;
  transform: translateY(-1px);
}

.is-menu .is-search-submit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.is-menu .search-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.is-menu .search-close:hover,
.is-menu .search-close:focus {
  color: #fcaf17;
}

/* Autocomplete találati lista */
.is-search-suggestions {
  margin-top: 0.75rem;
  border: 1px solid rgba(29, 41, 77, 0.15);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(29, 41, 77, 0.18);
  overflow: hidden;
  background: #fff;
}

.is-search-suggestions li {
  border-bottom: 1px solid rgba(29, 41, 77, 0.08);
}

.is-search-suggestions li:last-child {
  border-bottom: none;
}

.is-search-suggestions a {
  display: block;
  padding: 0.75rem 1rem;
  color: #1d294d;
  font-weight: 500;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.is-search-suggestions a:hover,
.is-search-suggestions a:focus {
  background: #fcaf17;
  color: #fff;
}

/* Mobil optimalizálás */
@media (max-width: 991.98px) {
  .is-menu .is-search-form {
    width: 100%;
    min-width: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(29, 41, 77, 0.18);
  }

  .is-menu .is-search-submit {
    width: 36px;
    height: 36px;
  }
}

.flex-caption h2 {
  background-color: rgba(29, 41, 77, 0.8);
  text-transform: none !important;
  padding: 12px 20px;
  font-size: 2rem;
}

/* Flex-caption h2 reszponzív stílusok */
/* 992px - 1199px tartomány optimalizálása */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Menü optimalizálás */
  #mainMenu a {
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.35rem;
  }

  .logo {
    width: 190px;
  }

  /* Navbar container optimalizálás */
  .navbar-nav {
    flex-wrap: nowrap;
  }

  /* Slider caption optimalizálás */
  .carousel-caption {
    right: 8%;
    left: 50%;
    bottom: 1rem;
    width: auto;
    max-width: 45%;
  }

  .flex-caption {
    max-width: 45%;
  }

  .flex-caption h2 {
    font-size: 1.3rem;
    padding: 10px 16px;
    line-height: 1.3;
  }
}

@media (max-width: 991.98px) {
  .flex-caption h2 {
    font-size: 1.5rem;
    padding: 10px 16px;
  }
}

@media (max-width: 767.98px) {
  .flex-caption {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .flex-caption h2 {
    font-size: 1.1rem;
    padding: 10px 15px;
    line-height: 1.4;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 575.98px) {
  .flex-caption h2 {
    font-size: 0.95rem;
    padding: 8px 12px;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .flex-caption h2 {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}

@media (max-width: 360px) {
  .flex-caption h2 {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
}

.carousel-caption {
  position: absolute;
  right: 15%;
  bottom: 1.25rem;
  left: 63%;
  color: var(--bs-carousel-caption-color);
  width: max-content;
}

h5.h6.text-uppercase.text-white-50.mb-3 {
  color: #fff !important;
  font-weight: 700;
}

.wp-block-file * + .wp-block-file__button {
  margin-left: 5.75em;
  background: #1d294d;
  border-radius: 0;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  float: right;
}

/* Sidebar menü: távolítsd el a pöttyöket és a behúzást */
.sidebar-container .menu,
.sidebar-container .menu ul {
  list-style: none; /* vagy: list-style-type: none; */
  margin: 0;
  padding-left: 0;
}

.sidebar-container .menu li::marker {
  content: "";
}

.sidebar-container h5 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 25px;
  margin-top: 0;
  color: #1d294d;
  font-weight: 700;
}

.sidebar-container .menu a,
.sidebar-container .menu a:visited,
.sidebar-container .menu a:hover,
.sidebar-container .menu a:focus,
.sidebar-container .menu .current-menu-item > a {
  font-weight: 400;
  font-size: 13px;
}

.sidebar-container .menu li {
  padding-top: 3px;
  padding-bottom: 3px;
}

.tribe-common .tribe-common-b2 {
  color: #141827;
  font-family:
    Helvetica Neue,
    Helvetica,
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    Arial,
    sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.38;
}
.tribe-common .tribe-common-g-col {
  width: unset !important;
  max-width: 88%;
}

.tribe-common .tribe-common-g-row {
  display: flex;
  flex-wrap: wrap;
}

.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-daynum,
.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-month {
  margin-bottom: -4px;
}

.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-datetime {
  text-align: center;
}

.tribe-common .tribe-common-g-row {
  display: flex;
  flex-wrap: wrap;
}

.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-datetime {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}
.tribe-common .tribe-common-h7 {
  font-size: 14px;
  line-height: 1.62;
}

.tribe-common a,
.tribe-common abbr,
.tribe-common acronym,
.tribe-common address,
.tribe-common applet,
.tribe-common article,
.tribe-common aside,
.tribe-common audio,
.tribe-common b,
.tribe-common big,
.tribe-common blockquote,
.tribe-common canvas,
.tribe-common caption,
.tribe-common center,
.tribe-common cite,
.tribe-common code,
.tribe-common dd,
.tribe-common del,
.tribe-common details,
.tribe-common dfn,
.tribe-common div,
.tribe-common dl,
.tribe-common dt,
.tribe-common em,
.tribe-common embed,
.tribe-common fieldset,
.tribe-common figcaption,
.tribe-common figure,
.tribe-common footer,
.tribe-common form,
.tribe-common h1,
.tribe-common h2,
.tribe-common h3,
.tribe-common h4,
.tribe-common h5,
.tribe-common h6,
.tribe-common header,
.tribe-common i,
.tribe-common iframe,
.tribe-common img,
.tribe-common ins,
.tribe-common kbd,
.tribe-common label,
.tribe-common legend,
.tribe-common li,
.tribe-common main,
.tribe-common mark,
.tribe-common menu,
.tribe-common nav,
.tribe-common object,
.tribe-common ol,
.tribe-common output,
.tribe-common p,
.tribe-common pre,
.tribe-common q,
.tribe-common ruby,
.tribe-common s,
.tribe-common samp,
.tribe-common section,
.tribe-common small,
.tribe-common span,
.tribe-common strike,
.tribe-common strong,
.tribe-common sub,
.tribe-common summary,
.tribe-common sup,
.tribe-common table,
.tribe-common tbody,
.tribe-common td,
.tribe-common tfoot,
.tribe-common th,
.tribe-common thead,
.tribe-common time,
.tribe-common tr,
.tribe-common tt,
.tribe-common u,
.tribe-common ul,
.tribe-common var,
.tribe-common video {
  margin: 0;
  padding: 0;
  border: 0;
}

.tribe-common .tribe-common-h5,
.tribe-common .tribe-common-h6 {
  color: #1d294d;
  font-family: Open Sans;
  font-weight: bold !important;
  text-transform: uppercase;
  background: #d7e7ea !important;
  padding: 10px 9px;
  width: 100%;
}
.tribe-common .tribe-common-h6 {
  font-size: 16px;
}
.tribe-events-widget .tribe-events-widget-events-list__header {
  margin-bottom: 24px;
}

.tribe-common .tribe-common-g-col {
  width: unset !important;
}
.tribe-events-widget-events-list__event-details {
  padding-left: 15px !important;
}
.tribe-events-widget-events-list__event-date-tag-month {
  color: #5d5d5d !important;
  font-family:
    Helvetica Neue,
    Helvetica,
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    Arial,
    sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
}

.tribe-common .tribe-common-h2 {
  color: #141827;
  font-family:
    Helvetica Neue,
    Helvetica,
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.42;
}

.home_kpi_link {
  color: #fff;
  padding: 30px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 15px;
  background-image: url(https://kgk.uni-obuda.hu/wp-content/uploads/2023/06/intezet_1.jpg);
  background-position: center;
  min-height: 115px;
  background-size: cover;
}
.home_mmi_link {
  color: #fff;
  padding: 30px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 15px;
  background-image: url(https://kgk.uni-obuda.hu/wp-content/uploads/2023/06/intezet_2.jpg);
  background-position: center;
  min-height: 115px;
  background-size: cover;
}
.home_mui_link {
  color: #fff;
  padding: 30px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 15px;
  background-image: url(https://kgk.uni-obuda.hu/wp-content/uploads/2023/06/intezet_3.jpg);
  background-position: center;
  min-height: 115px;
  background-size: cover;
}
.home_vfi_link {
  color: #fff;
  padding: 30px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 15px;
  background-image: url(https://kgk.uni-obuda.hu/wp-content/uploads/2023/06/intezet_4.jpg);
  background-position: center;
  min-height: 115px;
  background-size: cover;
}

.digi-cimsor a {
  font-weight: 700 !important;
  font-size: 14px !important;
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 0px !important;
  margin-bottom: 2px;
  color: #1d294d !important;
}
