/* ============================================================
   MEILS – COMMUNITY PAGE
============================================================ */

/* ── Hero ── */
.comm-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 55%, #1a8080 100%);
  padding: 120px 0 72px;
  position: relative; overflow: hidden;
}
.comm-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(62,201,110,.15) 0%, transparent 60%);
}
.comm-hero-content {
  position: relative; z-index: 1; max-width: 700px;
}
.comm-hero-content h1 {
  font-size: 2.8rem; font-weight: 800; color: #fff;
  line-height: 1.2; margin: 14px 0 16px;
}
.comm-hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 28px;
}
.comm-hero-pills {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.comm-hero-pills span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}
.comm-hero-pills span i { color: var(--green-bright); }

/* ── Label ── */
.comm-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-mid);
  background: rgba(15,94,94,.08); padding: 4px 12px;
  border-radius: 999px; margin-bottom: 14px;
}
.comm-section-head { text-align: center; margin-bottom: 48px; }
.comm-section-head h2 {
  font-size: 1.75rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px;
}
.comm-section-head p {
  font-size: .9rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ── About section ── */
.comm-about { padding: 80px 0; background: var(--gray-bg); }
.comm-about-inner {
  display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start;
}
.comm-about-text .comm-label { margin-bottom: 14px; }
.comm-about-text h2 {
  font-size: 1.75rem; font-weight: 800; color: var(--text-dark);
  line-height: 1.25; margin-bottom: 18px;
}
.comm-about-text p {
  font-size: .9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px;
}

.comm-values { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.comm-value {
  display: flex; align-items: flex-start; gap: 14px;
}
.comm-value > i {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(15,94,94,.08); color: var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.comm-value div { display: flex; flex-direction: column; gap: 3px; }
.comm-value strong { font-size: .88rem; font-weight: 700; color: var(--text-dark); }
.comm-value span { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

/* Stat card */
.comm-stat-card {
  background: #fff; border: 1.5px solid var(--gray-border); border-radius: var(--radius);
  padding: 32px 24px; display: flex; flex-direction: column; gap: 0;
  position: sticky; top: 100px;
}
.comm-stat { display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.comm-stat-num { font-size: 2.2rem; font-weight: 800; color: var(--teal-mid); line-height: 1; }
.comm-stat-lbl { font-size: .75rem; color: var(--text-muted); margin-top: 6px; text-align: center; }
.comm-stat-divider { width: 100%; height: 1px; background: var(--gray-border); }

/* ── Pillars ── */
.comm-pillars { padding: 80px 0; background: #fff; }
.comm-pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.comm-pillar-card {
  border: 1.5px solid var(--gray-border); border-radius: var(--radius);
  padding: 28px 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.comm-pillar-card:hover {
  border-color: var(--teal-mid); box-shadow: var(--shadow); transform: translateY(-3px);
}
.comm-pillar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}
.cp-green { background: linear-gradient(135deg, #1a6a2a, var(--green)); }
.cp-teal  { background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid)); }
.cp-dark  { background: linear-gradient(135deg, #0a3333, var(--teal-dark)); }
.cp-lime  { background: linear-gradient(135deg, var(--teal-mid), var(--teal-light)); }

.comm-pillar-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.comm-pillar-card p  { font-size: .82rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.comm-pillar-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.comm-pillar-card li {
  display: flex; align-items: center; gap: 9px;
  font-size: .78rem; color: var(--text-muted);
}
.comm-pillar-card li i { color: var(--green); font-size: .75rem; flex-shrink: 0; }

/* ── Feed ── */
.comm-feed { padding: 80px 0; background: var(--gray-bg); }
.comm-feed-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.comm-feed-card {
  background: #fff; border: 1.5px solid var(--gray-border); border-radius: var(--radius);
  padding: 28px 24px; display: flex; gap: 18px;
  transition: border-color .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.comm-feed-card:hover { border-color: var(--teal-mid); box-shadow: var(--shadow); }
.comm-feed-featured {
  grid-column: 1 / -1; background: linear-gradient(135deg, #f0faf5 0%, #e8f8f0 100%);
  border-color: rgba(15,94,94,.2);
}
.comm-feed-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--green); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
}
.comm-feed-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(15,94,94,.08); color: var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.comm-feed-icon-wrap.sm { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
.comm-feed-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.comm-feed-tag {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  width: fit-content;
}
.comm-feed-tag.team      { background: rgba(62,201,110,.12); color: #1a6a2a; }
.comm-feed-tag.milestone { background: rgba(15,94,94,.1); color: var(--teal-dark); }
.comm-feed-tag.knowledge { background: rgba(59,130,246,.1); color: #1d4ed8; }
.comm-feed-tag.partner   { background: rgba(245,158,11,.1); color: #92400e; }

.comm-feed-body h3 { font-size: .95rem; font-weight: 700; color: var(--text-dark); }
.comm-feed-body p  { font-size: .82rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.comm-feed-date { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.comm-feed-more {
  text-align: center; margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.comm-feed-more p { font-size: .9rem; color: var(--text-muted); }
.btn-outline-teal {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--cta-orange); color: var(--cta-orange);
  background: transparent; padding: 11px 24px; border-radius: 8px;
  font-size: .88rem; font-weight: 700; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline-teal:hover { background: var(--cta-orange); color: #fff; }

/* ── CTA ── */
.comm-cta {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  padding: 80px 24px; position: relative; overflow: hidden;
}
.comm-cta-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(62,201,110,.15) 0%, transparent 60%);
}
.comm-cta-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.comm-cta-text h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.comm-cta-text p  { font-size: .9rem; color: rgba(255,255,255,.82); max-width: 480px; line-height: 1.7; }
.comm-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .comm-pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .comm-about-inner { grid-template-columns: 1fr; }
  .comm-stat-card { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .comm-stat { flex-direction: row; gap: 12px; padding: 12px 0; }
  .comm-stat-divider { width: 1px; height: auto; }
}
@media (max-width: 768px) {
  .comm-hero { padding: 100px 24px 56px; }
  .comm-hero-content h1 { font-size: 2rem; }
  .comm-pillars-grid { grid-template-columns: 1fr; }
  .comm-feed-grid { grid-template-columns: 1fr; }
  .comm-feed-featured { grid-column: 1; }
  .comm-cta-content { flex-direction: column; text-align: center; }
  .comm-cta-actions { justify-content: center; }
}
