/* Modern, Elegant & Fully Accessible CSS for Oroszlanygyo Portal */

:root {
  --primary: #046673;
  --primary-dark: #02464f;
  --primary-light: #0b8090;
  --primary-xlight: #e6f4f5;
  --secondary: #116c72;
  --accent: #b83a3a;
  --accent-dark: #962d2d;
  --accent-light: #dc4c4c;
  --accent-xlight: #fdf0f0;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --focus-ring: #0284c7;
  --header-bg: #ffffff;
  --footer-bg: #023138;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(4, 102, 115, 0.12);
  --font-scale: 1rem;
}

/* WCAG 2.1 AA / AAA High Contrast Mode Variables */
html.a11y-high-contrast,
body.a11y-high-contrast {
  --primary: #ffff00;
  --primary-dark: #ffd700;
  --primary-light: #ffff88;
  --primary-xlight: #222222;
  --secondary: #ffff00;
  --accent: #ffff00;
  --accent-dark: #ffd700;
  --accent-light: #ffff88;
  --accent-xlight: #222222;
  --bg-main: #000000;
  --bg-card: #121212;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --border: #ffffff;
  --border-light: #666666;
  --focus-ring: #ffff00;
  --header-bg: #000000;
  --footer-bg: #000000;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
}

/* WCAG 2.1 Font Scaling (100% / 118% / 135%) */
html.a11y-font-large,
body.a11y-font-large {
  font-size: 118% !important;
}

html.a11y-font-xlarge,
body.a11y-font-xlarge {
  font-size: 135% !important;
}

/* Dyslexia / Extra Readable Font */
html.a11y-readable-font body,
body.a11y-readable-font {
  font-family: Arial, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: 0.04em !important;
  word-spacing: 0.08em !important;
  line-height: 1.8 !important;
}

/* WCAG Underline Links Mode */
html.a11y-underline-links a,
body.a11y-underline-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

/* WCAG 2.1 AA Focus Visible Indicator */
:focus-visible {
  outline: 3px solid #046673;
  outline-offset: 3px;
}
body.a11y-high-contrast :focus-visible {
  outline: 3px solid #ffff00 !important;
  outline-offset: 3px !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-scale);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:not(.btn):not([class*="btn-"]):not([class*="-btn"]):not(.article-back-link):not(.btn-back):not(.doc-download-btn):not(.home-inst-btn):not(.admin-sidebar a):not(.admin-nav a):hover {
  color: var(--primary-dark);
}

.admin-sidebar a:hover,
.admin-sidebar a:focus,
.admin-nav a:hover,
.admin-nav a:focus {
  color: #ffffff !important;
}

a.btn,
a[class*="btn-"],
a[class*="-btn"],
a.doc-download-btn,
a.home-inst-btn {
  text-decoration: none !important;
}

/* Content links styling (clean, matching brand palette, no default underline) */
.cms-page-body a,
.article-content a,
.institution-content a,
.institution-description a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.cms-page-body a:hover,
.article-content a:hover,
.institution-content a:hover,
.institution-description a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* WCAG Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 15px;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 20px;
  z-index: 100000;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.skip-link:focus {
  top: 15px;
  outline: 3px solid #ffff00;
}

/* Top Utility & Accessibility Bar */
.top-utility-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-utility-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.utility-info {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.utility-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.a11y-widget {
  display: flex;
  align-items: center;
  gap: 8px;
}
.a11y-pill {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.a11y-pill:hover, .a11y-pill:focus {
  background: var(--primary);
  border-color: #ffffff;
  outline: 2px solid var(--focus-ring);
}
.a11y-reset {
  padding: 3px 8px;
}

/* Header & Identity */
/* Header & Identity */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg, rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: var(--header-bg, rgba(255, 255, 255, 0.99));
  border-bottom-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: max-content;
  text-decoration: none;
}
/* Official Header Logo matching live site - completely distortion free */
.site-official-logo {
  height: 52px;
  max-height: 54px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Floating WCAG 2.1 Standard Accessibility Widget */
.a11y-floating-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99999;
}
.a11y-trigger-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 18px rgba(4, 102, 115, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  line-height: 1;
  padding: 0;
  transition: all 0.25s ease;
}
.a11y-trigger-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
}
.a11y-trigger-btn:hover, .a11y-trigger-btn:focus {
  background: var(--accent);
  transform: scale(1.1);
  outline: 3px solid rgba(4, 102, 115, 0.5);
  outline-offset: 2px;
}
.a11y-panel {
  position: absolute;
  bottom: 65px;
  right: 0;
  width: 285px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: a11yFadeIn 0.2s ease-out;
  z-index: 100003;
}
@keyframes a11yFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.a11y-panel-header {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.a11y-panel-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.a11y-panel-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.a11y-opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}
.a11y-opt-btn:hover, .a11y-opt-btn:focus {
  background: rgba(4, 102, 115, 0.08);
  color: var(--primary);
  border-color: var(--primary);
}
.a11y-opt-btn.is-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.a11y-opt-btn.is-active:hover {
  background: var(--primary-dark);
  color: #ffffff;
}
.a11y-reset-btn {
  color: var(--accent);
  margin-top: 4px;
}

/* Quick Role Filter Cards (Overview of positions & counts) */
.job-quick-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 992px) {
  .job-quick-filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .job-quick-filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.job-quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  text-align: left;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  width: 100%;
  min-height: 64px;
}
.job-quick-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(4, 102, 115, 0.12);
}
.job-quick-card.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(4, 102, 115, 0.28);
  transform: translateY(-2px);
}
.job-quick-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.job-quick-card.active:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}
.job-quick-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.job-quick-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(4, 102, 115, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all 0.2s;
}
.job-quick-card.active .job-quick-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.job-quick-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  transition: color 0.2s;
  display: block;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.job-quick-card.active .job-quick-card-title {
  color: #ffffff;
}
.job-quick-card-badge {
  background: #f1f5f9;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.job-quick-card.active .job-quick-card-badge {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
}

/* Jobs Filter Controls Panel */
.jobs-filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}
.filter-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.filter-input, .filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text-main);
  height: 44px;
  box-sizing: border-box;
}
.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 102, 115, 0.15);
}
.filter-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}
.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 44px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-reset-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.filter-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-left: 4px;
}

/* Job Cards - Modernized & Unified */
.job-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
}
.job-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  transition: width 0.2s ease, background 0.2s ease;
}
.job-item:hover {
  box-shadow: 0 10px 25px rgba(4, 102, 115, 0.1);
  border-color: rgba(4, 102, 115, 0.25);
  transform: translateY(-3px);
}
.job-item:hover::before {
  width: 7px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
}
.job-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.job-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.job-title-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.job-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(4, 102, 115, 0.09) 0%, rgba(4, 102, 115, 0.03) 100%);
  color: var(--primary);
  border: 1px solid rgba(4, 102, 115, 0.2);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.job-location-pill i {
  color: #e02424;
  font-size: 0.95rem;
}
.job-ref-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tag-badge {
  background: #f1f5f9;
  color: #334155;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}
.tag-badge.deadline-badge {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
  font-weight: 700;
}
.tag-badge.inst-badge {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

/* Job Card Footer & Actions */
.job-footer-bar {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.job-card-share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.job-share-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.job-share-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.job-share-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.job-share-btn:hover {
  transform: translateY(-2px);
}
.job-share-btn.job-share-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}
.job-share-btn.job-share-tw:hover {
  background: #0f1419;
  border-color: #0f1419;
  color: #ffffff;
}
.job-share-btn.job-share-mail:hover {
  background: #ea4335;
  border-color: #ea4335;
  color: #ffffff;
}
.job-share-btn.job-share-copy:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.job-share-btn.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}
.job-main-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.job-main-actions .btn {
  font-size: 0.9rem;
  padding: 8px 16px;
}

@media (max-width: 768px) {
  .job-item {
    padding: 16px 14px;
    gap: 12px;
    margin-bottom: 16px;
  }
  .job-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .job-title-text {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .job-location-pill {
    font-size: 0.8rem;
    padding: 4px 10px;
    white-space: normal;
    word-break: break-word;
  }
  .job-footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .job-main-actions {
    width: 100%;
  }
  .job-main-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Navigation */
.desktop-nav,
.main-nav {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus, .nav-item:hover > .nav-link-row > .nav-link {
  background: rgba(4, 102, 115, 0.08);
  color: var(--primary);
}
.desktop-arrow {
  font-size: 0.78rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.nav-item:hover .desktop-arrow,
.nav-item:focus-within .desktop-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

@media (max-width: 1200px) and (min-width: 1041px) {
  .nav-link {
    padding: 8px 7px;
    font-size: 0.83rem;
    gap: 4px;
  }
}

/* Modern Dropdown Submenu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 295px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 16px 38px -6px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(4, 102, 115, 0.06);
  padding: 8px 6px;
  list-style: none;
  z-index: 1000;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  pointer-events: none;
}

/* Invisible bridge preventing hover dropoff */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  margin: 2px 0;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  color: #334155;
  text-decoration: none;
  font-size: 0.89rem;
  font-weight: 550;
  border-radius: 8px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border-left: 3px solid transparent;
}

.dropdown-link-text {
  flex: 1;
  line-height: 1.35;
}

.desktop-sub-arrow {
  font-size: 0.72rem;
  color: #94a3b8;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.dropdown-link:hover, .dropdown-link:focus {
  background: linear-gradient(90deg, rgba(4, 102, 115, 0.08) 0%, rgba(4, 102, 115, 0.02) 100%);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 17px;
}

.dropdown-link:hover .desktop-sub-arrow,
.dropdown-link:focus .desktop-sub-arrow {
  opacity: 1;
  color: var(--primary);
  transform: translateX(0);
}
.mobile-nav-backdrop,
.mobile-drawer,
.mobile-drawer-header,
.mobile-drawer-footer,
.mobile-submenu-toggle,
.mobile-sub-bullet {
  display: none !important;
}

.nav-link-row {
  display: inline-flex;
  align-items: center;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

/* Main Container */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 20px;
  width: 100%;
}

.content-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Unified Layout Grids & Standards */
.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
  width: 100%;
}
@media (max-width: 992px) {
  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
.article-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 35px 40px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.sidebar-recent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.sidebar-recent-item a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.15s;
}
.sidebar-recent-item a:hover {
  color: var(--primary);
}
.sidebar-recent-thumb {
  width: 65px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.sidebar-recent-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sidebar-recent-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-recent-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Institution 2-Column Responsive Layout - Balanced & Roomy */
.institution-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  width: 100%;
}
@media (max-width: 960px) {
  .institution-layout-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
.institution-detail-card {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.institution-detail-body,
.page-content-inner {
  padding: 30px 32px;
}
@media (max-width: 768px) {
  .institution-detail-body,
  .page-content-inner {
    padding: 20px 16px;
  }
}

.institution-detail-title,
.institutions-hero-title,
.cms-page-title {
  font-size: 1.45rem !important;
  font-weight: 800;
  line-height: 1.3;
}

.institution-content,
.institution-description,
.cms-page-body {
  font-size: 0.925rem;
  line-height: 1.68;
  color: var(--text-main);
  margin-bottom: 20px;
}
.institution-content p,
.institution-description p,
.cms-page-body p {
  margin-bottom: 14px;
  font-size: 0.925rem;
  line-height: 1.68;
}
@media (max-width: 640px) {
  .institution-content,
  .institution-description,
  .cms-page-body,
  .institution-content p,
  .institution-description p,
  .cms-page-body p {
    font-size: 0.925rem;
    line-height: 1.6;
  }
}

/* CMS Page Highlight Document Card - Responsive & Clean */
.cms-doc-highlight-box {
  margin-top: 35px;
  margin-bottom: 25px;
  width: 100%;
  box-sizing: border-box;
}
.cms-doc-highlight-heading {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.cms-doc-highlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(4, 102, 115, 0.06);
  width: 100%;
  box-sizing: border-box;
}
.cms-doc-highlight-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 280px;
}
.cms-doc-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.cms-doc-highlight-details {
  min-width: 0;
  flex: 1;
}
.cms-doc-highlight-title {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.35;
}
.cms-doc-highlight-meta {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.4;
}
.cms-doc-highlight-meta .meta-divider {
  color: #cbd5e1;
}
.cms-doc-highlight-meta .fa-file-pdf-o {
  color: #dc2626;
}
.cms-doc-highlight-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cms-doc-btn-primary,
a.cms-doc-btn-primary {
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 6px;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(4, 102, 115, 0.25);
  transition: all 0.2s ease;
}
.cms-doc-btn-primary:hover,
.cms-doc-btn-primary:focus,
a.cms-doc-btn-primary:hover,
a.cms-doc-btn-primary:focus {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(4, 102, 115, 0.35);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.cms-doc-btn-primary i,
.cms-doc-btn-primary:hover i,
a.cms-doc-btn-primary:hover i {
  color: #ffffff !important;
}
.cms-doc-btn-secondary {
  display: none !important;
}

@media (max-width: 640px) {
  .cms-doc-highlight-card {
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cms-doc-highlight-left {
    gap: 12px;
  }
  .cms-doc-highlight-icon {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
  .cms-doc-highlight-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .cms-doc-btn-primary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 11px 16px;
    font-size: 0.95rem;
  }
}

/* Detail page top action toolbars */
.institution-top-bar,
.page-top-bar,
.article-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .institution-top-bar,
  .page-top-bar,
  .article-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .institution-top-share,
  .page-top-share,
  .article-top-share {
    justify-content: space-between;
    width: 100%;
  }
}

/* Contact Headquarters & Branch Components */
.headquarters-hero-card {
  margin-top: 30px;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 32px 35px;
  box-shadow: 0 8px 25px rgba(4, 102, 115, 0.08);
  overflow: hidden;
}
.hq-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(4, 102, 115, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.hq-icon-box.deputy {
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
}
.hq-icon-box.leader3 {
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
}
.inst-leader-box {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  padding: 10px 12px;
  border-radius: 6px;
}
.inst-deputy-box {
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0891b2;
  padding: 10px 12px;
  border-radius: 6px;
}

/* Contact Responsive Grid & Equalized Cards */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(4, 102, 115, 0.3);
}
.contact-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.contact-card-title {
  font-size: 1.22rem;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 3.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.contact-card-info {
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.inst-leader-box,
.inst-deputy-box {
  font-size: 0.95rem;
}
.contact-card-leaders {
  margin-top: auto;
  padding-top: 8px;
}
.contact-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 16px;
}

/* Pályázatok 2-Column Responsive Layout */
.palyazatok-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  align-items: start;
  width: 100%;
}
.palyazatok-main {
  min-width: 0;
  width: 100%;
}
.palyazat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
  width: 100%;
}
.palyazat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

.palyazatok-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 25px;
}
.palyazat-sidebar-item {
  width: 100%;
}
.palyazat-module-banner {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.palyazat-module-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(4, 102, 115, 0.15);
  border-color: var(--primary);
}
.palyazat-module-banner-static {
  cursor: default;
}
.palyazat-module-banner-static:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}
.palyazat-module-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Lebegő Széchenyi 2020 saroklogó (Fixed Top-Right Corner Badge matching live site) */
.palyazatok-fixed-badge {
  position: fixed;
  top: 72px;
  right: 0;
  z-index: 990;
  width: 257px;
  max-width: calc(100vw - 20px);
  margin: 0;
  padding: 0;
  line-height: 0;
  pointer-events: auto;
}
.palyazatok-badge-link,
.palyazatok-badge-static {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  line-height: 0;
}
.palyazatok-badge-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .palyazatok-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .palyazatok-sidebar-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .palyazatok-fixed-badge {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .palyazatok-sidebar-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* ==========================================================================
   Option 2: Interaktív Tagintézmény-Körhinta & Élő Információs Sáv
   ========================================================================== */
.hero-banner-carousel {
  background: linear-gradient(135deg, #023138 0%, #044b55 55%, #032a30 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px 36px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(2, 49, 56, 0.22);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-banner-carousel::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(4, 102, 115, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-carousel-header {
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
}

.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e0f2fe;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.hero-title-clean {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-lead-clean {
  font-size: 1rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0;
  max-width: 820px;
  opacity: 0.95;
}

/* Fülrendszer (Switcher Tabs) */
.inst-switcher-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 14px;
}

.inst-switcher-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.inst-switcher-tabs::-webkit-scrollbar {
  height: 4px;
}
.inst-switcher-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.inst-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.inst-tab-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}
.inst-tab-pill.active {
  background: #ffffff;
  color: var(--primary-dark, #023138);
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.inst-tab-star {
  color: #eab308;
}
.inst-tab-pill.active .inst-tab-star {
  color: #ca8a04;
}

/* Léptetőgombok */
.inst-carousel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.inst-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.inst-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.05);
}

/* Showcase Container & Panels */
.inst-showcase-container {
  position: relative;
  z-index: 2;
  min-height: 340px;
}

.inst-showcase-panel {
  display: none;
  opacity: 0;
  animation: instFadeIn 0.35s ease forwards;
}
.inst-showcase-panel.active {
  display: block;
  opacity: 1;
}

@keyframes instFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.inst-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: stretch;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px;
}

.inst-showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inst-showcase-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.inst-badge-gold {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fef08a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.inst-badge-tag {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.inst-badge-location {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.inst-showcase-name {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px 0;
}
.inst-showcase-name a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.18s;
}
.inst-showcase-name a:hover {
  color: #38bdf8;
}

.inst-showcase-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.inst-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.inst-meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.inst-meta-text {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  line-height: 1.35;
}
.inst-meta-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.inst-meta-text strong {
  color: #f1f5f9;
  font-weight: 600;
}
.inst-meta-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}
.inst-meta-link:hover {
  text-decoration: underline;
}

.inst-showcase-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-inst-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.btn-inst-primary:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.5);
  color: #0f172a;
}

.btn-inst-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-inst-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* Jobb oldal fotó */
.inst-showcase-photo-wrap {
  width: 100%;
  display: flex;
  min-height: 260px;
}

.inst-photo-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
  background: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.inst-photo-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease;
}
.inst-photo-card:hover img {
  transform: scale(1.04);
}

.inst-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
}

.inst-photo-view-badge {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Élő Információs Sáv (Live Ribbon - helyettesíti a stat kártyákat)
   ========================================================================== */
.home-live-ribbon {
  margin-bottom: 40px;
}

.live-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.live-ribbon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.live-ribbon-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.live-ribbon-news {
  border-left: 4px solid var(--primary);
}
.live-ribbon-job {
  border-left: 4px solid var(--accent, #b83a3a);
}
.live-ribbon-info {
  border-left: 4px solid #38bdf8;
}

.live-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 8px;
}
.live-card-badge.badge-job {
  color: var(--accent, #b83a3a);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
}

.live-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.live-card-title a {
  color: var(--text-main);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.live-card-title a:hover {
  color: var(--primary);
}

.live-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.live-card-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
}
.live-card-link:hover {
  text-decoration: underline;
}

/* Responsiveness for Option 2 */
@media (max-width: 992px) {
  .hero-banner-carousel {
    padding: 26px 20px;
  }
  .hero-title-clean {
    font-size: 1.75rem;
  }
  .inst-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .inst-showcase-photo-wrap {
    min-height: 220px;
  }
  .live-ribbon-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}
.stats-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stats-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stats-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(4, 102, 115, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}
.stats-item:nth-child(2) .stats-icon {
  background: var(--primary-xlight);
  color: var(--primary-light);
}
.stats-item:nth-child(3) .stats-icon {
  background: var(--primary-xlight);
  color: var(--primary);
}
.stats-item:nth-child(4) .stats-icon {
  background: rgba(184, 58, 58, 0.1);
  color: var(--accent);
}
.stats-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}
.stats-item:nth-child(1) .stats-number { color: var(--primary); }
.stats-item:nth-child(2) .stats-number { color: var(--primary-light); }
.stats-item:nth-child(3) .stats-number { color: var(--primary-dark); }
.stats-item:nth-child(4) .stats-number { color: var(--accent); }
.stats-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Polished Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: none !important;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn:hover,
.btn:focus,
.btn:active {
  text-decoration: none !important;
}

/* Primary Button (Brand Dark Cyan) */
.btn-primary,
a.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(4, 102, 115, 0.25);
  text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:active,
input[type="submit"].btn-primary:hover,
input[type="submit"].btn-primary:focus {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(4, 102, 115, 0.35);
  text-decoration: none !important;
}

.btn-primary i,
.btn-primary span,
.btn-primary svg,
.btn-primary:hover i,
.btn-primary:hover span,
.btn-primary:hover svg,
.btn-primary:focus i,
.btn-primary:focus span,
.btn-primary:focus svg,
a.btn-primary i,
a.btn-primary span,
a.btn-primary svg,
a.btn-primary:hover i,
a.btn-primary:hover span,
a.btn-primary:hover svg {
  color: #ffffff !important;
}

/* Secondary Button (Neutral Slate) */
.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 2px solid #cbd5e1 !important;
  text-decoration: none !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
a.btn-secondary:hover,
a.btn-secondary:focus,
a.btn-secondary:active,
button.btn-secondary:hover,
button.btn-secondary:focus,
button.btn-secondary:active {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn-secondary i,
.btn-secondary span,
.btn-secondary:hover i,
.btn-secondary:hover span,
a.btn-secondary:hover i,
a.btn-secondary:hover span {
  color: inherit !important;
}

/* Outline Primary Button (Clean Outline, Filled on Hover) */
.btn-outline-primary,
a.btn-outline-primary,
button.btn-outline-primary {
  background: transparent !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  text-decoration: none !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
a.btn-outline-primary:hover,
a.btn-outline-primary:focus,
a.btn-outline-primary:active,
button.btn-outline-primary:hover,
button.btn-outline-primary:focus,
button.btn-outline-primary:active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4, 102, 115, 0.25);
  text-decoration: none !important;
}

.btn-outline-primary i,
.btn-outline-primary span {
  color: var(--primary) !important;
  transition: color 0.2s ease;
}

.btn-outline-primary:hover i,
.btn-outline-primary:hover span,
a.btn-outline-primary:hover i,
a.btn-outline-primary:hover span {
  color: #ffffff !important;
}

/* Accent Button (Burgundy / Red Accent) */
.btn-accent,
a.btn-accent,
button.btn-accent {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(184, 58, 58, 0.25);
  text-decoration: none !important;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active,
a.btn-accent:hover,
a.btn-accent:focus,
a.btn-accent:active,
button.btn-accent:hover,
button.btn-accent:focus,
button.btn-accent:active {
  background: var(--accent-dark) !important;
  color: #ffffff !important;
  border-color: var(--accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 58, 58, 0.35);
  text-decoration: none !important;
}

.btn-accent i,
.btn-accent span,
.btn-accent:hover i,
.btn-accent:hover span,
a.btn-accent:hover i,
a.btn-accent:hover span {
  color: #ffffff !important;
}

/* Clean White / Light Outline Button (Crisp background with brand border) */
.btn-outline-white,
a.btn-outline-white,
button.btn-outline-white {
  background: #ffffff !important;
  color: var(--primary) !important;
  border: 1px solid #cbd5e1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-outline-white:hover,
.btn-outline-white:focus,
.btn-outline-white:active,
a.btn-outline-white:hover,
a.btn-outline-white:focus,
a.btn-outline-white:active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 3px 8px rgba(4, 102, 115, 0.25);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn-outline-white i,
.btn-outline-white span {
  color: var(--primary) !important;
}

.btn-outline-white:hover i,
.btn-outline-white:hover span,
.btn-outline-white:focus i,
.btn-outline-white:focus span,
.btn-outline-white:active i,
.btn-outline-white:active span,
a.btn-outline-white:hover i,
a.btn-outline-white:hover span,
a.btn-outline-white:focus i,
a.btn-outline-white:focus span,
a.btn-outline-white:active i,
a.btn-outline-white:active span {
  color: #ffffff !important;
}

/* Sizing Helpers */
.btn-sm,
a.btn-sm,
button.btn-sm {
  padding: 6px 14px !important;
  font-size: 0.84rem !important;
}

.btn-lg,
a.btn-lg,
button.btn-lg {
  padding: 13px 28px !important;
  font-size: 1.05rem !important;
}

/* Sections & Article Cards Grid */
.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 45px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.article-card-cover {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}
.article-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.article-card:hover .article-card-cover img {
  transform: scale(1.05);
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}
.card-title a {
  color: var(--text-main);
  text-decoration: none;
}
.card-title a:hover, .card-title a:focus {
  color: var(--primary);
}
.card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.6;
}

/* Homepage Section Hierarchy & Differentiation */
.home-section-header {
  margin-bottom: 28px;
}
.home-section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.home-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(4, 102, 115, 0.08);
  color: var(--primary);
  margin-bottom: 10px;
}
.home-section-badge.badge-amber {
  background: #fef3c7;
  color: #b45309;
}
.home-section-badge.badge-teal {
  background: #ccfbf1;
  color: #0f766e;
}
.home-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 6px 0;
  line-height: 1.25;
}
.home-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.home-more-btn-wrap {
  text-align: center;
  margin: 25px 0 15px 0;
}
.btn-more-news {
  padding: 12px 34px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(4, 102, 115, 0.2) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}
.btn-more-news:hover, .btn-more-news:focus {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 102, 115, 0.3) !important;
  text-decoration: none !important;
}
.btn-more-news i, .btn-more-news:hover i {
  color: #ffffff !important;
}

/* Home Jobs Noticeboard Panel */
.home-jobs-panel {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-top: 4px solid #d97706;
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  margin: 60px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
}
.home-jobs-panel .job-item {
  background: #ffffff;
}

/* Home Institutions Directory Cards */
.home-inst-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}
.home-inst-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--primary-light);
}
.home-inst-cover {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}
.home-inst-cover img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease;
}
.home-inst-card:hover .home-inst-cover img {
  transform: scale(1.05);
}
.home-inst-city-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}
.home-inst-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}
.home-inst-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin: 0;
}
.home-inst-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.home-inst-title a:hover {
  color: var(--primary-light);
}
.home-inst-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #edf2f7;
}
.home-inst-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.home-inst-meta-item i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}
.home-inst-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  text-decoration: none !important;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary) !important;
  transition: all 0.2s ease;
}
.home-inst-btn i {
  color: var(--primary) !important;
  transition: all 0.2s ease;
}
.home-inst-card:hover .home-inst-btn,
.home-inst-btn:hover,
.home-inst-btn:focus {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  text-decoration: none !important;
}
.home-inst-card:hover .home-inst-btn i,
.home-inst-btn:hover i,
.home-inst-btn:focus i {
  color: #ffffff !important;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .home-jobs-panel {
    padding: 26px 18px;
    margin: 40px 0;
  }
  .home-section-title {
    font-size: 1.45rem;
  }
}

/* ==========================================================================
   Comprehensive WCAG 2.1 AA / AAA High Contrast Mode Overrides
   ========================================================================== */
body.a11y-high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Header & Identity */
body.a11y-high-contrast .site-header {
  background: #000000 !important;
  border-bottom: 2px solid #ffff00 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.a11y-high-contrast .site-header.is-scrolled {
  background: #000000 !important;
  border-bottom: 2px solid #ffff00 !important;
  box-shadow: none !important;
}
body.a11y-high-contrast .site-official-logo {
  background: #ffffff !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  border: 1px solid #ffffff !important;
}

/* Desktop Navigation in High Contrast */
body.a11y-high-contrast .desktop-nav .nav-link,
body.a11y-high-contrast .main-nav .nav-link {
  color: #ffffff !important;
  background: transparent !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
}
body.a11y-high-contrast .desktop-nav .nav-link:hover,
body.a11y-high-contrast .desktop-nav .nav-link:focus,
body.a11y-high-contrast .desktop-nav .nav-item:hover > .nav-link,
body.a11y-high-contrast .desktop-nav .nav-item:focus-within > .nav-link {
  color: #000000 !important;
  background: #ffff00 !important;
  border-color: #ffff00 !important;
  outline: 2px solid #ffff00 !important;
}
body.a11y-high-contrast .desktop-arrow {
  color: #ffff00 !important;
}
body.a11y-high-contrast .desktop-nav .nav-link:hover .desktop-arrow,
body.a11y-high-contrast .desktop-nav .nav-item:hover .desktop-arrow {
  color: #000000 !important;
}

/* Dropdown Submenu in High Contrast */
body.a11y-high-contrast .dropdown-menu {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  border-top: 3px solid #ffff00 !important;
  box-shadow: 0 8px 30px rgba(255, 255, 0, 0.25) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.a11y-high-contrast .dropdown-link {
  color: #ffffff !important;
  background: #000000 !important;
  border-left: 3px solid transparent !important;
}
body.a11y-high-contrast .dropdown-link:hover,
body.a11y-high-contrast .dropdown-link:focus {
  color: #000000 !important;
  background: #ffff00 !important;
  border-left-color: #ffffff !important;
  font-weight: 700 !important;
}
body.a11y-high-contrast .dropdown-link:hover .desktop-sub-arrow {
  color: #000000 !important;
}

/* Mobile Hamburger Toggle in High Contrast */
body.a11y-high-contrast .mobile-toggle {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
}
body.a11y-high-contrast .mobile-toggle:hover,
body.a11y-high-contrast .mobile-toggle:focus-visible {
  background: #222222 !important;
  outline: 2px solid #ffff00 !important;
}
body.a11y-high-contrast .mobile-toggle .hamburger-bar {
  background-color: #ffff00 !important;
}

/* Mobile Slide-out Drawer in High Contrast */
body.a11y-high-contrast .mobile-drawer {
  background: #000000 !important;
  border-left: 2px solid #ffff00 !important;
  box-shadow: -8px 0 35px rgba(255, 255, 0, 0.2) !important;
}
body.a11y-high-contrast .mobile-drawer-header {
  background: #111111 !important;
  border-bottom: 2px solid #ffff00 !important;
}
body.a11y-high-contrast .mobile-drawer-title {
  color: #ffff00 !important;
}
body.a11y-high-contrast .mobile-drawer-close {
  background: #000000 !important;
  border: 1px solid #ffff00 !important;
  color: #ffff00 !important;
}
body.a11y-high-contrast .mobile-drawer-close:hover {
  background: #ffff00 !important;
  color: #000000 !important;
}
body.a11y-high-contrast .mobile-drawer-body {
  background: #000000 !important;
}
body.a11y-high-contrast .mobile-nav-item {
  background: #111111 !important;
  border: 1px solid #ffffff !important;
}
body.a11y-high-contrast .mobile-nav-link {
  color: #ffffff !important;
}
body.a11y-high-contrast .mobile-nav-link:hover {
  color: #000000 !important;
  background: #ffff00 !important;
}
body.a11y-high-contrast .mobile-submenu-toggle {
  color: #ffff00 !important;
  border-left: 1px solid #ffffff !important;
}
body.a11y-high-contrast .mobile-submenu-toggle:hover {
  background: #222222 !important;
}
body.a11y-high-contrast .mobile-submenu {
  background: #000000 !important;
  border-top: 1px solid #ffffff !important;
  border-left: 3px solid #ffff00 !important;
}
body.a11y-high-contrast .mobile-sub-link {
  color: #ffffff !important;
}
body.a11y-high-contrast .mobile-sub-link:hover {
  color: #000000 !important;
  background: #ffff00 !important;
}
body.a11y-high-contrast .mobile-sub-bullet {
  color: #ffff00 !important;
}
body.a11y-high-contrast .mobile-drawer-footer {
  background: #111111 !important;
  border-top: 2px solid #ffff00 !important;
}
body.a11y-high-contrast .mobile-drawer-btn.phone {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}
body.a11y-high-contrast .mobile-drawer-btn.phone:hover {
  background: #ffffff !important;
  color: #000000 !important;
}
body.a11y-high-contrast .mobile-drawer-btn.accent {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
}
body.a11y-high-contrast .mobile-drawer-btn.accent:hover {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* Homepage and General Cards */
body.a11y-high-contrast .home-jobs-panel {
  background: #111111 !important;
  border: 2px solid #ffff00 !important;
}
body.a11y-high-contrast .home-jobs-panel .job-item {
  background: #000000 !important;
  border: 1px solid #ffffff !important;
}
body.a11y-high-contrast .home-inst-card {
  background: #111111 !important;
  border: 2px solid #ffffff !important;
}
body.a11y-high-contrast .home-inst-meta {
  background: #000000 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
body.a11y-high-contrast .home-section-badge {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}
body.a11y-high-contrast .home-module-card,
body.a11y-high-contrast .gallery-album-card,
body.a11y-high-contrast .article-main-card,
body.a11y-high-contrast .sidebar-card,
body.a11y-high-contrast .institution-detail-card,
body.a11y-high-contrast .headquarters-hero-card,
body.a11y-high-contrast .contact-card,
body.a11y-high-contrast .page-main-card,
body.a11y-high-contrast .job-detail-card,
body.a11y-high-contrast .contact-form-card,
body.a11y-high-contrast .sidebar-banner,
body.a11y-high-contrast .featured-article-card,
body.a11y-high-contrast .palyazat-card,
body.a11y-high-contrast .palyazat-module-banner {
  background: #111111 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body.a11y-high-contrast .palyazatok-fixed-badge a,
body.a11y-high-contrast .palyazatok-fixed-badge div,
body.a11y-high-contrast .palyazatok-fixed-badge img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
body.a11y-high-contrast .home-module-card:hover,
body.a11y-high-contrast .gallery-album-card:hover,
body.a11y-high-contrast .home-inst-card:hover,
body.a11y-high-contrast .headquarters-hero-card:hover,
body.a11y-high-contrast .contact-card:hover {
  border-color: #ffff00 !important;
  box-shadow: 0 0 14px rgba(255, 255, 0, 0.3) !important;
}
body.a11y-high-contrast .headquarters-hero-card {
  border: 2px solid #ffff00 !important;
}
body.a11y-high-contrast .hq-icon-box {
  background: #222222 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}
body.a11y-high-contrast .inst-leader-box,
body.a11y-high-contrast .inst-deputy-box {
  background: #000000 !important;
  border: 1px solid #ffffff !important;
  border-left: 4px solid #ffff00 !important;
  color: #ffffff !important;
}
body.a11y-high-contrast .inst-leader-box div,
body.a11y-high-contrast .inst-deputy-box div,
body.a11y-high-contrast .inst-leader-box span,
body.a11y-high-contrast .inst-deputy-box span {
  color: #ffffff !important;
}
body.a11y-high-contrast .inst-leader-box a,
body.a11y-high-contrast .inst-deputy-box a {
  color: #ffff00 !important;
}

/* Headings & Text in High Contrast */
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast .sidebar-card-title,
body.a11y-high-contrast .article-title,
body.a11y-high-contrast .home-section-title {
  color: #ffff00 !important;
}
body.a11y-high-contrast p,
body.a11y-high-contrast li,
body.a11y-high-contrast span {
  color: #ffffff;
}
body.a11y-high-contrast .text-muted,
body.a11y-high-contrast .article-meta,
body.a11y-high-contrast .post-date,
body.a11y-high-contrast .card-meta {
  color: #e2e8f0 !important;
}

/* Buttons in High Contrast */
body.a11y-high-contrast .btn,
body.a11y-high-contrast .btn-primary,
body.a11y-high-contrast .btn-secondary,
body.a11y-high-contrast .btn-emerald,
body.a11y-high-contrast .btn-gold,
body.a11y-high-contrast .btn-action,
body.a11y-high-contrast .btn-back,
body.a11y-high-contrast .btn-share,
body.a11y-high-contrast .btn-outline-primary,
body.a11y-high-contrast .home-inst-btn,
body.a11y-high-contrast .slider-action-btn,
body.a11y-high-contrast .btn-card-read-more {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
body.a11y-high-contrast .btn-card-read-more i,
body.a11y-high-contrast .btn i {
  color: #ffff00 !important;
}
body.a11y-high-contrast .btn:hover,
body.a11y-high-contrast .btn-primary:hover,
body.a11y-high-contrast .btn-secondary:hover,
body.a11y-high-contrast .btn-emerald:hover,
body.a11y-high-contrast .btn-gold:hover,
body.a11y-high-contrast .btn-action:hover,
body.a11y-high-contrast .btn-back:hover,
body.a11y-high-contrast .btn-share:hover,
body.a11y-high-contrast .btn-outline-primary:hover,
body.a11y-high-contrast .home-inst-btn:hover,
body.a11y-high-contrast .slider-action-btn:hover,
body.a11y-high-contrast .btn-card-read-more:hover {
  background: #ffff00 !important;
  color: #000000 !important;
  text-decoration: none !important;
}
body.a11y-high-contrast .btn-card-read-more:hover i,
body.a11y-high-contrast .btn:hover i {
  color: #000000 !important;
}

/* Social Share and Mini Buttons in High Contrast */
body.a11y-high-contrast .job-share-btn,
body.a11y-high-contrast .card-share-icon,
body.a11y-high-contrast .btn-share-mini {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
  text-decoration: none !important;
}
body.a11y-high-contrast .job-share-btn:hover,
body.a11y-high-contrast .card-share-icon:hover,
body.a11y-high-contrast .btn-share-mini:hover {
  background: #ffff00 !important;
  color: #000000 !important;
  border-color: #ffff00 !important;
  text-decoration: none !important;
}
body.a11y-high-contrast .job-share-btn i,
body.a11y-high-contrast .card-share-icon i,
body.a11y-high-contrast .btn-share-mini i {
  color: inherit !important;
}

/* General Links in High Contrast */
body.a11y-high-contrast a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-emerald):not(.btn-gold):not(.btn-action):not(.btn-back):not(.btn-share):not(.btn-outline-primary):not(.btn-card-read-more):not(.home-inst-btn):not(.slider-action-btn):not(.job-share-btn):not(.card-share-icon):not(.btn-share-mini):not(.nav-link):not(.dropdown-link):not(.mobile-nav-link):not(.mobile-sub-link) {
  color: #ffff00;
  text-decoration: underline;
}
body.a11y-high-contrast a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-emerald):not(.btn-gold):not(.btn-action):not(.btn-back):not(.btn-share):not(.btn-outline-primary):not(.btn-card-read-more):not(.home-inst-btn):not(.slider-action-btn):not(.job-share-btn):not(.card-share-icon):not(.btn-share-mini):not(.nav-link):not(.dropdown-link):not(.mobile-nav-link):not(.mobile-sub-link):hover {
  background: #ffff00;
  color: #000000 !important;
}

/* Breadcrumbs in High Contrast */
body.a11y-high-contrast .breadcrumb-bar,
body.a11y-high-contrast .breadcrumbs {
  background: #111111 !important;
  border: 1px solid #ffff00 !important;
}
body.a11y-high-contrast .breadcrumb-item a,
body.a11y-high-contrast .breadcrumbs a {
  color: #ffff00 !important;
}

/* Footer in High Contrast */
body.a11y-high-contrast .site-footer {
  background: #000000 !important;
  border-top: 3px solid #ffff00 !important;
  color: #ffffff !important;
}
body.a11y-high-contrast .footer-col h3 {
  color: #ffff00 !important;
  border-bottom: 2px solid #ffff00 !important;
}
body.a11y-high-contrast .footer-links a {
  color: #ffffff !important;
  text-decoration: underline !important;
}
body.a11y-high-contrast .footer-links a:hover {
  color: #000000 !important;
  background: #ffff00 !important;
}
body.a11y-high-contrast .footer-trust-badge,
body.a11y-high-contrast .footer-ssl-badge {
  background: #111111 !important;
  border: 1px solid #ffff00 !important;
  color: #ffff00 !important;
}
body.a11y-high-contrast .footer-bottom {
  border-top: 1px solid #333333 !important;
  color: #e2e8f0 !important;
}

/* Floating Accessibility Widget in High Contrast */
body.a11y-high-contrast .a11y-trigger-btn {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
  box-shadow: 0 0 14px rgba(255, 255, 0, 0.4) !important;
}
body.a11y-high-contrast .a11y-panel {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  box-shadow: 0 8px 30px rgba(255, 255, 0, 0.3) !important;
}
body.a11y-high-contrast .a11y-panel-header {
  background: #111111 !important;
  border-bottom: 2px solid #ffff00 !important;
  color: #ffff00 !important;
}
body.a11y-high-contrast .a11y-opt-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
}
body.a11y-high-contrast .a11y-opt-btn.is-active {
  background: #ffff00 !important;
  color: #000000 !important;
  border-color: #ffff00 !important;
  font-weight: 700 !important;
}
body.a11y-high-contrast .a11y-opt-btn:hover,
body.a11y-high-contrast .a11y-opt-btn:focus {
  background: #222222 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}
body.a11y-high-contrast .a11y-reset-btn {
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

/* Gallery Album Cards Grid */
.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.gallery-album-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.album-cover-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.album-cover-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}
.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-album-card:hover .album-cover-img {
  transform: scale(1.06);
}
.album-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.album-date-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.album-date-badge i,
.album-count-badge i {
  color: #64748b;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}
.gallery-album-card:hover .album-date-badge,
.gallery-album-card:hover .album-count-badge {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.gallery-album-card:hover .album-date-badge i,
.gallery-album-card:hover .album-count-badge i {
  color: #334155;
}
.album-body {
  padding: 20px;
}
.album-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}
.album-btn {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Gallery Album Header & Description */
.gallery-album-header {
  width: 100%;
  margin-bottom: 25px;
}
.gallery-album-description {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  margin-top: 14px;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
}
.gallery-album-description p {
  margin-bottom: 12px;
  line-height: 1.7;
}
.gallery-album-description p:last-child {
  margin-bottom: 0;
}

/* Gallery Individual Photos Grid & Lightbox */
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-photo-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: var(--shadow-sm);
}
.gallery-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-photo-card:hover .gallery-photo-img {
  transform: scale(1.08);
}
.gallery-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 102, 115, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 15px;
  text-align: center;
}
.gallery-photo-card:hover .gallery-photo-overlay {
  opacity: 1;
}
.gallery-photo-overlay i {
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.gallery-photo-overlay span {
  font-size: 0.825rem;
  font-weight: 600;
}

/* Lightbox Modal & Advanced Navigation */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 92vh;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}
.lightbox-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.lightbox-image {
  max-width: 86vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: block;
}
.lightbox-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  text-align: center;
  max-width: 800px;
}
.lightbox-caption {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.lightbox-counter {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 25px;
  z-index: 100002;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  transform: scale(1.08);
}
.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100002;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
  color: #ffffff;
}
.lightbox-prev {
  left: 25px;
}
.lightbox-next {
  right: 25px;
}
@media (max-width: 768px) {
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-image {
    max-width: 94vw;
    max-height: 70vh;
  }
}

/* Anti-Harvester Safe Email (Visually visible immediately, reversed in raw HTML source) */
.safe-email {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: inherit;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.safe-email-txt {
  unicode-bidi: bidi-override;
  direction: rtl;
  user-select: all;
}
.revealed-email-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.revealed-email-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Social Sharing */
.social-share-container {
  margin: 30px 0;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.share-label {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-facebook { background: #1877f2; color: #ffffff; }
.btn-linkedin { background: #0a66c2; color: #ffffff; }
.btn-mail { background: #334155; color: #ffffff; }
.btn-copy-link { background: #046673; color: #ffffff; }
.btn-share:hover, .btn-share:focus {
  opacity: 0.95;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Card Action Bar: Elegant, clean, uncrowded read-more link */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.card-footer-bar {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f8fafc;
  color: var(--primary);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}
.btn-card-read-more i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  color: var(--primary);
}
.btn-card-read-more:hover,
.btn-card-read-more:focus {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 10px rgba(4, 102, 115, 0.2);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.btn-card-read-more:hover i,
.btn-card-read-more:focus i {
  color: #ffffff !important;
  transform: translateX(3px);
}
.btn-card-read-more:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Tasteful Inline Social Share Icons */
.card-share-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.card-share-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1;
}
.card-share-icon:hover {
  transform: translateY(-2px);
  color: #ffffff;
}
.card-share-icon.fb:hover { background: #1877f2; border-color: #1877f2; }
.card-share-icon.tw:hover { background: #0f1419; border-color: #0f1419; }
.card-share-icon.mail:hover { background: #ea4335; border-color: #ea4335; }
.card-share-icon.copy:hover, .card-share-icon.copy.copied { background: var(--primary); border-color: var(--primary); color: #ffffff; }

/* Featured Hero Article Showcase (Top of /hirek) */
.featured-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 35px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  width: 100%;
}
.featured-article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.featured-image-col {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  min-height: 330px;
  height: 100%;
  display: flex;
}
.featured-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  flex: 1 1 100%;
}
.featured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.featured-article-card:hover .featured-image {
  transform: scale(1.04);
}
.featured-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  background: rgba(4, 102, 115, 0.08);
}
.featured-badge-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #991b1b 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
  z-index: 2;
}
.featured-content-col {
  padding: 35px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: var(--bg-card);
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.featured-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.featured-cat-tag {
  background: rgba(4, 102, 115, 0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.featured-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}
.featured-title a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.featured-title a:hover {
  color: var(--primary-dark);
}
.featured-summary {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-content-col .card-footer-bar {
  padding-top: 18px;
}
.featured-content-col .btn-card-read-more {
  padding: 10px 20px;
  font-size: 0.92rem;
}
@media (max-width: 900px) {
  .featured-article-card {
    grid-template-columns: 1fr;
  }
  .featured-image-col {
    min-height: 240px;
    height: 240px;
  }
  .featured-content-col {
    padding: 24px;
  }
  .featured-title {
    font-size: 1.45rem;
  }
  .featured-summary {
    font-size: 0.90rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }
}

.card-share-wrap .job-share-btn {
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  transition: all 0.18s ease;
}
.card-share-wrap .job-share-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}
.card-share-wrap .job-share-btn.job-share-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}
.card-share-wrap .job-share-btn.job-share-tw:hover {
  background: #0f1419;
  border-color: #0f1419;
}
.card-share-wrap .job-share-btn.job-share-mail:hover {
  background: #ea4335;
  border-color: #ea4335;
}
.card-share-wrap .job-share-btn.job-share-copy:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.card-share-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-share-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.82rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-share-mini:hover {
  transform: scale(1.1);
  opacity: 0.95;
}
.btn-share-mini:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn-share-mini.btn-facebook { background: #1877f2; }
.btn-share-mini.btn-linkedin { background: #0a66c2; }
.btn-share-mini.btn-mail { background: #334155; }
.btn-share-mini.btn-copy-link { background: #046673; }

/* Filter pills and controls */
.filter-pills-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px 4px;
  border-radius: 20px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.filter-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}
.filter-pill.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(4, 102, 115, 0.25);
}
.filter-pill:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* Pagination */
.pagination-nav {
  margin: 45px 0 25px 0;
  display: flex;
  justify-content: center;
}
.pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 6px 10px;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.pagination-item {
  display: inline-flex;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 19px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.pagination-link:hover:not(.disabled):not(.active) {
  background: #f1f5f9;
  color: var(--primary);
  border-color: #e2e8f0;
}
.pagination-link.active {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(4, 102, 115, 0.3);
  cursor: default;
}
.pagination-link.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #023138 0%, #011e22 100%);
  color: #f1f5f9;
  padding: 55px 0 25px;
  margin-top: auto;
  position: relative;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.8fr 1fr;
  gap: 30px;
  margin-bottom: 35px;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-logo-wrapper {
  display: inline-block;
  max-width: 100%;
}
.footer-official-logo {
  height: 48px;
  max-height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.footer-col p a {
  text-decoration: none !important;
}
.site-footer a {
  text-decoration: none !important;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}
.footer-contact-item {
  margin-bottom: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}
.footer-contact-label {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.88rem;
}
.footer-contact-val {
  color: #cbd5e1;
  font-size: 0.88rem;
  word-break: break-word;
}
.footer-legal-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}
.footer-ssl-badge {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e6f4f5;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  max-width: max-content;
}
.footer-trust-badge i {
  color: var(--primary-light);
}
.footer-col h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 9px;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.footer-links a i {
  font-size: 0.75rem;
  color: var(--primary-light);
  transition: transform 0.15s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #ffffff;
  transform: translateX(3px);
}
.footer-links a:hover i {
  color: var(--primary-xlight);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 20px 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Status Badges (primary / accent palette only) */
.badge-gold {
  background: #e6f4f5;
  color: var(--primary-dark);
  border: 1px solid rgba(4, 102, 115, 0.2);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-emerald {
  background: var(--primary-xlight);
  color: var(--primary-dark);
  border: 1px solid rgba(4, 102, 115, 0.2);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-gold {
  background: var(--primary-light);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-gold:hover,
.btn-gold:focus,
a.btn-gold:hover,
a.btn-gold:focus {
  background: var(--primary-dark) !important;
  box-shadow: 0 4px 12px rgba(4, 102, 115, 0.18) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
  text-decoration: none !important;
}
.btn-gold i,
.btn-gold:hover i,
a.btn-gold:hover i {
  color: #ffffff !important;
}
.btn-emerald:hover,
.btn-emerald:focus,
a.btn-emerald:hover,
a.btn-emerald:focus {
  background: var(--primary-dark) !important;
  box-shadow: 0 4px 12px rgba(4, 102, 115, 0.18) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
  text-decoration: none !important;
}
.btn-emerald i,
.btn-emerald:hover i,
a.btn-emerald:hover i {
  color: #ffffff !important;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  /* Header Container & Logo Resizing on Mobile */
  .header-container {
    padding: 8px 16px;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .site-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 60px);
    display: flex;
    align-items: center;
  }

  .site-official-logo {
    height: 48px;
    max-height: 52px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }

  /* Mobile Hamburger Button Styling */
  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 1001;
  }

  .mobile-toggle:hover, .mobile-toggle:focus-visible {
    background: var(--primary-xlight);
    border-color: var(--primary);
    color: var(--primary);
  }

  .mobile-toggle .hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    box-sizing: border-box;
    pointer-events: none;
  }

  .mobile-toggle .hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center;
  }

  .mobile-toggle.is-active .bar-top {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-toggle.is-active .bar-mid {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-toggle.is-active .bar-bot {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Backdrop Overlay */
  .mobile-nav-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(2, 35, 40, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hide Desktop Nav in Mobile View */
  .desktop-nav {
    display: none !important;
  }

  /* Backdrop Overlay - Full viewport coverage */
  .mobile-nav-backdrop {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(2, 35, 40, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
  }
  .mobile-nav-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Modern Off-canvas Slide-out Drawer (Direct child of body, completely unconstrained) */
  .mobile-drawer,
  .main-nav {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(86vw, 360px) !important;
    max-width: 360px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    z-index: 100000 !important;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.3) !important;
    transform: translateX(105%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .mobile-drawer.active,
  .main-nav.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Prevent page scrolling while mobile drawer is open */
  body.mobile-drawer-open {
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* Drawer Top Header */
  .mobile-drawer-header {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 18px !important;
    background: linear-gradient(135deg, #022328 0%, #046673 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .mobile-drawer-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }
  .mobile-drawer-logo {
    height: 42px !important;
    max-height: 48px !important;
    max-width: 230px !important;
    width: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    display: block !important;
  }
  .mobile-drawer-close {
    background: rgba(255, 255, 255, 0.14) !important;
    border: none !important;
    color: #ffffff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    flex-shrink: 0 !important;
  }
  .mobile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    transform: scale(1.06) !important;
  }

  /* Drawer Scrollable Body */
  .mobile-drawer-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Drawer Navigation List */
  .mobile-nav-list,
  .mobile-drawer .nav-list {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .mobile-nav-item,
  .mobile-drawer .nav-item {
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
    transition: border-color 0.15s ease, background 0.15s ease !important;
  }
  .mobile-nav-item:hover,
  .mobile-drawer .nav-item:hover {
    border-color: #e2e8f0 !important;
    background: #fafafa !important;
  }
  .mobile-nav-row,
  .mobile-drawer .nav-link-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .mobile-nav-link,
  .mobile-drawer .nav-link {
    flex: 1 !important;
    padding: 12px 14px !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: normal !important;
    word-break: break-word !important;
    transition: color 0.15s ease !important;
  }
  .mobile-nav-link:hover,
  .mobile-drawer .nav-link:hover {
    color: var(--primary) !important;
  }
  .mobile-drawer .desktop-arrow {
    display: none !important;
  }

  /* Submenu Toggle Icon Button */
  .mobile-submenu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    border-left: 1px solid #f1f5f9 !important;
    color: #64748b !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, background 0.2s ease !important;
    flex-shrink: 0 !important;
  }
  .mobile-submenu-toggle:hover {
    color: var(--primary) !important;
    background: rgba(4, 102, 115, 0.05) !important;
  }
  .mobile-submenu-toggle[aria-expanded="true"] {
    transform: rotate(180deg) !important;
    color: var(--primary) !important;
    background: rgba(4, 102, 115, 0.08) !important;
  }

  /* Submenu Accordion */
  .mobile-submenu,
  .mobile-drawer .dropdown-menu {
    display: none !important;
    position: static !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    border-left: 3px solid var(--primary) !important;
    background: #f8fafc !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 0 !important;
    padding: 6px 8px 8px 12px !important;
    list-style: none !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: auto !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .mobile-submenu.active,
  .mobile-drawer .dropdown-menu.active {
    display: flex !important;
    animation: a11yFadeIn 0.2s ease-out !important;
  }
  .mobile-submenu-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobile-sub-link,
  .mobile-drawer .dropdown-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    font-size: 0.90rem !important;
    font-weight: 550 !important;
    color: #334155 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
    border-left: none !important;
  }
  .mobile-sub-link:hover,
  .mobile-drawer .dropdown-link:hover {
    color: var(--primary) !important;
    background: rgba(4, 102, 115, 0.08) !important;
    padding-left: 16px !important;
  }
  .mobile-sub-bullet {
    display: inline-block !important;
    font-size: 0.82rem !important;
    color: var(--primary) !important;
    flex-shrink: 0 !important;
  }

  /* Drawer Footer Contacts */
  .mobile-drawer-footer {
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px 16px 20px 16px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    margin-top: auto !important;
  }
  .mobile-drawer-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 11px 16px !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }
  .mobile-drawer-btn.phone {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #046673 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  }
  .mobile-drawer-btn.phone:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
  }
  .mobile-drawer-btn.accent {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(4, 102, 115, 0.25) !important;
  }
  .mobile-drawer-btn.accent:hover {
    background: var(--primary-dark) !important;
  }
}

/* ==========================================================================
   Article & CMS Content Responsive Containment (Never overflow container)
   ========================================================================== */
.article-detail,
.article-content,
.cms-page-content,
.page-detail {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-content img,
.article-detail img,
.cms-page-content img,
.page-content-inner img {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}

/* Header & Detail Cover Images with object-position support */
.institution-cover-wrapper,
.page-cover-wrapper,
.article-cover-wrapper {
  width: 100%;
  height: 320px;
  max-height: 42vh;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.institution-cover-wrapper img,
.page-cover-wrapper img,
.article-cover-wrapper img,
.article-card-cover img,
.cover-preview-box img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
}

.article-content p img,
.article-detail p img {
  margin: 15px auto;
  border-radius: var(--radius-sm, 6px);
  display: block;
}

.article-content table,
.article-detail table,
.cms-page-content table {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: auto;
  display: block;
}

.article-content iframe,
.article-content video,
.article-content embed {
  max-width: 100% !important;
}


/* ==========================================================================
   Full-Width Hero Image Slider (Főoldali Teljes Szélességű Képváltó Slider)
   ========================================================================== */
html, body {
  overflow-x: clip;
}

.main-wrapper.main-wrapper-home,
.main-wrapper:has(> .home-hero-slider) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home-hero-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0 !important;
  margin-bottom: 35px;
  height: 560px;
  min-height: 480px;
  max-height: 640px;
  overflow: hidden;
  background: #022328;
  box-shadow: 0 10px 30px rgba(2, 49, 56, 0.25);
  user-select: none;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s ease;
  z-index: 1;
  pointer-events: none;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.slider-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: translateZ(0) scale(1.0);
  transition: transform 7.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: brightness(0.97) contrast(1.05) saturate(1.08);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.slider-slide.active .slider-bg-img {
  transform: translateZ(0) scale(1.07);
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 49, 56, 0.90) 0%, rgba(2, 49, 56, 0.62) 42%, rgba(2, 49, 56, 0.25) 75%, rgba(0, 0, 0, 0.18) 100%),
              linear-gradient(0deg, rgba(2, 35, 40, 0.82) 0%, transparent 45%);
  pointer-events: none;
}

.slider-content-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 35px;
  display: flex;
  align-items: center;
}

.slider-content {
  max-width: 780px;
  color: #ffffff;
  padding: 30px 0;
}

.slider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ccfbf1;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.6s ease 0.15s, opacity 0.6s ease 0.15s;
}

.slider-slide.active .slider-badge {
  transform: translateY(0);
  opacity: 1;
}

.slider-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 10px #2dd4bf;
}

.slider-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 14px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.65s ease 0.25s, opacity 0.65s ease 0.25s;
}

.slider-slide.active .slider-title {
  transform: translateY(0);
  opacity: 1;
}

.slider-subtitle {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #f1f5f9;
  margin: 0 0 24px 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  max-width: 720px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.65s ease 0.35s, opacity 0.65s ease 0.35s;
}

.slider-slide.active .slider-subtitle {
  transform: translateY(0);
  opacity: 1;
}

.slider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.65s ease 0.45s, opacity 0.65s ease 0.45s;
}

.slider-slide.active .slider-actions {
  transform: translateY(0);
  opacity: 1;
}

.btn-slider-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #046673;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(4, 102, 115, 0.45);
  transition: all 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.btn-slider-primary:hover {
  background: #0b8090;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(4, 102, 115, 0.6);
  color: #ffffff !important;
}

.btn-slider-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-slider-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  transform: translateY(-2px);
  border-color: #ffffff;
}

/* Navigációs nyilak */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(2, 49, 56, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.slider-arrow-prev { left: 24px; }
.slider-arrow-next { right: 24px; }

.slider-arrow:hover {
  background: #046673;
  transform: translateY(-50%) scale(1.12);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.slider-arrow:focus-visible {
  outline: 3px solid #2dd4bf;
  outline-offset: 2px;
}

/* Responsiveness for Full-Width Hero Slider */
@media (max-width: 992px) {
  .home-hero-slider {
    height: 440px;
    min-height: 380px;
  }
  .slider-title {
    font-size: 1.85rem;
  }
  .slider-subtitle {
    font-size: 0.95rem;
  }
  .slider-content-container {
    padding: 0 25px;
    align-items: center;
  }
  .slider-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
  .slider-arrow-prev { left: 12px; }
  .slider-arrow-next { right: 12px; }
}

@media (max-width: 768px) {
  .home-hero-slider {
    height: 360px;
    min-height: 320px;
    max-height: 400px;
    margin-top: 0 !important;
    margin-bottom: 25px;
  }
  .slider-overlay {
    background: linear-gradient(0deg, rgba(2, 35, 40, 0.85) 0%, rgba(2, 35, 40, 0.60) 50%, rgba(2, 35, 40, 0.72) 100%) !important;
  }
  .slider-content-container {
    padding: 0 24px;
    align-items: center; /* Függőlegesen középre igazítva, nem ragad alulra! */
    justify-content: flex-start;
  }
  .slider-content {
    padding: 0;
    max-width: 100%;
    text-align: left;
  }
  .slider-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
    margin-bottom: 10px;
    gap: 6px;
  }
  .slider-badge-dot {
    width: 6px;
    height: 6px;
  }
  .slider-title {
    font-size: 1.25rem;
    line-height: 1.32;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slider-subtitle {
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0 0 14px 0;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn-desktop-only {
    display: none !important;
  }
  .slider-arrow {
    display: none !important;
  }
  .slider-actions {
    margin: 0;
    gap: 8px;
  }
  .btn-slider-primary {
    font-size: 0.82rem;
    padding: 7px 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  }
  .btn-slider-secondary {
    font-size: 0.82rem;
    padding: 7px 14px;
  }
}

@media (max-width: 480px) {
  .home-hero-slider {
    height: 330px;
    min-height: 290px;
  }
  .slider-content-container {
    padding: 0 18px;
    align-items: center;
  }
  .slider-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    margin-bottom: 8px;
  }
  .slider-title {
    font-size: 1.15rem;
    line-height: 1.28;
    margin-bottom: 8px;
  }
  .slider-subtitle {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .btn-slider-primary {
    font-size: 0.78rem;
    padding: 6px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-bg-img {
    transition: none !important;
    transform: none !important;
  }
  .slider-slide {
    transition: opacity 0.2s ease !important;
  }
  .slider-badge, .slider-title, .slider-subtitle, .slider-actions {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Homepage 2-Column Grid & Sidebar Modules (Nyitólapi Modulok)
   ========================================================================== */
/* ==========================================================================
   Homepage 2-Column Layout & Sidebar Banners (Képes Oldalsáv)
   ========================================================================== */
.home-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  align-items: start;
  width: 100%;
  margin-bottom: 50px;
}

.home-main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 25px;
}

/* Tiszta, esztétikus kép-bannerek szöveg és gombok nélkül - egységes teljes szélesség */
.sidebar-banner {
  display: block;
  min-height: 48px;
  min-width: 48px;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  line-height: 0;
  text-decoration: none;
}
.sidebar-banner:last-child {
  margin-bottom: 0;
}

.sidebar-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sidebar-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(4, 102, 115, 0.16);
  border-color: #046673;
}

.sidebar-banner:hover img {
  transform: scale(1.02);
}

.sidebar-banner.sidebar-banner-static {
  cursor: default;
}
.sidebar-banner.sidebar-banner-static:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}
.sidebar-banner.sidebar-banner-static:hover img {
  transform: none;
}

/* Reszponzív nézetek */
@media (max-width: 1060px) {
  .home-layout-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .home-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .home-sidebar-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .home-sidebar-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 14px;
    gap: 10px;
  }
  .site-official-logo {
    height: 46px;
    max-height: 48px;
  }
  .mobile-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Mobile Drawer Phone Number Badge */
.mobile-phone-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}
.mobile-phone-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.mobile-phone-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #046673;
}

/* Responsive Footer Columns (Break into rows on tablet & mobile) */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 36px 28px !important;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    padding: 0 18px !important;
    margin-bottom: 25px !important;
  }
  .footer-col {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-brand-col {
    align-items: flex-start;
  }
  .footer-brand-desc {
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

/* ==========================================================================
   News Listing Toolbar & Article Typography Unification
   ========================================================================== */

/* Articles Filter Toolbar */
.articles-filter-toolbar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.articles-toolbar-count-wrap,
.articles-toolbar-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.articles-toolbar-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.articles-toolbar-total {
  font-size: 0.82rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 640px) {
  .articles-filter-toolbar {
    padding: 10px 14px;
    gap: 8px;
    margin-bottom: 20px;
  }
  .articles-toolbar-label {
    display: none !important;
  }
  .toolbar-limit-pills {
    display: none !important;
  }
  .articles-toolbar-total {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
  }
  .articles-toolbar-count-wrap {
    flex: 1;
  }
  .articles-toolbar-sort-wrap {
    flex-shrink: 0;
  }
  .filter-pills-group {
    padding: 2px 3px;
  }
  .filter-pill {
    padding: 3px 8px;
    font-size: 0.78rem;
  }
}

/* Documents Filter & Search Bar - Elegant & Mobile Responsive */
.doc-filter-card {
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}
.doc-tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.doc-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.doc-tab-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary);
}
.doc-tab-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(4, 102, 115, 0.25);
}
.doc-tab-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
}
.doc-tab-btn.active .doc-tab-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.doc-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
.doc-search-input-wrap {
  flex: 1;
  position: relative;
  min-width: 200px;
}
.doc-search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
}
.doc-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.90rem;
  font-family: inherit;
  background: #f8fafc;
  color: var(--text-main);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.doc-search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 102, 115, 0.1);
}
.doc-search-input::placeholder {
  color: #94a3b8;
  opacity: 0.65;
  font-size: 0.88rem;
  font-weight: 400;
}
.doc-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.doc-search-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 22px;
  font-size: 0.88rem;
  color: #64748b;
  border: 1px solid var(--border);
  background: #ffffff;
  white-space: nowrap;
  text-decoration: none;
}
.doc-search-clear:hover {
  background: #f8fafc;
  color: #0f172a;
}

@media (max-width: 640px) {
  .doc-filter-card {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
  }
  .doc-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    overflow-x: visible;
  }
  .doc-tab-btn {
    padding: 7px 13px;
    font-size: 0.82rem;
    border-radius: 20px;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }
  .doc-search-form {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .doc-search-input-wrap {
    min-width: 0;
    flex: 1;
  }
  .doc-search-input {
    font-size: 0.86rem;
    padding: 8px 12px 8px 34px;
  }
  .doc-search-submit {
    padding: 8px 14px;
    font-size: 0.84rem;
  }
}

/* Article Detail Top Bar & Typography matching Homepage */
.article-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.article-back-link,
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 24px;
  background: #ffffff !important;
  border: 1.5px solid rgba(4, 102, 115, 0.28) !important;
  box-shadow: 0 2px 6px rgba(4, 102, 115, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.article-back-link i,
.article-back-link span,
.btn-back i,
.btn-back span {
  color: var(--primary) !important;
  transition: all 0.22s ease;
}
.article-back-link:hover,
.article-back-link:focus,
.article-back-link:focus-visible,
.btn-back:hover,
.btn-back:focus,
.btn-back:focus-visible {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(4, 102, 115, 0.32) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}
.article-back-link:hover i,
.article-back-link:focus i,
.article-back-link:focus-visible i,
.btn-back:hover i,
.btn-back:focus i,
.btn-back:focus-visible i {
  color: #ffffff !important;
  transform: translateX(-3px);
}
.article-back-link:hover span,
.article-back-link:focus span,
.article-back-link:focus-visible span,
.btn-back:hover span,
.btn-back:focus span,
.btn-back:focus-visible span {
  color: #ffffff !important;
}
.article-back-link:active,
.btn-back:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(4, 102, 115, 0.2) !important;
}
.article-top-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.article-top-share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.article-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary);
  margin: 0 0 10px 0;
}
.article-lead-summary {
  font-size: 0.925rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 14px 0;
}
.article-content {
  font-size: 0.925rem;
  line-height: 1.68;
  color: #1e293b;
}
.article-content p {
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .article-top-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0;
  }
  .article-back-link,
  .btn-back {
    font-size: 0.82rem;
    padding: 6px 14px;
    gap: 6px;
    white-space: nowrap;
    border-radius: 20px;
  }
  .article-top-share-label {
    display: none !important;
  }
  .article-top-share {
    margin-left: auto;
  }
  .article-top-share .job-share-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .article-main-title {
    font-size: 1.25rem;
    line-height: 1.32;
  }
  .article-lead-summary,
  .article-content {
    font-size: 0.925rem;
    line-height: 1.6;
  }
}

/* ==========================================================================
   Document Repository (Responsive Data Table & Mobile Cards)
   ========================================================================== */
.documents-table-wrap {
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}
.documents-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.documents-table thead tr {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 2px solid var(--border);
}
.documents-table th {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.documents-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.documents-table tbody tr:hover {
  background: rgba(4, 102, 115, 0.02);
}
.doc-item-title-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.doc-pdf-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-pdf-icon-badge i {
  color: #dc2626;
  font-size: 1.2rem;
}
.doc-title-link {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.94rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease;
}
.doc-title-link:hover {
  color: var(--primary);
}
.doc-desc-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}
.doc-cat-nested {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.doc-parent-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}
.doc-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e6f4f5;
  color: var(--primary-dark);
  border: 1px solid rgba(4, 102, 115, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.doc-cat-pill.root {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
  font-weight: 600;
}
.doc-size-text {
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.doc-size-inline-mobile {
  display: none;
}
.doc-download-btn,
a.doc-download-btn {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.doc-download-btn:hover,
.doc-download-btn:focus,
.doc-download-btn:active,
a.doc-download-btn:hover,
a.doc-download-btn:focus,
a.doc-download-btn:active {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 4px 10px rgba(4, 102, 115, 0.3) !important;
  text-decoration: none !important;
}

.doc-download-btn i,
.doc-download-btn span,
.doc-download-btn:hover i,
.doc-download-btn:hover span,
a.doc-download-btn:hover i,
a.doc-download-btn:hover span {
  color: #ffffff !important;
}

/* Alkategóriák elemek */
.subcat-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #046673;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.subcat-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.subcat-item-left i {
  font-size: 1.15rem;
  color: #046673;
  flex-shrink: 0;
}
.subcat-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #046673;
  line-height: 1.35;
}
.subcat-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.subcat-badge {
  font-size: 0.78rem;
  background: #f0fdfa;
  color: #046673;
  border: 1px solid #ccfbf1;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.subcat-item-right i {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* MOBILE REVOLUTION (< 768px): Table transforms into Card Grid */
@media (max-width: 768px) {
  .documents-table-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .documents-table,
  .documents-table tbody,
  .documents-table tr,
  .documents-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .documents-table thead {
    display: none !important;
  }
  .documents-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .doc-row {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .doc-cell-main {
    padding: 0 !important;
    border: none !important;
  }
  .doc-title-link {
    font-size: 0.90rem !important;
    line-height: 1.38 !important;
  }
  .doc-desc-text {
    font-size: 0.80rem !important;
    line-height: 1.35 !important;
  }
  .doc-cell-category {
    padding: 0 !important;
    border: none !important;
  }
  .doc-cell-size {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
  }
  .doc-cell-action {
    padding: 8px 0 0 0 !important;
    border: none !important;
    border-top: 1px dashed #e2e8f0 !important;
    margin-top: 2px !important;
  }
  .doc-download-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(4, 102, 115, 0.2) !important;
  }
  .doc-size-inline-mobile {
    display: inline !important;
    font-weight: 500 !important;
    opacity: 0.9 !important;
    margin-left: 4px !important;
  }

  /* Alkategóriák méretcsökkentése mobilon */
  .subcat-list-item {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .subcat-title {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
  .subcat-badge {
    font-size: 0.74rem !important;
    padding: 2px 6px !important;
  }
}

/* ==========================================================================
   COOKIE CONSENT NOTICE (Floating Bottom-Left Notification)
   ========================================================================== */
.cookie-notice-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  z-index: 99998;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(4, 102, 115, 0.08);
  padding: 20px 22px;
  font-family: inherit;
  color: #1e293b;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.cookie-notice-container.cookie-notice-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cookie-notice-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0fdfa;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid #99f6e4;
}

.cookie-notice-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.cookie-notice-body {
  font-size: 0.925rem;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 16px;
}

.cookie-notice-body p {
  margin: 0 0 8px 0;
}

.cookie-notice-body p:last-child {
  margin-bottom: 0;
}

.cookie-notice-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-notice-body a:hover {
  color: var(--primary-dark);
}

.cookie-notice-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.cookie-notice-btn-accept {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 9px 24px;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(4, 102, 115, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.cookie-notice-btn-accept:hover,
.cookie-notice-btn-accept:focus {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(4, 102, 115, 0.35);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.cookie-notice-btn-accept:active {
  transform: translateY(0);
}

/* Hide on mobile by default unless explicitly allowed */
@media (max-width: 768px) {
  .cookie-notice-container.cookie-hide-mobile {
    display: none !important;
  }
  
  .cookie-notice-container {
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    padding: 16px;
  }

  .cookie-notice-actions {
    width: 100%;
  }

  .cookie-notice-btn-accept {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Rich Text Editor & Dynamic Content Formatting (v1.2.2)
   ========================================================================== */
.article-content blockquote,
.article-detail blockquote,
.cms-page-content blockquote,
.page-content-inner blockquote,
.page-detail blockquote,
#editor-visual blockquote,
blockquote.cms-quote {
  border-left: 4px solid var(--primary, #046673) !important;
  background: #f8fafc !important;
  padding: 14px 20px 14px 22px !important;
  margin: 18px 0 !important;
  border-radius: 0 8px 8px 0 !important;
  font-style: italic !important;
  color: #334155 !important;
  position: relative !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.article-content blockquote p,
.article-detail blockquote p,
.cms-page-content blockquote p,
.page-content-inner blockquote p,
#editor-visual blockquote p {
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
}

/* Image containment & alignments */
.article-content img,
.article-detail img,
.cms-page-content img,
.page-content-inner img,
.page-detail img,
#editor-visual img {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.cms-img-left,
img.cms-img-left,
figure.cms-img-left {
  float: left !important;
  margin: 10px 24px 16px 0 !important;
  max-width: 50% !important;
}

.cms-img-right,
img.cms-img-right,
figure.cms-img-right {
  float: right !important;
  margin: 10px 0 16px 24px !important;
  max-width: 50% !important;
}

.cms-img-center,
img.cms-img-center,
figure.cms-img-center {
  display: block !important;
  margin: 20px auto !important;
  float: none !important;
  clear: both !important;
}

.cms-img-full,
img.cms-img-full,
figure.cms-img-full {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 !important;
  float: none !important;
  clear: both !important;
}

@media (max-width: 768px) {
  .cms-img-left,
  .cms-img-right,
  img.cms-img-left,
  img.cms-img-right,
  figure.cms-img-left,
  figure.cms-img-right {
    float: none !important;
    max-width: 100% !important;
    margin: 16px auto !important;
    display: block !important;
  }
}

/* Table styling & responsive wrapping */
.cms-table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  margin: 20px 0 !important;
  -webkit-overflow-scrolling: touch;
}

.cms-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
}

.cms-table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border: 1px solid #cbd5e1 !important;
  text-align: left !important;
}

.cms-table td {
  padding: 10px 14px !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.cms-table.table-striped tbody tr:nth-child(even) td,
.cms-table tr:nth-child(even) td {
  background: #f8fafc !important;
}

.cms-table tr:hover td {
  background: #f0fdfa !important;
}

/* Call-to-action buttons in content */
.cms-btn-container {
  margin: 24px 0 !important;
  clear: both !important;
}
.cms-btn-container.text-center { text-align: center !important; }
.cms-btn-container.text-left { text-align: left !important; }
.cms-btn-container.text-right { text-align: right !important; }

/* ==========================================================================
   Admin Visual Editor Link Highlight & Visibility (v1.2.2)
   Makes links immediately visible, distinct, and easy to locate in text
   ========================================================================== */
#editor-visual a:not(.cms-btn),
#cookie-editor-visual a:not(.cms-btn) {
  color: #046673 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-color: #0891b2 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  background-color: #ecfeff !important;
  border: 1px dashed #0891b2 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: inline !important;
  transition: all 0.15s ease !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#editor-visual a:not(.cms-btn):hover,
#cookie-editor-visual a:not(.cms-btn):hover {
  background-color: #cffafe !important;
  border-color: #046673 !important;
  color: #0891b2 !important;
  box-shadow: 0 1px 4px rgba(8, 145, 178, 0.25) !important;
}

#editor-visual a.selected-editor-link {
  background-color: #cffafe !important;
  border: 1px solid #046673 !important;
  box-shadow: 0 0 0 3px rgba(4, 102, 115, 0.25) !important;
}

.editor-action-bubble.link-action-bubble {
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  z-index: 9999;
}

.editor-action-bubble.link-action-bubble button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.editor-action-bubble.link-action-bubble button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
}
