/* Global Vars (Reuse from index.css logic) */
:root {
  --green: #008a00;
  --orange: #ff981f;
  --blue: #1a96f0;
  --light-gray: #e9edeb;
  --white: #ffffff;
  --text: #000;
  --dark-text: #2c3e50;
}

/* ============================================
   HERO SECTION
   ============================================ */
.comm-hero-section {
  padding: 4rem 0;
  background-color: var(--white);
  overflow: hidden;
}

.comm-hero-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3rem;
}

.comm-hero-left {
  width: 100%;
}

.comm-hero-subheading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.comm-hero-heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.comm-hero-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.comm-hero-highlight {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.comm-hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-explore {
  background-color: var(--green);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.btn-explore:hover {
  background-color: #006e00;
}

.btn-join {
  background-color: var(--blue);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.btn-join:hover {
  background-color: #157abd;
}

.comm-hero-right {
  width: 100%;
  text-align: center;
}

.comm-hero-right img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .community-step-card-caption {
    font-size: 1.5rem;
    padding: 2rem 0;
  }

  .comm-hero-content {
    flex-direction: row;
    align-items: center;
  }
  .comm-hero-left {
    width: 45%;
  }
  .comm-hero-right {
    width: 55%;
  }

  .comm-hero-subheading {
    font-size: 2.5rem;
  }
  .comm-hero-heading {
    font-size: 3.5rem;
  }
  .comm-hero-text {
    font-size: 1.1rem;
  }
}

/* ============================================
   TRUSTED GROUP SECTION
   ============================================ */
.trusted-group-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.trusted-group-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.trusted-group-image {
  width: 100%;
}

.trusted-group-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.trusted-group-text {
  width: 100%;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.role-text {
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.benefit-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: #333;
  font-size: 1rem;
}

.benefit-list li::before {
  content: "•";
  color: #333;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.closing-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.green-text {
  color: var(--green);
}

@media (min-width: 992px) {
  .trusted-group-content {
    flex-direction: row;
    gap: 4rem;
  }
  .trusted-group-image {
    width: 45%;
  }
  .trusted-group-text {
    width: 55%;
  }
  .section-title {
    font-size: 2.5rem;
  }
}

/* ============================================
   WHY COMMUNITY CHANGES EVERYTHING
   ============================================ */
.why-community-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.why-community-header {
  margin-bottom: 2rem;
}

.why-community-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0;
  line-height: 1.2;
}

.why-community-header h2.green-text {
  color: var(--green);
}
.why-community-header h2:not(.green-text) {
  color: #333;
}

.why-community-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.why-community-left {
  width: 100%;
}

.pillars-label {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: #f9f9f9;
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.pillar-card:hover {
  transform: translateY(-2px);
}

.pillar-icon {
  min-width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon img {
  width: 100%;
  height: 100%;
}

.pillar-text h4 {
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.pillar-text p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.why-community-right {
  width: 100%;
}

.why-community-right img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

@media (min-width: 992px) {
  .why-community-content {
    flex-direction: row;
    align-items: center;
  }
  .why-community-left {
    width: 45%;
  }
  .why-community-right {
    width: 55%;
  }
}

/* ============================================
   COMMUNITIES THAT MOVE TOGETHER
   ============================================ */
.community-types-section {
  padding: 4rem 0 6rem;
  background-color: #f9f9f9;
}

.types-header {
  text-align: center;
  margin-bottom: 3rem;
}

.types-header h2 {
  font-size: 2rem;
  color: var(--green);
  font-weight: 800;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.type-card {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.type-card:hover {
  transform: translateY(-5px);
}

.gray-card {
  background-color: #e9e9e9;
}

.gray-card:hover {
  background-color: var(--green);
}

.green-card {
  background-color: var(--green);
  color: var(--white);
}

.type-icon-circle {
  width: 80px;
  height: 80px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.type-icon-circle img {
  width: 40px;
  height: 40px;
}

.type-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.type-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Green card overrides */
.green-card h3 {
  color: var(--white);
}
.green-card p {
  color: #eee;
}

/* Gray card overrides */
.gray-card h3 {
  color: var(--green);
  transition: color 0.3s ease;
}
.gray-card:hover h3 {
  color: var(--white);
}

.gray-card p {
  color: #333;
  transition: color 0.3s ease;
}
.gray-card:hover p {
  color: #eee;
}

.community-step-card-caption {
  padding: 1rem 0.5rem 0;
  font-size: 1rem;
  font-weight: 900;
  color: var(--orange);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .community-step-card-caption {
    font-size: 1.2rem;
    padding: 1.5rem 0;
  }

  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .types-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .types-header h2 {
    font-size: 2.5rem;
  }
}


/* ============================================
   GROWING SECTION
   ============================================ */
.growing-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.growing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.growing-header .section-title {
  color: var(--green);
}

.growing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.growing-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Soft shadow */
  background: #fff;
  transition: transform 0.3s ease;
}

.growing-card:hover {
  transform: translateY(-5px);
}

.growing-img {
  height: 200px;
  width: 100%;
}

.growing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.growing-text {
  padding: 1.5rem;
  background-color: #f7f7f7; /* Light gray background for text area */
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.growing-text p {
  font-size: 1rem;
  color: #333;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.control-section {
  text-align: center;
}

.orange-heading {
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}


@media (min-width: 768px) {
  .growing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   RULES SECTION
   ============================================ */
.rules-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.rules-content {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  align-items: center;
}

.rules-left {
  width: 100%;
}

.rules-left img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 400px;
}

.rules-right {
  width: 100%;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #f9f9f9;
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.rule-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.rule-icon img {
  width: 100%;
  height: 100%;
}

.rule-item p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

@media (min-width: 992px) {
  .rules-content {
    flex-direction: row;
    gap: 5rem;
  }
  .rules-left { width: 50%; }
  .rules-right { width: 50%; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.comm-cta-section {
  padding: 5rem 1rem;
  background-color: var(--white); /* Section bg is white, container will be green */
}

.comm-cta-section .container {
  background-color: var(--green);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-orange {
  background-color: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-orange:hover {
  background-color: #e58a1a;
}

.btn-white {
  background-color: var(--white);
  color: #333;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-white:hover {
  background-color: #f0f0f0;
}

@media (min-width: 768px) {
  .cta-content h2 {
    font-size: 2.8rem;
  }
}
