.aman-pp-root {
  display: block;
  width: 100%;
}

/* Let Elementor section own the background */
.aman-pp-root.aman-pp--transparent .hn-projects {
  background: transparent !important;
}

/* Let Elementor section own vertical spacing */
.aman-pp-root.aman-pp--compact .hn-projects {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.aman-pp-root .hn-projects__grid[data-mode="all"] .hn-project {
  display: flex;
}

.aman-pp-root .hn-projects__grid .hn-project[hidden] {
  display: none !important;
}

.aman-pp-root .hn-projects__grid .hn-project.is-extra {
  display: flex;
}

/* Title on top, filters underneath */
.hn-root.aman-pp-root .hn-head--split,
.aman-pp-root .hn-head--split {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  margin-bottom: 36px !important;
}

.aman-pp-root .hn-head__text {
  max-width: none !important;
  width: 100% !important;
}

/* Smaller single-line black title */
.aman-pp-root .hn-h2 {
  color: #000 !important;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.aman-pp-root .hn-filters {
  width: 100% !important;
  justify-content: flex-start !important;
}

/* Solid navy cards */
.aman-pp-root .hn-project {
  background: #0b0f17 !important;
  border-color: #1e293b !important;
}

.aman-pp-root .hn-project h3 {
  color: #fff !important;
}

.aman-pp-root .hn-project p,
.aman-pp-root .hn-project__meta {
  color: #94a3b8 !important;
}

/* Mobile: wrap tabs under title, never hide off-screen */
@media (max-width: 760px) {
  .aman-pp-root .hn-h2 {
    white-space: normal !important;
    font-size: 1.15rem !important;
  }

  .hn-root.aman-pp-root .hn-projects .hn-head--split,
  .aman-pp-root .hn-projects .hn-head--split {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
  }

  .aman-pp-root .hn-projects .hn-head__text {
    margin-bottom: 0 !important;
  }

  .aman-pp-root .hn-filters {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .aman-pp-root .hn-filters button {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }
}
