/* Fejléc főmenüjének színei */
.t4-header .t4-megamenu .navbar-nav > li > a {
    color: #1C1C1E;
}

.t4-header .t4-megamenu .navbar-nav > li > a:hover,
.t4-header .t4-megamenu .navbar-nav > li.active > a {
    color: #A10000;
}

/* Mobilos sárkánylogó mérete */
@media (max-width: 767px) {
    .logo-img-sm {
        width: 38px;
        max-height: 38px;
        height: auto;
        object-fit: contain;
    }
}

/* Főoldali nyitókép halványítása mobilon */
@media (max-width: 767.98px) {
  #t4-home-intro > .bg-overlay-image {
    opacity: 0.15 !important;
  }
}

/* Közös mobilmenü: világos panel, sötét kezelőszervek */
.t4-offcanvas {
  background: #FFFFFF;
  color: #1C1C1E;
}

.t4-offcanvas .t4-off-canvas-header {
  background: #F4F1EC;
}

.t4-offcanvas .t4-off-canvas-header .close {
  background: transparent;
  color: #1C1C1E;
  opacity: 1;
}

.t4-offcanvas-toggle,
.t4-offcanvas-toggle .toggle-bars {
  color: #1C1C1E !important;
}

.t4-offcanvas a {
  color: #1C1C1E;
}

.t4-offcanvas a:hover,
.t4-offcanvas a:focus,
.t4-offcanvas .active > a,
.t4-offcanvas .current > a {
  color: #A10000;
}

/* Szolgáltatások: csík a cím és a leírás mellett */
#t4-home-services .custom h3,
#t4-home-services .custom h3 + p {
  border-left: 4px solid #329491;
  padding-left: 16px;
}

#t4-home-services .custom h3 {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 8px;
  font-weight: 700;
}

#t4-home-services .custom h3 + p {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Második szolgáltatás: mélypiros */
#t4-home-services .custom h3:nth-of-type(2),
#t4-home-services .custom h3:nth-of-type(2) + p {
  border-left-color: #A10000;
}

/* Harmadik szolgáltatás: arany */
#t4-home-services .custom h3:nth-of-type(3),
#t4-home-services .custom h3:nth-of-type(3) + p {
  border-left-color: #D6A30A;
}


/* HOGYAN DOLGOZOM, KAPCSOLAT ÉS BIZTOSÍTÁS – FÜGGŐLEGES FOLYAMAT */

:is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) .t4-col {
  padding-bottom: 2rem;
}

:is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) .t4-col:last-child {
  padding-bottom: 0;
}

:is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) .custom {
  position: relative;
  min-height: 56px;
  padding-left: 80px;
}

:is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) .t4-col:not(:last-child) .custom::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: calc(-2rem - 28px);
  width: 2px;
  background: rgba(161, 0, 0, 0.25);
}

:is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) h3 {
  margin: 0 0 12px;
  padding-top: 10px;
}

:is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) h3 > span:first-child {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #A10000;
  color: #FFFFFF !important;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

:is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) .custom > :last-child {
  margin-bottom: 0;
}

/* Kisebb számjelölők telefonon */
@media (max-width: 575.98px) {
  :is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) .custom {
    min-height: 40px;
    padding-left: 56px;
  }

  :is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) h3 {
    padding-top: 3px;
  }

  :is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) h3 > span:first-child {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  :is(#t4-how-steps-12, #t4-contact-steps, #t4-insurance-steps) .t4-col:not(:last-child) .custom::before {
    left: 19px;
    top: 20px;
    bottom: calc(-2rem - 20px);
  }
}

/* HOGYAN DOLGOZOM ÉS KAPCSOLAT – LENYITHATÓ KÉRDÉSEK */
:is(#t4-how-questions, #t4-contact-questions) details {
  border-bottom: 1px solid #D5D0C9;
}

:is(#t4-how-questions, #t4-contact-questions) summary {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-weight: 600;
  list-style: none;
}

:is(#t4-how-questions, #t4-contact-questions) summary::-webkit-details-marker {
  display: none;
}

:is(#t4-how-questions, #t4-contact-questions) summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 4px;
  color: #A10000;
  font-size: 24px;
  line-height: 1;
}

:is(#t4-how-questions, #t4-contact-questions) details[open] > summary::after {
  content: "−";
}

:is(#t4-how-questions, #t4-contact-questions) details > p {
  margin: 0 0 20px;
}

/* A négy szolgáltatási sor függőleges igazítása */
#t4-services-admin .t4-row,
#t4-services-followup .t4-row,
#t4-services-digital .t4-row,
#t4-services-task .t4-row {
  align-items: center;
}


/* Árkártyák: azonos magasság, színes felső hangsúly */
#t4-services-hourly .t4-col,
#t4-services-packages .t4-col {
  display: flex;
  margin-bottom: 16px;
}

#t4-services-hourly .card,
#t4-services-packages .card {
  width: 100%;
  border-top: 5px solid #329491;
  border-radius: 10px;
  overflow: hidden;
}

#t4-services-hourly .t4-col:nth-child(2) .card,
#t4-services-packages .t4-col:nth-child(2) .card {
  border-top-color: #A10000;
}

#t4-services-packages .t4-col:nth-child(3) .card {
  border-top-color: #D6A30A;
}

#t4-services-hourly .card-body,
#t4-services-packages .card-body {
  padding: 28px;
}

/* A kártyák címei funkcionális, jól olvasható betűvel */
#t4-services-hourly h3,
#t4-services-packages h3 {
  margin-top: 0;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

/* Alap- és sürgősségi óradíj */
#t4-services-hourly .custom > p:first-of-type strong {
  font-family: Inter, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

/* Havi óraszám */
#t4-services-packages .custom > p:first-of-type strong {
  font-family: Inter, sans-serif;
  font-size: 44px;
  line-height: 1.2;
}

/* Havi összeg */
#t4-services-packages .custom > p:nth-of-type(2) strong {
  font-family: Inter, sans-serif;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.3;
}

/* Középső havi kártya hangsúlya */
#t4-services-packages .t4-col:nth-child(2) .card {
  border-left-color: #A10000;
  border-right-color: #A10000;
  border-bottom-color: #A10000;
}

/* Díjtáblázat fejléce és cellái */
#t4-services-monthly-rates table thead {
  background: #1C1C1E;
  color: #FFFFFF;
  font-weight: 600;
}

#t4-services-monthly-rates table th,
#t4-services-monthly-rates table td {
  padding: 16px;
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  #t4-services-monthly-rates table th,
  #t4-services-monthly-rates table td {
    padding: 10px 8px;
  }
}

/* Óradíjkártyák: keskenyebb elrendezés, nagyobb térköz */
@media (min-width: 768px) {
  #t4-services-hourly .t4-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  #t4-services-hourly .t4-col {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}


/* Kapcsolat: három elérhetőségi kártya */
#t4-contact-details .t4-col {
  display: flex;
  margin-bottom: 16px;
}

#t4-contact-details .card {
  width: 100%;
  background: #FFFFFF;
  border-top: 5px solid #329491;
  border-radius: 10px;
  overflow: hidden;
}

#t4-contact-details .t4-col:nth-child(2) .card {
  border-top-color: #A10000;
}

#t4-contact-details .t4-col:nth-child(3) .card {
  border-top-color: #D6A30A;
}

#t4-contact-details .card-body {
  padding: 24px;
}

#t4-contact-details h3 {
  margin-top: 0;
}

#t4-contact-details .custom > :last-child {
  margin-bottom: 0;
}

#t4-contact-details a {
  overflow-wrap: anywhere;
}


/* Programlogók: kategóriacím és reszponzív ikonrács */
.monek-program-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 16px 0;
}

.monek-program-group h3 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.monek-program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 20px 12px;
}

.monek-program-grid figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.monek-program-grid img {
  display: block;
  width: 88px;
  height: 56px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.monek-program-grid figcaption {
  margin-top: 6px;
  color: #1C1C1E;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .monek-program-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .monek-program-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* Programnevek: háttér nélkül, eredeti írásmóddal */
.monek-program-grid figure figcaption {
  background: transparent;
  text-transform: none;
  text-shadow: none;
  letter-spacing: normal;
  color: #1C1C1E;
  padding: 0;
}

/* Tapasztalat: nagyított képek felirata középen */
body.layout-monek-experience .wf-mediabox-caption,
body.layout-monek-experience .wf-mediabox-caption p {
  text-align: center !important;
}


/* Lábléc: navigáció középen mobilon */
#t4-footnav .monek-footer-menu .navbar {
  justify-content: center;
  text-align: center;
}

/* Többoszlopos láblécnél jobbra igazítva */
@media (min-width: 768px) {
  #t4-footnav .monek-footer-menu .navbar {
    justify-content: flex-end;
    text-align: right;
  }
}


/* SZOLGÁLTATÁSOK – MEGFORDULÓ KÁRTYÁK */

.monek-service-cards .t4-col {
  display: flex;
  margin-bottom: 24px;
}

.monek-service-cards .t4-module {
  width: 100%;
  margin-bottom: 0;
}

.monek-service-cards .module-inner,
.monek-service-cards .module-ct {
  height: 100%;
}

.monek-service-cards .monek-flip-card {
  position: relative;
  height: 100%;
  perspective: 1200px;
}

.monek-service-cards .monek-flip-inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.monek-service-cards .is-flipped .monek-flip-inner {
  transform: rotateY(180deg);
}

.monek-service-cards .monek-flip-front,
.monek-service-cards .monek-flip-back {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 260px;
  padding: 28px;
  border: 2px solid #329491;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1C1C1E;
  text-align: center;
  overflow-wrap: anywhere;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.2s ease;
}

.monek-service-cards .monek-flip-back {
  transform: rotateY(180deg);
  border-color: #D6A30A;
}

.monek-service-cards .monek-flip-front h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}


.monek-service-cards .monek-flip-front img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto;
}

.monek-service-cards .monek-flip-front p {
  margin: 0 0 18px;
}

.monek-service-cards .monek-flip-back p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
}

.monek-service-cards .monek-flip-back > :last-child {
  margin-bottom: 0;
}

.monek-service-cards button.monek-flip-toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}

.monek-service-cards button.monek-flip-toggle:focus-visible {
  outline: 3px solid #A10000;
  outline-offset: 4px;
}

@media (hover: hover) {
  .monek-service-cards
  .monek-flip-card:not(.is-flipped):hover
  .monek-flip-front {
    border-color: #A10000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monek-service-cards .monek-flip-inner,
  .monek-service-cards .monek-flip-front,
  .monek-service-cards .monek-flip-back {
    transition: none;
  }
}

/* Egérkattintás után ne maradjon külön fókuszkeret */
.monek-service-cards button.monek-flip-toggle:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* A lábléc tartalma maradjon a rögzített fejléc mögött */
#t4-footnav {
  z-index: 1;
}