/* Aktualności — wygląd kart jak w oryginalnym UAEL Posts (event),
 * zamiast domyślnych niebieskich .cms-tiles z cms.js. */

/* Gdy CMS zdąży wstawić .cms-tiles (np. strona główna) — przełam uniwersalne style. */
.elementor-widget-uael-posts .cms-tiles {
  display: flex !important;
  flex-wrap: wrap;
  margin-left: calc(-20px / 2);
  margin-right: calc(-20px / 2);
  gap: 0;
}

.elementor-widget-uael-posts .cms-tiles .bt-row {
  float: left;
  width: 33.2%;
  max-width: none;
  padding: 0 calc(20px / 2);
  margin: 0 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.elementor-widget-uael-posts .cms-tiles .bt-inner {
  height: 100%;
  background-color: #ffdbb175;
  box-shadow: 6px 6px 10px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.elementor-widget-uael-posts .cms-tiles .bt-center {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: #e8e0d4;
  overflow: hidden;
}

.elementor-widget-uael-posts .cms-tiles .bt-inner img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.elementor-widget-uael-posts .cms-tiles .bt-row:hover .bt-inner img {
  transform: scale(1.03);
}

.elementor-widget-uael-posts .cms-tiles .bt-title,
.elementor-widget-uael-posts .cms-tiles a .bt-title {
  color: #111 !important;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem) !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  margin: 0.85rem 1.25rem 1.25rem !important;
  text-decoration: none !important;
}

.elementor-widget-uael-posts .cms-tiles a {
  color: inherit;
  text-decoration: none;
}

.elementor-widget-uael-posts .cms-tiles .cms-tile--text {
  border: 0;
  background: #ffdbb175;
  box-shadow: 6px 6px 10px 0 rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1.25rem;
}

@media (max-width: 1024px) {
  .elementor-widget-uael-posts .cms-tiles .bt-row {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .elementor-widget-uael-posts .cms-tiles .bt-row {
    width: 100%;
  }
}

/* Native UAEL markup (render z osrodek-aktualnosci.js) */
.elementor-widget-uael-posts .uael-post-grid__inner {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-20px / 2);
  margin-right: calc(-20px / 2);
}

.elementor-widget-uael-posts .uael-post-wrapper {
  float: left;
  display: inline-block;
  width: 33.2%;
  padding-right: calc(20px / 2);
  padding-left: calc(20px / 2);
  margin-bottom: 20px;
  box-sizing: border-box;
  text-align: center;
}

.elementor-widget-uael-posts .uael-post__columns-tablet-2 .uael-post-wrapper {
  /* desktop 3; tablet overridden below */
}

@media (max-width: 1024px) {
  .elementor-widget-uael-posts .uael-post__columns-tablet-2 .uael-post-wrapper,
  .elementor-widget-uael-posts .uael-post-wrapper {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .elementor-widget-uael-posts .uael-post__columns-mobile-1 .uael-post-wrapper,
  .elementor-widget-uael-posts .uael-post-wrapper {
    width: 100%;
  }
}

.elementor-widget-uael-posts .uael-post__bg-wrap {
  width: 100%;
  height: 100%;
  display: inline-block;
  background-color: #ffdbb175;
  border-style: none;
  box-shadow: 6px 6px 10px 0 rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  vertical-align: top;
}

.elementor-widget-uael-posts.uael-equal__height-yes .uael-post-grid__inner {
  align-items: stretch;
}

.elementor-widget-uael-posts.uael-equal__height-yes .uael-post-wrapper {
  display: flex;
}

.elementor-widget-uael-posts.uael-equal__height-yes .uael-post__bg-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.elementor-widget-uael-posts .uael-post__inner-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.elementor-widget-uael-posts .uael-post__thumbnail {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8e0d4;
}

.elementor-widget-uael-posts .uael-post__thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.elementor-widget-uael-posts .uael-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.elementor-widget-uael-posts .uael-post__thumbnail:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.elementor-widget-uael-posts .uael-post__content-wrap {
  padding: 25px 30px 30px;
  flex: 1 1 auto;
}

.elementor-widget-uael-posts .uael-post__datebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: calc(-60px / 2) auto 0;
  padding: 8px;
  border-radius: 100%;
  width: 60px;
  height: 60px;
  text-transform: uppercase;
  font-size: 0.75rem; /* >=12px — WAVE Very small text */
  line-height: 1.2;
  position: relative;
  z-index: 1;
  background-color: #000;
  color: #fff;
  box-sizing: border-box;
}

.elementor-widget-uael-posts .uael-post__datebox .uael-post-day {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.elementor-widget-uael-posts .uael-post__datebox .uael-post-month {
  font-size: 0.75rem;
  line-height: 1.1;
}

.elementor-widget-uael-posts .uael-post__datebox.uael-post__noimage {
  margin-top: 0;
}

.elementor-widget-uael-posts .uael-post__title {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  margin: 0.65rem 0 0.35rem;
  line-height: 1.25;
  color: #111;
  font-weight: 600;
}

.elementor-widget-uael-posts .uael-post__title a {
  color: inherit;
  text-decoration: none;
}

.elementor-widget-uael-posts .uael-post__title a:hover,
.elementor-widget-uael-posts .uael-post__title a:focus-visible {
  text-decoration: underline;
}

.elementor-widget-uael-posts .uael-post__excerpt {
  color: #000;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.elementor-widget-uael-posts .uael-post__excerpt p {
  margin: 0;
}

.elementor-widget-uael-posts .uael-post__complete-box-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}

.elementor-widget-uael-posts .uael-post__complete-box-overlay:focus-visible {
  outline: 3px solid #5a00c9;
  outline-offset: -3px;
}

/* Pager w stylu strony (gdy renderujemy lokalnie) */
.uws-ol-news-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  list-style: none;
  padding: 0;
}

.uws-ol-news-pager a,
.uws-ol-news-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  text-decoration: none;
  color: #111;
  background: #f0f0f0;
}

.uws-ol-news-pager a:hover,
.uws-ol-news-pager a:focus-visible {
  background: #f6f6f6;
}

.uws-ol-news-pager .is-current {
  background: #e2e2e2;
  font-weight: 600;
}

.uws-ol-news-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #333;
}

.uws-ol-news-more {
  text-align: center;
  margin: 0.75rem 0 1.25rem;
}

.uws-ol-news-more .elementor-button-wrapper {
  display: flex;
  justify-content: center;
}
