/* ===== COMMUNITY SECTION ===== */
.community-section {
  background-color: #f9f9f9;
  padding: 96px 0;
}

.community-title {
  font-size: 2.25rem;
  color: #181c20;
  line-height: 125%;
  margin-bottom: 8px;
}

.community-desc {
  font-size: 1rem;
  color: #3e4a3c;
  line-height: 100%;
  margin-bottom: 2rem;
}

/* ===== MAIN GRID ===== */
.community-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Left slightly wider */
  gap: 32px;
  align-items: start;
}

/* ===== LEFT: LARGE IMAGE ===== */
.community-main-img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.community-main-img {
  width: 100%;
  background-color: #a8c5a0; /* Green placeholder */
  border-radius: 16px;
}

/* ===== STATS OVERLAY ===== */
.community-stats {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  display: flex;
  gap: 32px;
  overflow: hidden;
  padding: 0 64px;
}

.community-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 32px;
  gap: 4px;
  background-color: rgba(0, 110, 37, 0.56);
  backdrop-filter: blur(4px);
  border-radius: 8px;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
  line-height: 140%;
}

/* ===== RIGHT COLUMN ===== */
.community-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
}

/* ===== SMALL IMAGE ===== */
.community-small-img {
  width: 100%;
  height: auto;
  background-color: #b0c4d8; /* Blue-grey placeholder */
  border-radius: 16px;
  flex-shrink: 0;
}

/* ===== QUOTE CARD ===== */
.community-quote-card {
  background-color: #ebf3ee;
  border-radius: 16px;
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: #181c20;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #181c20;
  line-height: 125%;
}

.author-title {
  font-size: 0.75rem;
  color: #181c20;
  font-weight: 600;
  line-height: 125%;
  font-family: "Inter", sans-serif;
}

/* ===== GLOBAL IMAGE FIX ===== */
.community-main-img img,
.community-small-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-main-img-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .community-main-img {
    width: 100%;
    height: 300px;
    overflow: hidden; /* ← Key fix: clips overflowing img */
  }

  .community-small-img {
    width: 100%;
    height: 200px;
    overflow: hidden; /* ← Key fix */
  }

  .community-title {
    font-size: 1.75rem;
  }

  .community-desc {
    font-size: 0.875rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .community-section {
    padding: 56px 0;
  }
  .community-main-img {
    height: 220px;
  }

  .community-small-img {
    height: 180px;
  }

  .community-stats {
    flex-direction: column;
    gap: 10px;
    bottom: 50%;
    transform: translateY(50%);
  }

  .community-stat-item:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}
