community-component {
  display: block;
  contain: layout paint style;
}

community-component,
community-component * {
  box-sizing: border-box;
}

/* Root layout & background */

community-component #community-root {
  position: relative;
  padding: 32px 0 72px;
  max-width: 1500px;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
}

community-component #community-root::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 8px;
  right: 8px;
  bottom: 0;
  border-radius: 28px;
  background: linear-gradient(100deg, #e9f3ff 0%, #e8f8ff 30%, #f7f3ff 65%, #e9fbea 100%);
  z-index: 0;
}

/* Page wrapper */

community-component .pn-community-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero section */

community-component .pn-community-hero {
  text-align: center;
  padding: 24px 16px 8px;
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

community-component .pn-community-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #173368;
  margin: 0 0 14px;
  line-height: 1.15;
}

community-component .pn-community-hero h1 small {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: #173368;
  margin-top: 8px;
}

community-component .pn-community-hero-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1e293b;
  margin: 0 0 22px;
}

/* CTA styles (currently no button in markup, kept για μελλοντική χρήση) */

community-component .pn-community-cta {
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  border-radius: 999px;
  padding: 12px 30px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease-out, box-shadow 0.15s ease-out, background 0.12s ease-out;
  cursor: pointer;
}

community-component .pn-community-cta::after {
  content: "→";
  font-size: 1.05rem;
  transform: translateX(0);
  transition: transform 0.12s ease-out;
}

community-component .pn-community-cta:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

community-component .pn-community-cta:hover::after {
  transform: translateX(3px);
}

/* Stats strip */

community-component .pn-community-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  padding: 20px 18px 10px;
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

community-component .pn-community-stat {
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 260px;
  padding: 18px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

community-component .pn-community-stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}

community-component .pn-community-stat-label {
  display: block;
  font-size: 0.97rem;
  font-weight: 500;
  color: #475569;
}

/* Benefits grid */

community-component .pn-community-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 18px 10px;
  position: relative;
  z-index: 1;
}

community-component .pn-community-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.3);
  position: relative;
  overflow: hidden;
}

community-component .pn-community-card::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #bfdbfe 0%, #e0f2fe 50%, transparent 70%);
  opacity: 0.9;
}

community-component .pn-community-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

community-component .pn-community-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #1f2933;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Responsive */

@media (max-width: 900px) {
  community-component .pn-community-hero h1 {
    font-size: 2.4rem;
  }

  community-component .pn-community-hero h1 small {
    font-size: 1.5rem;
  }

  community-component .pn-community-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  community-component #community-root {
    padding: 28px 0 64px;
  }

  community-component #community-root::before {
    top: 8px;
    left: 6px;
    right: 6px;
    border-radius: 22px;
  }

  community-component .pn-community-hero {
    padding-top: 20px;
  }

  community-component .pn-community-hero h1 {
    font-size: 2.1rem;
  }

  community-component .pn-community-hero h1 small {
    font-size: 1.3rem;
  }

  community-component .pn-community-hero-text {
    font-size: 0.98rem;
  }

  community-component .pn-community-stats {
    gap: 12px;
    padding-top: 16px;
  }

  community-component .pn-community-benefits {
    grid-template-columns: 1fr;
    margin-top: 18px;
    gap: 16px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  community-component .pn-community-cta {
    transition: none;
  }
}