/* Community page */

.community-hero {
  padding: 80px 0 60px;
  background: #fff;
}

.community-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.community-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px;
  line-height: 1.2;
  text-align: center;
}

.community-subtitle {
  font-size: 1.3rem;
  color: #4b5563;
  margin: 0 auto 60px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
}

.section-container {
  margin-bottom: 80px;
}

.section-container:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 40px;
  text-align: center;
}

.map-container {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
  box-sizing: border-box;
}

#partnerMap {
  height: 600px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.community-hero .testimonial-tabs-block {
  margin-top: 0 !important;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-date {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.event-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 15px;
  line-height: 1.3;
}

.event-description {
  color: #4b5563;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0 0 20px;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.event-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.event-link:hover {
  color: #1d4ed8;
}

.community-partners-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

/* Community — mobile */
@media (max-width: 767px) {
  .community-hero {
    padding: clamp(24px, 5vh, 36px) 0 clamp(36px, 6vh, 48px);
  }

  .community-content {
    padding: 0 clamp(16px, 4vw, 20px);
  }

  .community-title {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.22 !important;
    text-align: left !important;
    margin-bottom: clamp(10px, 2.5vh, 14px) !important;
  }

  .community-subtitle {
    font-size: clamp(14px, 3.6vw, 16px) !important;
    line-height: 1.52 !important;
    font-weight: 300 !important;
    text-align: left !important;
    max-width: 100% !important;
    margin-bottom: clamp(28px, 5vh, 40px) !important;
  }

  .section-container {
    margin-bottom: clamp(36px, 6vh, 48px);
  }

  .section-title {
    font-size: clamp(22px, 5.6vw, 28px) !important;
    line-height: 1.25 !important;
    text-align: left !important;
    margin-bottom: clamp(16px, 3vh, 22px) !important;
  }

  .map-container {
    padding: clamp(12px, 3.2vw, 16px);
    border-radius: clamp(12px, 3vw, 16px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  #partnerMap {
    height: clamp(280px, 45vh, 400px);
    border-radius: clamp(10px, 2.5vw, 12px);
  }

  .community-hero .testimonial-tabs-block {
    margin-top: clamp(8px, 2vh, 12px) !important;
  }

  .community-hero .testimonials-tab-sub-block {
    margin-top: clamp(12px, 2.5vh, 16px) !important;
  }

  .community-hero .testimonials-sub-block-item-block .testimonials-tab-item-p,
  .community-hero .testimonials-sub-block-item-block-last .testimonials-tab-item-p {
    font-size: clamp(12px, 3.1vw, 14px) !important;
    line-height: 1.4 !important;
    font-weight: 300 !important;
    margin: 2px 0 0 !important;
    text-align: left !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .community-hero .testimonials-tab-item-text-block .sub-page-focus-button-third {
    margin-top: clamp(6px, 1.5vh, 10px) !important;
    padding: clamp(8px, 2.2vw, 10px) clamp(12px, 3.2vw, 16px) !important;
    min-height: 34px !important;
    align-self: flex-start !important;
  }

  .community-hero .testimonials-tab-item-text-block .sub-page-focus-button-third .focus-text {
    font-size: clamp(10px, 2.6vw, 12px) !important;
    line-height: 1.2 !important;
  }

  .community-hero .testimonials-tab-item-text-block .sub-page-focus-button-third .focus-icon-block {
    width: clamp(14px, 3.6vw, 16px) !important;
    height: clamp(14px, 3.6vw, 16px) !important;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: clamp(14px, 3vh, 18px);
  }

  .event-card {
    padding: clamp(16px, 4vw, 20px);
    border-radius: clamp(12px, 3vw, 14px);
    text-align: left;
  }

  .event-card:hover {
    transform: none;
  }

  .event-date {
    font-size: clamp(11px, 2.8vw, 12px);
    padding: 6px 12px;
    margin-bottom: clamp(12px, 2.5vh, 16px);
  }

  .event-title {
    font-size: clamp(17px, 4.4vw, 21px) !important;
    line-height: 1.28 !important;
  }

  .event-description {
    font-size: clamp(13px, 3.4vw, 15px) !important;
    line-height: 1.48 !important;
    margin-bottom: clamp(12px, 2.5vh, 16px);
  }

  .event-location {
    font-size: clamp(12px, 3.2vw, 14px);
    margin-bottom: clamp(10px, 2vh, 14px);
  }

  .event-link {
    font-size: clamp(13px, 3.4vw, 14px);
  }
}

@media (max-width: 480px) {
  .community-title {
    font-size: clamp(22px, 5.8vw, 28px) !important;
  }

  .community-subtitle {
    font-size: clamp(13px, 3.4vw, 15px) !important;
    line-height: 1.48 !important;
  }

  .section-title {
    font-size: clamp(20px, 5.2vw, 24px) !important;
  }

  #partnerMap {
    height: clamp(240px, 40vh, 320px);
  }

  .community-hero .testimonials-sub-block-item-block .testimonials-tab-item-p,
  .community-hero .testimonials-sub-block-item-block-last .testimonials-tab-item-p {
    font-size: clamp(11px, 3vw, 13px) !important;
    line-height: 1.38 !important;
  }

  .event-title {
    font-size: clamp(16px, 4.2vw, 19px) !important;
  }

  .event-description {
    font-size: clamp(12px, 3.2vw, 14px) !important;
  }

  .event-card {
    padding: clamp(14px, 3.6vw, 18px);
  }
}
