/**
 * Támogatható projektek – modern frontend v3.3
 * Illeszkedik a 10milliofa témához (Coustard, #E6EAD6, tmf-btn)
 */
.tmf-life--projektek-fund,
.tmf-life--projektek-fund-single {
  --fund-forest: #193124;
  --fund-green: #3d7a2e;
  --fund-green-light: #5a9a48;
  --fund-title: #385244;
  --fund-text: #2b3a30;
  --fund-muted: #6b7a6e;
  --fund-cream: #f2f5ea;
  --fund-surface: #fafbf7;
  --fund-card: #ffffff;
  --fund-border: rgba(25, 49, 36, .1);
  --fund-radius: 16px;
  --fund-radius-sm: 10px;
  --fund-shadow: 0 12px 40px rgba(25, 49, 36, .08);
  --fund-shadow-sm: 0 4px 16px rgba(25, 49, 36, .06);
  --fund-ease: cubic-bezier(.4, 0, .2, 1);
}

.tmf-life--projektek-fund {
  padding: 0 0 80px;
  background: transparent;
}
.tmf-life--projektek-fund > .tmf-container,
.tmf-life--projektek-fund-single > .tmf-container {
  position: relative;
  z-index: 3;
}

/* ===== Közös gombok (egységes rendszer) ===== */
.tmf-fund-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid var(--fund-border);
  text-decoration: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .2s var(--fund-ease);
  color: var(--fund-forest);
  background: var(--fund-card);
}
.tmf-fund-btn:hover {
  border-color: var(--fund-green);
  transform: translateY(-1px);
  box-shadow: var(--fund-shadow-sm);
}
.tmf-fund-btn--outline {
  background: var(--fund-card);
  border-color: rgba(25, 49, 36, .2);
}
.tmf-fund-btn--outline:hover {
  background: var(--fund-cream);
}
.tmf-fund-btn--company {
  background: var(--fund-cream);
  border-color: rgba(25, 49, 36, .15);
  margin-top: 10px;
}
.tmf-fund-btn--block { width: 100%; }
.tmf-fund-btn--compact {
  padding: 11px 16px !important;
  font-size: 13px !important;
  flex: 1;
  min-width: 0;
  border-radius: 6px !important;
}

/* ===== Szekció fejlécek ===== */
.tmf-fund-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tmf-fund-sec-head--center {
  justify-content: center;
  text-align: center;
}
.tmf-fund-sec-head--center .tmf-section-title { margin-bottom: 10px; }
.tmf-fund-sec-head .tmf-section-title--left {
  text-align: left;
  margin: 0 0 8px;
  padding-top: 0;
}
.tmf-fund-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--fund-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 0;
}
.tmf-fund-link:hover { text-decoration: underline; }

/* ===== Hero ===== */
.tmf-fund-hero {
  padding: 16px 0 8px;
  position: relative;
  z-index: 2;
}
.tmf-fund-hero__panel {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 36px 44px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(123, 201, 111, .18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 80% 100%, rgba(25, 49, 36, .06), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(250, 251, 247, .75) 100%);
  border: 1px solid var(--fund-border);
  box-shadow: var(--fund-shadow);
  backdrop-filter: blur(8px);
}
.tmf-fund-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fund-muted);
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(61, 122, 46, .08);
}
.tmf-fund-hero__eyebrow .ti { color: var(--fund-green); font-size: 15px; }
.tmf-fund-hero__title {
  font-family: "Coustard", Georgia, serif;
  font-size: clamp(2.25rem, 5.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fund-title);
  margin: 0 0 14px;
}
.tmf-fund-hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--fund-text);
  margin: 0 0 12px;
  line-height: 1.4;
}
.tmf-fund-hero__lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fund-muted);
  margin: 0 auto 26px;
  max-width: 54ch;
}
.tmf-fund-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tmf-fund-hero__cta .tmf-fund-btn--outline {
  padding: 14px 28px;
}

/* ===== Stats bento ===== */
.tmf-fund-stats-bar { padding: 20px 0 36px; position: relative; z-index: 2; }
.tmf-fund-stats {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, 1fr);
  gap: 14px;
}
.tmf-fund-stats__card {
  background: var(--fund-card);
  border: 1px solid var(--fund-border);
  border-radius: var(--fund-radius);
  padding: 22px 20px;
  box-shadow: var(--fund-shadow-sm);
  text-align: center;
  transition: transform .2s var(--fund-ease), box-shadow .2s;
}
.tmf-fund-stats__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fund-shadow);
}
.tmf-fund-stats__card--hero {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  background: linear-gradient(135deg, var(--fund-forest) 0%, #1f4b33 100%);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tmf-fund-stats__card--hero::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(123, 201, 111, .2), transparent 70%);
  pointer-events: none;
}
.tmf-fund-stats__card--hero .tmf-fund-stats__icon {
  background: rgba(255, 255, 255, .12);
  color: #a8e6a0;
}
.tmf-fund-stats__card--hero .tmf-fund-stats__num { color: #fff; font-size: clamp(2rem, 4vw, 2.6rem); }
.tmf-fund-stats__card--hero .tmf-fund-stats__lab { color: rgba(255, 255, 255, .65); }
.tmf-fund-stats__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--fund-cream);
  color: var(--fund-green);
  font-size: 22px;
  margin-bottom: 12px;
}
.tmf-fund-stats__num {
  font-family: "Coustard", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--fund-forest);
}
.tmf-fund-stats__lab {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--fund-muted);
  margin-top: 6px;
}

/* ===== Kategóriák ===== */
.tmf-fund-cats { padding: 4px 0 32px; }
.tmf-fund-cats__track {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.tmf-fund-cat {
  flex: 0 0 auto;
  width: 100px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  opacity: .7;
  transition: opacity .2s, transform .2s var(--fund-ease);
}
.tmf-fund-cat:hover,
.tmf-fund-cat.is-active { opacity: 1; transform: translateY(-3px); }
.tmf-fund-cat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--fund-card);
  border: 2px solid var(--fund-border);
  color: var(--fund-green);
  font-size: 26px;
  transition: all .2s var(--fund-ease);
  box-shadow: var(--fund-shadow-sm);
}
.tmf-fund-cat.is-active .tmf-fund-cat__icon {
  background: var(--fund-forest);
  border-color: var(--fund-forest);
  color: #a8e6a0;
  box-shadow: 0 8px 24px rgba(25, 49, 36, .2);
}
.tmf-fund-cat:hover:not(.is-active) .tmf-fund-cat__icon {
  border-color: var(--fund-green);
}
.tmf-fund-cat__title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fund-title);
}

/* ===== Carousel ===== */
.tmf-fund-carousel-sec { padding: 12px 0 48px; }
.tmf-fund-carousel-sec__intro {
  margin: 0;
  font-size: 15px;
  color: var(--fund-muted);
  max-width: 48ch;
  line-height: 1.6;
}
.tmf-fund-carousel { position: relative; padding: 0 52px; }
.tmf-fund-carousel__viewport { overflow: hidden; border-radius: var(--fund-radius-sm); }
.tmf-fund-carousel__track {
  display: flex;
  transition: transform .5s var(--fund-ease);
}
.tmf-fund-carousel__slide {
  flex: 0 0 33.333%;
  padding: 0 10px;
  box-sizing: border-box;
}
.tmf-fund-carousel__slide.is-hidden { display: none; }
.tmf-fund-carousel__nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--fund-border);
  background: var(--fund-card);
  color: var(--fund-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--fund-shadow-sm);
  z-index: 2;
  transition: all .2s;
}
.tmf-fund-carousel__nav:hover:not(:disabled) {
  background: var(--fund-forest);
  color: #fff;
  border-color: var(--fund-forest);
}
.tmf-fund-carousel__nav--prev { left: 0; }
.tmf-fund-carousel__nav--next { right: 0; }
.tmf-fund-carousel__nav:disabled { opacity: .25; cursor: default; }
.tmf-fund-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.tmf-fund-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(25, 49, 36, .18);
  padding: 0;
  cursor: pointer;
  transition: all .2s;
}
.tmf-fund-carousel__dot.is-active {
  background: var(--fund-green);
  width: 24px;
  border-radius: 999px;
}

/* ===== Projektkártya ===== */
.tmf-fund-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--fund-card);
  border: 1px solid var(--fund-border);
  border-radius: var(--fund-radius);
  overflow: hidden;
  box-shadow: var(--fund-shadow-sm);
  transition: transform .25s var(--fund-ease), box-shadow .25s;
}
.tmf-fund-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fund-shadow);
}
.tmf-fund-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #dfe8d4, #c8d4bc);
  overflow: hidden;
  text-decoration: none;
}
.tmf-fund-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--fund-ease);
}
.tmf-fund-card:hover .tmf-fund-card__media img { transform: scale(1.04); }
.tmf-fund-card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(25, 49, 36, .25) 100%);
  pointer-events: none;
}
.tmf-fund-card__ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fund-green);
  font-size: 48px;
}
.tmf-fund-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: var(--fund-green);
  backdrop-filter: blur(4px);
}
.tmf-fund-card__badge {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.tmf-fund-card__badge--feat {
  left: 12px;
  bottom: 12px;
  background: #eebb07;
  color: var(--fund-forest);
}
.tmf-fund-card__badge--st {
  top: 12px;
  right: 12px;
  background: var(--st-color, #7d8f96);
}
.tmf-fund-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tmf-fund-card__title {
  font-family: "Coustard", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 6px;
}
.tmf-fund-card__title a {
  color: var(--fund-title);
  text-decoration: none;
  transition: color .15s;
}
.tmf-fund-card__title a:hover { color: var(--fund-green); }
.tmf-fund-card__meta {
  font-size: 12px;
  color: var(--fund-muted);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tmf-fund-card__excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fund-muted);
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tmf-fund-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--fund-muted);
  margin-bottom: 12px;
}
.tmf-fund-card__metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tmf-fund-card__metric .ti { color: var(--fund-green); font-size: 14px; }
.tmf-fund-card__metrics strong { color: var(--fund-text); }
.tmf-fund-card__progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.tmf-fund-card__progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(25, 49, 36, .1);
  overflow: hidden;
}
.tmf-fund-card__progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fund-green), var(--fund-green-light));
  transition: width .4s var(--fund-ease);
}
.tmf-fund-card__pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--fund-green);
  min-width: 38px;
  text-align: right;
}
.tmf-fund-card__goal {
  font-size: 12px;
  color: var(--fund-muted);
  margin: 0 0 14px;
}
.tmf-fund-card__goal strong { color: var(--fund-text); }
.tmf-fund-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ===== Térkép szekció ===== */
.tmf-fund-map-sec { padding: 32px 0 52px; }
.tmf-fund-map-sec__lead {
  max-width: 54ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fund-muted);
}
.tmf-fund-map-sec__hint {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.tmf-fund-map-sec__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fund-title);
  background: var(--fund-card);
  border: 1px solid var(--fund-border);
  box-shadow: var(--fund-shadow-sm);
}
.tmf-fund-map-sec__body {
  background: var(--fund-card);
  border: 1px solid var(--fund-border);
  border-radius: var(--fund-radius);
  padding: 20px;
  box-shadow: var(--fund-shadow);
}
.tmf-fund-map-sec #mapwrap { min-height: 380px; border-radius: var(--fund-radius-sm); overflow: hidden; }

/* ===== Céges CTA ===== */
.tmf-fund-company { padding: 24px 0 16px; }
.tmf-fund-company__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(135deg, var(--fund-cream) 0%, #e8ede0 45%, #f3f1e1 100%);
  border: 1px solid var(--fund-border);
  border-radius: var(--fund-radius);
  padding: 44px 48px;
  box-shadow: var(--fund-shadow);
  position: relative;
  overflow: hidden;
}
.tmf-fund-company__inner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(61, 122, 46, .12), transparent 70%);
  pointer-events: none;
}
.tmf-fund-company__copy .tmf-section-title--left {
  margin-bottom: 12px;
  padding-top: 0;
}
.tmf-fund-company__copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fund-muted);
  margin-bottom: 20px;
  max-width: 48ch;
}
.tmf-fund-company__visual { display: flex; justify-content: center; }
.tmf-fund-company__illus {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--fund-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 52px;
  color: var(--fund-green);
  box-shadow: var(--fund-shadow-sm);
}

/* ===== SINGLE – Hero ===== */
.tmf-fund-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fund-green);
  text-decoration: none;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(61, 122, 46, .08);
  transition: background .15s;
}
.tmf-fund-back:hover { background: rgba(61, 122, 46, .14); }

.tmf-fund-single-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 0;
  border-radius: var(--fund-radius);
  overflow: hidden;
  border: 1px solid var(--fund-border);
  box-shadow: var(--fund-shadow);
  margin-bottom: 28px;
  background: var(--fund-card);
}
.tmf-fund-single-hero__media {
  position: relative;
  min-height: 320px;
  background: var(--fund-cream);
}
.tmf-fund-single-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}
.tmf-fund-card__ph--hero {
  min-height: 320px;
  font-size: 64px;
}
.tmf-fund-single-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(25, 49, 36, .15) 100%);
  pointer-events: none;
}
.tmf-fund-single-hero__content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tmf-fund-single-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tmf-fund-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--pill-color, var(--fund-green));
}
.tmf-fund-pill--muted {
  background: var(--fund-cream);
  color: var(--fund-title);
  border: 1px solid var(--fund-border);
}
.tmf-fund-pill--feat {
  background: #eebb07;
  color: var(--fund-forest);
}
.tmf-fund-single-hero__title {
  font-family: "Coustard", Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.12;
  color: var(--fund-title);
  margin: 0 0 10px;
}
.tmf-fund-single-hero__loc {
  font-size: 14px;
  color: var(--fund-muted);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tmf-fund-single-hero__excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fund-muted);
  margin: 0 0 18px;
}
.tmf-fund-single-hero__progress { margin-top: auto; }
.tmf-fund-single-hero__progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fund-muted);
  margin-top: 8px;
}
.tmf-fund-single-hero__progress-meta strong { color: var(--fund-forest); }
.tmf-fund-single-hero__pct {
  font-weight: 700;
  color: var(--fund-green);
}

/* ===== SINGLE – Layout ===== */
.tmf-fund-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding-bottom: 56px;
}
.tmf-fund-block {
  display: flex;
  gap: 18px;
  padding: 24px 26px;
  background: var(--fund-card);
  border: 1px solid var(--fund-border);
  border-radius: var(--fund-radius);
  margin-bottom: 16px;
  box-shadow: var(--fund-shadow-sm);
}
.tmf-fund-block__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--fund-cream);
  color: var(--fund-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.tmf-fund-block__body h2 {
  font-family: "Coustard", Georgia, serif;
  font-size: 1.25rem;
  color: var(--fund-title);
  margin: 0 0 10px;
}
.tmf-fund-block__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fund-muted);
}
.tmf-fund-detail__story p { margin-bottom: 12px; }

.tmf-fund-facts-wrap { margin: 28px 0; }
.tmf-fund-facts-wrap__title {
  font-family: "Coustard", Georgia, serif;
  font-size: 1.35rem;
  color: var(--fund-title);
  margin: 0 0 16px;
}
.tmf-fund-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.tmf-fund-fact {
  background: var(--fund-card);
  border: 1px solid var(--fund-border);
  border-radius: var(--fund-radius-sm);
  padding: 16px 18px;
  box-shadow: var(--fund-shadow-sm);
}
.tmf-fund-fact__lab {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fund-muted);
  margin-bottom: 6px;
}
.tmf-fund-fact__val {
  font-size: 1.1rem;
  color: var(--fund-forest);
  font-weight: 600;
}

.tmf-fund-gallery-wrap h2 {
  font-family: "Coustard", Georgia, serif;
  font-size: 1.35rem;
  color: var(--fund-title);
  margin: 0 0 16px;
}
.tmf-fund-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.tmf-fund-gallery__item {
  display: block;
  border-radius: var(--fund-radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--fund-shadow-sm);
  transition: transform .2s;
}
.tmf-fund-gallery__item:hover { transform: scale(1.02); }
.tmf-fund-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmf-fund-notify {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--fund-cream), #e8ede0);
  border: 1px solid var(--fund-border);
  border-radius: var(--fund-radius);
}
.tmf-fund-notify__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fund-card);
  color: var(--fund-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--fund-shadow-sm);
}
.tmf-fund-notify p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--fund-text);
  line-height: 1.5;
}

/* ===== Donation box ===== */
.tmf-fund-donate__box {
  background: var(--fund-card);
  border: 1px solid var(--fund-border);
  border-radius: var(--fund-radius);
  padding: 24px;
  box-shadow: var(--fund-shadow);
}
.tmf-fund-donate__head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.tmf-fund-donate__ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.tmf-fund-donate__ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.tmf-fund-donate__ring-bg {
  fill: none;
  stroke: rgba(25, 49, 36, .1);
  stroke-width: 6;
}
.tmf-fund-donate__ring-fill {
  fill: none;
  stroke: var(--fund-green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  transition: stroke-dashoffset .5s var(--fund-ease);
}
.tmf-fund-donate__ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--fund-green);
}
.tmf-fund-donate__title {
  font-family: "Coustard", Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--fund-title);
  line-height: 1.25;
}
.tmf-fund-donate__status {
  font-size: 12px;
  font-weight: 600;
  color: var(--st-color, var(--fund-muted));
  margin: 0;
}
.tmf-fund-donate__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.tmf-fund-donate__stat {
  padding: 12px 14px;
  background: var(--fund-surface);
  border-radius: var(--fund-radius-sm);
  border: 1px solid var(--fund-border);
}
.tmf-fund-donate__stat-lab {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fund-muted);
  margin-bottom: 4px;
}
.tmf-fund-donate__stat strong {
  font-size: 1.15rem;
  color: var(--fund-forest);
}
.tmf-fund-donate__stat strong small {
  font-size: .75em;
  font-weight: 500;
  color: var(--fund-muted);
}
.tmf-fund-donate__bar { margin-bottom: 18px; }
.tmf-fund-donate__btns { display: grid; gap: 10px; }
.tmf-fund-donate__btns-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tmf-fund-donate__btns-row .tmf-fund-btn {
  padding: 10px 8px;
  font-size: 13px;
}
.tmf-fund-donate__note {
  font-size: 14px;
  color: var(--fund-muted);
  text-align: center;
  padding: 14px;
  background: var(--fund-surface);
  border-radius: var(--fund-radius-sm);
  margin: 0;
}
.tmf-fund-detail__aside .tmf-fund-donate--desktop {
  position: sticky;
  top: calc(var(--header-h, 80px) + 24px);
}
.tmf-fund-donate--mobile { display: none; margin-bottom: 24px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .tmf-fund-stats { grid-template-columns: repeat(2, 1fr); }
  .tmf-fund-stats__card--hero { grid-column: span 2; }
  .tmf-fund-carousel__slide { flex-basis: 50%; }
  .tmf-fund-single-hero { grid-template-columns: 1fr; }
  .tmf-fund-single-hero__shade {
    background: linear-gradient(180deg, transparent 40%, rgba(25, 49, 36, .2) 100%);
  }
  .tmf-fund-detail { grid-template-columns: 1fr; }
  .tmf-fund-detail__aside { display: none; }
  .tmf-fund-donate--mobile { display: block; }
}

@media (max-width: 720px) {
  .tmf-fund-hero__panel { padding: 28px 22px 32px; border-radius: 18px; }
  .tmf-fund-hero__cta { flex-direction: column; }
  .tmf-fund-hero__cta .tmf-btn,
  .tmf-fund-hero__cta .tmf-fund-btn--outline { width: 100%; text-align: center; }
  .tmf-fund-stats { grid-template-columns: 1fr; }
  .tmf-fund-stats__card--hero { grid-column: span 1; }
  .tmf-fund-cats__track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .tmf-fund-cat { scroll-snap-align: start; flex-shrink: 0; }
  .tmf-fund-carousel { padding: 0 44px; }
  .tmf-fund-carousel__slide { flex-basis: 100%; }
  .tmf-fund-company__inner { grid-template-columns: 1fr; padding: 28px 24px; }
  .tmf-fund-sec-head { flex-direction: column; align-items: flex-start; }
  .tmf-fund-single-hero__content { padding: 24px 22px; }
  .tmf-fund-block { flex-direction: column; padding: 20px; }
  .tmf-fund-donate__btns-row { grid-template-columns: 1fr; }
}

@media (min-width: 721px) {
  .tmf-fund-cats__track { flex-wrap: wrap; }
}
