/* Hub gyűjtő: hero, nav, fresh, topic */

.cn-content--hub .cn-hub-top {
  margin-bottom: 22px;
}

.cn-content--hub .cn-hub-top .cn-hub-hero {
  margin-bottom: 22px;
}

.cn-hub-hero {
  padding-top: 16px;
}

.cn-hub-hero__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--cream-50);
  padding: 0;
}

.cn-hub-hero__top {
  display: grid;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.cn-hub-hero__copy {
  min-width: 0;
  padding: 20px 16px 12px;
}

.cn-hub-hero__copy h1 {
  font-size: 38px;
  line-height: 1.25;
  margin: 0 0 10px;
  max-width: 22ch;
}

.cn-hub-hero__copy p {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-700);
  max-width: 54ch;
}

.cn-hub-hero__copy p:last-child {
  margin-bottom: 0;
  color: var(--slate-500);
  font-size: 15px;
}

.cn-hub-hero__image {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  background: var(--aqua-100);
  aspect-ratio: 3 / 2;
}

.cn-hub-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Élethelyzet-nav: kör-badge + pontozott teal */
.cn-hub-hero__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 16px 20px;
  position: relative;
}

.cn-hub-nav {
  --hub-accent: var(--teal-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 10px 8px;
  text-decoration: none;
  color: inherit;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.cn-hub-nav:hover {
  transform: none;
  box-shadow: none;
}

.cn-hub-nav:hover .cn-hub-nav__num {
  background: var(--aqua-100);
}

.cn-hub-nav__num {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal-700);
  color: var(--teal-700);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 0 transparent;
}

.cn-hub-nav strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--teal-700);
  text-align: center;
}

.cn-hub-nav span:not(.cn-hub-nav__num) {
  font-size: 13px;
  line-height: 1.35;
  color: var(--slate-500);
  text-align: center;
}

.cn-hub-nav--1,
.cn-hub-nav--2,
.cn-hub-nav--3,
.cn-hub-nav--4,
.cn-hub-nav--5,
.cn-hub-nav--6 {
  --hub-accent: var(--teal-700);
}

@media (min-width: 900px) {
  .cn-hub-hero__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .cn-hub-hero__copy {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cn-hub-hero__image {
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 0;
  }

  .cn-hub-hero__image img {
    position: absolute;
    inset: 0;
  }

  .cn-hub-hero__nav {
    padding: 22px 28px 28px;
  }
}

@media (max-width: 899px) {
  .cn-hub-hero__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .cn-hub-hero__image {
    height: clamp(140px, 28vw, 200px);
    aspect-ratio: auto;
  }

  .cn-hub-hero__image img {
    position: absolute;
    inset: 0;
  }
}

@media (max-width: 800px) {
  .cn-hub-hero__nav {
    grid-template-columns: 1fr 1fr;
  }

  .cn-hub-nav__num {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .cn-hub-hero__panel {
    border-radius: 12px;
  }

  .cn-hub-hero__copy {
    padding: 16px 14px 10px;
  }

  .cn-hub-hero__copy h1 {
    font-size: 34px;
    font-weight: 700;
  }

  .cn-hub-hero__nav {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .cn-hub-hero__copy h1 {
    font-size: 34px;
    font-weight: 700;
  }
}

/* Fresh */
.cn-hub-fresh {
  margin: 0 0 8px;
}

.cn-hub-fresh__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.cn-hub-fresh__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}

.cn-hub-fresh__layout {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.cn-hub-fresh__lead {
  display: grid;
  grid-template-columns: minmax(140px, 42%) 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--white);
  text-decoration: none;
  color: inherit;
}

.cn-hub-fresh__lead:hover {
  box-shadow: var(--shadow-hover);
}

.cn-hub-fresh__lead-media {
  display: block;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--aqua-50);
  min-height: 160px;
}

.cn-hub-fresh__lead-media img {
  height: 100%;
  border-radius: 0;
}

.cn-hub-fresh__lead-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.cn-hub-fresh__lead-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--teal-700);
  hyphens: none;
}

.cn-hub-fresh__lead-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate-700);
}

.cn-hub-fresh__stack {
  display: grid;
  gap: 10px;
}

.cn-hub-fresh__side {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
}

.cn-hub-fresh__side:hover {
  box-shadow: var(--shadow-hover);
}

.cn-hub-fresh__side-media {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--aqua-50);
}

.cn-hub-fresh__side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}

.cn-hub-fresh__side-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--teal-700);
}

.cn-hub-fresh__empty,
.cn-hub-topic__empty {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
}

@media (min-width: 900px) {
  .cn-hub-fresh__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  }
}

@media (max-width: 700px) {
  .cn-hub-fresh__lead {
    grid-template-columns: 1fr;
  }

  .cn-hub-fresh__lead-media {
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .cn-hub-fresh__title {
    font-size: 22px;
  }

  .cn-hub-fresh__lead-title {
    font-size: 20px;
  }
}

/* Topic blocks */
.cn-hub-topic {
  --hub-accent: var(--teal-700);
  margin: 28px 0 8px;
  scroll-margin-top: 24px;
}

.cn-hub-topic--1,
.cn-hub-topic--2,
.cn-hub-topic--3,
.cn-hub-topic--4,
.cn-hub-topic--5,
.cn-hub-topic--6 {
  --hub-accent: var(--teal-700);
}

.cn-hub-topic__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.cn-hub-topic__intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 240px;
}

.cn-hub-topic__num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--teal-700);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.cn-hub-topic__title {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.3;
}

.cn-hub-topic__summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate-500);
}

.cn-hub-topic__pillar {
  display: grid;
  grid-template-columns: minmax(200px, 42%) 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--aqua-50);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}

.cn-hub-topic__pillar:hover {
  box-shadow: var(--shadow-hover);
}

.cn-hub-topic__pillar-media {
  display: block;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--aqua-100);
  aspect-ratio: 3 / 2;
  max-height: 180px;
  min-height: 100px;
}

.cn-hub-topic__pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}

.cn-hub-topic__pillar-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--teal-700);
  margin: 0 0 8px;
  hyphens: none;
}

.cn-hub-topic__pillar-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate-700);
  margin: 0;
}

.cn-hub-topic__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cn-hub-topic__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}

.cn-hub-topic__card:hover {
  box-shadow: var(--shadow-hover);
}

.cn-hub-topic__thumb {
  display: block;
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--aqua-50);
}

.cn-hub-topic__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}

.cn-hub-topic__card-body {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--teal-700);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.cn-hub-topic__pin {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-500);
}

@media (max-width: 900px) {
  .cn-hub-topic__card-body {
    font-size: 15px;
  }
}

@media (max-width: 700px) {
  .cn-hub-topic__grid {
    grid-template-columns: 1fr;
  }

  .cn-hub-topic__pillar {
    grid-template-columns: 1fr;
  }

  .cn-hub-topic__pillar-media {
    max-height: 160px;
  }
}

@media (max-width: 480px) {
  .cn-hub-topic__title {
    font-size: 22px;
  }

  .cn-hub-topic__pillar-title {
    font-size: 18px;
  }
}
