/* Community Page */

.community-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  background-color: #ffffff;
  width: 100%;
}

/* ── Hero ──────────────────────────────────────────────────── */
.community-hero-modern {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ffffff;
  overflow: hidden;
}

@media (min-width: 800px) {
  .community-hero-modern {
    min-height: 700px;
  }
}

@media (min-width: 1200px) {
  .community-hero-modern {
    min-height: 800px;
  }
}

.hero-background-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: none;
}

@media (min-width: 1200px) {
  .hero-background-image {
    display: none;
  }
  .hero-background-video {
    display: block;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(51, 3, 70) 0%, rgba(0, 0, 0, 0.9) 80%);
  z-index: 1;
}

.community-hero-modern .site-nav {
  position: relative;
  z-index: 10;
}

/* ── Hero content ──────────────────────────────────────────── */
.hero-content-modern {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 800px) {
  .hero-content-modern {
    padding: 60px 50px;
  }
}

@media (min-width: 1200px) {
  .hero-content-modern {
    padding: 80px;
  }
}

.hero-title-large {
  font-family: "Gotham-Black", Helvetica;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  margin-bottom: 20px;
  text-transform: lowercase;
  letter-spacing: -1px;
}

.text-gradient {
  background: linear-gradient(90deg, #FF7F51 0%, #CE4257 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-large {
  font-family: "DM Sans", Helvetica;
  font-size: clamp(16px, 2vw, 22px);
  max-width: 800px;
  line-height: 1.6;
  margin: 0 auto 40px;
}

.hero-cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.button-primary-large {
  padding: 20px;
  background: #CE4257;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-family: "Gotham-Bold", Helvetica;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.button-primary-large:hover {
  background: #a02c60;
  transform: translateY(-2px);
}

.button-secondary-large {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-family: "Gotham-Bold", Helvetica;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-secondary-large:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 800px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 40px;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: "Gotham-Bold", Helvetica;
  font-size: clamp(24px, 3vw, 32px);
  color: #ffffff;
}

.stat-label {
  font-family: "DM Sans", Helvetica;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  text-align: center;
}

/* ── Hub wrapper background ─────────────────────────────────── */
.hub--wrapper {
  background-color: #330346;
  width: 100%;
}

/* ── Hubs section ──────────────────────────────────────────── */
.section-modern.hubs-section {
  background: #ffffff;
  padding: 50px 30px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .section-modern.hubs-section {
    padding: 50px;
  }
}

@media (min-width: 1200px) {
  .section-modern.hubs-section {
    padding: 80px;
  }
}

@media (min-width: 1440px) {
  .section-modern.hubs-section {
    padding: 60px 90px 50px;
  }
}

.section-header-modern {
  display: flex;
  margin-bottom: 50px;
}

.section-header-modern .header-content {
  margin: 0 auto;
}

.section-title-modern {
  font-family: "Gotham-Bold", Helvetica;
  font-size: clamp(28px, 3.5vw, 48px);
  color: #111111;
  margin-bottom: 15px;
  text-align: center;
}

.section-desc-modern {
  font-family: "DM Sans", Helvetica;
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  text-align: center;
  line-height: 1.4;
}

.hubs-grid-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 640px) {
  .hubs-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .hubs-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-card-modern {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.hub-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hub-card-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.hub-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hub-card-modern:hover .hub-card-img {
  transform: scale(1.08);
}

.hub-category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: "DM Sans", Helvetica;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.hub-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.hub-name {
  font-family: "Gotham-Bold", Helvetica;
  font-size: 20px;
  color: #111111;
  margin: 0;
}

.hub-activity-badge {
  font-family: "DM Sans", Helvetica;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.hub-activity-badge.high {
  background-color: #e6f7e6;
  color: #2e7d32;
}

.hub-activity-badge.medium {
  background-color: #fff8e1;
  color: #f57f17;
}

.hub-description {
  font-family: "DM Sans", Helvetica;
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.hub-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.topic-tag {
  font-family: "DM Sans", Helvetica;
  font-size: 12px;
  color: #CE4257;
  background-color: #fff0f3;
  padding: 4px 10px;
  border-radius: 12px;
}

.hub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.hub-members-preview {
  display: flex;
  align-items: center;
}

.hub-members-preview img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -10px;
  object-fit: cover;
}

.hub-members-preview img:first-child {
  margin-left: 0;
}

.more-members {
  font-family: "DM Sans", Helvetica;
  font-size: 12px;
  color: #666666;
  margin-left: 8px;
  font-weight: 600;
}

.join-hub-btn {
  background-color: #111111;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-family: "Gotham-Bold", Helvetica;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.join-hub-btn:hover {
  background-color: #CE4257;
}

/* ── Split section: Discussions & Events ───────────────────── */
.split-section-modern {
  background-color: #330346;
  width: 100%;
}

.split-section-modern--wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 50px 30px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .split-section-modern--wrapper {
    flex-direction: row;
    padding: 50px;
    gap: 30px;
  }
}

@media (min-width: 1200px) {
  .split-section-modern--wrapper {
    padding: 80px;
    gap: 50px;
  }
}

@media (min-width: 1440px) {
  .split-section-modern--wrapper {
    padding: 100px 90px;
    max-width: 1440px;
    margin: 0 auto;
  }
}

.discussions-column-modern {
  flex: 2;
}

.events-column-modern {
  flex: 1;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.column-title {
  font-family: "Gotham-Bold", Helvetica;
  font-size: 24px;
  color: #ffffff;
  margin: 0;
}

.column-link {
  font-family: "DM Sans", Helvetica;
  font-size: 14px;
  color: #f68495;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.column-link:hover {
  color: #CE4257;
  text-decoration: underline;
}

.discussion-list-modern {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.discussion-card-modern {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s;
}

@media (min-width: 800px) {
  .discussion-card-modern {
    padding: 25px;
  }
}

.discussion-card-modern:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.discussion-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.discussion-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 50px;
}

.vote-icon {
  font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
  color: #666666;
  font-size: 18px;
  cursor: pointer;
}

.vote-icon:hover {
  color: #CE4257;
}

.vote-count {
  font-family: "Gotham-Bold", Helvetica;
  font-size: 16px;
  color: #111111;
  margin-top: 4px;
}

.discussion-main {
  flex: 1;
  min-width: 0;
}

.discussion-title {
  font-family: "Gotham-Medium", Helvetica;
  font-size: 16px;
  color: #111111;
  margin: 0 0 8px;
  line-height: 1.4;
}

@media (min-width: 800px) {
  .discussion-title {
    font-size: 18px;
  }
}

.discussion-preview {
  font-family: "DM Sans", Helvetica;
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.discussion-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "DM Sans", Helvetica;
  font-size: 13px;
  color: #888888;
}

.discussion-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar-tiny {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-dot {
  font-size: 8px;
}

.discussion-tags {
  display: flex;
  gap: 8px;
}

.tag {
  background-color: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: #555555;
}

.discussion-replies {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discussion-replies .icon {
  font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
}

.event-list-modern {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.event-card-modern {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.event-date-box {
  background-color: #fff0f3;
  color: #CE4257;
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  flex-shrink: 0;
}

.date-month {
  font-family: "Gotham-Bold", Helvetica;
  font-size: 12px;
  text-transform: uppercase;
}

.date-day {
  font-family: "Gotham-Black", Helvetica;
  font-size: 24px;
  line-height: 1;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-name {
  font-family: "Gotham-Bold", Helvetica;
  font-size: 15px;
  color: #111111;
  margin: 0 0 6px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "DM Sans", Helvetica;
  font-size: 13px;
  color: #666666;
}

.event-action-btn {
  padding: 8px 16px;
  border: 1px solid #CE4257;
  color: #CE4257;
  background: transparent;
  border-radius: 6px;
  font-family: "Gotham-Medium", Helvetica;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.event-action-btn:hover {
  background: #CE4257;
  color: #ffffff;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-section-modern--wrapper {
  background: #ffffff;
  width: 100%;
}

.section-modern.testimonial-section-modern {
  padding: 50px 30px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .section-modern.testimonial-section-modern {
    padding: 50px;
  }
}

@media (min-width: 1200px) {
  .section-modern.testimonial-section-modern {
    padding: 80px;
  }
}

@media (min-width: 1440px) {
  .section-modern.testimonial-section-modern {
    padding: 100px 90px;
  }
}

.testimonial-slider-wrapper {
  width: 100%;
}

.testimonial-slider-modern {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-slider-modern::-webkit-scrollbar {
  display: none;
}

.testimonial-card-modern {
  background: #ffffff;
  border-radius: 10px;
  padding: 40px;
  min-width: 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border: 1px solid #e7e7e7;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .testimonial-card-modern {
    min-width: calc(50% - 15px);
  }
}

@media (min-width: 1200px) {
  .testimonial-card-modern {
    min-width: calc(33.333% - 20px);
  }
}

.quote-icon {
  font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
  font-size: 40px;
  color: #330346;
  margin-bottom: 20px;
}

.testimonial-text {
  font-family: "DM Sans", Helvetica;
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
  font-style: italic;
  margin-bottom: 30px;
  flex: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar-modern {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.testimonial-details {
  text-align: left;
}

.testimonial-details .user-name {
  display: block;
  font-family: "Gotham-Bold", Helvetica;
  font-size: 16px;
  color: #111111;
}

.user-role {
  display: block;
  font-family: "DM Sans", Helvetica;
  font-size: 13px;
  color: #CE4257;
  font-weight: 600;
}

.testimonial-controls-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.test-prev-btn,
.test-next-btn {
  background: none;
  border: none;
  color: #111111;
  font-family: "Font Awesome 6 Sharp-Regular", Helvetica;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.test-prev-btn:hover,
.test-next-btn:hover {
  color: #CE4257;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background-color: #CE4257;
  width: 30px;
  border-radius: 5px;
}

/* ── Footer logo contrast ───────────────────────────────────── */
.footer-logo-link {
  display: block;
  flex-shrink: 0;
}

.community-page .footer-cta-section {
  background: linear-gradient(135deg, #CE4257 0%, #FF7F51 100%);
}
