/* ============================================================
   AM-PAGE-HERO
   Plik: assets/css/am-hero.css

   Nowe klasy — nie koliduje ze starym .breadcrumb-section.
   Styl identyczny z hero na lokalizacji (.loc-hero) i blogu (.blog-hero).
   Overlay neutralny (bez fioletu).
   ============================================================ */

/* Sekcja */
.am-page-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-color: #1a1a2e;
  display: flex;
  align-items: flex-end;
}

/* Overlay */
.am-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Inner — treść na dole */
.am-page-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 48px;
  width: 100%;
  animation: amPageHeroIn 0.7s ease-out;
}

@keyframes amPageHeroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===================================
   BREADCRUMB
   =================================== */
.am-page-hero__nav {
  margin-bottom: 16px;
}

.am-page-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.am-page-hero__crumbs a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.am-page-hero__crumbs a:hover {
  color: #fff;
}

.am-page-hero__sep {
  margin: 0 8px;
  opacity: 0.4;
  font-size: 12px;
}

/* Ostatni element biały */
.am-page-hero__crumbs > span:last-child {
  color: #fff;
}

/* Rank Math breadcrumb wewnątrz naszego wrappera */
.am-page-hero__crumbs .rank-math-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.am-page-hero__crumbs .rank-math-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.am-page-hero__crumbs .rank-math-breadcrumb a:hover {
  color: #fff;
}

.am-page-hero__crumbs .rank-math-breadcrumb .separator {
  margin: 0 8px;
  opacity: 0.4;
}

.am-page-hero__crumbs .rank-math-breadcrumb li:last-child,
.am-page-hero__crumbs .rank-math-breadcrumb li:last-child span {
  color: #fff;
}


/* ===================================
   TYTUŁ
   =================================== */
.am-page-hero__title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 700px;
}


/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 992px) {
  .am-page-hero {
    height: 320px;
  }

  .am-page-hero__inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .am-page-hero__title {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .am-page-hero {
    height: 260px;
  }

  .am-page-hero__title {
    font-size: 26px;
  }

  .am-page-hero__crumbs {
    font-size: 12px;
  }
}
