/* Page specific styles for /reoffice/learn/ */

.p-learn .p-middle-hero {
}

.p-learn-tabs-wrapper {
  background: #FFF;
  padding: 0.5rem;
  border-top: 2px solid #0799d9;
  border-bottom: 2px solid #0799d9;
}

.p-learn-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.p-learn-tabs__item {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #d9d9d9;
  color: #222;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.p-learn-tabs__item:hover {
  filter: brightness(0.98);
}

.p-learn-tabs__item:hover,
.p-learn-tabs__item.is-active {
  background: #0998d9;
  color: #fff;
}

.p-learn-section-head {
  background: #dfeff2;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.p-learn-section-head__title {
  font-weight: 800;
  font-size: 16px;
}

.p-learn-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;
  align-items: start;
  padding-bottom: 20px;
}

.p-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.p-learn-card {
  display: block;
  overflow: hidden;
  background: #fff;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.p-learn-card:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.p-learn-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f2f4f6;
  border-radius: 12px;
  overflow: hidden;
}

.p-learn-card__image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-learn-card__body {
  padding: 14px 4px 4px;
}

.p-learn-card__company {
  font-weight: 700;
  font-size: 13px;
  color: var(--mainColor);
  margin-bottom: 6px;
}

.p-learn-card__title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.p-learn-card__meta {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  align-items: flex-start;
}

.p-learn-card__date {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.p-learn-sidebar__block {
  background: transparent;
}

.p-learn-sidebar__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  margin: 0 0 14px;
}

.p-learn-sidebar__title::before,
.p-learn-sidebar__title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #8ed1fc;
}

.p-learn-sidebar__titleEm {
  color: #2890d2;
  font-family: "Teko", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.p-learn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-learn-tag {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

.p-learn-tag.is-selected {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.75);
  filter: brightness(0.98);
}

.p-learn-tag:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.85);
  outline-offset: 2px;
}

.p-learn-tags__empty {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.p-learn-freehtml {
  margin-top: 18px;
  height: 170px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Footer watermark like the mock */
.p-learn #contactSection {
  background-image: url(/reoffice/common/img/bg_footer.svg);
  background-repeat: no-repeat;
  background-position: center bottom 10px;
  background-size: min(1600px, 96vw) auto;
}

@media (max-width: 1000px) {
  .p-learn-layout {
    grid-template-columns: 1fr;
  }

  .p-learn-sidebar {
    order: 2;
  }

  .p-learn-grid {
    grid-template-columns: 1fr;
  }
}

.p-lean-headline {
  color: var(--mainColor);
  align-items: flex-start;
}