:root {
  --hx-green: #005959;
  --hx-orange: #f39c12;
  --hx-ink: #0f2b2b;
  --bg: #f6f8f7;
  --card: #ffffff;
  --muted: #6b8b8b;
  --ring: rgba(0, 89, 89, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial,
    sans-serif;
  color: var(--hx-ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hx-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--hx-orange);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--hx-green);
  margin: 0.6em 0 0.4em 0;
}

h1 {
  font-size: clamp(28px, 5vw, 36px);
  color: #004a4a;
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
  color: #004a4a;
}

h3 {
  font-size: clamp(20px, 3.5vw, 24px);
}

h4 {
  font-size: clamp(18px, 3vw, 20px);
}

.meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0.5em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.kicker {
  letter-spacing: 0.1em;
  color: var(--hx-orange);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8em;
  margin-bottom: 0.5em;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 89, 89, 0.15);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tagline {
  font-size: 13px;
  color: var(--muted);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  border-top: none;
  transition: border-color 0.3s ease;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--hx-green);
  font-weight: 600;
  display: block;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu a:hover {
  background: rgba(0, 89, 89, 0.08);
  color: var(--hx-orange);
  text-decoration: none;
}

.cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hamburger {
  display: none;
  background: 0 0;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--hx-green);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hamburger:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
}

.brand-title-animated {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.brand-title-animated::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 50px;
  height: 200%;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(to right,
      rgba(255, 204, 102, 0) 0,
      rgba(255, 204, 102, 0.6) 50%,
      rgba(255, 204, 102, 0) 100%);
  transform: translateX(-100%) skewX(-20deg);
  animation: lightSweep 7s infinite ease-in-out;
}

.brand-title-animated .odek-hl {
  position: relative;
  z-index: 1;
  animation: highlightODeK 7s infinite ease-in-out;
}

.brand-title-animated .odek-hl:first-of-type {
  animation-delay: 0.1s;
}

.brand-title-animated .odek-hl:nth-of-type(2) {
  animation-delay: 0.3s;
}

.brand-title-animated .odek-hl:nth-of-type(3) {
  animation-delay: 0.5s;
}

.brand-title-animated .odek-hl:nth-of-type(4) {
  animation-delay: 0.7s;
}

.brand-title-animated .odek-hl:nth-of-type(5) {
  animation-delay: 0.9s;
}

@keyframes lightSweep {
  0% {
    transform: translateX(-100%) skewX(-20deg);
    opacity: 0.3;
  }

  20% {
    transform: translateX(450px) skewX(-20deg);
    opacity: 0.7;
  }

  100% {
    transform: translateX(450px) skewX(-20deg);
    opacity: 0;
  }
}

@keyframes highlightODeK {

  0%,
  100% {
    color: inherit;
  }

  10%,
  40% {
    color: var(--hx-orange);
  }

  70% {
    color: inherit;
  }
}

.btn {
  appearance: none;
  border: 1px solid var(--hx-green);
  background: 0 0;
  color: var(--hx-green);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: rgba(0, 89, 89, 0.08);
}

.btn.fill {
  background: var(--hx-green);
  color: #fff;
}

.btn.fill:hover {
  background: #004a4a;
  border-color: #004a4a;
}

button.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
}

.btn-odekalk {
  background: 0 0;
  border: 2px solid var(--hx-orange);
  color: var(--hx-green);
  font-weight: 700;
  padding: 7px 18px;
  transition: all 0.2s ease;
}

.btn-odekalk .k-highlight {
  color: var(--hx-orange);
  font-weight: 800;
  display: inline-block;
  transform: scale(1.1);
  margin: 0 2px 0 1px;
}

.btn-odekalk:hover {
  background: var(--hx-orange);
  color: var(--hx-green);
  border-color: var(--hx-orange);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-odekalk:hover .k-highlight {
  color: var(--hx-green);
}

body.dark-mode .btn-odekalk {
  background: 0 0;
  border-color: var(--hx-orange);
  color: var(--hx-green);
}

body.dark-mode .btn-odekalk .k-highlight {
  color: var(--hx-orange);
}

body.dark-mode .btn-odekalk:hover {
  background: var(--hx-orange);
  color: #0d2a2a;
  border-color: var(--hx-orange);
}

body.dark-mode .btn-odekalk:hover .k-highlight {
  color: #0d2a2a;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 60px 24px 40px;
  background: radial-gradient(1200px 400px at 50% -80px,
      rgba(0, 89, 89, 0.08),
      transparent) var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero h2 {
  margin: 0.2em 0 0.5em 0;
}

.hero p {
  font-size: 17px;
  color: var(--hx-green);
  opacity: 0.9;
  max-width: 65ch;
}

.hero .actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.logo-hero {
  display: none;
}

@media (min-width: 768px) {
  .logo-hero {
    display: block;
    justify-self: center;
    background: var(--card);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
}

.pub-list li {
  font-weight: 400;
  line-height: 1.5;
}

.pub-list li strong {
  font-weight: 500;
}

.pub-list li u {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

section {
  padding: 40px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.section-title h3 {
  margin: 0;
  font-size: clamp(20px, 3.5vw, 24px);
}

.section-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hx-orange);
  flex-shrink: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 680px) {
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h4 {
  margin: 0 0 8px 0;
  color: var(--hx-green);
  font-size: 18px;
}

.card p {
  margin-bottom: 1em;
  color: var(--hx-ink);
  opacity: 0.9;
}

.card p:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

.card img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 0 auto 15px auto;
}

#mintafeladatok .section-inner {
  display: block;
}

#mintafeladatok .card.full-width {
  display: block;
  width: 100%;
  max-width: none;
  grid-column: 1/-1;
  clear: both;
  margin-top: 16px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.pub-list li {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.pub-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.pub-filters {
  display: flex;
  gap: 12px;
  margin: 10px 0 24px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex: 1 1 300px;
}

.pub-filters select,
.search-wrapper input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrapper input {
  padding-left: 38px;
}

.pub-filters select {
  flex: 1 1 150px;
  max-width: 200px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-wrapper:focus-within .search-icon {
  color: var(--hx-green);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--hx-green);
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0;
}

textarea {
  width: 100%;
  font: inherit;
}

#pubSearch {
  padding-left: 42px !important;
}

.collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out,
    margin-top 0.4s ease-out;
  opacity: 0;
  margin-top: 0;
  will-change: max-height, opacity;
}

.collapse.open {
  opacity: 1;
  max-height: 2200px;
  margin-top: 20px;
}

.collapse .card {
  box-shadow: var(--shadow), inset 4px 0 0 var(--hx-green);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.kapcha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.kapcha label {
  font-size: 14px;
  color: var(--muted);
}

.kapcha input {
  max-width: 100px;
}

.toast {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background-color: rgba(15, 43, 43, 0.95);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  max-width: 90%;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background-color: rgba(200, 50, 0, 0.95);
}

.icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--hx-orange);
  transform: translateY(-1px);
}

.icon svg {
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  border: none;
  border-radius: 50%;
  background: var(--hx-green);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  background: rgba(0, 89, 89, 0.12);
  color: var(--hx-green);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  display: inline-block;
}

.visitcount {
  font-size: 0.9em;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 8px;
  text-align: center;
}

footer {
  padding: 30px 24px;
  background: var(--hx-ink);
  color: #e0f0f0;
}

footer .section-inner {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

footer a {
  color: #e0f0f0;
  text-decoration: underline;
}

footer a:hover {
  color: var(--hx-orange);
}

footer p {
  color: #e0f0f0;
  opacity: 0.9;
  margin: 6px 0;
}

footer .visitcount {
  color: #e0f0f0 !important;
}

@media (max-width: 920px) {
  .nav-top .cta .btn:not(#darkModeToggle) {
    display: none;
  }

  .cta {
    flex-direction: column;
    /* Egymás alá rendezi őket */
    align-items: flex-end;
    /* Jobbra igazítja a blokkot */
    gap: 8px;
    /* Kisebb térköz függőlegesen */
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .menu.open {
    display: flex;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  .nav-bottom {
    padding: 8px 24px;
  }
}

header[id],
section[id] {
  scroll-margin-top: 120px;
}

@media (min-width: 921px) {

  header[id],
  section[id] {
    scroll-margin-top: 140px;
  }
}

.menu a.active {
  color: #40bfbf;
  font-weight: 700;
  background-color: rgba(0, 89, 89, 0.05);
  box-shadow: inset 0 0 8px rgba(0, 89, 89, 0.08);
}

.fade-from-left,
.fade-from-right,
.fade-up {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up {
  transform: translateY(30px);
}

.fade-from-left {
  transform: translateX(-30px);
}

.fade-from-right {
  transform: translateX(30px);
}

.fade-from-left.visible,
.fade-from-right.visible,
.fade-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.news-list li {
  background-color: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--hx-orange);
}

.news-list li h4 {
  margin: 0 0 4px 0;
}

.news-list li .meta {
  margin-bottom: 12px;
  font-size: 0.9em;
}

.news-list li p:last-child {
  margin-bottom: 0;
}

#news-container {
  min-height: 400px;
}

.calc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-card h4 {
  margin-bottom: 8px;
}

.calc-card .meta {
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--hx-orange);
}

.calc-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

#calcNoResults {
  font-size: 1.1em;
  text-align: center;
  color: var(--muted);
}

body.dark-mode {
  --bg: #0f2b2b;
  --card: #0d2a2a;
  --hx-green: #a0d9d9;
  --hx-ink: #cce0e0;
  --muted: #8cb3b3;
  --hx-orange: #ffcc66;
  --ring: rgba(160, 217, 217, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--hx-ink);
}

body.dark-mode .nav-wrap {
  background: rgba(13, 42, 42, 0.85);
  box-shadow: none;
  border-bottom: 1px solid rgba(160, 217, 217, 0.15);
}

body.dark-mode .nav-bottom {
  border-top: none;
}

body.dark-mode .btn {
  background: var(--card);
  color: var(--hx-green);
  border-color: var(--hx-green);
}

body.dark-mode .btn.fill {
  background: var(--hx-green);
  color: #0d2a2a;
  border-color: var(--hx-green);
}

body.dark-mode .btn:hover {
  background: rgba(160, 217, 217, 0.1);
}

body.dark-mode .btn.fill:hover {
  filter: brightness(1.1);
}

body.dark-mode img {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

body.dark-mode img:hover {
  opacity: 1;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: var(--bg);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--hx-ink);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  border-color: var(--hx-green);
  box-shadow: 0 0 0 3px var(--ring);
}

body.dark-mode footer {
  background: #0a1f1f;
  color: #b8d0d0;
}

body.dark-mode footer a {
  color: #b8d0d0;
}

body.dark-mode footer .visitcount,
body.dark-mode footer p {
  color: #b8d0d0 !important;
}

body.dark-mode .hamburger {
  color: var(--hx-green);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .brand h1,
body.dark-mode .menu a,
body.dark-mode .tagline {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .menu {
  background: var(--card);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .hero {
  background: radial-gradient(1200px 400px at 50% -80px,
      rgba(160, 217, 217, 0.08),
      transparent) var(--bg);
}

body.dark-mode .pub-list li {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .news-list li {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--hx-orange);
}

.adatkezeles {
  margin-top: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  color: #dff0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.adatkezeles summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--hx-orange);
  list-style: none;
  font-size: 15px;
}

.adatkezeles summary::marker {
  content: "▸ ";
  color: var(--hx-orange);
}

.adatkezeles[open] summary::marker {
  content: "▾ ";
}

.adatkezeles div {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}

body.dark-mode .adatkezeles {
  background: rgba(0, 0, 0, 0.2);
  color: #b8d0d0;
}

#mintafeladatok .card.full-width {
  width: 100%;
  margin: 16px auto 0 auto;
  box-sizing: border-box;
}

@media (max-width: 680px) {
  #mintafeladatok .card.full-width {
    width: 100%;
  }
}

#lead-card img {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 15px;
}

#publikaciok .pub-list li {
  font-weight: 400;
  line-height: 1.55;
  background: #fcfdfd;
}

#publikaciok .pub-list .pub-title {
  font-weight: 500;
  color: #004a4a;
}

#publikaciok .pub-list .pub-title em {
  color: #005959;
  font-style: italic;
}

#publikaciok .pub-list .pub-title strong {
  color: #333;
  font-weight: 600;
}

#publikaciok .pub-list .pub-title u {
  color: #005959;
  text-decoration-color: #005959;
  text-decoration-thickness: 1px;
}

#publikaciok .pub-list .meta {
  color: #6b8b8b;
  font-size: 0.9em;
  margin-top: 6px;
}

#publikaciok .pub-list .meta a {
  color: #f39c12;
  text-decoration: none;
  font-weight: 500;
}

#publikaciok .pub-list .meta a:hover {
  text-decoration: underline;
  color: #ffb733;
}

#publikaciok .pub-list li {
  border-left: 3px solid var(--hx-green);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#publikaciok .pub-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode #publikaciok .pub-list li {
  background: #0f2b2b;
  border-left-color: var(--hx-green);
  box-shadow: none;
}

body.dark-mode #publikaciok .pub-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

body.dark-mode #publikaciok .pub-list .pub-title {
  color: #b8d0d0;
  font-weight: 500;
}

body.dark-mode #publikaciok .pub-list .pub-title em {
  color: var(--hx-green);
}

body.dark-mode #publikaciok .pub-list .pub-title strong {
  color: #dfefff;
  font-weight: 600;
}

body.dark-mode #publikaciok .pub-list .pub-title u {
  color: var(--hx-green);
  text-decoration-color: var(--hx-green);
  text-decoration-thickness: 1px;
}

body.dark-mode #publikaciok .pub-list .meta {
  color: #8cb3b3;
}

body.dark-mode #publikaciok .pub-list .meta a {
  color: var(--hx-orange);
  font-weight: 500;
}

body.dark-mode #publikaciok .pub-list .meta a:hover {
  color: #ffdb88;
  text-decoration: underline;
}

body:not(.dark-mode) .brand img.odek-brand-logo {
  content: url("logo.svg");
}

body.dark-mode .brand img.odek-brand-logo {
  content: url("logo-dark.png");
}

.switch-wrap {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 5px;
}

.switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: background-color 0.3s ease;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="orange" width="16px" height="16px"><path d="M12 9c-1.65 0-3 1.35-3 3s1.35 3 3 3 3-1.35 3-3-1.35-3-3-3zm0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm8-4h-2.09c-.45-1.12-1.17-2.1-2.08-2.89L17.66 4.34 16.24 2.93 14.31 4.85C13.53 4.3 12.78 3.86 12 3.54V1h-2v2.54c-.78.32-1.53.76-2.31 1.31L5.76 2.93 4.34 4.34l1.74 1.74C5.25 6.9 4.53 7.88 4.09 9H2v2h2.09c.45 1.12 1.17 2.1 2.08 2.89L4.34 17.66l1.41 1.41 1.93-1.93c.78.55 1.53.99 2.31 1.31V21h2v-2.54c.78-.32 1.53-.76 2.31-1.31l1.93 1.93 1.41-1.41-1.74-1.74c.91-.79 1.63-1.77 2.08-2.89H22v-2zm-8 7c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.switch-wrap input:checked+.switch-slider {
  background-color: var(--hx-green);
}

body.dark-mode .switch-slider {
  background-color: #555;
}

body.dark-mode .switch-wrap input:checked+.switch-slider {
  background-color: var(--hx-orange);
}

.switch-wrap input:checked+.switch-slider::before {
  transform: translateX(24px);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f0e1a8" width="16px" height="16px"><path d="M11.5 2c-5.25 0-9.5 4.25-9.5 9.5S6.25 21 11.5 21c.83 0 1.63-.11 2.4-.31-.3-.43-.53-.9-.69-1.4-.18-.58-.28-1.19-.28-1.82 0-3.31 2.69-6 6-6 .63 0 1.24.1 1.82.28.5.16.97.39 1.4.69.2-.77.31-1.57.31-2.4C21 6.25 16.75 2 11.5 2z"/></svg>');
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%) scale(1);
  width: 1.1em;
  height: 1.1em;
  stroke: #005959;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
  opacity: 0.9;
  transition: transform 0.25s ease, stroke 0.25s ease, opacity 0.25s ease;
}

.search-wrapper:focus-within .search-icon {
  transform: translateY(-50%) scale(1.15);
  stroke: #008b8b;
  opacity: 1;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.search-wrapper input {
  width: 100%;
  padding: 8px 10px 8px 34px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 0.95em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%) scale(1);
  width: 1.1em;
  height: 1.1em;
  stroke: #005959;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
  opacity: 0.9;
  transition: transform 0.25s ease, stroke 0.25s ease, opacity 0.25s ease;
}

.search-wrapper:focus-within input {
  border-color: #008b8b;
  box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.15);
}

.search-wrapper:focus-within .search-icon {
  transform: translateY(-50%) scale(1.15);
  stroke: #008b8b;
  opacity: 1;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
select,
textarea {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: #008b8b;
  box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.15);
  outline: 0;
}

button.btn,
input[type="submit"].btn {
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

button.btn:focus,
button.btn:hover,
input[type="submit"].btn:focus,
input[type="submit"].btn:hover {
  background-color: #008b8b;
  box-shadow: 0 0 12px rgba(0, 139, 139, 0.25);
}

a:focus-visible,
a:hover {
  color: var(--hx-orange);
  text-shadow: 0 0 6px rgba(243, 156, 18, 0.3);
}

.heureka-logo-link {
  display: inline-block;
  margin-bottom: 12px;
}

.heureka-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 0 10px 0;
  transition: transform 0.2s ease;
}

.heureka-logo:hover {
  transform: scale(1.05);
}

.heureka-logo {
  width: 160px;
  height: auto;
  border-radius: 0 !important;
  object-fit: contain;
  margin: 0 0 12px 0;
  display: block;
  transition: transform 0.2s ease;
}

.heureka-logo:hover {
  transform: scale(1.05);
}

.heureka-logo-link {
  display: inline-block;
}

.news-list li .news-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .news-list li .news-image {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.9;
}

#blog-hero-single {
  padding-top: 40px;
  padding-bottom: 30px;
  background: radial-gradient(1000px 300px at 50% -50px,
      rgba(0, 89, 89, 0.08),
      transparent) var(--bg);
}

body.dark-mode #blog-hero-single {
  background: radial-gradient(1000px 300px at 50% -50px,
      rgba(160, 217, 217, 0.08),
      transparent) var(--bg);
}

.blog-post-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 25px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .blog-post-image {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.9;
}

.blog-post-body {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--hx-ink);
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  color: var(--hx-green);
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  border-bottom: 2px solid rgba(0, 89, 89, 0.1);
  padding-bottom: 8px;
}

body.dark-mode .blog-post-body h2,
body.dark-mode .blog-post-body h3,
body.dark-mode .blog-post-body h4 {
  border-bottom-color: rgba(160, 217, 217, 0.2);
}

.blog-post-body h2 {
  font-size: 1.6em;
}

.blog-post-body h3 {
  font-size: 1.4em;
}

.blog-post-body h4 {
  font-size: 1.2em;
}

.blog-post-body p {
  margin-bottom: 1.2em;
}

.blog-post-body a {
  color: var(--hx-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hx-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.blog-post-body a:hover {
  color: var(--hx-orange);
  background-color: rgba(0, 89, 89, 0.05);
}

body.dark-mode .blog-post-body a:hover {
  background-color: rgba(160, 217, 217, 0.05);
}

.blog-post-body ol,
.blog-post-body ul {
  margin-bottom: 1.2em;
  padding-left: 25px;
}

.blog-post-body li {
  margin-bottom: 0.5em;
}

.blog-post-body blockquote {
  margin: 1.5em 0;
  padding: 15px 20px;
  background-color: rgba(0, 89, 89, 0.04);
  border-left: 4px solid var(--hx-orange);
  font-style: italic;
  color: var(--hx-green);
}

body.dark-mode .blog-post-body blockquote {
  background-color: rgba(160, 217, 217, 0.04);
  color: var(--hx-green);
}

.blog-post-body code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

body.dark-mode .blog-post-body code {
  background: rgba(255, 255, 255, 0.1);
}

.blog-post-body hr {
  border: 0;
  height: 1px;
  background: rgba(0, 89, 89, 0.1);
  margin: 2em 0;
}

body.dark-mode .blog-post-body hr {
  background: rgba(160, 217, 217, 0.2);
}

.reference-box {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--hx-orange);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 0 auto 24px auto;
  text-align: left;
}

.reference-box h4 {
  margin: 0 0 8px 0;
  color: var(--hx-orange);
  font-size: 16px;
}

.reference-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hx-ink);
  opacity: 0.9;
}

.reference-box p a {
  color: var(--hx-green);
  font-weight: 500;
  text-decoration: none;
}

.reference-box p a:hover {
  text-decoration: underline;
  color: var(--hx-orange);
}

body.dark-mode .reference-box {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--hx-orange);
}

body.dark-mode .reference-box p {
  color: var(--hx-ink);
}

body.dark-mode .reference-box p a {
  color: var(--hx-green);
}

.logo-link-odekalk {
  display: inline-block;
  vertical-align: middle;
}

.odekalk-logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo-link-odekalk:hover .odekalk-logo-img {
  transform: scale(1.1);
  opacity: 0.85;
}

.logo-link-brand {
  display: inline-block;
  vertical-align: middle;
}

.logo-link-brand:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

body.dark-mode .logo-link-brand img {
  opacity: 0.9;
}

body.dark-mode .logo-link-brand:hover img {
  opacity: 1;
  transform: scale(1.1);
}

body.dark-mode .odekalk-logo-img {
  opacity: 0.9;
}

body.dark-mode .logo-link-odekalk:hover .odekalk-logo-img {
  opacity: 1;
  transform: scale(1.1);
}

body:not(.dark-mode) .brand img.odekalk-logo-img {
  content: initial;
}

body:not(.dark-mode) .brand img:not(.odekalk-logo-img) {
  content: url("logo.png");
}

body.dark-mode .brand img.odekalk-logo-img {
  content: initial;
}

body.dark-mode .brand img:not(.odekalk-logo-img) {
  content: url("logo-dark.png");
}

.news-list li .news-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

#hirek .news-list>li>a:first-child {
  color: var(--hx-orange) !important;
  text-decoration: none;
}

#hirek .news-list>li>a:first-child>.news-image {
  -webkit-filter: none !important;
  filter: none !important;
}

.odek-brand-logo {
  height: 40px;
  width: auto;
  display: block;
  transition: content 0.3s ease;
}

#kalk-header-logo {
  height: 40px;
  width: auto;
}

#kalk-header-logo {
  height: 44px;
  width: auto;
  content: url("odekalk_logo.svg");
}

body.dark-mode #kalk-header-logo {
  content: url("odekalk_dark_logo.svg");
}

body:not(.dark-mode) .logo-dark {
  display: none;
}

body.dark-mode .logo-light {
  display: none;
}

body.dark-mode .logo-dark {
  display: block;
}

#kalk-header-logo {
  height: 44px;
  width: auto;
}

#kalk-header-logo-dark {
  height: 44px;
  width: auto;
}

/*
 * ==========================================================
 * PWA Telepítési Banner Stílusok
 * ==========================================================
 */
.pwa-install-banner-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  /* Legyen felül */
  padding: 12px;
  /* Alulról csúsztatjuk be */
  transform: translateY(120%);
  transition: transform 0.4s ease-out;
}

/* A .show osztályt a JS adja hozzá */
.pwa-install-banner-wrapper.show {
  transform: translateY(0);
}

.pwa-install-banner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  color: var(--hx-ink);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.dark-mode .pwa-install-banner {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.pwa-install-banner img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.pwa-install-text {
  flex-grow: 1;
  font-size: 0.9em;
  line-height: 1.4;
}

.pwa-install-text strong {
  font-size: 1.1em;
  color: var(--hx-green);
  display: block;
}

.pwa-install-text span {
  opacity: 0.9;
}

/* Bezárás gomb (X) */
.pwa-install-banner .btn-close {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  padding: 0 5px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.pwa-install-banner .btn-close:hover {
  color: var(--hx-orange);
}

/* Gomb méretezés mobilon */
@media (max-width: 600px) {
  .pwa-install-banner {
    flex-wrap: wrap;
    padding-bottom: 16px;
  }

  .pwa-install-text {
    /* Törjön 100% szélesre a gombok alá */
    width: 100%;
    flex-basis: 100%;
    order: 3;
    /* Szöveg kerüljön alulra */
    margin-top: 8px;
    text-align: center;
  }

  .pwa-install-banner img {
    order: 1;
  }

  #btn-pwa-install {
    order: 2;
    margin-left: auto;
    /* Gomb jobbra */
  }

  .btn-close {
    order: 3;
    padding-left: 10px;
  }
}

/* === HÍRLEVÉL SZEKCIÓ === */
.newsletter-section {
  background: radial-gradient(1200px 400px at 50% 120%,
      rgba(0, 89, 89, 0.05),
      transparent) var(--bg);
  padding: 40px 24px;
  border-top: 1px solid rgba(0, 89, 89, 0.1);
}

.newsletter-section .section-inner .grid.cols-2 {
  align-items: center;
  /* Vertikálisan középre igazítja a szöveget és a kártyát */
}

.newsletter-text p {
  font-size: 1.05em;
  color: var(--hx-ink);
  opacity: 0.9;
  max-width: 55ch;
}

.newsletter-text p.meta {
  font-size: 0.9em;
  font-style: italic;
  color: var(--muted);
}

/* Mobilon a hírlevél kártya kerüljön felülre */
@media (max-width: 680px) {
  .newsletter-section .section-inner .grid.cols-2 {
    /* Megfordítja a sorrendet mobilon */
    display: flex;
    flex-direction: column-reverse;
  }

  .newsletter-section form.card {
    width: 100%;
    margin-bottom: 24px;
  }
}

/* Sötét mód */
body.dark-mode .newsletter-section {
  background: radial-gradient(1200px 400px at 50% 120%,
      rgba(160, 217, 217, 0.04),
      transparent) var(--bg);
  border-top: 1px solid rgba(160, 217, 217, 0.1);
}

/* Üzenet színek (sikeres/hiba) */
#nl_formMsg.success {
  color: var(--hx-green);
  font-weight: 600;
}

#nl_formMsg.error {
  color: var(--hx-orange);
  font-weight: 600;
}

body.dark-mode #nl_formMsg.error {
  color: #ff8a8a;
  /* Sötét módban egy pirosabb hiba */
}

/* ==========================================================
 * Kétnyelvű Nyelvváltó Kapcsoló Stílusai
 * ==========================================================
 */
.lang-wrap {
  display: inline-flex;
  background: rgba(0, 89, 89, 0.08);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid rgba(0, 89, 89, 0.12);
  margin-right: 8px;
  align-items: center;
}

body.dark-mode .lang-wrap {
  background: rgba(160, 217, 217, 0.08);
  border-color: rgba(160, 217, 217, 0.15);
}

.lang-opt {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  color: var(--hx-green) !important;
  line-height: 1;
  transition: all 0.25s ease;
  text-shadow: none !important;
  letter-spacing: 0.5px;
}

/* Aktív állapot világos módban */
.lang-opt.active {
  background: var(--hx-green);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 89, 89, 0.2);
}

/* Aktív állapot sötét módban */
body.dark-mode .lang-opt.active {
  background: var(--hx-orange);
  color: #0f2b2b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Hover effektus a nem aktív nyelvre */
.lang-opt:hover:not(.active) {
  color: var(--hx-orange) !important;
  background: rgba(0, 89, 89, 0.04);
}

body.dark-mode .lang-opt:hover:not(.active) {
  color: var(--hx-orange) !important;
  background: rgba(255, 255, 255, 0.04);
}

/* Mobilos igazítás finomítása a meglévő @media breakpointhoz */
@media (max-width: 920px) {
  .cta {
    flex-direction: row !important;
    /* Mobilon is egymás mellett marad a két kapcsoló */
    align-items: center !important;
    gap: 12px;
  }

  .lang-wrap {
    margin-right: 0;
  }
}

/* ==========================================================
 * Online Kutatások CTA Gomb Stílusok
 * ========================================================== */
.research-cta-container {
  text-align: center;
  margin-top: 35px;
  width: 100%;
}

.btn-research-red {
  background-color: #c0392b !important;
  /* Elegáns klinikai piros */
  color: #ffffff !important;
  border-color: #c0392b !important;
  padding: 12px 28px !important;
  font-size: 16px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(192, 57, 43, 0.2);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}

.btn-research-red:hover {
  background-color: #e74c3c !important;
  /* Világosabb piros hover esetén */
  border-color: #e74c3c !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

/* Sötét mód igazítás a tökéletes kontrasztért */
body.dark-mode .btn-research-red {
  background-color: #b02a1e !important;
  border-color: #b02a1e !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .btn-research-red:hover {
  background-color: #c0392b !important;
  border-color: #c0392b !important;
  box-shadow: 0 6px 15px rgba(192, 57, 43, 0.4);
}

/* ==========================================================
 * Felugró ablak (Modal) Stílusok
 * ========================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 43, 43, 0.75);
  /* Sötét ODEK színű, áttetsző háttér */
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  /* Rejtett kiinduló állapot */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 650px;
  width: 100%;
  padding: 35px 30px 30px;
  text-align: center;

  /* Animáció: alulról csúszik be kicsit */
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.modal-close:hover {
  color: var(--hx-orange);
  transform: scale(1.1);
}

/* Sötét mód háttér finomítás */
body.dark-mode .modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}