.p-home{
  background:var(--bg-50);
  min-height:100vh;
  overflow-x:clip;
}

.p-home__container{
  max-width:1200px;
  margin:0 auto;
  padding:var(--s-4);
}

.p-home__hero{
  margin-bottom:var(--s-6);
}

.p-home__carousel{
  overflow:hidden;
  border-radius:24px;
  background:#0f2745;
  box-shadow:0 24px 48px rgba(15,23,42,.12);
}

.p-home__carousel .carousel-item{
  background:#0f2745;
}

.p-home__carouselMedia{
  position:relative;
  height:clamp(320px, 38vw, 460px);
  overflow:hidden;
}

.p-home__carouselImage{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.p-home__carousel .carousel-caption{
  left:clamp(20px, 5vw, 56px);
  right:auto;
  bottom:clamp(20px, 4vw, 44px);
  max-width:min(520px, 80%);
  text-align:left;
  padding:0;
}

.p-home__eyebrow{
  display:inline-block;
  margin-bottom:12px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.p-home__carousel .carousel-caption h1{
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(1.6rem, 4vw, 3rem);
  font-weight:800;
  line-height:1.1;
}

.p-home__carousel .carousel-caption p{
  margin:0;
  color:rgba(255,255,255,.9);
  font-size:clamp(.95rem, 1.4vw, 1.05rem);
  line-height:1.6;
}

.p-home__filterToggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--n-200);
  border-radius:10px;
  background:var(--bg-0);
  color:var(--n-800);
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
}

.p-home__filterToggle:hover{
  background:var(--bg-50);
}

.p-home__offcanvasFilters{
  width:min(360px, 92vw);
}

.p-home__offcanvasFilters .offcanvas-body{
  overflow-x:hidden;
}

.p-home__grid{
  display:block;
  margin-top:var(--s-5);
}

.p-home__results{
  min-width:0;
}

.p-home__list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:var(--s-4);
}

@media (min-width: 768px){
  .p-home__list{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px){
  .p-home__list{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

.p-home__resultsHeader{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:var(--s-3);
  margin:var(--s-2) 0 var(--s-3);
}

.p-home__resultsHeaderActions{
  display:flex;
  align-items:center;
  gap:var(--s-3);
}

.p-home__title{
  font-size:20px;
  font-weight:700;
  color:var(--n-900);
  margin:0;
}

.p-home__meta{
  color:var(--n-600);
  font-size:14px;
}

@media (max-width: 767.98px){
  .p-home__container{
    padding:var(--s-3);
  }

  .p-home__carousel{
    border-radius:18px;
  }

  .p-home__carouselMedia{
    height:240px;
  }

  .p-home__carousel .carousel-caption{
    left:20px;
    right:20px;
    max-width:none;
  }

  .p-home__list{
    gap:var(--s-3);
  }

  .p-home__resultsHeader{
    flex-direction:column;
    align-items:flex-start;
  }

  .p-home__resultsHeaderActions{
    width:100%;
    justify-content:space-between;
  }
}