/* Ensure main content is properly positioned below navbar */
main {
  padding-top: 80px; /* Account for fixed navbar */
  margin-top: 0; /* Override any default margin */
}

/* Join Our Community Section */
.join-community {
  background:
    linear-gradient(rgb(0 0 0 / 50%), rgb(0 0 0 / 50%)),
    url('../../assets/images/community-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.join-community::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 60%) 100%);
  z-index: 1;
}

.join-community .container {
  position: relative;
  z-index: 2;
}

.join-community h2 {
  color: white;
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.join-community p {
  color: rgb(255 255 255 / 95%);
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}

.join-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.join-button {
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.join-button.primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgb(var(--primary-color-rgb) 0.3);
}

.join-button.primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgb(var(--primary-color-rgb) 0.4);
}

.join-button.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgb(255 255 255 / 10%);
}

.join-button.secondary:hover {
  background-color: white;
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgb(255 255 255 / 20%);
}

/* About Details Section */
.about-details {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.about-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
  font-size: 2.5rem;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  max-width: 1210px;
  margin-left: auto;
  margin-right: auto;
}

.value-card {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 300px;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgb(0 0 0 / 15%);
}

.value-card i {
  font-size: 3rem;
  color: var(--primary-color);
  background: rgb(var(--primary-color-rgb) 0.1);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.value-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.value-card p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Impact Stats */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  max-width: 1210px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background-color: var(--white);
  padding: 3.5rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 250px;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgb(0 0 0 / 15%);
}

.stat-card i {
  font-size: 2.5rem;
  color: #4a90e2; /* Professional blue color */
  background: rgb(74 144 226 / 10%);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.stat-card::before {
  display: none;
}

.stat-card h3 {
  font-size: 3rem;
  color: var(--accent-color);
  margin: 0;
  font-weight: 700;
}

.stat-card p {
  color: var(--text-color);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  justify-items: center;
  max-width: 1210px;
  margin-left: auto;
  margin-right: auto;
}

.team-section {
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 4rem; /* Add spacing between Team and Join Community sections */
}

.team-member {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
  text-align: center;
  width: 100%;
  max-width: 350px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 2rem; /* Add top padding to the card */
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgb(0 0 0 / 15%);
}

.team-member img {
  width: 200px; /* Fixed width for consistency */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.team-member h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.team-member .member-role {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  font-weight: 500;
}

.team-member p:not(.member-role) {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0 2rem;
}

/* Responsive adjustments */
@media (width <= 1199px) {
  /* Screens <= 1199px: 2 cards per row */
  .values-grid,
  .impact-stats,
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .team-grid > *:last-child:nth-child(2n + 1) {
    grid-column: span 2;
    justify-self: center;
    max-width: 50%;
  }

  .value-card,
  .stat-card,
  .team-member {
    padding: 1.5rem;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }
}

@media (width <= 767px) {
  /* Screens <= 767px: 1 card per row */
  .values-grid,
  .impact-stats,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .stat-card,
  .team-member {
    padding: 1rem;
  }

  .value-card i,
  .stat-card i {
    font-size: 2rem;
  }

  .team-member {
    flex-direction: column;
    align-items: center;
  }
}

@media (width <= 768px) {
  /* Hero styles removed, should be handled by global hero.css */

  .about-section h2 {
    font-size: 1.8rem;
  }

  .join-community {
    padding: 3rem 0;
  }

  .join-community h2 {
    font-size: 1.8rem;
  }

  .join-community p {
    font-size: 0.9rem;
  }

  .join-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .join-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (width <= 576px) {
  /* Hero styles removed, should be handled by global hero.css */

  .about-section {
    margin-bottom: 3rem;
  }

  .value-card,
  .stat-card {
    padding: 1.5rem;
  }

  .team-grid {
    gap: var(--spacing-sm);
  }

  .team-member img {
    width: 80px;
    height: 80px;
  }
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.button {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgb(var(--primary-color-rgb) 0.3);
}

.primary-btn:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgb(var(--primary-color-rgb) 0.4);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgb(var(--primary-color-rgb) 0.1);
}

.secondary-btn:hover {
  background-color: white;
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgb(255 255 255 / 20%);
}

/* === Responsive Design === */
@media (width <= 992px) {
  /* All .about-hero related styles were removed from here. */

  /* Styles for .about-section h2 and p were already here and are kept if they don't conflict. */
  .about-section h2 {
    font-size: 2.5rem;
  }

  .about-section p {
    font-size: 1.1rem;
  }
}

/* Gray backgrounds for Values, Impact, and Team cards */
.value-card,
.stat-card,
.team-member {
  background-color: var(--bg-light-gray);
}

/* General page styling below, hero section styling removed */
