/*
Theme Name: Legal24
Theme URI: https://legal24.hu
Author: Webtag Online Kft.
Author URI: https://webtag.hu
Description: Egyedi Legal24 sablon a Figma "Legal24 UI v4" tervek alapján. Főoldal, cikk (single) és kategória (tartalmi rovat) sablonokkal, dinamikus bejegyzésekkel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: legal24
*/

/* ==========================================================================
   Legal24 – Főoldal (desktop v4)
   Figma design tokenek alapján
   ========================================================================== */

:root {
  /* Színek – a Figma változónevek megtartva */
  --l24-deepblue:  #172f5c;
  --l24-golddark:  #baa51f;
  --l24-gold:      #ebd33d;
  --l24-oceanblue: #2ea3c8;
  --l24-green:     #00c8b3;
  --l24-darkgrey:  #a3a4b1;
  --l24-hardgrey:  #7a7b84;
  --l24-grey:      #cfd0d9;

  --bg-page:       #f6f5f9;   /* A Figmában finom textúra-kép van rajta – exportálható háttérként */
  --bg-lightblue:  #eaf9fe;   /* időpont doboz */
  --bg-chipblue:   #cfdbf5;   /* helyszín chip */
  --bg-input:      #f6f6f6;

  /* Árnyékok (L24_Shadow1 / L24_Shadow2) */
  --shadow-soft:   0 15px 15px rgba(0, 0, 0, .05);
  --shadow-strong: 0 15px 15px rgba(0, 0, 0, .15);

  --radius: 12px;

  /* Konténer: 1920-as terv, 240px oldalpaddinggel = 1440px tartalom.
     A karusszelek 178px paddinggel futnak (szélesebb sáv). */
  --container: 1440px;
  --container-wide: 1564px;
}

/* ---------- Alap ---------- */

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

/* A hidden attribútum mindig érvényesüljön – a display-t beállító osztályok
   (pl. display:flex) különben felülírnák, és a rejtett elem látszódna
   (ilyen volt a foglalási űrlap "Ügyfél neve" mezője). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  color: var(--l24-deepblue);
  background: var(--bg-page);
  /* A Figma terv finom kék háttér-átmenetei a lap tetején */
  background-image:
    radial-gradient(1100px 900px at -120px 850px, rgba(93, 124, 196, .22), transparent 65%),
    radial-gradient(800px 650px at calc(100% + 150px) 1200px, rgba(93, 124, 196, .12), transparent 65%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* A kétoszlopos elrendezések rács-elemei tudjanak zsugorodni: a grid elem
   alapértelmezett min-width:auto értéke miatt egy széles belső tartalom
   (pl. karusszel) különben szétfeszíti az oszlopot és túlcsordul a lap. */
.article-layout > * { min-width: 0; }
.container-wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 24px;
}

.center { display: flex; justify-content: center; }

/* ---------- Címsorok ---------- */

.h2-60 {
  font-size: 32px;
  font-weight: 700;
  line-height: 60px;
}
.h2-72 {
  font-size: 48px;
  font-weight: 700;
  line-height: 72px;
}
.white { color: #fff; }

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #fff;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-gold { background: var(--l24-golddark); }
.btn-blue { background: var(--l24-deepblue); }
.btn-full { width: 100%; font-size: 14px; letter-spacing: .7px; }

/* ---------- Panel (fehér kártya) ---------- */

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Header ---------- */

/* A Figmán a fejléc ugyanazon a világoskék lap-háttéren ül, mint az alatta lévő
   szekció – ezért nem fehér, hanem átlátszó (a body háttér-átmenetét mutatja). */
.site-header { background: transparent; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 24px;
}
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.main-nav > a:not(.btn) {
  font-weight: 600;
  letter-spacing: .8px;
  white-space: nowrap;
}
.main-nav > a:not(.btn):hover { color: var(--l24-oceanblue); }

/* Hamburger – csak mobilon látszik */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 36px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  height: 2px;
  width: 100%;
  border-radius: 4px;
  background: var(--l24-deepblue);
}

/* Arany elválasztó a cikkek között – csak mobilon látszik */
.article-divider {
  display: none;
  width: 100px;
  height: 1px;
  background: var(--l24-golddark);
  margin-inline: auto;
}

/* ---------- Karusszel keret (nyilak + track) ---------- */

.carousel-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.arrow-btn {
  flex: 0 0 42px;
  width: 42px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--l24-deepblue);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.arrow-btn:hover { background: #1f3d75; }

/* Karusszel-címsor: a Figmán a cím bal széle egy vonalban van az első kártyáéval.
   A sáv a nyílgomb (42px) + a carousel-row gap (20px) miatt kezdődik beljebb,
   ezért a címet ugyanennyivel behúzzuk. */
.carousel-title { padding-left: calc(42px + 20px); }
@media (max-width: 900px) {
  .carousel-title { padding-left: 0; }
}

.pager {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-block: 20px;
}
.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--l24-grey);
  cursor: pointer;
}
.dot.active { background: var(--l24-deepblue); }
.pager[hidden] { display: none; }

/* ---------- Ügyvédeink szekció ---------- */

.section-lawyers { padding-block: 10px 30px; }

.lawyer-track {
  flex: 1;
  /* Flex elem alapból min-width:auto – enélkül nem tud zsugorodni, a kártyák
     kilógnak a képernyőből és vízszintes görgetést okoznak az egész lapon.
     A min-width:0 engedi érvényesülni a belső overflow-x: auto görgetést. */
  min-width: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lawyer-track::-webkit-scrollbar { display: none; }

.lawyer-card {
  flex: 0 0 calc((100% - 60px) / 4);   /* 4 kártya / sor desktopon */
  min-width: 300px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stars {
  display: flex;
  align-items: center;
  gap: 10px;
}
.star {
  width: 17px;
  height: 16px;
  fill: var(--l24-gold);
}
.star-count {
  font-size: 16px;
  color: var(--l24-darkgrey);
  line-height: 21px;
}

.lawyer-photo {
  display: block;
  aspect-ratio: 300 / 200;
  border-radius: var(--radius);
  overflow: hidden;
}
.lawyer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lawyer-name {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
}
.lawyer-name a:hover { color: var(--l24-oceanblue); }
.lawyer-exp {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--l24-hardgrey);
}
.lawyer-address,
.lawyer-price {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

/* Legkorábbi időpont doboz */
.slot-box {
  width: 100%;
  background: var(--bg-lightblue);
  border: 1px solid var(--l24-oceanblue);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slot-title {
  text-align: center;
  font-weight: 600;
  letter-spacing: .8px;
}
.slot-title strong { font-weight: 800; }

.slots { display: flex; gap: 5px; }
.slot {
  height: 43px;
  padding: 12px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--l24-green);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.slot:hover { background: var(--l24-green); color: #fff; }
.slot:hover svg path { stroke: #fff; }
/* A kártyák "További" gombja ugyanazt a hátteret kapja, mint az ügyvéd
   végoldal naptárában lévő "További" gomb (halvány világoskék, sötétebb hover). */
.slot-more {
  flex: 1;
  color: var(--l24-oceanblue);
  background: rgba(46, 163, 200, .1);
  border-color: var(--l24-oceanblue);
}
.slot-more:hover {
  background: rgba(46, 163, 200, .28);
  color: var(--l24-oceanblue);
}
.slot-more:hover svg path { stroke: var(--l24-oceanblue); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 14px;
  line-height: 21px;
}
.tags a { text-decoration: underline; }
.tags a:hover { color: var(--l24-oceanblue); }

/* ---------- SEO + Bemutatkozó ---------- */

.section-seo { padding-block: 30px 60px; }

.seo-grid {
  display: grid;
  grid-template-columns: 710px 1fr;
  gap: 20px;
  align-items: stretch;
}
.seo-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seo-panel {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.seo-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 58px;
}
.seo-title .gold { color: var(--l24-golddark); }
.seo-sub {
  font-size: 36px;
  font-weight: 600;
  line-height: 40px;
  color: var(--l24-oceanblue);
}
.seo-price-label {
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}
.seo-price-value {
  font-size: 32px;
  font-weight: 600;
}

.offer-panel {
  background: rgba(255, 255, 255, .9);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.offer-title {
  width: 100%;
  font-size: 48px;
  font-weight: 600;
  line-height: 52px;
  color: var(--l24-oceanblue);
}
.offer-text {
  width: 100%;
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}

.intro-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.intro-text {
  font-size: 18px;
  line-height: 24px;
}
.intro-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
}
.intro-video img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
/* Helyben (ablakban) induló lejátszó: a videó kitölti a doboz helyét. */
.intro-video-playing,
.lawyer-video.intro-video-playing {
  position: relative;
  display: block;
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.intro-video-playing iframe,
.intro-video-playing video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  border: 0;
}
/* Álló változat lejátszáskor is álló arányú marad. */
.intro-video-playing.lawyer-video-mobil iframe,
.intro-video-playing.lawyer-video-mobil video {
  aspect-ratio: 335 / 595;
}
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-video:hover .play-btn svg { transform: scale(1.1); }
.play-btn svg { transition: transform .15s ease; }

/* ---------- Ügyvéd keresés (zöld sáv) ---------- */

.section-search {
  background: var(--l24-green);
  padding-block: 30px 60px;
}
.search-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px;
}
.search-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.search-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-group-select { width: 557px; }
.search-group-input { flex: 1; }
.search-label {
  padding-inline: 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--l24-green);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 6px 24px;
  background: var(--bg-input);
  border: 1px solid var(--l24-green);
  border-radius: var(--radius);
  cursor: pointer;
}

/* Lenyíló lista a kereső mezőben (jogterulet / varos taxonómiák) */
.search-field select {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  /* 800 helyett 600: a kiválasztott érték ne legyen túl kövér. */
  font-weight: 600;
  line-height: 34px;
  color: #2f3a57;
  cursor: pointer;
  outline: none;
}
.search-field select.search-empty { font-weight: 400; }
.search-field svg { flex-shrink: 0; pointer-events: none; }

button.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.search-btn { height: 48px; }
.search-value {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  line-height: 34px;
  color: #2f3a57;
}
.search-placeholder {
  flex: 1;
  font-size: 18px;
  color: #2f3a57;
}

/* ---------- Videók ---------- */

.section-videos { padding-top: 60px; }
.videos-heading { padding-left: 62px; margin-bottom: 12px; }

.video-track {
  flex: 1;
  min-width: 0;                 /* lásd .lawyer-track – enélkül kilóg a lapból */
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.video-track::-webkit-scrollbar { display: none; }

.video-thumb {
  position: relative;
  flex: 0 0 calc((100% - 20px) / 2);
  aspect-ratio: 628 / 353;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d4d4d4;
  box-shadow: var(--shadow-strong);
}
.video-thumb:hover .play-btn svg { transform: scale(1.1); }
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Cikkek ---------- */

.section-articles { padding-top: 60px; }
.articles-panel {
  margin-top: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.article {
  display: flex;
  align-items: center;
  gap: 20px;
}
.article:hover h3 { color: var(--l24-oceanblue); }
.article-img-main {
  flex: 0 0 360px;
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}
.article-img-small {
  flex: 0 0 305px;
  width: 305px;
  height: 172px;
  object-fit: cover;
  border-radius: var(--radius);
}
.article-txt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-txt h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
  transition: color .15s ease;
}
.article-txt p {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
.articles-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Rólunk ---------- */

.section-about { padding-top: 60px; }
.about-text {
  margin-top: 12px;
  font-size: 24px;
  line-height: 36px;
}

/* ---------- Értékelések ---------- */

.section-reviews { padding-top: 60px; }
.section-reviews .container { margin-bottom: 30px; }

.review-track {
  flex: 1;
  min-width: 0;                 /* lásd .lawyer-track – enélkül kilóg a lapból */
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 300px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-lawyer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-lawyer img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
}
.review-lawyer-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: .8px;
  color: #2f3a57;
}
.review-lawyer-fields {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  margin-top: 10px;
}
.review-quote {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-author {
  font-size: 16px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: .8px;
  padding-block: 10px;
}
.stars-sm { gap: 6px; }
.stars-sm .star { width: 15px; height: 14px; }
.review-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

/* ---------- Hogyan működik ---------- */

.section-how { padding-top: 60px; }
.how-heading {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  line-height: 72px;
  margin-bottom: 30px;
}
.how-heading .light { font-weight: 500; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.how-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.how-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.how-nr {
  flex: 0 0 36px;
  font-size: 40px;
  font-weight: 800;
  line-height: 28px;
  color: var(--l24-oceanblue);
}
.how-head h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
}
.how-card > p {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  color: var(--l24-hardgrey);
}

/* ---------- Jogterület / Helyszín választó ---------- */

.section-choose { padding-block: 60px; }
.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.choose-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  line-height: 24px;
  transition: transform .15s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip-white { background: #fff; }
.chip-blue  { background: var(--bg-chipblue); }
.chip img, .chip .pin { flex-shrink: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--l24-deepblue);
  color: #fff;
  padding-block: 24px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.footer-col { padding: 24px; }
.footer-logo { margin-bottom: 30px; }
.copyright {
  font-weight: 600;
  line-height: 28px;
  margin-bottom: 10px;
}
.social {
  display: flex;
  gap: 24px;
  align-items: center;
}
.social a:hover { opacity: .8; }

.footer-heading {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--l24-gold);
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-weight: 500;
  line-height: 28px;
  color: var(--l24-grey);
}
.footer-col ul li a:hover { color: #fff; }

/* ---------- Reszponzív alapok (a mobil verzió külön Figma terv) ---------- */

/* ==========================================================================
   CIKK OLDAL (Legal24 UI Cikk oldal - desktop v4)
   ========================================================================== */

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 30px;
  font-size: 12px;
  line-height: 24px;
}
.breadcrumb a { color: var(--l24-oceanblue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-current {
  color: var(--l24-deepblue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 336px;
}

/* ---------- Jogterület slider (chips + nyilak) ---------- */

.section-lawfields { padding-bottom: 30px; }
.lawfields-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
  margin-bottom: 30px;
}
.lawfields-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.arrow-btn-rounded {
  height: 54px;
  border-radius: var(--radius);
}
.chips-scroll {
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { white-space: nowrap; flex-shrink: 0; }
.chip-active {
  background: var(--l24-green);
  color: #fff;
}

/* ---------- Cikk elrendezés: 2 hasáb ---------- */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 345px;
  gap: 20px;
  align-items: start;
}

/* ---------- Cikktörzs ---------- */

.post {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.post-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 62px;
}
.post-meta {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
.post-category {
  color: var(--l24-oceanblue);
  text-transform: uppercase;
}
.post-category:hover { text-decoration: underline; }

.post-lead {
  font-size: 20px;
  font-weight: 800;
  line-height: 30px;
}
.post-image {
  margin: 0;
  width: 100%;
  aspect-ratio: 300 / 200;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
}
.post-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
.post-body a { text-decoration: underline; }
.post-body a:hover { color: var(--l24-oceanblue); }

/* Cikkbe ágyazott ügyvéd-karusszel: 3 kártya / nézet */
.post-lawyers {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-lawyers-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
  padding-block: 18px;
}
.lawyer-track-3 .lawyer-card {
  flex-basis: calc((100% - 40px) / 3);
  min-width: 260px;
}
.post-lawyers .pager { margin-block: 0; }

/* ---------- Sidebar ---------- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-seo {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-seo-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}
.sidebar-seo-title .gold { color: var(--l24-golddark); }
.sidebar-seo-sub {
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  color: var(--l24-oceanblue);
}
.sidebar-seo-label {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}
.sidebar-seo-price {
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}

.offer-panel-sm { gap: 12px; }
/* Sidebar "Kérjen ajánlatot" – a Figma szerinti nagyobb címsor és szöveg,
   a gomb középre igazítva (a tervet híven követve). */
.offer-title-sm {
  width: 100%;
  font-size: 40px;
  font-weight: 600;
  line-height: 46px;
  color: var(--l24-oceanblue);
}
.offer-text-sm {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
}
.offer-panel-sm { text-align: center; }
.offer-panel-sm .btn { margin-inline: auto; }

.sidebar-search {
  background: var(--l24-green);
  border-radius: var(--radius);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-search-heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: #fff;
}
.sidebar-search .search-card { padding: 30px 20px; }
.search-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-stack .btn { margin-top: 10px; }

.sidebar-video {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-video-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 36px;
}
.sidebar-video-text {
  font-size: 16px;
  line-height: 24px;
}
/* "Tudjon meg többet": a kép töltse ki a keretet torzítás nélkül. */
.sidebar-reel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-reel {
  display: block;
  position: relative;
  aspect-ratio: 299 / 533;      /* álló (reels) formátum */
  border-radius: var(--radius);
  overflow: hidden;
  background: #d4d4d4;
  box-shadow: var(--shadow-strong);
}
.sidebar-reel:hover .play-btn svg { transform: scale(1.1); }
.sidebar-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   KATEGÓRIA / TARTALMI ROVAT OLDAL (Legal24 UI Tartalmi rovat - desktop v4)
   ========================================================================== */

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.cat-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 72px;
}

/* Lista elem: kép + cím + meta sor */
.cat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px;
}
.cat-item-img {
  flex: 0 0 300px;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cat-item-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-item-txt h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
  transition: color .15s ease;
}
.cat-item:hover h2 { color: var(--l24-oceanblue); }
.cat-item-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--l24-golddark);
}
.meta-cat {
  font-weight: 400;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none; /* a Figmán a kategória nem aláhúzott */
}

/* Arany elválasztó (mindig látható változat) */
.divider-gold {
  display: block;
  width: 100px;
  height: 1px;
  background: var(--l24-golddark);
  margin-inline: auto;
}

/* ---------- Sidebar Cikkek blokk ---------- */

.sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-articles-heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}
.sidebar-articles-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-article {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-article:hover h3 { color: var(--l24-oceanblue); }
.sidebar-article-img-lg {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;          /* fekvő formátum a terv szerint */
  object-fit: cover;
  border-radius: var(--radius);
}
.sidebar-article-img {
  width: 100%;
  aspect-ratio: 305 / 172;
  object-fit: cover;
  border-radius: var(--radius);
}
.sidebar-article h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
  transition: color .15s ease;
}
.sidebar-article p {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

/* ==========================================================================
   ÜGYVÉD OLDALAK (Legal24 UI Lawyer / Category - desktop v4)
   ========================================================================== */

/* ---------- Profil kártya ---------- */

.lawyer-main,
.lawyer-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.lawyer-profile {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lawyer-profile-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.lawyer-profile-photo {
  flex: 0 0 220px;
  width: 220px;
  aspect-ratio: 220 / 210;
  border-radius: var(--radius);
  overflow: hidden;
}
.lawyer-profile-photo img,
.lawyer-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lawyer-profile-img.thumb-placeholder { display: block; width: 100%; height: 100%; }

.lawyer-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lawyer-profile-name {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
}
.lawyer-profile-name a:hover { color: var(--l24-oceanblue); }
.lawyer-profile-fields-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--l24-hardgrey);
  margin-top: 4px;
}
.lawyer-profile-info .lawyer-price { margin-top: 4px; }

/* Figma: az ügyvéd-modul jobb oszlopában a gomb és az alatta lévő
   értékelés középre igazított (nem jobbra zárt). */
.lawyer-profile-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lawyer-rating-label {
  font-size: 12px;
  line-height: 18px;
  color: var(--l24-hardgrey);
  text-align: center;
  margin-bottom: 4px;
}
.lawyer-profile-rating .stars { justify-content: center; }
/* Az üres csillag mindig szürke – megnövelt specifikussággal, hogy a
   Testreszabás → Egyéni CSS esetleges ".star { fill: … }" szabálya se
   színezze aranyra a nem megszerzett csillagokat. */
.star.star-empty,
.stars .star-empty,
.stars-sm .star-empty { fill: var(--l24-grey); }

/* ---------- Foglalási naptár ---------- */

.booking {
  background: var(--bg-lightblue);
  border: 1px solid var(--l24-oceanblue);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.booking-title {
  text-align: center;
  font-weight: 800;
  letter-spacing: .8px;
}
.booking-earliest {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  line-height: 21px;
}
.booking-earliest .slot { height: 36px; padding: 6px 10px; }
.booking-week {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.booking-week-label {
  font-weight: 600;
  font-size: 14px;
}
.booking-nav {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--l24-deepblue);
  cursor: pointer;
}
.booking-nav:hover { background: rgba(46, 163, 200, .15); }
.booking-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.booking-day {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-day-name {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}
.booking-day .slot { justify-content: center; }

/* Élő naptár (Amelia): töltés jelzés + üres hét üzenet */
.booking-live {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.booking-loading .booking-days { opacity: .4; pointer-events: none; transition: opacity .15s ease; }
.booking-empty {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--l24-hardgrey);
}
.booking-empty[hidden] { display: none; }

/* ---------- Ügyvéd videó ---------- */

.lawyer-video {
  display: block;
  margin: 0;
  aspect-ratio: 1075 / 600;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.lawyer-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Fekvő (desktop) / álló (mobil) videó változat */
.lawyer-video-mobil { display: none; aspect-ratio: 335 / 595; }
@media (max-width: 768px) {
  .lawyer-video-desktop { display: none; }
  .lawyer-video-mobil { display: block; }
}

/* ---------- Értékelések (single) ---------- */

.lawyer-reviews {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lawyer-reviews-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
}
.arrow-btn-sm {
  flex: 0 0 32px;
  width: 32px;
  height: 48px;
}
.lawyer-review-track { gap: 16px; }
.lawyer-review {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 220px;
  scroll-snap-align: start;
}
.lawyer-reviews .pager { margin-block: 0; }

/* ---------- Időpontfoglalás CTA + Szakmai tapasztalat ---------- */

.lawyer-cta {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lawyer-cta-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
}
.lawyer-cta-text {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

.lawyer-bio {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lawyer-bio-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
}

/* ---------- Listaoldal fejléc panel ---------- */

.lawyer-list-head {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* A Figmán a fejléc panelnek látható világoskék kerete van. */
  border: 1px solid var(--l24-oceanblue);
}
.lawyer-list-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
  /* Figma: sötétkék kategórianév (nem türkiz). */
  color: var(--l24-deepblue);
}
.lawyer-list-lead {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
}
.lawyer-list-lead .gold { color: var(--l24-golddark); }
.lawyer-list-sub {
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
  color: var(--l24-oceanblue);
}
.lawyer-list-price {
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

/* ---------- Sidebar: videói és írásai / csomag ajánló ---------- */

.sidebar-media {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-media-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}
.sidebar-media-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-media-item:hover h3 { color: var(--l24-oceanblue); }
.sidebar-media-img {
  width: 100%;
  height: auto;
  aspect-ratio: 305 / 172;      /* fekvő formátum */
  object-fit: cover;
  border-radius: var(--radius);
}
.sidebar-media-item h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  transition: color .15s ease;
}

.sidebar-package {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.sidebar-package-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  color: var(--l24-oceanblue);
}
.sidebar-package-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.sidebar-package .btn { margin-top: 6px; }

/* ==========================================================================
   Köztes méret (tablet) – átmenet a két terv között
   ========================================================================== */

@media (max-width: 1280px) and (min-width: 769px) {
  .seo-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .lawyer-card, .review-card { flex-basis: calc((100% - 20px) / 2); }
  .lawyer-track-3 .lawyer-card { flex-basis: calc((100% - 20px) / 2); }
  .search-group-select { width: 40%; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar > * { flex: 1 1 320px; }
  .lawyer-review { flex-basis: calc((100% - 16px) / 2); }
  .booking-days { grid-template-columns: repeat(5, minmax(90px, 1fr)); }
}

/* ==========================================================================
   MOBIL – a Figma "Legal24 UI Main page - mobil v4" terv szerint (375px alap)
   ========================================================================== */

@media (max-width: 768px) {

  .container, .container-wide { padding-inline: 20px; }

  /* --- Header: logó + hamburger --- */
  .header-inner { justify-content: space-between; }
  .header-inner .logo img { width: 99px; height: 24px; }
  .main-nav { display: none; }          /* a lenyíló menü a "mobil menu v4" terv szerint készül */
  .hamburger { display: flex; }

  /* --- Címsorok: mobilon egységesen 24px / 36px --- */
  .h2-60, .h2-72 { font-size: 24px; line-height: 36px; font-weight: 700; }

  /* --- Karusszelek: 1 kártya / nézet, szélre tapadó nyilak --- */
  .container-wide { padding-inline: 0; }
  .carousel-row { gap: 10px; }
  .arrow-btn { flex-basis: 32px; width: 32px; padding: 6px; }
  .arrow-btn:first-child { border-radius: 0 4px 4px 0; }  /* bal nyíl a bal szélhez tapad */
  .arrow-btn:last-child  { border-radius: 4px 0 0 4px; }  /* jobb nyíl a jobb szélhez tapad */

  .lawyer-card, .review-card { flex-basis: 100%; min-width: 0; }
  .lawyer-card { padding: 10px; }
  .review-card { padding: 10px; }

  /* Ügyvéd kártya mobil tipográfia */
  .star-count { font-size: 14px; line-height: 18px; }
  .slot { font-size: 12px; }
  .tags { font-size: 12px; line-height: 18px; gap: 0 10px; padding-block: 5px; }
  .btn { font-size: 14px; letter-spacing: .7px; }

  /* --- SEO + ajánlat + bemutatkozó: egymás alatt --- */
  .section-seo { padding-block: 30px 60px; }
  .seo-grid { grid-template-columns: 1fr; }
  .seo-title { font-size: 24px; line-height: 32px; }
  .seo-sub { font-size: 24px; line-height: 36px; }
  .seo-price-label { font-size: 18px; line-height: 24px; }
  .seo-price-value { font-size: 24px; line-height: 36px; }
  .offer-title { font-size: 24px; line-height: 36px; }
  .offer-text { font-size: 16px; line-height: 24px; }
  .offer-panel .btn { width: 100%; }
  .intro-text { font-size: 16px; }
  .intro-video img { aspect-ratio: 295 / 524; min-height: 0; } /* mobilon álló (reels) formátum */

  /* --- Keresés: mező-cím párok egymás alatt, teljes szélességű gomb --- */
  .section-search { padding-block: 30px; }
  .search-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-group-select, .search-group-input { width: 100%; }
  .search-btn { width: 100%; margin-top: 10px; }

  /* --- Videók: 1 álló videó / nézet --- */
  .videos-heading { padding-left: 20px; margin-bottom: 30px; }
  .video-track { gap: 10px; }
  .video-thumb {
    flex-basis: 100%;
    aspect-ratio: 1080 / 1920;   /* álló formátum a mobil terv szerint */
  }

  /* --- Cikkek: egymás alatt, arany elválasztókkal --- */
  .articles-grid { grid-template-columns: 1fr; justify-items: center; }
  .article { flex-direction: column; align-items: flex-start; gap: 10px; }
  .article-img-main { width: 275px; height: 275px; flex-basis: auto; }
  .article-img-small { width: 275px; height: 155px; flex-basis: auto; }
  .article-divider { display: block; }
  .articles-side { align-items: center; }
  .articles-side .article { width: 100%; align-items: flex-start; }

  /* --- Rólunk --- */
  .about-text { font-size: 16px; line-height: 24px; }

  /* --- Értékelések: 1 kártya / nézet --- */
  .review-lawyer-name { font-size: 14px; font-weight: 600; line-height: 18px; letter-spacing: .7px; }
  .review-author { font-size: 14px; font-weight: 600; line-height: 18px; letter-spacing: .7px; }

  /* --- Hogyan működik: kártyák egymás alatt --- */
  .how-heading { font-size: 24px; line-height: 36px; margin-bottom: 30px; }
  .how-grid { grid-template-columns: 1fr; }

  /* --- Jogterület / helyszín chipek --- */
  .choose-grid { grid-template-columns: 1fr; gap: 60px; }
  .chips { gap: 12px; }
  .chip { font-size: 14px; }
  .chip img { height: 20px; width: auto; }

  /* --- Footer: oszlopok egymás alatt --- */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  /* --- Cikk oldal mobilon --- */
  .article-layout { grid-template-columns: 1fr; }
  .post-title { font-size: 24px; line-height: 32px; }
  .post-lead { font-size: 18px; line-height: 28px; }
  .lawfields-row .arrow-btn { display: none; }   /* mobilon ujjal görgethető a chips sor */
  .lawyer-track-3 .lawyer-card { flex-basis: 100%; }
  .breadcrumb { flex-wrap: wrap; }

  /* --- Ügyvéd oldalak mobilon (Lawyer / Category - mobil v4) --- */
  .lawyer-profile { padding: 10px; }
  .lawyer-profile-top { flex-direction: column; gap: 10px; }
  .lawyer-profile-photo {
    flex-basis: auto;
    width: 100%;
    aspect-ratio: 335 / 240;
  }
  .lawyer-profile-side {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .lawyer-rating-label { text-align: left; }
  .lawyer-profile-rating .stars { justify-content: flex-start; }
  .lawyer-profile-side .btn { width: 100%; }

  .booking { padding: 10px; }
  .booking-days {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .booking-days::-webkit-scrollbar { display: none; }
  .booking-day { flex: 0 0 96px; }

  .lawyer-reviews { padding: 10px; }
  .lawyer-reviews-heading { font-size: 18px; line-height: 24px; }
  .lawyer-review { flex-basis: 100%; min-width: 0; }
  .lawyer-reviews .arrow-btn-sm { display: none; }

  .lawyer-cta, .lawyer-bio { padding: 20px; }
  .lawyer-cta .btn { width: 100%; }

  .lawyer-list-head { padding: 20px; }
  .lawyer-list-title { font-size: 24px; line-height: 36px; }
  .lawyer-list-lead { font-size: 18px; line-height: 26px; }
  .lawyer-list-sub, .lawyer-list-price { font-size: 16px; line-height: 24px; }

  /* --- Kategória oldal mobilon (Tartalmi rovat - mobil v4) --- */
  .cat-title { font-size: 24px; line-height: 36px; }
  .cat-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px;
  }
  .cat-item-img {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 200;
  }
  .cat-item-txt h2 { font-size: 18px; line-height: 24px; }
  .cat-item-meta {
    justify-content: flex-start;
    font-size: 14px;
    line-height: 18px;
  }
  .meta-cat { font-size: 14px; line-height: 21px; }
  .sidebar-article-img-lg { height: auto; aspect-ratio: 300 / 200; }
}

/* ==========================================================================
   WordPress kiegészítések
   ========================================================================== */

.thumb-placeholder { display:block; background:#d4d4d4; border-radius:var(--radius); }
.cat-item-img.thumb-placeholder { width:300px; height:200px; flex:0 0 300px; }
.logo-text { font-size:28px; font-weight:800; color:var(--l24-deepblue); }
.logo-text span { color:var(--l24-golddark); }
.post-body .wp-block-image img, .post-body img { border-radius:var(--radius); height:auto; max-width:100%; }
.post-body h2 { font-size:24px; font-weight:800; line-height:36px; }
.post-body h3 { font-size:20px; font-weight:800; line-height:30px; }
.post-body ul { list-style:disc; padding-left:24px; }
.post-body ol { list-style:decimal; padding-left:24px; }
.nav-links { display:flex; justify-content:center; }
@media (max-width:768px){ .cat-item-img.thumb-placeholder { width:100%; height:auto; aspect-ratio:300/200; } }

/* ---------- Konzultáció típusa + pozitív értékelés címkék ---------- */

.lawyer-consult {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--l24-green);
}
.review-tags {
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: var(--l24-oceanblue);
}

/* ---------- Rendezés (lista oldal) ---------- */

.lawyer-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.lawyer-sort select {
  padding: 8px 12px;
  border: 1px solid var(--l24-grey);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--l24-deepblue);
  cursor: pointer;
}

/* ---------- Ajánlatkérő oldal ---------- */

.ajanlat-layout { max-width: 900px; }
.ajanlat-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}
.ajanlat-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
}
.ajanlat-lead-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
.ajanlat-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ajanlat-web { position: absolute; left: -9999px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--l24-grey);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  color: var(--l24-deepblue);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--l24-oceanblue);
}
.form-field-check { flex-direction: row; align-items: flex-start; font-size: 14px; }
/* Mező alatti formátum-segédszöveg (pl. telefonszám formátum) */
.form-hint {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--l24-hardgrey);
}
/* "Miért fontos a részletes leírás" magyarázó sor a jogeset mező felett */
.ajanlat-jogeset-info {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: var(--l24-hardgrey);
}
/* Sikeres ajánlatkérés – zöld pipás nézet az űrlap helyén */
.ajanlat-success { padding: 40px 20px; }
.form-field-check a { text-decoration: underline; }
.ajanlat-notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 16px;
}
.ajanlat-notice-siker { background: #e6faf3; border: 1px solid var(--l24-green); }
.ajanlat-notice-hiba { background: #fdecec; border: 1px solid #d63638; }

/* ---------- Mobil alsó tapadó menü ---------- */

.mobile-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -6px 15px rgba(0, 0, 0, .12);
  }
  .mobile-bar[hidden] { display: none; }
  .mobile-bar-btn { flex: 1; gap: 8px; }
  .mobile-bar-single { justify-content: center; }
  .mobile-bar-single .mobile-bar-btn { flex: 0 1 335px; }
}

.mobile-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: flex-end;
  background: rgba(23, 47, 92, .85);
}
.mobile-search-overlay[hidden] { display: none; }
.mobile-search-box {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-page);
  border-radius: var(--radius) var(--radius) 0 0;
}
.mobile-search-box .video-modal-close { top: 10px; right: 10px; box-shadow: var(--shadow-soft); }

/* ---------- Videó modal (felugró lejátszó) ---------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 47, 92, .85);
}
.video-modal-box {
  position: relative;
  width: min(960px, 100%);
}
.video-modal-body {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-modal-body iframe,
.video-modal-body video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--l24-deepblue);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover { background: var(--l24-gold); }

/* Mobil menü nyitott állapot (hamburger toggle) */
@media (max-width: 768px) {
  .main-nav.main-nav-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-strong);
  }
  .main-nav.main-nav-open > a:not(.btn) {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--l24-grey);
  }
  .main-nav.main-nav-open > .btn { margin-top: 12px; }
  .site-header { position: relative; }
}

/* ---------- Időpont foglalás oldal (template-foglalas.php) ---------- */
.foglalas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
  margin-block: 30px 60px;
}
.foglalas-panel { padding: 30px; }
.foglalas-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  margin-bottom: 24px;
}

/* Összegző doboz – desktopon jobb oldalt, mobilon az űrlap FÖLÖTT. */
.foglalas-summary {
  padding: 24px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-lightblue);
  border: 1px solid var(--l24-oceanblue);
}
.foglalas-summary-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--l24-deepblue);
}
.foglalas-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foglalas-summary-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foglalas-summary-list span {
  font-size: 13px;
  font-weight: 600;
  color: var(--l24-hardgrey);
}
.foglalas-summary-list strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--l24-deepblue);
}
.foglalas-modify {
  align-self: flex-start;
  font-weight: 700;
  color: var(--l24-oceanblue);
}

/* Desktopon az űrlap a bal (széles) oszlop, az összegző a jobb 360px-es sáv.
   A DOM-ban az összegző áll elöl (mobilon a form FELETT kell lennie),
   ezért az oszlop-sorrendet order-rel cseréljük meg. */
.foglalas-layout .foglalas-panel { order: 1; }
.foglalas-layout .foglalas-summary { order: 2; }

/* Űrlap */
.foglalas-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.foglalas-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--l24-deepblue);
}
.foglalas-form input[type="text"],
.foglalas-form input[type="tel"],
.foglalas-form input[type="email"],
.foglalas-form textarea {
  font: inherit;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--l24-grey);
  border-radius: 6px;
  background: #fff;
  color: var(--l24-deepblue);
}
.foglalas-form input:focus,
.foglalas-form textarea:focus {
  outline: none;
  border-color: var(--l24-oceanblue);
}
.foglalas-mode {
  border: 0;
  margin: 0;
  padding: 0;
}
.foglalas-mode legend { padding: 0 0 8px; }
@media (min-width: 901px) {
  /* Desktopon a két konzultációs mód (személyes / online) egy sorban. */
  .foglalas-mode { display: block; }
  .foglalas-mode .foglalas-radio {
    display: inline-flex;
    margin-right: 28px;
    vertical-align: top;
  }
}
.foglalas-radio,
.foglalas-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  padding-block: 4px;
}
.foglalas-radio small {
  display: block;
  font-size: 13px;
  color: var(--l24-hardgrey);
}
.foglalas-form .btn-gold { align-self: flex-start; }
.foglalas-error {
  padding: 12px 16px;
  border-radius: 6px;
  background: #fdecea;
  color: #b3261e;
  font-weight: 600;
  margin-bottom: 20px;
}
/* Honeypot – csak robotoknak látszik. */
.foglalas-web { position: absolute; left: -9999px; }

/* Lemondás megerősítése */
.foglalas-lemondas {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}
.foglalas-lemondas-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.btn-lemondas {
  background: #b3261e;
  color: #fff;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.btn-lemondas:hover { background: #8f1d17; }

/* Sikeres foglalás */
.foglalas-success {
  grid-column: 1 / -1;
  padding: 60px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.foglalas-success-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
}
.foglalas-success-text { font-size: 18px; }
.foglalas-success-list {
  text-align: left;
  margin-block: 10px;
}

@media (max-width: 900px) {
  .foglalas-layout { grid-template-columns: 1fr; }
  /* Mobilon az összegző az űrlap fölé kerül. */
  .foglalas-layout .foglalas-summary { position: static; order: -1; }
  .foglalas-title { font-size: 32px; line-height: 40px; }
}

/* ---------- SVG logók (fejléc: legal24_logo_v2, lábléc/mobil menü: Legal24) ---------- */

.logo-img {
  display: block;
  height: 36px;
  width: auto;
}
.site-footer .footer-logo { display: inline-block; margin-bottom: 30px; }
@media (max-width: 900px) {
  .header-inner .logo img.logo-img { height: 24px; width: auto; }
}

/* ---------- Jogterület chipek: kép + hover/aktív fehér változat ---------- */

.chip img { height: 30px; width: auto; }
/* Hoverre a chip a kiemelt (zöld) állapotot veszi fel… */
.section-lawfields .chip-white:hover {
  background: var(--l24-green);
  color: #fff;
}
/* …és a kép fehérre vált (aktív állapotban is). */
.section-lawfields .chip:hover img,
.chip-active img {
  filter: brightness(0) invert(1);
}

/* ---------- Mobil felugró menü (Figma: "Main page - mobil menu v4") ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--l24-deepblue);
  color: #fff;
  overflow-y: auto;
  /* Nyitás: jobbról becsúszik, záráskor visszacsúszik. */
  transform: translateX(100%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
}
.mobile-menu.mobile-menu-open {
  transform: translateX(0);
  opacity: 1;
}
/* A menüelemek finoman felúsznak a nyitás után. */
.mobile-menu-inner > * {
  transform: translateY(12px);
  opacity: 0;
  transition: transform .3s ease .08s, opacity .3s ease .08s;
}
.mobile-menu-open .mobile-menu-inner > * {
  transform: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu-inner > * { transition: none; }
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 20px 40px;
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-light { color: #fff; }           /* Legal fehér, a 24 marad arany */
.mobile-menu-close {
  background: none;
  border: 0;
  color: #fff;
  padding: 6px;
  cursor: pointer;
  line-height: 0;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mobile-menu-nav > a:not(.btn) {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}
.mobile-menu-nav .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.mobile-menu-nav .btn-gold { margin-top: 8px; }
.btn-ocean { background: var(--l24-oceanblue); color: #fff; }
.btn-ocean:hover { background: #2691b2; }
.mobile-menu-social { justify-content: center; }
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu-links .footer-col { padding: 12px 0; }

/* ---------- Foglalási naptár: napok-alapú nézet (doctolib-logika) ----------
   Minden nap a saját szabad időpontjait mutatja egymás alatt, időrendben –
   vízszintes időigazítás nélkül. Sorlimitek: lista 3 / ügyvéd oldal 5 sor,
   mobilon 3; a többit a "További (időpontok)" gombok nyitják le. */

.booking-days { align-items: start; }

/* Lusta betöltés visszajelzése a lista oldalakon */
.booking-loading-text {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--l24-hardgrey);
  text-align: center;
}
.booking-lazy .booking-nav { visibility: hidden; }

/* Napcímke: desktopon rövid hónapnév (aug. 18., kedd), mobilon teljes
   (augusztus 18., kedd). */
.dnap-teljes { display: none; }
@media (max-width: 900px) {
  .dnap-rovid { display: none; }
  .dnap-teljes { display: inline; }
}

/* Foglalási oldal: fókuszált nézet – nincs navigáció, a látogató ne tudjon
   elnavigálni a foglalás közben. */
.page-template-template-foglalas .main-nav,
.page-template-template-foglalas .hamburger,
.page-template-template-foglalas .mobile-menu,
.page-template-template-foglalas .breadcrumb,
.page-template-template-foglalas .mobile-bar,
.page-template-template-foglalas .site-footer .social,
.page-template-template-foglalas .site-footer .footer-col ul,
.page-template-template-foglalas .site-footer .footer-heading {
  display: none !important;
}
/* A logó a foglalási oldalon is kattintható marad (vissza a főoldalra). */

/* Információs ikon szövegbuborékkal (hover/fókusz) */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
  color: var(--l24-oceanblue);
  cursor: help;
}
.info-tip-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 10px 14px;
  background: var(--l24-deepblue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
  z-index: 50;
}
.info-tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--l24-deepblue);
}
.info-tip:hover .info-tip-bubble,
.info-tip:focus .info-tip-bubble,
.info-tip:focus-within .info-tip-bubble {
  opacity: 1;
  visibility: visible;
}

/* Naponkénti "További" gomb: minden olyan nap alján megjelenik, ahol a
   sorlimitnél több időpont van; BÁRMELYIKRE kattintva az összes nap lenyílik.
   A háttere eltér az időpontokétól: alapból halvány világoskék, hoverre
   sötétebb – így nem olvad egybe a slotokkal. */
.booking-more-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--l24-oceanblue);
  background: rgba(46, 163, 200, .1);
  border: 1px solid var(--l24-oceanblue);
  border-radius: 6px;
}
.booking-more-day:hover {
  background: rgba(46, 163, 200, .28);
  color: var(--l24-oceanblue);
}

@media (min-width: 901px) {
  /* Lista oldal: naponta az első 3 időpont látszik lenyitásig. */
  .booking-ctx-list .booking-days:not(.booking-open) .booking-day a.slot:nth-of-type(n+4) { display: none; }
  /* Ügyvéd oldal: naponta az első 5 időpont látszik lenyitásig. */
  .booking-ctx-single .booking-days:not(.booking-open) .booking-day a.slot:nth-of-type(n+6) { display: none; }
}

@media (max-width: 900px) {
  /* Mobil: a napok egymás alatt, az időpontok sorokba törve egymás mellett. */
  .booking-live .booking-days {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
  }
  .booking-live .booking-day {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .booking-live .booking-day-name { width: 100%; text-align: left; }
  /* A 3 időpont + a "További" gomb EGY sorban: rugalmas szélesség, kisebb
     betű; lenyitva a sok slot 56px-es minimummal több sorba törik. */
  .booking-live .booking-day .slot {
    flex: 1 1 56px;
    min-width: 0;
    height: 36px;
    padding: 6px 8px;
    font-size: 14px;
  }
  .booking-live .booking-day .booking-more-day { flex: 1 1 72px; }
  .booking-live .booking-day .booking-more-day svg { display: none; }
  /* Naponta 3 időpont látszik; mobilon a "További" CSAK az adott napot nyitja
     (booking-day-open), desktopon a container-szintű booking-open mindent. */
  .booking-live .booking-days:not(.booking-open) .booking-day:not(.booking-day-open) a.slot:nth-of-type(n+4) { display: none; }
  /* Lista oldalon mobilon csak 2 nap látszik (a nyilak 2 naponként lapoznak). */
  .booking-ctx-list .booking-day:nth-of-type(n+3) { display: none; }
}
