.rbt-card .rbt-card-img {
  height: 20rem;
}
.rbt-card .rbt-card-img a {
  height: 100%;
}
.rbt-card .rbt-card-img a img {
  height: 100%;
}

.filter-button-default button,
.filter-tab-button button {
  text-transform: none;
}

/*az ár sor legalulra rendezése*/
.rbt-card {
  display: flex;
  flex-direction: column;
  height: 100% !important;
}
.rbt-card .rbt-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.rbt-card .rbt-card-bottom {
  margin-top: auto;
}
.rbt-price {
  gap: 12px;
  line-height: 1.2;
}
.tax-class {
  font-size: var(--h6);
  font-weight: normal;
}

.original-price {
  font-size: var(--h6);
  font-weight: normal;
}
.sale-percentage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: white;
  background-color: var(--color-prim);
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50%;
}

.price-content {
  display: flex;
  flex-direction: column;
}

/*leckék, hallgatók*/
.rbt-card .rbt-card-body .rbt-meta {
  display: none !important;
}
/*add to cart*/
.rbt-card .rbt-price ~ a {
  display: none !important;
}
/*COURSE DETAIL*/
a.add_to_cart_button,
.content-item-content a.mt--15 {
  display: none !important;
}
/* mini navigációs sáv */
.rbt-inner-onepage-navigation.sticky-top .onepagenav {
  margin-left: auto;
  margin-right: auto;
  justify-content: safe center;
}
@media (max-width: 1199px) {
  .rbt-inner-onepage-navigation.sticky-top {
    top: 100px !important;
  }
}
@media only screen and (max-width: 767px) {
}
.rbt-inner-onepage-navigation .mainmenu-nav .mainmenu li.current a {
  color: white !important;
}
/* Organizer kártya stílusok */
/* Szervezők konténer rács (ha több van, egymás alá vagy mellé kerüljenek) */
.lion-organizers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Egyéni kártya stílusa */
.lion-organizer-card {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-1);
  width: 100%;
}

/* Avatar rész */
.lion-org-image-wrapper {
  flex-shrink: 0;
  margin-right: 15px;
}

.lion-org-avatar {
  width: 60px;
  aspect-ratio: 1/1;
  border-radius: 50% !important;
  object-fit: cover;
  background-color: #ccc; /* Fallback szín */
  display: block;
}

/* Szöveges adatok */
.lion-org-details {
  font-size: 14px;
}

.lion-org-title {
  margin: -2px 0 8px 0; /* A névhez közel, a kontakt infóktól távolabb */
  color: #999; /* Halványabb szín */
  line-height: 1.2;
}

.lion-org-name {
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.lion-org-contact {
  line-height: 1.4;
}

.lion-org-contact a {
  overflow-wrap: anywhere;
}

/* turnusok */
/* Widget Kártya alapok */
.lion-widget-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 10px;
  margin-bottom: 30px;
  border: 1px solid #eee;
}

.lion-widget-title {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

/* Turnus elem */
.lion-schedule-item {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  outline: none; /* Fókusz keret eltüntetése */
  .rbt-badge-6 {
    text-transform: lowercase;
  }
}

/* Hover vagy Fókusz (Kattintás) hatás */
.lion-schedule-item:hover,
.lion-schedule-item:focus-within {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #ccc;
}

/* Fejléc */
.lion-schedule-header {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: var(--sidebar-small);
}

.lion-schedule-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Lenyíló nélküli turnus: nem kattintható, nincs nyíl */
.lion-schedule-item-static {
  cursor: default;
}

.lion-detail-label {
  margin-bottom: 4px;
}

.lion-icon-small {
  font-size: 18px;
}

/* CSS Nyíl megrajzolása */
.lion-toggle-arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 5px;
  margin-bottom: 3px; /* Optikai igazítás */
}

/* Nyíl forgatása nyitáskor */
.lion-schedule-item:hover .lion-toggle-arrow,
.lion-schedule-item:focus-within .lion-toggle-arrow {
  transform: rotate(225deg); /* -135deg vagy 225deg a felfelé mutatáshoz */
  border-color: var(
    --color-primary
  ); /* Opcionális: színváltás aktívkor (pl. primary color) */
}

/* Lenyíló rész - Animáció */
.lion-schedule-details {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease-in-out,
    opacity 0.3s ease;
  opacity: 0;
  background: #fff;
}

/* Tartalom megjelenítése nyitáskor */
.lion-schedule-item:hover .lion-schedule-details,
.lion-schedule-item:focus-within .lion-schedule-details {
  max-height: 500px; /* Elegendő nagy érték */
  opacity: 1;
  border-top: 1px solid #f0f0f0;
}

.lion-details-inner {
  padding: 15px;
  font-size: var(--sidebar-medium);
  line-height: 1.5;
  cursor: default;
}

.lion-detail-row {
  margin-bottom: 8px;
}

.lion-detail-row:last-child {
  margin-bottom: 0;
}

.lion-sub-text {
  font-size: var(--sidebar-small);
  color: var(--color-hl-main);
}

.lion-schedule-note {
  font-style: italic;
  color: var(--color-hl-main);
}

/* Oktatási napok konténere */
.lion-days-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

/* Kis téglalap (badge) stílus */
.lion-day-badge {
  display: inline-block;
  background-color: #f0f2f5;
  color: var(--color-main);
  border: 1px solid #dcdcdc;
  border-radius: var(--radius);
  padding: 3px 8px;
  font-size: var(--sidebar-small);
  font-weight: 600;
  transition: transform 0.3s ease;
}
.lion-day-badge:hover {
  transform: scale(1.2);
}
.rbt-tutor-course-details-widebar-widget-load-more > *:not(:last-child) {
  margin-top: 30px;
}
/* címkék */
.lion-course-tags {
  padding: 5px;
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-start;
}
.lion-course-tag {
  font-size: 65%;
  padding: 5px;
  background: white !important;
  border: solid 1px var(--color-prim) !important;
}
.rbt-badge-3::before {
  background-image: url(/wp-content/plugins/plugin-lion/assets/svg/offer-badge-bg-color.svg);
}

.rbt-price-wrapper.justify-content-between {
  justify-content: flex-start !important;
  gap: 10px;
}
.rbt-price-wrapper {
  position: relative;
}

.course-sidebar {
  border: 3px solid var(--color-prim);
  background-color: white !important;

  .tutor-fs-4 {
    font-size: var(--sidebar-medium);
  }
  .rbt-badge-6,
  .md-caption {
    font-size: var(--sidebar-small);
  }
}

/* --- Ikon és Wrapper --- */
#lionTooltipContainer {
  width: 100%;
  position: absolute;
  top: 0;
  gap: 5px;
}
.lion-tooltip-wrapper {
  cursor: help;
  outline: none;
}

.lion-tooltip-wrapper.clickable {
  cursor: pointer;
}

.lion-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-prim);
  color: #fff;
  border: 1.5px solid var(--color-prim);

  font-weight: bold;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* --- Mobilos nézet --- */
@media (max-width: 768px) {
  .lion-info-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Hover / Focus effekt az ikonra */
.lion-tooltip-wrapper:hover .lion-info-icon,
.lion-tooltip-wrapper:focus .lion-info-icon {
  background-color: white;
  color: var(--color-prim);
}

/* --- A Szövegdoboz ár infó tooltip --- */

.lion-tooltip-text {
  visibility: hidden;
  opacity: 0;

  /* Pozicionálás a szülőhöz (.rbt-price-wrapper) képest */
  position: absolute;
  right: 0;
  top: 32px;
  width: 100%;

  background-color: #f0f2f5;
  color: #444;
  border: solid 2px #dcdcdc;
  text-align: left;
  border-radius: var(--radius);
  padding: 12px 15px;
  z-index: 100;

  font-size: 13px;
  line-height: 1.4;
  font-weight: normal;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none; /* Hogy ne takarja ki az egeret */

  transition:
    opacity 0.3s,
    transform 0.3s;
  transform: translateY(-10px); /* Animáció induló pozíció */
}

/* Kis nyíl a buborék alján/tetején */
.lion-tooltip-text::after {
  content: '';
  position: absolute;
  bottom: 100%; /* A doboz tetejére */
  right: 6px; /* Jobb szélre, az ikon alá */

  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #dcdcdc transparent; /* Felfelé mutató nyíl */
}

/* --- Megjelenítés --- */
.lion-tooltip-wrapper:hover .lion-tooltip-text,
.lion-tooltip-wrapper:focus .lion-tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.tutor-course-target-audience-wrap,
.course-sidebar .price .variation {
  display: none;
}

/* --- Kategória szintekhez tartozó CSS osztályok --- */

/* 1. Szint és 2. Szint, valamint a Vissza gomb */
.lion-back-btn,
.lion-top-category,
.lion-sub-category {
  order: 1;
}

/* Ez lesz a mi láthatatlan "sortörő" elemünk */
.lion-flex-break {
  order: 2; /* Középre ékelődik */
  flex-basis: 100%; /* Ez kényszeríti ki a sortörést a Flexboxban! */
  height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.filter-tab-button button {
  background: var(--color-hl-gray);
  font-weight: 500;
}

/* 3. Szint (Mély alkategóriák) */
.lion-deep-sub-category {
  order: 3; /* Mindig a legvégére kerül */
}
.lion-deep-sub-category button {
  padding: 0 10px;
  height: 40px;
  line-height: 40px;
}
.lion-deep-sub-category .filter-text {
  font-size: 14px;
}

.rbt-banner-content
  .rbt-course-top-wrapper
  ul.rbt-portfolio-filter.filter-tab-button.justify-content-start.nav.nav-tabs {
  padding-bottom: 0;
}
.forcedshow {
  position: relative;
  z-index: 1;
}
.lion-tag-checkbox-wrapper md-checkbox {
  margin-left: 20px;
}
body.post-type-archive-courses .rbt-banner-content-top {
  display: none;
}
.rbt-course-feature-box.overview-wrapper .rbt-shadow-box .call-to-btn a,
.rbt-btn.icon-hover .btn-text {
  white-space: nowrap;
}
.rbt-cta-default.style-3 .content-wrapper {
  padding: 50px;
}
.lion-hide-service-buttons .rbt-flipbox-back .rbt-btn {
  display: none;
}
.rbt-course-feature-box.overview-wrapper .rbt-shadow-box a.rbt-btn {
  color: #ffffff !important;
}
.rbt-arrow-between .rbt-swiper-arrow::after {
  display: none;
}
.rbt-categories-area-style12
  .rbt-arrow-between
  .rbt-swiper-arrow.rbt-arrow-left,
.rbt-categories-area-style12
  .rbt-arrow-between
  .rbt-swiper-arrow.rbt-arrow-right {
  top: 0 !important;
}
.swiper-pagination-bullet-active {
  background: var(--color-primary);
}

.lion-course-swiper .swiper-wrapper,
.lion-course-swiper .swiper-slide {
  height: auto;
}

/* Kihelyezett kategória elrejtése:
 * - képzések oldalon kategória választó gombon
 * - képzésterületek widgetben
*/
.rbt-categories-area
  .row
  > div:has(> a.rbt-cat-box[href='/kepzesek/?cat=kihelyezett']),
#rbt-myTab .nav-item:has(button[data-cat_slug='kihelyezett']) {
  display: none;
}

/* a sidebar eddig marad sticky, csak desktopon */
@media (min-width: 992px) {
  .col-lg-4:has(.course-sidebar-top) {
    height: 2000px;
  }
}

/* keskeny nézetben a sáv a tartalom elé kerül */
@media (max-width: 991px) {
  .col-lg-4:has(.course-sidebar) {
    order: -1;
    height: auto;
  }

  .course-sidebar.sticky-top {
    position: static;
  }
}
.buy-now-btn.smaller .rbt-btn {
  height: 50px;
  line-height: 50px;
}
.course-archive-title {
  z-index: 1;
}
.lion-filter-label {
  font-weight: bold;
  font-size: 110%;
}
.lion-tag-checkbox-wrapper .md-label {
  font-weight: bold;
}
