/* ===============================
   COMMUNITY PAGE STYLES
=============================== */

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Teachers", sans-serif;
  background: linear-gradient(to bottom right, #faf7fb, #fffaf1);
  color: #3d3d3d;
}

/* wrapper so content doesn’t sit under sticky header */
.community-wrapper {
  max-width: 1200px;
  margin: 40px auto 0;  /* top margin to clear the header */
  padding: 40px 20px;
  text-align: center;
}

/* Main layout wrapper */
.community-section {
  font-family: "Teachers", Futura, sans-serif;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 10px; /* safe side padding for small screens */
}

/* left icons / images */
.community-left img {
  width: 240px;
  max-width: 100%;
  height: auto;
  animation: float 4s ease-in-out infinite;
  border-radius: 50%;
}

.community-right img {
  width: 150px;
  max-width: 100%;
  height: auto;
  animation: float 4s ease-in-out infinite;
  border-radius: 50%;
}

#events img {
  width: 200px;
  max-width: 100%;
  height: auto;
  animation: float 4s ease-in-out infinite;
  border-radius: 50%;
}

/* FLOATING ICON EFFECT */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* text block on the right */
.community-right h1 {
  font-family: "HandyCasual", "Happy monkey", sans-serif;
	letter-spacing: 3px;
  font-size: 3rem;
  font-weight: normal;
  margin: 0;
  color: #4a3f3f;
  line-height: 1.05;
}

.community-right h2 {
  font-family: "HandyCasual", "Happy monkey", sans-serif;
	letter-spacing: 2px;
  font-size: 2rem;
  color: #ff4f68;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: 600;
}

.community-right p {
  font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif; 
  letter-spacing: 1px;
  font-size: 1.5rem;
  max-width: 560px;
  line-height: 1.7;
  text-align: center;
  margin: 0 auto;
}

/* Top icon + heading */
.community-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

#top-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Bottom row — three evenly spaced items */
.community-row {
  display: flex;
  height: 250px;
  margin-top: 15px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  font-family: "Teachers", Futura, sans-serif;
  margin-bottom: 150px;
}

/* Make cards/columns stretch and become full-width on smaller screens */
.community-row > * {
  flex: 1 1 30%;
  min-width: 220px;
}

#join {
  margin-top: 80px;
}

#qa {
  margin-top: 80px;
}

/* Responsive tweaks for community layout */
@media (max-width: 1200px) {
  .community-wrapper { padding: 36px 18px; }
  .community-section { gap: 34px; }
  .community-left img { width: 200px; }
  .community-right img { width: 140px; }
  .community-right h1 { font-size: 2.6rem; }
  .community-right h2 { font-size: 1.9rem; }
  .community-right p { font-size: 1.35rem; max-width: 560px; }
  .community-row { gap: 60px; height: 230px; }
}

@media (max-width: 900px) {
  .community-section {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }

  .community-left, .community-right { width: 100%; }
  .community-left img { width: 180px; }
  .community-right img { width: 120px; }

  .community-row {
    flex-direction: column;
    height: auto;
    align-items: center;
    gap: 32px;
  }

  .community-row > * { min-width: 100%; max-width: 720px; }

  #join,
  #qa {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .community-wrapper { padding: 24px 10px; margin-top: 20px; }
  .community-section { width: 100%; gap: 20px; padding: 0 6px; }
  .community-left img { width: 140px; }
  .community-right img { width: 100px; }
  .community-right h1 { font-size: 1.8rem; }
  .community-right h2 { font-size: 1.4rem; }
  .community-right p {
    font-size: 0.98rem;
    max-width: 95%;
  }
  .community-row { gap: 16px; }
  .community-row > * { max-width: 100%; }
}
