/* ===========================
   About page – hero
   =========================== */

li {
    margin: 0px;
}


.about-hero {
    padding: 0;
}

.about-hero-inner {
    align-items: center;
    margin: 0 auto;
    height: 100%;
    padding-top: 3rem;
    gap: 3rem;
}

.about-hero-media {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-hero-media img {
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    border-radius: 0px;
    object-fit: cover;
}

.about-hero-copy {
    display: flex;
    flex-direction: column;
}

.rotate-90 {
    font-size: 12px;
    display: inline-block;
    transform: rotate(90deg);
    margin-left: 8px;
}

.about-hero-body {
    max-width: 540px;
    margin: 0;
}

.item-group {
    border: 1px solid var(--border-grey);
}

.item-group-header {
    border-bottom: 1px solid var(--border-grey);
    padding-bottom: 1em;
    background-color: rgb(249, 249, 249);
    border-radius: 10px 10px 0 0;
}

.item-group-icon {
    width: 36px;
    height: 36px;
}

.item-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5em 1.5em;
}
.item-list-grid li {
    margin: 0 0 0.5em 0;
    padding: 0px;
    padding-left: 4px;
    position: relative;
}

.e-waste-section .item-list-grid {
    grid-template-columns: repeat(1, 1fr);
}

.about-cta {
    position: relative;
    background-image: url("/static/images/refresh/clothes-hanger-hor.jpeg");
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 700px;
}

.about-cta-overlay {
    background: rgba(0, 0, 0, 0.624);
    height: 100%;
    width: 100%;
}

.about-cta-inner {
    color: white;
    max-width: 600px;
    text-align: center;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.ek-footer {
    margin-top: 0px;
}

@media (max-width: 900px) {
    .about-hero {
        height: auto;
        max-height: unset;
    }

    .about-hero-inner {
        flex-direction: column;
        height: auto;
    }



    .about-hero-media {
        width: 100%;
        height: 50vh;
    }

    .about-hero-media img {
        height: 100%;
    }

    .item-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Items We Accept - Modern cards + search + filters ===== */

:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: rgba(16, 185, 129, 0.06); /* subtle green tint */
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.10);
  --shadow-sm: 0px 5px 10px 0px #00000015;

  --accent: var(--m-green);
  --accent-2: var(--m-green);
  --danger: #ef4444;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 999px;
}

#items {
  margin-top: 100px;
}

.items-acceptance{
  margin-top: 10px;
}

.mw-900{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.items-toolbar{
  position: sticky;
  top: 120px;
  z-index: 10;

  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);

  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.items-toolbar-left{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 280px;
}

.items-search{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.items-search i{
  color: rgba(15, 23, 42, 0.55);
  font-size: 1.05rem;
}

.items-search input{
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}

.icon-btn{
  border: none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.55);
  transition: background 140ms ease, color 140ms ease;
}
.icon-btn:hover{
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.85);
}

.items-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.82);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease;
}
.chip:hover{
  transform: translateY(-1px);
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.32);
}
.chip.is-active{
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.55);
  color: rgba(15, 23, 42, 0.92);
}
.chip-danger{
  background: rgba(239, 68, 68, 0.06);
}
.chip-danger:hover{
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.28);
}
.chip-danger.is-active{
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.50);
}

.items-toolbar-right{
  display: flex;
  gap: 10px;
  padding-top: 2px;
}

.btn-ghost{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition: background 140ms ease, transform 120ms ease;
  color: rgba(15, 23, 42, 0.82);
  white-space: nowrap;
}
.btn-ghost:hover{
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.items-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px){
  .items-grid{
    grid-template-columns: 1fr 1fr;
  }
}


.items-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: white;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 8px;
}

.items-card.danger{
  background: linear-gradient(180deg, var(--m-red), white);
}

.card-head{
  width: 100%;
  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 14px;
  text-align: left;
}

.card-title{
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.card-icon{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  padding: 7px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.danger-icon{
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(239, 68, 68, 0.20);
  color: var(--danger);
  font-size: 20px;
}

.title-stack{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.title-stack h3{
  font-size: 1.04rem;
  color: var(--text);
}

.subtle{
  color: var(--muted);
  font-size: 0.92rem;
}

.card-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.count-pill{
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--l-green);
  background: white;
  color: rgba(15, 23, 42, 0.86);
}
.count-pill.danger{
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.10);
}

.chev{
  transition: transform 180ms ease;
  color: rgba(15, 23, 42, 0.70);
}

.items-card.is-collapsed .chev{
  transform: rotate(-90deg);
}

.card-body{
  padding: 0 14px 14px 14px;
}

.pill-list{
  list-style: none;
  padding: 0;
  padding-top: 16px;
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.pill{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.94rem;
  color: rgba(15, 23, 42, 0.88);
  transition: transform 120ms ease, border-color 140ms ease;
}
.pill:hover{
  transform: translateY(-1px);
  background-color: rgba(15, 23, 42, 0.04);
  border-color: var(--m-green);
  cursor: pointer;
}

.danger-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.88);
}
.danger-list li{
  margin: 8px 0;
}

.items-helper{
  margin-top: 10px;
}

/* Search highlight */
.pill mark{
  background: rgba(251, 191, 36, 0.35);
  padding: 0 2px;
  border-radius: 4px;
}

/* Collapsible animation */
[data-collapsible]{
  overflow: hidden;
  max-height: 1200px;
  transition: max-height 220ms ease, opacity 160ms ease;
  opacity: 1;
}
.items-card.is-collapsed [data-collapsible]{
  max-height: 0px;
  opacity: 0;
  padding-bottom: 0;
}

/* Hide cards when filtered out */
.items-card.is-hidden{
  display: none;
}

/* Mobile polish */
@media (max-width: 520px){
  .items-toolbar{
    flex-direction: column;
    align-items: stretch;
  }
  .items-toolbar-right{
    justify-content: space-between;
  }
  .btn-ghost span{
    display: none;
  }
}

/* Hide browser-provided clear "x" on search inputs (Chrome/Safari/Edge) */
#itemsSearch::-webkit-search-cancel-button,
#itemsSearch::-webkit-search-decoration,
#itemsSearch::-webkit-search-results-button,
#itemsSearch::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Firefox doesn't show the same icon, but keep consistent styling */
#itemsSearch[type="search"] {
  appearance: textfield;
}
