/*
Theme Name: GHK Theme
Theme URI: https://ghk.bme.hu
Description: A Gépészkari Hallgatói Képviselet egyedi WordPress témája.
Version: 1.0.0
Author: GHK
Author URI: https://ghk.bme.hu
Text Domain: ghk-theme
Requires at least: 6.0
Requires PHP: 7.4
*/

/* 1. Design Tokens */
:root {
  --ghk-primary: #0077bb; /* Added for menu and hover accents */
  --ghk-primary-dark: #005a8e;
  --ghk-sidebar-bg: #1a2744;
  --ghk-sidebar-text: #c8d6e5;
  --ghk-accent: #ff8800;
  /* Világos háttéren használható akcentszín (szöveg, keret, hover). A Customizer
     a primary színre cseréli, ha az akcentszín túl világos (pl. fehér). */
  --ghk-accent-ink: var(--ghk-accent);
  --ghk-accent-hover: #e67a00;
  --ghk-text: #333333;
  --ghk-text-light: #6c757d;
  --ghk-bg-white: #ffffff;
  --ghk-bg-light: #f4f6f9;
  --ghk-border: #e0e0e0;
  --ghk-font-family: 'Roboto', sans-serif;
  --ghk-font-size-base: 16px;
  --ghk-font-size-sm: 14px;
  --ghk-font-size-xs: 12px;
  --ghk-font-size-lg: 18px;
  --ghk-font-size-xl: 24px;
  --ghk-font-size-2xl: 32px;
  --ghk-radius: 6px;
  --ghk-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --ghk-shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --ghk-transition: 0.2s ease;
  --ghk-header-height: 60px;
  --ghk-footer-bg: #0b1e33;
  --ghk-footer-text: #c8d6e5;
  --ghk-sidebar-left-width: 275px;
  --ghk-sidebar-right-width: 275px;
}

/* 2. CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  overflow-x: hidden;
}
html, body {
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
ul, ol {
  list-style: none;
}

/* 3. Typography */
body {
  font-family: var(--ghk-font-family);
  font-size: var(--ghk-font-size-base);
  color: var(--ghk-text);
  background-color: var(--ghk-bg-light);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--ghk-sidebar-bg);
  margin-bottom: 0.5em;
  line-height: 1.2;
}
h1 { font-size: var(--ghk-font-size-2xl); }
h2 { font-size: var(--ghk-font-size-xl); }
h3 { font-size: var(--ghk-font-size-lg); }
p { margin-bottom: 1rem; }
a {
  color: var(--ghk-accent-ink);
  text-decoration: none;
  transition: color var(--ghk-transition);
}
a:hover {
  color: var(--ghk-accent-hover);
}
.ghk-content p { margin-bottom: 1.5rem; }
.ghk-content ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1.5rem; }
.ghk-content ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 1.5rem; }

/* 4. Layout */
.ghk-layout {
  display: grid;
  grid-template-columns: var(--ghk-sidebar-left-width) 1fr var(--ghk-sidebar-right-width);
  min-height: calc(100vh - var(--ghk-header-height));
  width: 100%;
}
.ghk-sidebar-left {
  background: var(--ghk-sidebar-bg);
  color: var(--ghk-sidebar-text);
  padding: 25px 18px;
  overflow-x: hidden;
  overflow-y: auto;
}
.ghk-main {
  background: var(--ghk-bg-white);
  padding: 30px 35px;
  min-width: 0;
}
.ghk-main__title {
  font-size: var(--ghk-font-size-xl);
  color: var(--ghk-sidebar-bg);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--ghk-bg-light);
}
.ghk-sidebar-right {
  background: var(--ghk-sidebar-bg);
  color: var(--ghk-sidebar-text);
  padding: 25px 18px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* 5. Header */
.ghk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--ghk-header-height);
  background: #fff;
  color: var(--ghk-text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--ghk-accent);
}
.ghk-header.is-scrolled {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.ghk-header__container {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}
.ghk-header__logo {
  display: flex;
  align-items: center;
  /* A logó és a jobb blokk pontosan az oldalsávok szélessége (a konténer 20px-es
     paddingjét levonva), így a menü a középső oszlop fölött, középre zárva áll */
  width: calc(var(--ghk-sidebar-left-width) - 20px);
  flex-shrink: 0;
}
.ghk-header__logo a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.ghk-header__logo img,
.ghk-header__logo svg {
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.ghk-nav-primary {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  /* Középre zár; ha a menü szélesebb a középső oszlopnál, az auto margó 0 lesz,
     és a menü balra igazodva a jobb blokk üres részébe nyúlik */
  margin-inline: auto;
}
.ghk-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  /* Összehúzódhat a gombok szélességéig, ha a menünek kell a hely */
  flex: 0 1 calc(var(--ghk-sidebar-right-width) - 20px);
  margin-left: auto;
}
.ghk-lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--ghk-font-size-sm);
}
.ghk-lang-switch a {
  color: var(--ghk-text-light);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  transition: all var(--ghk-transition);
  text-decoration: none;
}
.ghk-lang-switch a:hover {
  color: var(--ghk-sidebar-bg);
  background: var(--ghk-bg-light);
}
.ghk-lang-switch a.active {
  color: #fff;
  background: var(--ghk-sidebar-bg);
}
.ghk-lang-switch__sep {
  color: var(--ghk-border);
}

/* 6. Alert Banner */
.ghk-alert-banner {
  width: 100%;
  background: var(--ghk-alert-bg, #cc0000);
  color: #fff;
  text-align: center;
  padding: 10px 40px 10px 20px;
  position: relative;
  font-weight: 500;
}
.ghk-alert-banner__close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

/* 7. Navigation / Mega Menu */
.ghk-nav-primary {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}
.ghk-nav-primary > .ghk-menu {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  align-items: center;
}
.ghk-menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ghk-menu-item > a {
  padding: 0 12px;
  color: var(--ghk-text);
  font-weight: 600;
  font-size: var(--ghk-font-size-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ghk-menu-item > a:hover {
  color: var(--ghk-accent-ink);
}
.ghk-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--area-color, var(--ghk-accent-ink));
  transform: scaleX(0);
  transition: transform var(--ghk-transition);
}
.ghk-menu-item:hover > a::after,
.ghk-menu-item.is-open > a::after,
.ghk-menu-item:focus-within > a::after {
  transform: scaleX(1);
}
.ghk-menu-arrow {
  font-size: 0.8em;
  opacity: 0.7;
}

/* Mega Dropdown */
.ghk-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ghk-transition), visibility var(--ghk-transition), transform var(--ghk-transition);
  z-index: 1001;
  border-top: 3px solid var(--area-color, var(--ghk-accent-ink));
}
.ghk-menu-item.is-open .ghk-mega-dropdown,
.ghk-menu-item:focus-within .ghk-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ghk-mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 30px;
}
.ghk-mega-column {
  flex: 1;
  min-width: 200px;
}
.ghk-mega-column-title {
  font-size: var(--ghk-font-size-base);
  text-transform: uppercase;
  color: var(--ghk-text-light);
  border-bottom: 2px solid var(--area-color, var(--ghk-border));
  padding-bottom: 8px;
  margin-bottom: 15px;
}
.ghk-mega-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ghk-mega-list a {
  color: var(--ghk-text);
  font-size: var(--ghk-font-size-sm);
}
.ghk-mega-list a:hover {
  color: var(--area-color, var(--ghk-accent-ink));
}

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

/* Mobile Nav Drawer */
.ghk-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Nyitott drawer: a görgetést a html-en zárjuk. A body overflow nem jó, mert
   a html overflow-x miatt a body saját görgetőkonténer lesz, és a sticky fejléc
   hozzá tapad – így iOS-en a fejléc elúszott, a háttér pedig görgethető maradt. */
html.ghk-nav-locked {
  overflow: hidden;
}
.ghk-nav-drawer {
  position: fixed;
  top: var(--ghk-header-height);
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 80%;
  background: var(--ghk-sidebar-bg);
  z-index: 999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--ghk-transition), visibility var(--ghk-transition);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
}
.ghk-nav-drawer.is-open {
  transform: none;
  visibility: visible;
}
.ghk-nav-overlay {
  display: none;
  position: fixed;
  top: var(--ghk-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  touch-action: none;
}
.ghk-nav-drawer.is-open + .ghk-nav-overlay {
  display: block;
}
.ghk-nav-drawer__header {
  display: flex;
  justify-content: flex-end;
  margin: -10px -10px 10px 0;
}
.ghk-nav-drawer__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
}

/* Drawer menü: 1. szint = lenyitható terület, 2. szint = csoportcím, 3. szint = oldalak */
.ghk-nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ghk-nav-mobile > ul > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--area-color, transparent);
}
.ghk-nav-mobile > ul > li > a {
  flex: 1;
  padding: 13px 10px;
  color: #fff;
  font-weight: 700;
  font-size: var(--ghk-font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.ghk-nav-mobile > ul > li.current-menu-item,
.ghk-nav-mobile > ul > li.current-menu-ancestor {
  background: rgba(255,255,255,0.06);
}
.ghk-nav-mobile__toggle {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.ghk-nav-mobile__toggle i {
  transition: transform var(--ghk-transition);
}
.ghk-nav-mobile li.is-expanded > .ghk-nav-mobile__toggle i {
  transform: rotate(180deg);
}
.ghk-nav-mobile > ul > li > .sub-menu {
  display: none;
  width: 100%;
  padding: 0 10px 12px 14px;
}
.ghk-nav-mobile > ul > li.is-expanded > .sub-menu {
  display: block;
}
/* Csoportcímek (pl. „Szabályzatok”): nem linkek, csak tagolnak */
.ghk-nav-mobile .sub-menu > li > a[href="#"] {
  display: block;
  margin: 12px 0 4px;
  color: rgba(255,255,255,0.55);
  font-size: var(--ghk-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}
/* A desktop mega menü dinamikus oszlopai (hírek, képviselő) mobilon üresek */
.ghk-nav-mobile li[class*="mega-column-"]:not(.menu-item-has-children) {
  display: none;
}
.ghk-nav-mobile .sub-menu .sub-menu a,
.ghk-nav-mobile .sub-menu > li > a:not([href="#"]) {
  display: block;
  padding: 7px 0 7px 10px;
  border-left: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: var(--ghk-font-size-sm);
  line-height: 1.35;
  text-decoration: none;
}
.ghk-nav-mobile .sub-menu a:hover,
.ghk-nav-mobile .sub-menu .current-menu-item > a {
  color: #fff;
  border-left-color: var(--area-color, var(--ghk-accent-ink));
}

/* 8. Post Cards */
.ghk-card {
  background: var(--ghk-bg-white);
  border-radius: var(--ghk-radius);
  box-shadow: var(--ghk-shadow);
  overflow: hidden;
  transition: box-shadow var(--ghk-transition), transform var(--ghk-transition);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border: 1px solid var(--ghk-border);
}
.ghk-card:hover {
  box-shadow: var(--ghk-shadow-hover);
  transform: translateY(-2px);
}
.ghk-card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}
.ghk-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ghk-card__badge { color: #fff;
  font-size: var(--ghk-font-size-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}
.ghk-card__content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ghk-card__title {
  font-size: var(--ghk-font-size-lg);
  margin-bottom: 10px;
}
.ghk-card__title a {
  color: var(--ghk-text);
}
.ghk-card__title a:hover {
  color: var(--ghk-accent-ink);
}
.ghk-card__meta {
  font-size: var(--ghk-font-size-xs);
  color: var(--ghk-text-light);
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
}
.ghk-card__excerpt {
  font-size: var(--ghk-font-size-sm);
  color: var(--ghk-text);
  margin-bottom: 15px;
  flex: 1;
}
.ghk-card__readmore {
  font-size: var(--ghk-font-size-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Featured Card */
.ghk-card--featured .ghk-card__image-wrap {
  padding-top: 50%;
}
.ghk-card--featured .ghk-card__title {
  font-size: var(--ghk-font-size-xl);
}

/* Inline Card */
.ghk-card--inline .ghk-card__content {
  padding: 25px;
}
.ghk-card--inline .ghk-card__excerpt {
  display: none; /* Shows full content via other class logic if needed, or simple structure */
}

/* 9. Sidebar Components */
.ghk-sidebar-left, .ghk-sidebar-right {
  background: var(--ghk-bg-light); /* Light background for the sidebar column */
  color: var(--ghk-text);
  padding: 25px 18px;
  overflow-x: hidden;
  overflow-y: auto;
}
.ghk-sidebar-section {
  margin-bottom: 30px;
  background: #fff;
  border-radius: var(--ghk-radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden; /* For header background to clip */
}
.ghk-sidebar-title {
  font-size: var(--ghk-font-size-base);
  background: var(--ghk-sidebar-bg); /* Dark blue header */
  color: #fff;
  margin: 0;
  padding: 12px 15px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.ghk-sidebar-section > :not(.ghk-sidebar-title) {
  padding: 15px; /* Add padding to content inside the card */
}

/* Search Box */
.ghk-search-form {
  position: relative;
  display: flex;
  background: var(--ghk-bg-light);
  border-radius: var(--ghk-radius);
  overflow: hidden;
  border: 1px solid var(--ghk-border);
  margin: 15px; /* Margin to sit nicely inside card */
}
.ghk-search-input {
  width: 100%;
  padding: 10px 15px;
  background: transparent;
  border: none;
  color: var(--ghk-text);
  font-size: var(--ghk-font-size-sm);
}
.ghk-search-input::placeholder {
  color: var(--ghk-text-light);
}
.ghk-search-input:focus {
  outline: none;
  background: #fff;
}
.ghk-search-btn {
  background: var(--ghk-sidebar-bg);
  border: none;
  color: #fff;
  padding: 0 15px;
  cursor: pointer;
}
.ghk-search-btn:hover {
  background: var(--ghk-accent-ink);
}
.ghk-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 0 0 var(--ghk-radius) var(--ghk-radius);
  box-shadow: var(--ghk-shadow-hover);
  z-index: 10;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

/* Calendar */
.ghk-calendar {
  background: transparent;
  padding: 0;
}
.ghk-calendar__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ghk-calendar__nav button,
.ghk-calendar__nav--prev,
.ghk-calendar__nav--next {
  background: var(--ghk-sidebar-bg);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 11px;
  border-radius: 3px;
  transition: all var(--ghk-transition);
}
.ghk-calendar__nav button:hover,
.ghk-calendar__nav--prev:hover,
.ghk-calendar__nav--next:hover {
  background: var(--ghk-accent-ink);
}
.ghk-calendar__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ghk-text);
  margin: 0;
  text-align: center;
  white-space: nowrap;
}
.ghk-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  text-align: center;
}
.ghk-calendar__day-name {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ghk-text-light);
  margin-bottom: 5px;
  font-weight: 500;
}
.ghk-calendar__day {
  font-size: var(--ghk-font-size-xs);
  padding: 2px 0;
  border-radius: 50%;
  cursor: default;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ghk-text);
}
.ghk-calendar__day--empty { visibility: hidden; }
.ghk-calendar__day--today { background: var(--ghk-sidebar-bg); color: #fff; font-weight: bold; }
.ghk-calendar__day--event { background: var(--ghk-bg-light); color: var(--ghk-text); font-weight: bold; cursor: pointer; }
.ghk-calendar__day--event:hover,
.ghk-calendar__day--event:focus-visible { background: #e3ecf5; outline: none; }
.ghk-calendar__day--event:focus-visible { box-shadow: 0 0 0 2px var(--ghk-primary); }
.ghk-calendar__day--today.ghk-calendar__day--event { background: var(--ghk-sidebar-bg); color: #fff; }
.ghk-calendar__day--selected,
.ghk-calendar__day--selected:hover { background: var(--ghk-primary); color: #fff; }
.ghk-calendar__markers {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}
.ghk-calendar__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.8);
}

/* Naptár – oktatási hetek (a GHK app félévbeosztásából) */
.ghk-calendar__grid--weeks {
  grid-template-columns: minmax(0, 1.6fr) repeat(7, minmax(0, 1fr));
}
.ghk-calendar__week {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3px 1px 3px 0;
  padding: 0 1px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  color: var(--ghk-week-color, var(--ghk-primary));
  background: color-mix(in srgb, var(--ghk-week-color, var(--ghk-primary)) 12%, transparent);
  cursor: default;
}
.ghk-calendar__week--empty { background: none; }
.ghk-calendar__week--break { --ghk-week-color: #e65100; }
.ghk-calendar__week--special { --ghk-week-color: #00796b; }
.ghk-calendar__week--exam { --ghk-week-color: #6a3de8; }
.ghk-calendar__day--break { background: color-mix(in srgb, #f57c00 13%, transparent); }
.ghk-calendar__day--break.ghk-calendar__day--event { background: color-mix(in srgb, #f57c00 22%, transparent); }
.ghk-calendar__day--today.ghk-calendar__day--break { background: var(--ghk-sidebar-bg); }
.ghk-calendar__today {
  margin: -4px 0 10px;
  font-size: var(--ghk-font-size-xs);
  color: var(--ghk-text-light);
  text-align: center;
}
/* A mai hét jelvénye (a rács heteinek színeivel) – oldalsáv és Naptár oldal */
.ghk-week-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--ghk-font-size-xs);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ghk-week-color, var(--ghk-primary));
  background: color-mix(in srgb, var(--ghk-week-color, var(--ghk-primary)) 14%, transparent);
  cursor: default;
}
.ghk-calendar__panel-week {
  display: block;
  margin-top: 2px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--ghk-primary);
}
.ghk-calendar__panel-week--break { color: #e65100; }

/* Esemény címkék: forrásnaptár + "Közelgő" (48 órán belül) */
.ghk-event-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1px; }
.ghk-event-tag {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 6px;
  border-radius: 8px;
  color: var(--ghk-event-color, var(--ghk-primary));
  background: color-mix(in srgb, var(--ghk-event-color, var(--ghk-primary)) 12%, transparent);
}
.ghk-event-tag--urgent { color: #d32f2f; background: color-mix(in srgb, #d32f2f 12%, transparent); }
.ghk-calendar__event { position: relative; }
/* Naptárhoz adás ikonok (nap-panel és Közelgő események lista) */
.ghk-event-add { display: inline-flex; gap: 8px; flex: 0 0 auto; }
.ghk-event-add a { font-size: 13px; line-height: 1; color: var(--ghk-text-light); text-decoration: none; }
.ghk-event-add a:hover,
.ghk-event-add a:focus-visible { color: var(--ghk-primary); }
.ghk-calendar__event-add { position: absolute; top: 6px; right: 0; }
.ghk-upcoming-events li .ghk-event-add { margin-left: auto; padding-top: 2px; }
.ghk-calendar__event .ghk-event-tags { padding-right: 40px; }

/* Oldalsáv naptár: a hónap címe és a panel alja a teljes naptár oldalra visz */
a.ghk-calendar__title { text-decoration: none; }
a.ghk-calendar__title:hover { color: var(--ghk-primary); text-decoration: underline; }
.ghk-calendar__panel-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: var(--ghk-font-size-xs);
  font-weight: 500;
  color: var(--ghk-primary);
  text-decoration: none;
}
.ghk-calendar__panel-more:hover { text-decoration: underline; }

/* Naptár – nap-panel (kattintásra lenyíló eseménylista) */
.ghk-calendar__panel {
  margin-top: 12px;
  border-top: 1px solid var(--ghk-border);
  padding-top: 10px;
  text-align: left;
}
.ghk-calendar__panel[hidden] { display: none; }
.ghk-calendar__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--ghk-font-size-xs);
  color: var(--ghk-text);
}
.ghk-calendar__panel-close {
  background: none;
  border: none;
  color: var(--ghk-text-light);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  line-height: 1;
}
.ghk-calendar__panel-close:hover { color: var(--ghk-text); }
.ghk-calendar__events { list-style: none; margin: 0; padding: 0; }
.ghk-calendar__event {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 6px 10px;
  border-left: 3px solid var(--ghk-event-color, var(--ghk-primary));
  margin-bottom: 6px;
  text-align: left;
}
.ghk-calendar__event:last-child { margin-bottom: 0; }
.ghk-calendar__event-title {
  font-size: var(--ghk-font-size-sm);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ghk-text);
}
.ghk-calendar__event-title a { color: var(--ghk-text); text-decoration: none; }
.ghk-calendar__event-title a:hover { color: var(--ghk-primary); }
.ghk-calendar__event-title .fa-solid { font-size: 10px; margin-left: 2px; color: var(--ghk-text-light); }
.ghk-calendar__event-meta { font-size: var(--ghk-font-size-xs); color: var(--ghk-text-light); }

/* Useful Links */
.ghk-links-list {
  padding: 0;
  margin: 0;
}
.ghk-links-list li {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ghk-border);
  padding-bottom: 8px;
}
.ghk-links-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.ghk-links-list a {
  color: var(--ghk-text);
  font-size: var(--ghk-font-size-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.ghk-links-list a:hover {
  color: var(--ghk-accent-ink);
}

/* Social Bar */
.ghk-social-bar {
  display: flex;
  gap: 15px;
}
.ghk-social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: all var(--ghk-transition);
}
.ghk-social-bar a:hover {
  background: var(--ghk-accent-ink);
  transform: translateY(-2px);
}

/* Sponsors Grid */
.ghk-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ghk-sponsor-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity var(--ghk-transition);
  background: #fff;
  padding: 5px;
}
.ghk-sponsor-item:hover img {
  opacity: 1;
}

/* 10. Single Post */
.ghk-single-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--ghk-border);
  padding-bottom: 20px;
}
.ghk-single-title {
  margin-top: 10px;
  margin-bottom: 15px;
}
.ghk-single-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--ghk-text-light);
  font-size: var(--ghk-font-size-sm);
}
.ghk-attachments {
  margin-top: 30px;
  padding: 20px;
  background: var(--ghk-bg-light);
  border-radius: var(--ghk-radius);
}
.ghk-attachments-title {
  font-size: var(--ghk-font-size-lg);
  margin-bottom: 15px;
}
.ghk-attachment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ghk-attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ghk-attachment-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ghk-text);
  font-weight: 500;
}
.ghk-attachment-item a:hover {
  color: var(--ghk-accent-ink);
}

/* 12. Footer */
.ghk-footer {
  background: var(--ghk-footer-bg);
  color: var(--ghk-footer-text);
  padding: 50px 20px 20px;
}
.ghk-footer__logo img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}
.ghk-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1fr 1fr;
  gap: 40px;
}
.ghk-footer-widget-title {
  color: #fff;
  font-size: var(--ghk-font-size-lg);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.ghk-footer-widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--ghk-accent);
}
.ghk-footer-text p {
  font-size: var(--ghk-font-size-sm);
  margin-bottom: 10px;
}
.ghk-footer-links li {
  margin-bottom: 10px;
}
.ghk-footer-links a {
  color: var(--ghk-footer-text);
  font-size: var(--ghk-font-size-sm);
}
.ghk-footer-links a:hover {
  color: #fff;
}
.ghk-footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--ghk-font-size-xs);
  color: rgba(255,255,255,0.5);
}

/* 13. Pagination */
.ghk-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
}
.ghk-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--ghk-border);
  border-radius: var(--ghk-radius);
  color: var(--ghk-text);
  font-weight: 500;
  transition: all var(--ghk-transition);
}
.ghk-pagination .page-numbers:hover {
  background: var(--ghk-bg-light);
}
.ghk-pagination .page-numbers.current {
  background: var(--ghk-accent-ink);
  color: #fff;
  border-color: var(--ghk-accent-ink);
}

/* 14. Breadcrumb */
.ghk-breadcrumb {
  padding: 10px 15px;
  font-size: var(--ghk-font-size-sm);
  color: var(--ghk-text-light);
}
.ghk-breadcrumb a {
  color: var(--ghk-text);
  text-decoration: none;
}
.ghk-breadcrumb a:hover {
  color: var(--ghk-accent-ink);
  text-decoration: underline;
}
.ghk-breadcrumb .separator {
  margin: 0 8px;
  color: var(--ghk-border);
}

/* Sidebar Logo */
/* Dashboard Menu */
.ghk-dashboard-list {
  padding: 10px 0;
  margin: 0;
  list-style: none;
}
.ghk-dashboard-list ul {
  padding-left: 15px;
  list-style: none;
  margin: 0;
}
.ghk-dashboard-list li {
  margin: 0;
}
.ghk-dashboard-list a {
  display: block;
  padding: 8px 15px;
  color: var(--ghk-text);
  font-size: var(--ghk-font-size-sm);
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--ghk-transition);
}
.ghk-dashboard-list a:hover {
  background: var(--ghk-bg-light);
  color: var(--ghk-accent-ink);
  border-left-color: var(--ghk-accent-ink);
}
.ghk-dashboard-list .current-menu-item > a {
  background: var(--ghk-bg-light);
  color: var(--ghk-accent-ink);
  border-left-color: var(--ghk-accent-ink);
  font-weight: 700;
}

/* Upcoming Events */
.ghk-upcoming-events {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.ghk-upcoming-events li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ghk-border);
}
.ghk-upcoming-events li:last-child {
  border-bottom: none;
}
.ghk-event-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  padding: 4px 0;
  border-radius: var(--ghk-radius);
  background: var(--ghk-bg-light);
  border-top: 3px solid var(--ghk-event-color, var(--ghk-primary));
  line-height: 1;
}
.ghk-event-badge__month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ghk-text-light);
}
.ghk-event-badge__day {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ghk-text);
  margin-top: 2px;
}
.ghk-event-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ghk-event-title {
  font-size: var(--ghk-font-size-sm);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ghk-text);
  overflow-wrap: anywhere;
}
.ghk-upcoming-events a.ghk-event-title { text-decoration: none; }
.ghk-upcoming-events a.ghk-event-title:hover { color: var(--ghk-primary); }
.ghk-event-meta {
  font-size: var(--ghk-font-size-xs);
  color: var(--ghk-text-light);
}
.ghk-upcoming-events__item--deadline .ghk-event-meta { color: var(--ghk-accent-hover); font-weight: 500; }
.ghk-upcoming-events__empty {
  padding: 15px;
  margin: 0;
  font-size: 14px;
  text-align: left;
}

/* Esemény saját oldala */
.ghk-event-details {
  background: var(--ghk-bg-light);
  border-left: 4px solid var(--ghk-event-color, var(--ghk-primary));
  border-radius: var(--ghk-radius);
  padding: 15px 18px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ghk-event-details__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--ghk-font-size-base);
  color: var(--ghk-text);
}
.ghk-event-details__row > .fa-regular,
.ghk-event-details__row > .fa-solid { width: 18px; text-align: center; color: var(--ghk-event-color, var(--ghk-primary)); }
.ghk-event-details__row .wp-element-button { display: inline-flex; align-items: center; gap: 8px; }
.ghk-event-details__status {
  font-size: var(--ghk-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ghk-text-light);
  background: var(--ghk-bg-white);
  border-radius: 20px;
  padding: 2px 10px;
}
.ghk-event-details__add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--ghk-font-size-sm); color: var(--ghk-text-light); }
.ghk-event-details__add a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--ghk-border); border-radius: 20px; background: var(--ghk-bg-white); color: var(--ghk-text); text-decoration: none; font-size: var(--ghk-font-size-sm); }
.ghk-event-details__add a:hover { border-color: var(--ghk-primary); color: var(--ghk-primary); }
.ghk-event-single__image { margin-bottom: 25px; }
.ghk-event-single__image img { width: 100%; height: auto; border-radius: var(--ghk-radius); }
.ghk-block-event-list { margin: 20px 0; }

/* ==========================================================================
   Naptár oldal (ghk/calendar-page blokk, page-fullwidth.php)
   ========================================================================== */
.ghk-layout--full { grid-template-columns: minmax(0, 1fr); }
.ghk-layout--full .ghk-main { width: 100%; max-width: 1600px; margin: 0 auto; }
.ghk-page-title { margin-top: 0; margin-bottom: 20px; color: var(--ghk-primary); }

.ghk-calpage { --ghk-cp-line: var(--ghk-border); }
.ghk-calpage__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.ghk-calpage__nav { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
.ghk-calpage__title {
  margin: 0 0 0 8px;
  font-size: var(--ghk-font-size-xl);
  color: var(--ghk-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghk-calpage__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--ghk-border);
  border-radius: var(--ghk-radius);
  background: var(--ghk-bg-white);
  color: var(--ghk-text);
  font: 500 var(--ghk-font-size-sm)/1 var(--ghk-font-family);
  cursor: pointer;
  transition: border-color var(--ghk-transition), color var(--ghk-transition);
}
.ghk-calpage__btn:hover:not(:disabled) { border-color: var(--ghk-primary); color: var(--ghk-primary); }
.ghk-calpage__btn:disabled { opacity: .4; cursor: default; }
.ghk-calpage__views {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: var(--ghk-bg-light);
}
.ghk-calpage__views button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ghk-text-light);
  font: 500 var(--ghk-font-size-sm)/1 var(--ghk-font-family);
  cursor: pointer;
}
.ghk-calpage__views button[aria-selected="true"] { background: var(--ghk-bg-white); color: var(--ghk-primary); box-shadow: var(--ghk-shadow); }
.ghk-calpage__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ghk-cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--ghk-border);
  border-radius: 20px;
  background: var(--ghk-bg-white);
  color: var(--ghk-text-light);
  font: 500 var(--ghk-font-size-xs)/1.2 var(--ghk-font-family);
  cursor: pointer;
}
.ghk-cp-chip__dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ghk-event-color); }
.ghk-cp-chip.is-active { color: var(--ghk-text); border-color: color-mix(in srgb, var(--ghk-event-color) 45%, transparent); background: color-mix(in srgb, var(--ghk-event-color) 8%, var(--ghk-bg-white)); }
.ghk-cp-chip.is-active .ghk-cp-chip__dot { background: var(--ghk-event-color); }
.ghk-calpage__today-week { margin: 0 0 14px; font-size: var(--ghk-font-size-sm); color: var(--ghk-text-light); }
.ghk-calpage__today-week strong { color: var(--ghk-text); font-weight: 500; }

.ghk-calpage__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}
.ghk-calpage[data-view="lista"] .ghk-calpage__body { grid-template-columns: minmax(0, 1fr); }
.ghk-calpage[data-view="lista"] .ghk-calpage__aside { display: none; }
.ghk-calpage__aside {
  position: sticky;
  top: calc(var(--ghk-header-height) + 20px);
  max-height: calc(100vh - var(--ghk-header-height) - 40px);
  overflow-y: auto;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--ghk-bg-light);
}
.ghk-calpage__aside-title { margin: 0 0 6px; font-size: var(--ghk-font-size-base); color: var(--ghk-text); }
.ghk-cp-empty { padding: 20px 0; margin: 0; color: var(--ghk-text-light); text-align: left; }

/* Hónap nézet */
.ghk-cp-month { border: 1px solid var(--ghk-cp-line); border-radius: 10px; overflow: hidden; background: var(--ghk-bg-white); }
.ghk-cp-month__head,
.ghk-cp-week { display: grid; grid-template-columns: 76px repeat(7, minmax(0, 1fr)); }
.ghk-cp-month__head {
  background: var(--ghk-bg-light);
  font: 700 var(--ghk-font-size-xs)/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: var(--ghk-text-light);
}
.ghk-cp-month__head > span { padding: 10px 8px; }
.ghk-cp-week {
  grid-template-rows: 30px repeat(3, 24px) 22px;
  min-height: 128px;
  border-top: 1px solid var(--ghk-cp-line);
}
.ghk-cp-week__label {
  grid-column: 1;
  align-self: start;
  margin: 7px 6px 0;
  padding: 4px 6px;
  border-radius: 6px;
  font: 700 11px/1.15 var(--ghk-font-family);
  text-align: center;
  color: var(--ghk-week-color, var(--ghk-primary));
  background: color-mix(in srgb, var(--ghk-week-color, var(--ghk-primary)) 12%, transparent);
}
.ghk-cp-week__label.ghk-calendar__week--empty { background: none; }
.ghk-cp-day {
  position: relative;
  padding: 4px 6px;
  border-left: 1px solid var(--ghk-cp-line);
  cursor: pointer;
  min-width: 0;
}
.ghk-cp-day:hover { background: color-mix(in srgb, var(--ghk-primary) 4%, transparent); }
.ghk-cp-day.is-weekend { background: color-mix(in srgb, var(--ghk-text) 2.5%, transparent); }
.ghk-cp-day.is-break { background: color-mix(in srgb, #f57c00 9%, transparent); }
.ghk-cp-day.is-outside { background: color-mix(in srgb, var(--ghk-text) 4%, transparent); }
.ghk-cp-day.is-outside .ghk-cp-day__num { color: var(--ghk-text-light); opacity: .6; }
.ghk-cp-day.is-selected { box-shadow: inset 0 0 0 2px var(--ghk-primary); }
.ghk-cp-day__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ghk-text);
  font: 500 var(--ghk-font-size-sm)/1 var(--ghk-font-family);
  cursor: pointer;
}
.ghk-cp-day.is-today .ghk-cp-day__num { background: var(--ghk-primary); color: #fff; font-weight: 700; }
.ghk-cp-day__note {
  position: absolute;
  top: 8px;
  left: 34px;
  right: 6px;
  font-size: 10px;
  color: #e65100;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.ghk-cp-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 21px;
  margin: 1px 4px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ghk-text);
  font: 400 12px/1 var(--ghk-font-family);
  text-align: left;
  cursor: pointer;
}
.ghk-cp-bar::before {
  content: '';
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ghk-event-color);
}
.ghk-cp-bar:hover,
.ghk-cp-bar:focus-visible { background: color-mix(in srgb, var(--ghk-event-color) 14%, transparent); outline: none; }
.ghk-cp-bar--block {
  background: color-mix(in srgb, var(--ghk-event-color) 18%, var(--ghk-bg-white));
  border-left: 3px solid var(--ghk-event-color);
  font-weight: 500;
}
.ghk-cp-bar--block::before { display: none; }
.ghk-cp-bar--block:hover,
.ghk-cp-bar--block:focus-visible { background: color-mix(in srgb, var(--ghk-event-color) 30%, var(--ghk-bg-white)); }
.ghk-cp-bar.is-cut-start { margin-left: 0; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ghk-cp-bar.is-cut-end { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ghk-cp-bar--deadline::before { display: none; }
.ghk-cp-bar--deadline .fa-flag { color: var(--ghk-event-color); font-size: 10px; }
.ghk-cp-bar__time { flex: 0 0 auto; color: var(--ghk-text-light); font-variant-numeric: tabular-nums; }
.ghk-cp-bar__title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghk-cp-more {
  position: relative;
  z-index: 1;
  justify-self: start;
  margin: 0 6px;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--ghk-primary);
  font: 500 11px/1 var(--ghk-font-family);
  cursor: pointer;
}
.ghk-cp-more:hover { text-decoration: underline; }

/* Felugró részletek / alsó lap */
.ghk-cp-pop {
  position: absolute;
  z-index: 1000;
  width: 360px;
  max-width: calc(100vw - 16px);
  max-height: 70vh;
  overflow-y: auto;
  padding: 18px 18px 16px;
  border: 1px solid var(--ghk-border);
  border-radius: 12px;
  background: var(--ghk-bg-white);
  color: var(--ghk-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  text-align: left;
}
.ghk-cp-pop:focus { outline: none; }
.ghk-cp-pop--sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-width: none;
  max-height: 80vh;
  border-radius: 16px 16px 0 0;
}
.ghk-cp-pop__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ghk-text-light);
  font-size: 16px;
  cursor: pointer;
}
.ghk-cp-pop__close:hover { background: var(--ghk-bg-light); color: var(--ghk-text); }
.ghk-cp-detail__title { margin: 6px 30px 8px 0; font-size: var(--ghk-font-size-lg); color: var(--ghk-text); line-height: 1.3; }
.ghk-cp-detail__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0 0 6px; font-size: var(--ghk-font-size-sm); }
.ghk-cp-detail__row > i { width: 16px; color: var(--ghk-event-color, var(--ghk-primary)); }
.ghk-cp-detail__rel { color: var(--ghk-text-light); }
.ghk-cp-detail__excerpt { margin: 8px 0; font-size: var(--ghk-font-size-sm); color: var(--ghk-text-light); line-height: 1.5; }
.ghk-cp-detail__week { margin: -4px 0 10px; font-size: var(--ghk-font-size-sm); color: var(--ghk-primary); }
.ghk-cp-detail__week.is-break { color: #e65100; }
.ghk-cp-detail__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.ghk-cp-detail__add { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--ghk-font-size-sm); color: var(--ghk-text-light); }
.ghk-cp-detail__add a { color: var(--ghk-text); text-decoration: none; }
.ghk-cp-detail__add a:hover { color: var(--ghk-primary); }
.ghk-cp-daylist { list-style: none; margin: 0; padding: 0; }
.ghk-cp-daylist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0 8px 10px;
  border-left: 3px solid var(--ghk-event-color);
  margin-bottom: 6px;
}
.ghk-cp-daylist__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ghk-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.ghk-cp-daylist__title { font-size: var(--ghk-font-size-sm); font-weight: 500; }
.ghk-cp-daylist__item:hover .ghk-cp-daylist__title { color: var(--ghk-primary); }
.ghk-cp-daylist__when { font-size: var(--ghk-font-size-xs); color: var(--ghk-text-light); }
.ghk-cp-feeds { list-style: none; margin: 10px 0 0; padding: 0; }
.ghk-cp-feed { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--ghk-border); }
.ghk-cp-feed__label { font-weight: 500; font-size: var(--ghk-font-size-sm); }
.ghk-cp-feed__actions { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: var(--ghk-font-size-sm); }
.ghk-cp-feed__actions a,
.ghk-cp-feed__copy { padding: 0; border: 0; background: none; color: var(--ghk-primary); font: inherit; text-decoration: none; cursor: pointer; }
.ghk-cp-feed__actions a:hover,
.ghk-cp-feed__copy:hover { text-decoration: underline; }

/* Lista nézet és jobb oszlop */
.ghk-cp-search {
  width: 100%;
  max-width: 420px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid var(--ghk-border);
  border-radius: var(--ghk-radius);
  background: var(--ghk-bg-white);
  color: var(--ghk-text);
  font: var(--ghk-font-size-sm) var(--ghk-font-family);
}
.ghk-cp-list__week {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 4px;
  font: 500 var(--ghk-font-size-xs)/1.2 var(--ghk-font-family);
  color: var(--ghk-text-light);
}
.ghk-cp-list__week:first-child { margin-top: 6px; }
.ghk-cp-list__weeklabel {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--ghk-week-color, var(--ghk-primary));
  background: color-mix(in srgb, var(--ghk-week-color, var(--ghk-primary)) 12%, transparent);
}
.ghk-cp-list__rel { color: var(--ghk-primary); }
.ghk-cp-list__item--deadline .ghk-cp-list__rel { color: var(--ghk-accent-hover); }
.ghk-cp-list:not(.ghk-cp-list--compact) .ghk-cp-list__items li { padding: 12px 0; }
.ghk-cp-list:not(.ghk-cp-list--compact) .ghk-event-title { font-size: var(--ghk-font-size-base); }
.ghk-cp-list .ghk-event-add a { font-size: 15px; }
.ghk-cp-loadmore { margin-top: 16px; }

/* Félév nézet */
.ghk-cp-semester { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ghk-cp-semweek {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--ghk-border);
  border-top: 4px solid var(--ghk-week-color, var(--ghk-primary));
  border-radius: 8px;
  background: var(--ghk-bg-white);
  color: var(--ghk-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow var(--ghk-transition), transform var(--ghk-transition);
}
.ghk-cp-semweek:hover { box-shadow: var(--ghk-shadow-hover); transform: translateY(-1px); }
.ghk-cp-semweek.is-past { opacity: .55; }
.ghk-cp-semweek.is-current { box-shadow: 0 0 0 2px var(--ghk-primary); }
.ghk-cp-semweek__badge { font: 700 var(--ghk-font-size-lg)/1.1 'Montserrat', sans-serif; color: var(--ghk-week-color, var(--ghk-primary)); }
.ghk-cp-semweek__label { font-size: var(--ghk-font-size-sm); font-weight: 500; }
.ghk-cp-semweek__range,
.ghk-cp-semweek__count { font-size: var(--ghk-font-size-xs); color: var(--ghk-text-light); }
.ghk-cp-semweek__dots { display: flex; flex-wrap: wrap; gap: 3px; min-height: 8px; margin-top: 4px; }
.ghk-cp-semweek__dots span { width: 8px; height: 8px; border-radius: 50%; }
.ghk-cp-semweek__now {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--ghk-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* A tartalom általános címsor-stílusai (.ghk-single__content h2–h4) ne érvényesüljenek a naptár elemein */
.ghk-calpage .ghk-calpage__title { margin: 0 0 0 8px; padding: 0; border: 0; font-size: var(--ghk-font-size-xl); color: var(--ghk-text); }
.ghk-calpage .ghk-calpage__aside-title { margin: 0 0 6px; font-size: var(--ghk-font-size-base); color: var(--ghk-text); }
.ghk-calpage .ghk-cp-list__week {
  margin: 18px 0 4px;
  font-size: var(--ghk-font-size-xs);
  font-weight: 500;
  color: var(--ghk-text-light);
}
.ghk-calpage .ghk-cp-list__week:first-child { margin-top: 6px; }

@media (max-width: 1100px) {
  .ghk-calpage__body { grid-template-columns: minmax(0, 1fr); }
  .ghk-calpage__aside { position: static; max-height: none; }
}
@media (max-width: 700px) {
  .ghk-calpage .ghk-calpage__title { font-size: var(--ghk-font-size-lg); margin-left: 4px; }
  .ghk-calpage__views { width: 100%; }
  .ghk-calpage__views button { flex: 1 1 0; justify-content: center; padding: 8px 6px; }
  .ghk-calpage__filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .ghk-cp-chip { flex: 0 0 auto; }
  .ghk-cp-month__head,
  .ghk-cp-week { grid-template-columns: 38px repeat(7, minmax(0, 1fr)); }
  .ghk-cp-month__head > span { padding: 8px 2px; text-align: center; }
  .ghk-cp-week { grid-template-rows: 30px repeat(3, 7px) 18px; min-height: 76px; }
  .ghk-cp-week__label { margin: 6px 2px 0; padding: 3px 1px; font-size: 8px; }
  .ghk-cp-day { padding: 3px 1px; text-align: center; }
  .ghk-cp-day__note { display: none; }
  .ghk-cp-bar { height: 5px; margin: 1px 2px; padding: 0; border-radius: 3px; background: var(--ghk-event-color); }
  .ghk-cp-bar--block { border-left: 0; }
  .ghk-cp-bar::before,
  .ghk-cp-bar > * { display: none; }
  .ghk-cp-more { margin: 0 1px; padding: 2px 0; font-size: 9px; }
}

/* 15. Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* 16. Responsive Breakpoints – a fájl végén (24. szekció), hogy a későbbi !important javítások ne írják felül */

/* ==========================================================================

/* ==========================================================================
   16. Képviselő Rács & Kártyák (Representative Grid & Cards)
   ========================================================================== */
.ghk-block-representative-grid { margin: 30px 0; }

/* Egységes képviselő-kártya: Gutenberg rács, jobb oldalsáv, mega menü és archívum
   ugyanazt a markupot (ghk_rep_card()) és stílust kapja. Balra zárt; egy soron belül
   a kép, név, beosztás és e-mail sávok subgriddel egy vonalba kerülnek. */
.ghk-rep-grid {
    display: grid;
    /* 190px: a leghosszabb e-mail cím (~182px, 13px-es betűvel) is egy sorban elfér */
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 36px 24px;
}
.ghk-single__content .ghk-rep-grid {
    margin: 30px 0;
}
.ghk-rep-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    line-height: 1.4;
}
.ghk-rep-card__info {
    display: flex;
    flex-direction: column;
}
@supports (grid-template-rows: subgrid) {
    .ghk-rep-card {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
    .ghk-rep-card__info { display: contents; }
    .ghk-rep-card__image { grid-row: 1; }
    .ghk-rep-card .ghk-rep-card__name { grid-row: 2; }
    .ghk-rep-card__positions { grid-row: 3; }
    .ghk-rep-card__contact { grid-row: 4; }
}
.ghk-rep-card__image {
    margin-bottom: 12px;
}
.ghk-rep-card__image a {
    display: block;
}
.ghk-rep-card__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow var(--ghk-transition);
}
.ghk-rep-card__image a:hover img {
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
/* .ghk-rep-card előtag: a tartalom- és menülink-szabályok fölé kerüljön */
.ghk-rep-card .ghk-rep-card__name {
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-align: left;
    color: var(--ghk-primary) !important;
}
.ghk-rep-card .ghk-rep-card__name a {
    color: var(--ghk-primary) !important;
    background: transparent !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.ghk-rep-card .ghk-rep-card__name a:hover {
    color: var(--ghk-primary-dark) !important;
    text-decoration: underline !important;
}
.ghk-rep-card__positions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}
.ghk-rep-card__positions span {
    color: var(--ghk-text-light);
    font-size: 13px;
    line-height: 1.35;
}
.ghk-rep-card__contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ghk-rep-card .ghk-rep-card__emails a {
    color: var(--ghk-primary) !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    white-space: normal !important;
    /* Ha nem fér ki, csak a @ előtt törjön (<wbr>, email-cloak.js), ne betű közepén */
    overflow-wrap: normal;
}
.ghk-rep-card .ghk-rep-card__emails a:hover {
    color: var(--ghk-primary-dark) !important;
    text-decoration: underline !important;
}
/* Jobb oldalsáv: egy oszlop (tableten a 24. szekció rácsba rendezi) */
.ghk-sidebar-right .ghk-rep-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Képviselő Egyedi Profiloldal */
.ghk-rep-profile {
    background: #fff;
    border-radius: var(--ghk-radius);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.ghk-rep-profile__back { display: inline-block; margin-bottom: 20px; }
.ghk-rep-profile__header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--ghk-border);
}
@media (min-width: 768px) {
    .ghk-rep-profile__header { flex-direction: row; align-items: flex-start; }
}
.ghk-rep-profile__image { width: 100%; max-width: 250px; flex-shrink: 0; }
.ghk-rep-profile__image img { width: 100%; height: auto; border-radius: 7px; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.ghk-rep-profile__details { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.ghk-rep-profile__name { margin: 0; font-size: 32px; color: var(--ghk-primary); font-weight: 700; }
.ghk-rep-profile__positions { display: flex; flex-wrap: wrap; gap: 8px; }
.ghk-rep-profile__positions .ghk-rep-badge {
    background: var(--ghk-accent-ink);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}
.ghk-rep-profile__emails { display: flex; flex-direction: column; gap: 8px; margin-top: 5px; }
.ghk-rep-profile__emails a { display: inline-flex; align-items: center; gap: 10px; color: var(--ghk-text-light); font-size: 16px; text-decoration: none; }
.ghk-rep-profile__emails a:hover { color: var(--ghk-accent-ink); }
.ghk-rep-profile__content { font-size: 16px; line-height: 1.6; color: var(--ghk-text); margin-bottom: 40px; }
.ghk-rep-profile__reports-title {
    font-size: 24px; color: var(--ghk-primary); margin-bottom: 20px;
    border-bottom: 2px solid var(--ghk-accent-ink); display: inline-block; padding-bottom: 5px;
}
.ghk-reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.ghk-report-card {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #f8f9fa; border: 1px solid var(--ghk-border); padding: 15px;
    border-radius: 8px; color: var(--ghk-text); text-decoration: none; font-weight: 600;
}
.ghk-report-card i { color: #d32f2f; font-size: 20px; }
.ghk-report-card:hover { background: var(--ghk-primary); color: #fff; border-color: var(--ghk-primary); }
.ghk-report-card:hover i { color: #fff; }

/* ==========================================================================
   17. Stretched Link & Poszt Kártya Formázások
   ========================================================================== */
.ghk-card-clickable { position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ghk-card-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.ghk-stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; content: ""; }
/* Az előnézet a kártya linkje alatt marad: bárhová kattintva a cikk nyílik meg,
   a benne lévő linkek/gombok is (a template-tags.php inert-tel kiveszi őket a fókuszból) */
.ghk-card__excerpt {
    display: block !important; font-size: var(--ghk-font-size-sm);
    color: var(--ghk-text); margin-top: 10px; position: relative;
}
.ghk-card-preview-content { pointer-events: none; }
.ghk-card-clickable { cursor: pointer; }
.ghk-card__badge { pointer-events: none; }
.ghk-card__title { margin-top: 0 !important; }
.ghk-card__title a { color: var(--ghk-text) !important; text-decoration: none !important; }
.ghk-card__title a:hover,
.ghk-card-clickable:hover .ghk-stretched-link,
.ghk-stretched-link:hover { color: var(--ghk-primary) !important; text-decoration: none !important; }
.ghk-stretched-link:focus-visible { outline: none; }
.ghk-card-clickable:has(.ghk-stretched-link:focus-visible) { outline: 2px solid var(--ghk-primary); outline-offset: 2px; }
/* "Tovább olvasom" jelzés az elhalványuló előnézet alatt */
.ghk-card__more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px;
    font-size: var(--ghk-font-size-sm); font-weight: 500;
    color: var(--ghk-primary);
}
.ghk-card__more i { font-size: 0.85em; transition: transform var(--ghk-transition); }
.ghk-card-clickable:hover .ghk-card__more i { transform: translateX(3px); }

/* ==========================================================================
   18. Menü Színes Gombok (Mega Menu Walker)
   ========================================================================== */
.ghk-nav-primary .ghk-menu { gap: 0 !important; }
.ghk-nav-primary .ghk-menu > li > a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 15px; border-radius: 0 !important; margin: 0 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.ghk-nav-primary .ghk-menu > li > a:hover { color: var(--ghk-primary); }
.ghk-nav-primary .ghk-menu > li[style*="--area-color"] > a:hover {
    background-color: var(--area-color) !important; color: #ffffff !important;
}
.ghk-nav-primary .ghk-menu > li[style*="--area-color"].current-menu-item > a,
.ghk-nav-primary .ghk-menu > li[style*="--area-color"].current-menu-ancestor > a {
    background-color: var(--area-color) !important; color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ghk-mega-dropdown a:hover, .ghk-mega-list a:hover {
    color: var(--area-color, var(--ghk-primary)) !important;
    background-color: transparent !important;
}
.ghk-menu-item > a:hover { color: inherit; }

/* ==========================================================================
   19. Oldalsáv Elemek (Támogatók, Közösségi ikonok)
   ========================================================================== */
.ghk-sponsors-grid {
    display: grid !important; grid-template-columns: 1fr !important;
    gap: 15px !important; align-items: center;
}
/* Egyforma magas, fehér logódobozok (sötét módban is), a logó benne arányosan */
.ghk-sponsor-item,
.ghk-sponsor-item > a {
    display: flex; align-items: center; justify-content: center;
}
.ghk-sponsor-item {
    height: 80px; padding: 12px 16px;
    background: #fff; border-radius: 8px;
    border: 1px solid var(--ghk-border);
    color: #333; font-size: var(--ghk-font-size-sm); text-align: center;
}
.ghk-sponsor-item > a { width: 100%; height: 100%; color: inherit; text-decoration: none; }
.ghk-sponsor-item img {
    width: auto !important; height: auto !important;
    max-width: 100%; max-height: 56px;
    object-fit: contain; display: block; margin: 0 auto;
    padding: 0; background: none; border-radius: 0;
}

.ghk-social-icon:hover, .ghk-social-icon:focus {
    color: var(--ghk-primary) !important; opacity: 1 !important;
}
.ghk-social-icon img:hover {
    filter: brightness(0) saturate(100%) invert(13%) sepia(21%) saturate(2250%) hue-rotate(193deg) brightness(97%) contrast(92%) !important;
}

/* ==========================================================================
   20. Lábléc (Footer)
   ========================================================================== */
.ghk-footer p { margin-top: 0; margin-bottom: 5px; }
.ghk-footer a { color: #a0a0a0; text-decoration: none; transition: color 0.3s; }
.ghk-footer a:hover { color: #fff; text-decoration: underline; }
.ghk-footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ghk-footer-nav-list li { margin: 0; }
.ghk-footer-nav-list li a { color: #a0a0a0; text-decoration: none; display: block; }
.ghk-footer-nav-list li a:hover { color: #fff; }
.ghk-email-item a { color: #fff !important; font-weight: 500; }
.ghk-email-item a:hover { color: var(--ghk-primary) !important; text-decoration: none; }
.ghk-footer-social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; background-color: #333; border-radius: 6px;
    color: #fff !important; font-size: 18px; transition: all 0.3s ease !important;
}
.ghk-footer-social-btn:hover { background-color: var(--ghk-primary); transform: translateY(-2px); }
.ghk-footer-social-btn img { transition: all 0.3s ease; }

@media (max-width: 992px) { .ghk-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .ghk-footer-inner { grid-template-columns: 1fr; }
    .ghk-footer__logo-badge { margin-left: 0; }
    .ghk-footer-bottom div { text-align: center !important; }
}

/* ==========================================================================
   21. Kereső és Közösségi Oldalsáv (Sidebar Utilities)
   ========================================================================== */
.ghk-sidebar-social-wrap { padding: 12px; }
.ghk-search-form { display: flex; align-items: center; }
.ghk-search-input { border: none; padding: 8px; width: 100%; outline: none; font-size: 14px; background: transparent; }
.ghk-search-btn { background: transparent; border: none; padding: 8px; color: var(--ghk-primary); cursor: pointer; }
.ghk-social-bar { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 0; padding: 0; }
.ghk-social-icon { color: #555; font-size: 24px; transition: all 0.3s; }
.ghk-kontur-link { display: inline-flex; align-items: center; }
.ghk-social-img { width: 24px; height: 24px; object-fit: contain; transition: all 0.3s; }
/* Közösségi csempék (ghk_social_tiles): Facebook és Instagram egymás mellett, Kontúr alattuk */
.ghk-sidebar-section > .ghk-social-tiles { padding: 0; }
.ghk-social-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ghk-social-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    min-width: 0; padding: 12px 14px;
    border-radius: 10px;
    color: #fff; text-decoration: none;
    transition: transform var(--ghk-transition), box-shadow var(--ghk-transition), filter var(--ghk-transition);
}
.ghk-social-tile:hover, .ghk-social-tile:focus-visible {
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18); filter: saturate(1.1);
}
.ghk-social-tile__icon { font-size: 22px; margin-bottom: 6px; }
.ghk-social-tile__name { font-family: var(--ghk-font-heading, 'Montserrat', sans-serif); font-weight: 700; font-size: var(--ghk-font-size-sm); }
.ghk-social-tile__handle {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: var(--ghk-font-size-xs); opacity: 0.85;
}
.ghk-social-tile--fb { background: #1877f2; }
.ghk-social-tile--ig { background: linear-gradient(45deg, #f9a825 0%, #e1306c 50%, #833ab4 100%); }
.ghk-social-tile--kontur {
    grid-column: 1 / -1;
    flex-direction: row; align-items: center; gap: 10px;
    background: var(--ghk-bg-light); color: var(--ghk-text);
    border: 1px solid var(--ghk-border);
}
.ghk-social-tile--kontur:hover, .ghk-social-tile--kontur:focus-visible { color: var(--ghk-primary); }
.ghk-social-tile--kontur .ghk-social-tile__icon { margin-bottom: 0; font-size: 20px; }
.ghk-social-tile--kontur .ghk-social-img { width: 24px; height: 24px; }
.ghk-social-tile__arrow { margin-left: auto; font-size: 12px; opacity: 0.6; }

/* Fejléc kereső: nagyító gomb (a téma-váltó mintájára) és a fejléc alatt lenyíló panel */
.ghk-search-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0;
    border: 1px solid var(--ghk-border); border-radius: 50%;
    background: transparent; color: var(--ghk-text-light);
    font-size: 15px; cursor: pointer;
    transition: color var(--ghk-transition), background-color var(--ghk-transition);
}
.ghk-search-toggle:hover, .ghk-search-toggle.is-active { color: var(--ghk-sidebar-bg); background: var(--ghk-bg-light); }
.ghk-search-toggle:focus-visible { outline: 2px solid var(--ghk-accent-ink); outline-offset: 2px; }
.ghk-header-search {
    position: absolute; top: 100%; left: 0; right: 0;
    margin-top: 3px; /* a fejléc alsó akcentcsíkja alá */
    padding: 14px 20px;
    background: var(--ghk-bg-white);
    border-bottom: 1px solid var(--ghk-border);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.ghk-header-search[hidden] { display: none; }
.ghk-header-search .ghk-search-form {
    position: relative; max-width: 720px; margin: 0 auto;
    background: var(--ghk-bg-light);
    border: 1px solid var(--ghk-border); border-radius: 999px;
    overflow: visible;
}
.ghk-header-search__icon { padding-left: 18px; color: var(--ghk-text-light); }
.ghk-header-search .ghk-search-input {
    padding: 12px 14px; font-size: var(--ghk-font-size-base, 16px); color: var(--ghk-text);
}
.ghk-header-search .ghk-search-input:focus { background: transparent; }
.ghk-header-search .ghk-search-btn {
    align-self: stretch; margin: 4px; padding: 0 18px;
    border-radius: 999px;
    background: var(--ghk-primary); color: #fff; font-weight: 500;
}
.ghk-header-search .ghk-search-btn:hover { background: var(--ghk-accent-ink); }
.ghk-header-search .ghk-search-dropdown {
    top: calc(100% + 6px); border-radius: var(--ghk-radius);
    border: 1px solid var(--ghk-border); max-height: 60vh;
}
.ghk-search-dropdown { background: var(--ghk-bg-white); }
.ghk-search-result-item {
    display: block; padding: 10px 14px;
    border-bottom: 1px solid var(--ghk-border);
    color: var(--ghk-text); text-decoration: none;
}
.ghk-search-result-item:last-child { border-bottom: 0; }
.ghk-search-result-item:hover, .ghk-search-result-item:focus-visible { background: var(--ghk-bg-light); color: var(--ghk-primary); }
.ghk-search-result-item__badge { position: static !important; display: inline-block; margin-left: 10px; vertical-align: middle; }
.ghk-search-result-empty { padding: 10px 14px; color: var(--ghk-text-light); }
@media (max-width: 768px) {
    .ghk-header-search { padding: 10px 15px; }
    .ghk-header-search .ghk-search-btn { padding: 0 12px; }
}

.ghk-fb-embed { display: flex; justify-content: center; overflow: hidden; }
.ghk-fb-embed iframe { display: block; border: none; overflow: hidden; max-width: 100%; }

/* ==========================================================================
   22. Egyedi Bejegyzés (Single Post)
   ========================================================================== */
.ghk-back-btn { color: var(--ghk-primary); font-weight: bold; text-decoration: none; }
.ghk-single-title { margin-top: 20px; font-size: 32px; color: var(--ghk-primary); }
.ghk-single-meta { margin-bottom: 20px; color: #666; font-size: 14px; display: flex; gap: 15px; }
.ghk-single-deadline-box { background: #f8f9fa; padding: 15px; border-radius: 5px; margin-bottom: 25px; }
.ghk-single__deadline--past { border-left: 4px solid #d32f2f; }
.ghk-single__deadline--upcoming { border-left: 4px solid #2e7d32; }
.ghk-deadline-icon--past, .ghk-deadline-status--past { color: #d32f2f; }
.ghk-deadline-icon--upcoming, .ghk-deadline-status--upcoming { color: #2e7d32; }
.ghk-deadline-label { margin-left: 5px; }
.ghk-deadline-status { margin-left: 10px; font-weight: bold; }
.ghk-single__content { font-size: 16px; line-height: 1.6; color: #333; }
.ghk-attachments { margin-top: 40px; padding-top: 20px; border-top: 1px solid #ddd; }
.ghk-attachments-title { color: var(--ghk-primary); font-size: 20px; margin-bottom: 15px; }
.ghk-attachment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ghk-attachment-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; background: #f1f1f1; border-radius: 5px; color: #333; text-decoration: none; }
.ghk-attachment-icon { color: #d32f2f; }

/* ==========================================================================

/* ==========================================================================
   23. Javítások (Hasznos Linkek Hover + Social Ikonok Színe)
   ========================================================================== */
/* Hasznos linkek pontosan olyan legyen mint a Dashboard menü */
.ghk-sidebar-left .ghk-links-list {
    padding: 10px 0;
    margin: 0;
    list-style: none;
}
.ghk-sidebar-left .ghk-links-list ul {
    padding-left: 15px;
    list-style: none;
    margin: 0;
}
.ghk-sidebar-left .ghk-links-list li {
    margin: 0;
}
.ghk-sidebar-left .ghk-links-list a {
    display: block;
    padding: 8px 15px;
    color: var(--ghk-text) !important;
    font-size: var(--ghk-font-size-sm);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--ghk-transition);
}
.ghk-sidebar-left .ghk-links-list a:hover {
    background: var(--ghk-bg-light) !important;
    color: var(--ghk-accent-ink) !important;
    border-left-color: var(--ghk-accent-ink) !important;
}

/* Social media ikonok */
.ghk-social-icon {
    color: var(--ghk-primary) !important;
    font-size: 24px;
    transition: all 0.3s;
}
.ghk-social-icon:hover {
    color: var(--ghk-accent-ink) !important;
    transform: translateY(-2px);
}
.ghk-social-img {
    filter: none !important;
    transition: all 0.3s;
}
.ghk-social-img:hover {
    transform: translateY(-2px);
}

/* --- GHK Global Typography (Frontend & Editor) --- */
.ghk-single__content h1, .editor-styles-wrapper h1,
.ghk-single__content h2, .editor-styles-wrapper h2,
.ghk-single__content h3, .editor-styles-wrapper h3,
.ghk-single__content h4, .editor-styles-wrapper h4 {
    color: var(--ghk-primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}
.ghk-single__content h2, .editor-styles-wrapper h2 { font-size: 24px; border-bottom: 2px solid #f1f1f1; padding-bottom: 10px; }
.ghk-single__content h3, .editor-styles-wrapper h3 { font-size: 20px; }
.ghk-single__content h4, .editor-styles-wrapper h4 { font-size: 18px; }
.ghk-single__content p, .editor-styles-wrapper p { margin-bottom: 1.5em; }
.ghk-single__content ul, .editor-styles-wrapper ul { margin-bottom: 1.5em; padding-left: 20px; list-style-type: disc; }
.ghk-single__content ol, .editor-styles-wrapper ol { margin-bottom: 1.5em; padding-left: 20px; list-style-type: decimal; }
.ghk-single__content li, .editor-styles-wrapper li { margin-bottom: 0.5em; }
.ghk-single__content a:not(.ghk-btn):not(.wp-element-button):not(.ghk-rep-card a), .editor-styles-wrapper a:not(.ghk-btn):not(.wp-element-button) { color: var(--ghk-primary) !important; text-decoration: underline; font-weight: 500; }
.ghk-single__content a:not(.ghk-btn):not(.wp-element-button):not(.ghk-rep-card a):hover, .editor-styles-wrapper a:not(.ghk-btn):not(.wp-element-button):hover { color: var(--ghk-primary) !important; text-decoration: none; opacity: 0.8; }
.ghk-single__content blockquote, .editor-styles-wrapper blockquote { border-left: 4px solid var(--ghk-accent-ink); padding-left: 15px; margin-left: 0; font-style: italic; color: #555; }

/* --- Gutenberg Block Styles --- */
.is-style-justify {
    text-align: justify !important;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}


/* --- Mega Menu Formatting Fixes --- */
.ghk-header { position: sticky !important; } 
.ghk-header__container { position: relative !important; }
.ghk-nav-primary {
    position: relative !important;
    display: block !important;
    flex: none !important; /* Don't stretch the nav container */
}
.ghk-header__right, .ghk-menu-item {
    position: static !important; 
}
.ghk-menu {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 20px !important; /* Nice gap between menu items */
    width: auto !important;
}
.ghk-mega-dropdown {
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    width: max-content !important; /* Allow it to be as wide as it needs */
    min-width: 100% !important; /* But at least as wide as the menu */
    max-width: 100vw !important; /* Prevent horizontal scroll */
    background: #f8f9fa !important;
    transform: translateY(10px) !important;
    box-sizing: border-box !important;
    border-top: 3px solid var(--area-color, var(--ghk-primary)) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.ghk-menu-item.is-open .ghk-mega-dropdown,
.ghk-menu-item:focus-within .ghk-mega-dropdown,
.ghk-menu-item:hover .ghk-mega-dropdown {
    transform: translateY(0) !important;
}
.ghk-mega-inner {
    display: flex !important;
    width: 100% !important;
    padding: 30px 20px !important;
    gap: 40px !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}
/* Ensure equal width for sub-menu columns */
.ghk-mega-column { flex: 1 1 0px !important; min-width: 0 !important; }
.ghk-mega-column--mega-column-contact { margin-left: auto !important; flex: 0 0 auto !important; }

.ghk-mega-column-title {
    background-color: var(--area-color, var(--ghk-primary)) !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    border-radius: 4px !important;
    border: none !important;
    white-space: normal !important; 
    word-wrap: break-word !important; 
    line-height: 1.2 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ghk-mega-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ghk-mega-list li { margin-bottom: 12px !important; }
.ghk-mega-list a { 
    color: #333 !important; 
    font-size: 14px !important; 
    line-height: 1.4 !important; 
    white-space: normal !important; 
    word-break: break-word !important;
    display: block !important; 
}
.ghk-mega-list a:hover { color: var(--ghk-primary) !important; }

/* Képviselő-kártyák a mega menüben: a kártya stílusa a 16. szekcióban, itt csak az oszlopok */
.ghk-mega-contact-grid {
    display: grid !important; grid-auto-flow: column; grid-auto-columns: 190px;
    grid-template-rows: repeat(4, auto); column-gap: 20px; justify-content: end;
}
.ghk-mega-news-list { display: flex !important; flex-direction: column !important; }
.ghk-mega-news-item {
    display: flex !important; flex-direction: column !important; gap: 6px !important;
    border-bottom: 1px dotted #ccc !important; padding-bottom: 12px !important; margin-bottom: 12px !important;
}
.ghk-mega-news-item:last-child { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
.ghk-mega-news-meta { display: flex !important; align-items: center !important; gap: 8px !important; font-size: 11px !important; text-transform: uppercase !important; }
.ghk-mega-dropdown .ghk-mega-news-badge { color: #fff !important; font-weight: 700 !important; padding: 4px 8px !important; border-radius: 12px !important; font-size: 10px !important; display: inline-block !important; }
.ghk-mega-dropdown .ghk-mega-news-date { color: #666 !important; font-weight: 600 !important; display: inline-block !important; margin-left: auto !important; }
.ghk-mega-dropdown .ghk-mega-news-title { margin: 0 !important; }
.ghk-mega-dropdown .ghk-mega-news-title a { font-weight: 600 !important; font-size: 14px !important; color: #222 !important; line-height: 1.4 !important; text-decoration: none !important; display: block !important; white-space: normal !important; }
.ghk-mega-dropdown .ghk-mega-news-title a:hover { color: var(--ghk-primary) !important; }

/* WP Block Query Loop override to look like hardcoded cards */
.wp-block-post-template {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px !important;
}
.wp-block-post {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}
.wp-block-post:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
}
.wp-block-post-title {
    font-size: 18px !important;
    margin: 35px 20px 10px !important; /* Extra top margin for absolute badges */
}
.wp-block-post-title a {
    color: var(--ghk-text) !important;
    text-decoration: none !important;
}
.wp-block-post-title a:hover {
    color: var(--ghk-accent-ink) !important;
}
.wp-block-post-date {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 20px 15px !important;
    display: block !important;
}

.wp-block-post-excerpt, .wp-block-post-content {
    font-size: 14px !important;
    color: #555 !important;
    margin: 0 20px 20px !important;
    line-height: 1.5 !important;
    flex-grow: 1 !important;
    display: block !important; 
    max-height: 126px !important; 
    overflow: hidden !important; 
    position: relative !important;
}
.wp-block-post-excerpt::after, .wp-block-post-content::after {
    content: "" !important; position: absolute !important; bottom: 0 !important; left: 0 !important; width: 100% !important; height: 40px !important;
    background: linear-gradient(transparent, #fff) !important; pointer-events: none !important;
}
.wp-block-post:hover .wp-block-post-excerpt::after, .wp-block-post:hover .wp-block-post-content::after {
    background: linear-gradient(transparent, #f8f9fa) !important;
}

.wp-block-post-featured-image {
    margin: 0 !important;
}
.wp-block-post-featured-image img {
    border-radius: 8px 8px 0 0 !important;
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
}
.wp-block-post-terms {
    display: flex !important; gap: 5px !important; flex-wrap: wrap !important;
    position: absolute !important; top: 10px !important; left: 10px !important; z-index: 2 !important; margin: 0 !important; padding: 0 !important;
}
.wp-block-post-terms a {
    color: #fff !important; font-size: 11px !important; font-weight: 700 !important; padding: 4px 10px !important; border-radius: 20px !important; text-transform: uppercase !important; text-decoration: none !important; line-height: 1 !important; display: inline-block !important;
}


.ghk-archive-posts, .ghk-content, .ghk-regular-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}


.ghk-sidebar-left .ghk-links-list a:hover {
    background: var(--ghk-bg-light) !important;
    color: var(--ghk-primary) !important;
    border-left-color: var(--ghk-primary) !important;
}
.ghk-social-icon:hover {
    color: var(--ghk-primary) !important;
}
.ghk-footer-social-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 38px !important; height: 38px !important; background-color: #333 !important; border-radius: 6px !important;
    color: #fff !important; font-size: 18px !important; transition: all 0.3s ease !important;
}
.ghk-footer-social-btn:hover { background-color: var(--ghk-primary) !important; color: #fff !important; transform: translateY(-2px) !important; }


.ghk-card-preview-content {
    font-size: 14px !important;
    line-height: 1.5 !important;
    max-height: 126px !important; /* 6 lines */
    overflow: hidden !important;
    position: relative !important;
    color: #555 !important;
}
.ghk-card-preview-content::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 40px !important;
    background: linear-gradient(transparent, #fff) !important;
    pointer-events: none !important;
}
.ghk-card-clickable:hover .ghk-card-preview-content::after {
    background: linear-gradient(transparent, #f8f9fa) !important;
}
.ghk-card-preview-content p { margin-bottom: 10px !important; }
.home .ghk-content { grid-template-columns: 1fr; }

.wp-element-button {
    background-color: var(--ghk-primary) !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block !important;
    margin: 5px 5px 5px 0 !important;
    line-height: 1.5 !important;
}
.wp-element-button:hover {
    background-color: var(--ghk-accent) !important;
}



/* --- Gomb és link javítások --- */
.ghk-card-preview-content a:not(.wp-element-button):not(.wp-block-button__link):not(.ghk-btn) {
    color: var(--ghk-primary) !important;
    text-decoration: underline !important;
}
.ghk-card-preview-content a:not(.wp-element-button):not(.wp-block-button__link):not(.ghk-btn):hover {
    color: var(--ghk-accent-ink) !important;
}

.ghk-single__content .wp-block-buttons,
.ghk-single__content .ghk-block-file-view {
    margin-bottom: 1.25em;
}

body .wp-element-button,
body .wp-block-file__button,
body .wp-block-button__link,
.ghk-single__content .wp-element-button,
.ghk-single__content .wp-block-button__link {
    background-color: var(--ghk-primary) !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 5px 5px 5px 0 !important;
    line-height: 1.5 !important;
    border: none !important;
    box-shadow: none !important;
}

body .wp-element-button *, 
body .wp-block-file__button *, 
body .wp-block-button__link *,
.ghk-single__content .wp-element-button *,
.ghk-single__content .wp-block-button__link * {
    color: #fff !important;
}

body .wp-element-button:hover, 
body .wp-block-file__button:hover, 
body .wp-block-button__link:hover,
.ghk-single__content .wp-element-button:hover,
.ghk-single__content .wp-block-button__link:hover {
    background-color: var(--ghk-accent) !important;
    color: var(--ghk-accent-text) !important;
    /* Világos akcentszínnél is megmaradjon a gomb körvonala */
    box-shadow: inset 0 0 0 2px var(--ghk-accent-text) !important;
}




body .wp-element-button:hover *, 
body .wp-block-file__button:hover *, 
body .wp-block-button__link:hover *,
.ghk-single__content .wp-element-button:hover *,
.ghk-single__content .wp-block-button__link:hover * {
    color: var(--ghk-accent-text) !important;
}

/* --- Dokumentum Böngésző (lenyíló mappafa) ---
   Mappa: tömör márkakék sáv; fájl: világos sor kék szöveggel, hogy első
   ránézésre elváljanak. A lenyitott mappa tartalma behúzva, bal vonallal. */
.ghk-document-browser__list,
.ghk-doc-folder__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.ghk-document-browser__heading {
    margin: 0 0 16px;
}

.ghk-document-browser--representative {
    margin-top: 32px;
}

.ghk-doc-folder__body {
    margin: 10px 0 4px 14px;
    padding-left: 14px;
    border-left: 2px solid var(--ghk-border);
}

.ghk-doc-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    border-radius: var(--ghk-radius);
    font-weight: 600;
    font-size: var(--ghk-font-size-base);
    line-height: 1.35;
    text-decoration: none !important;
    transition: background-color var(--ghk-transition), border-color var(--ghk-transition), opacity var(--ghk-transition);
}

.ghk-doc-btn__icon {
    flex-shrink: 0;
    width: 20px;
    font-size: 18px;
    text-align: center;
}

.ghk-doc-btn__label {
    flex: 1;
    min-width: 0;
}

.ghk-doc-btn--folder {
    background-color: var(--ghk-primary-solid, var(--ghk-primary));
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ghk-doc-btn--folder::-webkit-details-marker {
    display: none;
}

.ghk-doc-btn--folder:hover {
    opacity: 0.9;
}

.ghk-doc-btn--folder:focus-visible,
.ghk-doc-btn--file:focus-visible {
    outline: 2px solid var(--ghk-accent-ink);
    outline-offset: 2px;
}

.ghk-doc-btn__count {
    flex-shrink: 0;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: var(--ghk-font-size-xs);
    font-weight: 700;
}

.ghk-doc-btn__chevron {
    flex-shrink: 0;
    font-size: 13px;
    transition: transform var(--ghk-transition);
}

.ghk-doc-folder[open] > .ghk-doc-btn--folder .ghk-doc-btn__chevron {
    transform: rotate(180deg);
}

.ghk-doc-btn__icon--open,
.ghk-doc-folder[open] > .ghk-doc-btn--folder .ghk-doc-btn__icon--closed {
    display: none;
}

.ghk-doc-folder[open] > .ghk-doc-btn--folder .ghk-doc-btn__icon--open {
    display: inline-block;
}

.ghk-doc-folder {
    /* ?ghk_folder linkről görgetve ne takarja ki a ragadós fejléc */
    scroll-margin-top: calc(var(--ghk-header-height) + 24px);
}

.ghk-doc-folder.is-target > .ghk-doc-btn--folder {
    box-shadow: 0 0 0 3px var(--ghk-accent);
}

a.ghk-doc-btn--file,
.ghk-doc-btn--file {
    background-color: var(--ghk-bg-white);
    border: 1px solid var(--ghk-border);
    color: var(--ghk-primary) !important;
    font-weight: 500;
}

a.ghk-doc-btn--file:hover {
    border-color: var(--ghk-primary);
    background-color: var(--ghk-bg-light);
}

.ghk-doc-btn--file.is-disabled {
    color: var(--ghk-text-light) !important;
    cursor: not-allowed;
}

.ghk-doc-btn__ext {
    flex-shrink: 0;
    color: var(--ghk-text-light);
    font-size: var(--ghk-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ghk-doc-empty,
.ghk-doc-loading,
.ghk-doc-folder__fallback {
    margin: 0;
    padding: 14px 20px;
    border-radius: var(--ghk-radius);
    background: var(--ghk-bg-light);
    color: var(--ghk-text-light);
    font-size: var(--ghk-font-size-sm);
}

.ghk-doc-loading {
    text-align: center;
}

.ghk-doc-folder__fallback {
    display: block;
    color: var(--ghk-primary);
}

@media (max-width: 600px) {
    .ghk-doc-btn {
        padding: 12px 14px;
        gap: 10px;
        font-size: var(--ghk-font-size-sm);
    }

    .ghk-doc-folder__body {
        margin-left: 6px;
        padding-left: 10px;
    }
}

/* ==========================================================================
   24. Reszponzív elrendezés
   Szándékosan a fájl végén: a fenti !important menüjavításokat csak így lehet
   töréspontonként felülírni. A teljes desktop menü kb. 1710px-től fér ki.
   ========================================================================== */

/* Tömör menü: kisebb térköz, ikonok nélkül */
@media (max-width: 1729px) {
  .ghk-nav-primary .ghk-menu { gap: 0 !important; }
  .ghk-nav-primary .ghk-menu > li > a {
    padding: 10px 8px !important;
    font-size: 13px !important;
    letter-spacing: 0;
  }
  /* A Home menüpontnak csak ikonja van, az marad */
  .ghk-nav-primary .ghk-menu > li:not(.ghk-menu-item--home) > a > i:first-child { display: none; }
  /* A lenyíló ne lógjon ki jobbra: a logóoszlop és a görgetősáv (~20px) levonva */
  .ghk-mega-dropdown { max-width: calc(100vw - var(--ghk-sidebar-left-width) - 20px) !important; }
}

/* Szűk desktop: nyilak nélkül, a logóoszlop csak a logó szélességű */
@media (max-width: 1279px) {
  .ghk-header__logo { width: auto; margin-right: 20px; }
  .ghk-nav-primary { margin-left: 0; }
  .ghk-header__right { flex-basis: auto; }
  .ghk-nav-primary .ghk-menu-arrow { display: none !important; }
  /* logó (~40px) + margók + görgetősáv levonva */
  .ghk-mega-dropdown { max-width: calc(100vw - 100px) !important; }
  /* Kisebb képviselő-kártyák, hogy a menüoszlopoknak is jusson hely */
  .ghk-mega-inner { gap: 25px !important; }
  .ghk-mega-contact-grid { grid-auto-columns: 130px; }
}

/* Hamburger menü (tablet és mobil) */
@media (max-width: 1024px) {
  .ghk-nav-primary { display: none !important; }
  .ghk-nav-toggle {
    display: block;
    color: var(--ghk-sidebar-bg);
    padding: 6px 4px;
  }
  .ghk-header__logo { width: auto; margin-right: 0; }
}

/* Tablet és mobil: egy oszlop, az oldalsávok a tartalom alá kerülnek
   (sorrend: tartalom, bal oldalsáv a naptárral, jobb oldalsáv) */
@media (max-width: 1024px) {
  .ghk-layout { grid-template-columns: 1fr; }
  .ghk-main { order: 1; }
  .ghk-sidebar-left { order: 2; }
  .ghk-sidebar-right { order: 3; }
  /* Teljes szélességben a blokkok rácsba rendeződnek, hogy ne nyúljanak meg */
  .ghk-sidebar-left {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0 20px;
    align-items: start;
  }
  .ghk-sidebar-right .ghk-rep-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* Hosszú feliratú Gutenberg gombok ne lógjanak ki */
body .wp-element-button,
body .wp-block-button__link,
body .wp-block-file__button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .ghk-header__container { padding: 0 15px; }
  .ghk-main { padding: 20px 15px; }
  .ghk-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

