/* v6.9.2.1 — News Hub FIX
   Aktualności jako osobny widok, max 2 karty w rzędzie.
*/
body.newsHubMode #homeView > .hero,
body.newsHubMode #homeView > .mainMenuSection,
body.newsHubMode #homeView > #cmsEventArchive,
body.newsHubMode #homeView > .homePanel:not(#news){display:none!important}

body.newsHubMode #homeView{min-height:calc(100vh - 66px);background:#f7f4ed}
body.newsHubMode #news{display:block!important;padding:46px 0 74px}
.newsHubTop{display:flex;justify-content:flex-start;margin-bottom:26px}
.newsHubBack{appearance:none;border:1px solid #d9d2c3;background:#fff;color:#0b2638;border-radius:999px;padding:11px 16px;font:inherit;font-size:13px;font-weight:900;cursor:pointer;box-shadow:0 7px 20px rgba(11,38,56,.06)}
.newsHubBack:hover{border-color:#c9aa58;box-shadow:0 10px 26px rgba(11,38,56,.10)}
.newsHubHead{margin-bottom:30px}
body.newsHubMode #cmsNewsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:1000px;margin:0 auto}
body.newsHubMode #cmsNewsGrid .newsCard{grid-column:auto!important;min-width:0;height:100%}
body.newsHubMode #cmsNewsGrid .newsCard .newsMedia,
body.newsHubMode #cmsNewsGrid .newsCard .cardMedia{aspect-ratio:16/9;overflow:hidden}
body.newsHubMode #cmsNewsGrid .newsCard .newsMedia img,
body.newsHubMode #cmsNewsGrid .newsCard .cardMedia img{width:100%;height:100%;object-fit:cover}
body.newsHubMode #cmsNewsGrid .newsCard .cardBody{padding:20px 21px 22px}
body.newsHubMode #cmsNewsGrid .newsCard h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
body.newsHubMode #cmsNewsGrid .newsCard .cardBody>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}

@media (max-width:760px){
  body.newsHubMode #news{padding:26px 0 56px}
  .newsHubTop{margin-bottom:20px}
  .newsHubHead{margin-bottom:22px}
  body.newsHubMode #cmsNewsGrid{grid-template-columns:1fr;gap:18px;max-width:620px}
  body.newsHubMode #cmsNewsGrid .newsCard .cardBody{padding:17px 18px 19px}
  body.newsHubMode #cmsNewsGrid .newsCard h3{-webkit-line-clamp:3;line-clamp:3}
}


/* FIX 6.9.2.1 — panel Aktualności nie może być częścią zwykłego home */
.newsHubPanel[hidden]{display:none!important}
.newsHubBack{display:none}
body.newsHubMode .newsHubBack,
.newsHubPanel.homePanelActive .newsHubBack{display:inline-flex}

body.newsHubMode #homeView > [data-home-element],
body.newsHubMode #homeView > #cmsEventArchive,
body.newsHubMode #homeView > .homePanel:not(#news){display:none!important}

.newsHubPanel.homePanelActive #cmsNewsGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important;max-width:1000px;margin:0 auto}
.newsHubPanel.homePanelActive #cmsNewsGrid .newsCard{grid-column:auto!important;min-width:0!important;width:auto!important;max-width:none!important}

@media (max-width:760px){
  .newsHubPanel.homePanelActive #cmsNewsGrid{grid-template-columns:minmax(0,1fr)!important;gap:18px!important;max-width:620px!important}
  .newsHubPanel.homePanelActive #cmsNewsGrid .newsCard{width:100%!important;max-width:none!important}
}
