.community-section {
  position: relative;
  min-height: 60vh;
  width: calc(100% - 4rem);
  margin: 2rem;
  background-image: url("../../assets/home/IMG_1864.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-radius: 1rem;
  overflow: hidden;
}

.community-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(48, 92, 222, 0.2),
    rgba(26, 35, 126, 0.9)
  );
  z-index: 1;
  pointer-events: none;
}

.community-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  height: 100%;
  min-height: 50vh;
}

.community-container i {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--primary-2);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.community-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-black);
  color: var(--neutral-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.community-description {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 5vw, 1.9rem);
  color: var(--neutral-light);
  line-height: 1.8;
  max-width: 50rem;
  font-weight: var(--fw-medium);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  font-style: italic;
}

@media (max-width: 1080px) {
  .community-section {
    min-height: 45vh;
    width: calc(100% - 3rem);
    margin: 1.5rem;

    background-attachment: scroll;

    background-position: center center;
  }

  .community-container {
    padding: 3rem 1.5rem;
  }

  .community-section::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .community-container i {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.25rem;
  }

  .community-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1.25rem;
  }

  .community-description {
    font-size: clamp(1rem, 5vw, 1.8rem);
  }
}

@media (max-width: 900px) {
  .community-section {
    min-height: 40vh;
    width: calc(100% - 3rem);
    margin: 1.5rem;
  }

  .community-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .community-description {
    font-size: clamp(0.95rem, 5vw, 2rem);
    max-width: 40rem;
  }
}

@media (max-width: 768px) {
  .community-section {
    min-height: 50vh;
    width: calc(100% - 3rem);
    margin: 1.5rem;
  }

  .community-container {
    padding: 2.5rem 1.25rem;
  }

  .community-container i {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .community-section::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .community-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1rem;
  }

  .community-description {
    font-size: clamp(0.95rem, 5vw, 1.2rem);
    max-width: 40rem;
  }
}

@media (max-width: 480px) {
  .community-section {
    min-height: 50vh;
    width: calc(100% - 2rem);
    margin: 1rem;
  }

  .community-section::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .community-container {
    padding: 2rem 1rem;
  }

  .community-container i {
    font-size: 2rem;
    margin-bottom: 0.875rem;
  }

  .community-title {
    font-size: 1.8rem;
    margin-bottom: 0.875rem;
  }

  .community-description {
    font-size: 1.5rem;
    line-height: 1.6;
  }
}

@media (max-width: 400px) {
  .community-section {
    min-height: 55vh;
    width: calc(100% - 1.5rem);
    margin: 0.75rem;
  }

  .community-section::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .community-container {
    padding: 1.75rem 0.875rem;
    min-height: 55vh;
  }

  .community-container i {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .community-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .community-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 375px) {
  .community-title {
    font-size: 1.85rem;
  }
}
