/* ==========================================================================
   KS FACTOR — components.css
   Elementet e ripërdorshme: butonat, kartat, vendet për foto, etiketat,
   filtrat, format, shiritat CTA. Përdoret nga TË GJITHA faqet.
   ========================================================================== */

/* ---------- Butonat ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 11px 22px; font-size: 15px; }
.btn--accent { background: var(--c-accent); color: var(--c-white); }
.btn--accent:hover { background: var(--c-accent-dark); color: var(--c-white); }
.btn--dark { background: var(--c-green); color: var(--c-white); }
.btn--dark:hover { background: var(--c-green-700); color: var(--c-white); }
.btn--white { background: var(--c-white); color: var(--c-green); }
.btn--white:hover { background: var(--c-green-100); color: var(--c-green); }
.btn--outline { border-color: var(--c-green); color: var(--c-green); background: transparent; }
.btn--outline:hover { background: var(--c-green); color: var(--c-white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--c-white); background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: var(--c-white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 4px;
}
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Vendet për foto ----------
   .ph shfaq një sfond me male deri sa të vendosni një <img> brenda. */
.ph {
  position: relative;
  overflow: hidden;
  background-color: var(--ph, var(--c-green-500));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cpolygon points='0,200 0,120 100,70 200,130 300,60 400,140 400,200' fill='%23fff' fill-opacity='.1'/%3E%3Cpolygon points='0,200 0,165 140,115 250,170 340,125 400,155 400,200' fill='%23000' fill-opacity='.16'/%3E%3C/svg%3E");
  background-size: 100% 70%;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph__label {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 1;
  background: rgba(0, 0, 0, .45);
  color: var(--c-white);
  font-size: 12px;
  letter-spacing: .03em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.ph:has(> img) .ph__label { display: none; }

.cat-pun { --ph: var(--cat-pun); }
.cat-rin { --ph: var(--cat-rin); }
.cat-kul { --ph: var(--cat-kul); }
.cat-tur { --ph: var(--cat-tur); }
.cat-gra { --ph: var(--cat-gra); }
.cat-kom { --ph: var(--cat-kom); }

/* ---------- Etiketat ---------- */
.badge {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
}
.pill {
  display: inline-block;
  background: rgba(0, 0, 0, .45);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: rgba(255, 255, 255, .12); padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px; }
.tags--light li { background: var(--c-green-50); color: var(--c-green); }

/* ---------- Karta e projektit ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.section--white .project-card { background: var(--c-bg); }
.section:not(.section--white) .project-card { background: var(--c-white); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card__media { height: 200px; }
.project-card__media .pill { position: absolute; left: 14px; top: 14px; z-index: 1; }
.project-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.project-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2F5E4C; }
.project-card__title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.project-card__title a { color: var(--c-ink); text-decoration: none; }
.project-card__title a::after { content: ""; position: absolute; inset: 0; } /* gjithë karta klikohet */
.project-card:hover .project-card__title a { text-decoration: underline; text-underline-offset: 4px; }
.project-card__sub { color: var(--c-muted); line-height: 1.55; }
.project-card__partner { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--c-muted-2); }

/* ---------- Karta e lajmit ---------- */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__media { height: 190px; }
.news-card__icon { display: flex; align-items: center; justify-content: center; background-image: none; }
.news-card__icon svg { width: 44px; height: 44px; color: rgba(255, 255, 255, .9); }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--c-muted-2); }
.news-card__type { color: var(--c-accent); text-transform: uppercase; letter-spacing: .1em; }
.news-card__title { font-size: 20px; font-weight: 800; line-height: 1.25; }
.news-card__title a { color: var(--c-ink); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover .news-card__title a { text-decoration: underline; text-underline-offset: 4px; }
.news-card__excerpt { color: var(--c-muted); line-height: 1.55; }
.news-card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--c-green); }

/* ---------- Shtyllat (Misioni / Vizioni / Qëllimi) ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.pillar { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 36px; }
.pillar__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--c-green-100); display: flex; align-items: center; justify-content: center; color: var(--c-green); }
.pillar h3 { margin: 24px 0 10px; font-size: 24px; font-weight: 800; }
.pillar p { color: var(--c-muted); line-height: 1.65; }

/* ---------- Shifrat ---------- */
.stats { background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-block: 40px; }
.stat { border-left: 3px solid var(--c-green); padding-left: 20px; }
.stat__num { display: block; font-family: var(--f-display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--c-green); }
.stat__label { display: block; margin-top: 8px; font-size: 15px; color: var(--c-muted); }

/* ---------- Partnerët ---------- */
.partners { border-block: 1px solid var(--c-line); padding-block: 64px; }
.partners h2 { text-align: center; font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted-2); margin-bottom: 28px; }
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partner-list li { background: var(--c-white); border: 1px solid var(--c-line-2); border-radius: var(--radius-sm); padding: 14px 20px; font-weight: 600; font-size: 15px; }

/* ---------- Filtrat ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-input);
  background: var(--c-white);
  color: var(--c-green);
  font-weight: 600;
  font-size: 14px;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--c-green); }
.chip[aria-pressed="true"] { background: var(--c-green); border-color: var(--c-green); color: var(--c-white); }

/* ---------- Format ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; }
.field label .req { color: var(--c-accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-input);
  border-radius: var(--radius-sm);
  background: #F9FAF7;
  color: var(--c-ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(19, 52, 42, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--c-accent); }
.field__error { font-size: 13px; color: var(--c-accent-dark); min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-green); }

.search {
  position: relative;
  flex: 0 1 340px;
}
.search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px 12px 46px;
  border: 1.5px solid var(--c-input);
  border-radius: var(--radius-pill);
  background: var(--c-white);
}
.search input:focus { outline: none; border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(19, 52, 42, .15); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted-2); pointer-events: none; }

/* ---------- Gjendje bosh ---------- */
.empty { padding: 56px 24px; text-align: center; color: var(--c-muted); background: var(--c-white); border-radius: var(--radius); border: 1px dashed var(--c-input); }
.empty strong { display: block; font-family: var(--f-display); font-size: 22px; color: var(--c-ink); margin-bottom: 8px; }

/* ---------- Shiriti "Përfshihu" ---------- */
.cta-band { background: var(--c-accent); color: var(--c-white); padding-block: clamp(72px, 8vw, 96px); }
.cta-band h2 { font-weight: 900; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; max-width: 760px; }
.cta-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 48px; }
.cta-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
  color: var(--c-white);
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.cta-card:hover { background: rgba(0, 0, 0, .28); color: var(--c-white); transform: translateY(-3px); }
.cta-card strong { font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.cta-card span { line-height: 1.55; opacity: .92; }
.cta-card em { margin-top: 10px; font-style: normal; font-weight: 700; }
.cta-card--light { background: var(--c-white); color: var(--c-ink); }
.cta-card--light span { opacity: 1; color: var(--c-text); }
.cta-card--light em { color: var(--c-green); }
.cta-card--light:hover { background: var(--c-green-50); color: var(--c-ink); }

/* ---------- Citati ---------- */
.quote-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.quote-band__text { flex: 1 1 520px; min-width: 0; }
.quote-band blockquote { margin: 20px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.01em; }
.quote-band__text p { margin-top: 28px; max-width: 620px; font-size: 17px; color: #BFD3C9; }
.quote-band__media { flex: 1 1 360px; min-height: 380px; border-radius: var(--radius-lg); --ph: #24503F; }
