/* ============================================================
   OCEX Blog — olvasó oldal
   Halk színvilág, a tipográfia viszi a munkát. A cikk-oldalon a
   korlátozott sorhossz és a nagyobb sorköz dob a legtöbbet.
   ============================================================ */

/* --- Cikk-tipográfia --------------------------------------- */
#content h1 ~ p,
#content h1 ~ ul,
#content h1 ~ ol {
  max-width: 72ch;
}
#content h1 + ul.list-inline { margin-bottom: 18px; }

.information-information #content p,
#content .ocex-blog-block ~ p {
  line-height: 1.75;
}

/* --- Tartalomjegyzék: jobb szélről belógó fül ---------------
   A szövegfolyamon KÍVÜL él (a body végén, fixed pozícióval), ezért nem told
   el semmit és nem lóg bele a tartalomba. Egérrel fölé állva nyílik; érintésen
   a fülre koppintva (a JS teszi rá az .open osztályt). */
.ocex-toc {
  position: fixed;
  right: 0;
  top: 28vh;
  z-index: 1030;
  display: flex;
  align-items: flex-start;
  transform: translateX(calc(100% - 38px));
  transition: transform .22s ease;
  font-size: 13px;
}
.ocex-toc:hover,
.ocex-toc:focus-within,
.ocex-toc.open { transform: translateX(0); }

.ocex-toc-tab {
  flex: 0 0 38px;
  width: 38px;
  border: 0;
  border-radius: 4px 0 0 4px;
  background: #0d5c98;
  color: #fff;
  padding: 14px 0 16px;
  cursor: pointer;
  box-shadow: -1px 1px 6px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ocex-toc-tab span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}
.ocex-toc-tab:focus { outline: 2px solid rgba(255,255,255,.6); outline-offset: -4px; }

.ocex-toc-panel {
  width: 268px;
  max-height: 62vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 2px 12px rgba(0,0,0,.12);
  padding: 12px 14px;
}
.ocex-toc-panel ul { list-style: none; margin: 0; padding: 0; }
.ocex-toc-panel li { margin: 2px 0; line-height: 1.4; }
.ocex-toc-l3,
.ocex-toc-l4 { padding-left: 14px; font-size: .95em; }
.ocex-toc-panel a {
  display: block;
  padding: 4px 6px;
  border-radius: 3px;
  color: #2b3440;
  text-decoration: none;
}
.ocex-toc-panel a:hover,
.ocex-toc-panel a:focus { background: rgba(13,92,152,.09); color: #0d5c98; text-decoration: none; }

/* Mobil: keskenyebb fül, és a panel szinte teljes szélességű — itt belóghat a tartalomra */
@media (max-width: 767px) {
  .ocex-toc { top: auto; bottom: 72px; transform: translateX(calc(100% - 34px)); }
  .ocex-toc-tab { flex-basis: 34px; width: 34px; padding: 11px 0 13px; }
  .ocex-toc-tab span { display: none; }
  .ocex-toc-panel { width: 76vw; max-width: 320px; max-height: 56vh; }
}

/* Nyomtatásnál semmi keresnivalója */
@media print { .ocex-toc { display: none; } }

/* --- Címkék ------------------------------------------------- */
.ocex-blog-tags { margin: 26px 0 6px; display: flex; flex-wrap: wrap; gap: 7px; }
.ocex-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 11px;
  background: #eceff3;
  color: #3a4552;
  font-size: 12px;
  line-height: 17px;
  text-decoration: none;
}
.ocex-tag:hover, .ocex-tag:focus { background: #0d5c98; color: #fff; text-decoration: none; }

/* --- Blokkok a cikk alján ----------------------------------- */
.ocex-blog-block { margin: 30px 0 6px; clear: both; }
.ocex-blog-block > h3 {
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: 7px;
  margin-bottom: 14px;
}

/* --- Kapcsolódó termékek ------------------------------------ */
.ocex-rp { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ocex-rp-item {
  display: block;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 4px;
  text-align: center;
  color: #2b3440;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.ocex-rp-item:hover, .ocex-rp-item:focus {
  border-color: rgba(13,92,152,.45);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  text-decoration: none;
  color: #2b3440;
}
.ocex-rp-item img { max-width: 100%; height: auto; margin-bottom: 8px; }
.ocex-rp-name { display: block; font-size: 12.5px; line-height: 1.35; }
.ocex-rp-price { display: block; margin-top: 5px; font-weight: 600; font-size: 13px; color: #0d5c98; }

/* --- Galéria ------------------------------------------------ */
.ocex-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ocex-gal-item { display: block; overflow: hidden; border-radius: 4px; border: 1px solid rgba(0,0,0,.09); }
.ocex-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ocex-gal-item:hover img { transform: scale(1.04); }

/* --- Sötét mód ---------------------------------------------- */
[data-ocex-theme="dark"] .ocex-toc-panel { background: #262a33; border-color: rgba(255,255,255,.14); }
[data-ocex-theme="dark"] .ocex-toc-panel a { color: #c8d0da; }
[data-ocex-theme="dark"] .ocex-toc-panel a:hover,
[data-ocex-theme="dark"] .ocex-toc-panel a:focus { background: rgba(110,168,220,.16); color: #8ec0ea; }
[data-ocex-theme="dark"] .ocex-blog-block > h3 { color: #98a2b0; border-bottom-color: rgba(255,255,255,.1); }
[data-ocex-theme="dark"] .ocex-tag { background: #333846; color: #c8d0da; }
[data-ocex-theme="dark"] .ocex-tag:hover { background: #0d5c98; color: #fff; }
[data-ocex-theme="dark"] .ocex-rp-item { border-color: rgba(255,255,255,.12); color: #c8d0da; }
[data-ocex-theme="dark"] .ocex-rp-item:hover { border-color: rgba(110,168,220,.5); color: #c8d0da; }
[data-ocex-theme="dark"] .ocex-rp-price { color: #6ea8dc; }
[data-ocex-theme="dark"] .ocex-gal-item { border-color: rgba(255,255,255,.12); }

/* ---- Blog-kategoria: reszponziv racs ------------------------------------
   A kartyak gyarilag `information-layout grid col-xs-12`-ok, belul `thumbnail media`
   szerkezettel (kep balra lebegtetve) -> mindig 1 oszlop, szoveg a kep mellett.
   Itt raccsa alakitjuk (mobil 1, kis kepernyo 2, nagyon nagy kepernyo 3), es a kepet
   a szoveg FOLE tesszuk, mert keskeny oszlopban a lebegtetes osszepreselodne.        */
/* ⚠️ A Bootstrap .row clearfixe `::before`/`::after` pszeudo-elemeket tesz ki
   (`content:" "; display:table`). Rács-módban ezek VALÓDI cellákká válnak, ezért
   egy üres hely keletkezett a lista elején és végén. Ki kell kapcsolni őket. */
.ocex-blog-grid::before,
.ocex-blog-grid::after {
	display: none !important;
}

.ocex-blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin-left: 0;
	margin-right: 0;
}

@media (min-width: 768px) {
	.ocex-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
	.ocex-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ocex-blog-grid > .information-layout {
	width: 100% !important;
	float: none !important;
	padding-left: 0;
	padding-right: 0;
	margin-bottom: 0;
}

/* a kartya toltse ki a cellat -> egy sorban egyforma magasak */
.ocex-blog-grid > .information-layout > .thumbnail {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-bottom: 0;
	overflow: hidden;
}

.ocex-blog-grid > .information-layout .image {
	float: none !important;
	margin: 0 0 14px 0 !important;
	width: 100%;
}

.ocex-blog-grid > .information-layout .image img {
	width: 100%;
	height: auto;
	display: block;
}

.ocex-blog-grid > .information-layout .caption {
	flex: 1 1 auto;
	padding: 0 4px 4px;
}

.ocex-blog-grid > .information-layout .caption h4 {
	margin-top: 0;
	font-size: 17px;
	line-height: 1.35;
}

.ocex-blog-grid > .information-layout .caption p {
	font-size: 14px;
}

/* ---- Cikk lead-bekezdes (short_description) -----------------------------
   A cim alatti osszefoglalo. Nagyobb, halvanyabb, mint a torzsszoveg —
   vizualisan elvalik, de nem kiabal.                                       */
.ocex-blog-lead {
	font-size: 1.12em;
	line-height: 1.6;
	color: #5a6169;
	margin: 0 0 20px;
	padding-left: 14px;
	border-left: 3px solid #d8dce0;
}
