.community-page {
  overflow: hidden;
  background: #fff;
  color: #486779;
}

.community-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(3, 37, 76, .97) 0%,
      rgba(4, 73, 126, .9) 52%,
      rgba(18, 139, 191, .5) 100%
    ),
    url("/assets/images/base_images/home_header_background.png")
      center / cover no-repeat;
}

.community-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 82% 28%,
      rgba(110, 221, 255, .28),
      transparent 31%
    );
}

.community-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 600px;
  align-items: center;
}

.community-hero__content {
  max-width: 720px;
  padding: 85px 0;
}

.community-hero h1 {
  margin: 12px 0 24px;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.community-hero h1 span {
  display: block;
  color: #70d6ff;
}

.community-hero__content > p:last-of-type {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.04rem;
  line-height: 1.75;
}

.community-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.community-secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 7px;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.community-intro {
  padding: 95px 0;
}

.community-intro__grid {
  display: grid;
  grid-template-columns:
    minmax(0, .9fr)
    minmax(0, 1.1fr);
  gap: 75px;
}

.community-intro h2,
.community-section-heading h2,
.community-values h2,
.community-discord h2,
.community-minors h2,
.community-cta h2 {
  margin: 10px 0 0;
  color: #07396b;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
}

.community-intro__copy p {
  margin: 0 0 18px;
  color: #577386;
  font-size: .96rem;
  line-height: 1.9;
}

.community-experience {
  padding: 95px 0;
  background: #f4f9fc;
}

.community-section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.community-section-heading > p:last-child {
  color: #678294;
  line-height: 1.7;
}

.community-feature-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.community-feature-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid #d8e6ee;
  border-radius: 15px;
  background: #fff;
  box-shadow:
    0 14px 34px rgba(7, 57, 93, .06);
}

.community-feature-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #e8f6fd;
  color: #087fc5;
  font-size: 1.3rem;
  font-weight: 900;
}

.community-feature-card h3 {
  margin: 22px 0 10px;
  color: #124b75;
  font-size: 1rem;
}

.community-feature-card p {
  margin: 0;
  color: #647f91;
  font-size: .86rem;
  line-height: 1.75;
}

.community-events {
  padding: 100px 0;
}

.community-events__grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.community-event-card {
  min-height: 235px;
  padding: 30px;
  border: 1px solid #d8e6ee;
  border-radius: 16px;
  background: #fff;
}

.community-event-card--large {
  display: grid;
  grid-column: span 3;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, .9fr);
  gap: 55px;
  padding: 45px;
  background:
    linear-gradient(
      135deg,
      #062f61,
      #076ca8
    );
  color: #fff;
}

.community-event-card--large h2 {
  margin: 10px 0 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.community-event-card--large p,
.community-event-card--large li {
  color: rgba(255, 255, 255, .8);
  line-height: 1.75;
}

.community-event-card--large ul {
  display: grid;
  gap: 9px;
  align-content: center;
  margin: 0;
}

.community-event-card__number {
  display: block;
  margin-bottom: 55px;
  color: #9bdfff;
  font-size: 2.5rem;
  font-weight: 900;
}

.community-event-card h3 {
  margin: 0 0 10px;
  color: #174f78;
}

.community-event-card p {
  color: #668194;
  font-size: .88rem;
  line-height: 1.75;
}

.community-values {
  padding: 100px 0;
  background: #f4f9fc;
}

.community-values__layout {
  display: grid;
  grid-template-columns:
    minmax(0, .85fr)
    minmax(0, 1.15fr);
  gap: 80px;
}

.community-values__heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.community-values__heading > p:last-child {
  color: #627f92;
  line-height: 1.75;
}

.community-values__list {
  display: grid;
}

.community-value-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid #dbe7ed;
}

.community-value-row > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e2f5fd;
  color: #0787c8;
  font-weight: 900;
}

.community-value-row h3 {
  margin: 0 0 7px;
  color: #174f78;
  font-size: 1rem;
}

.community-value-row p {
  margin: 0;
  color: #668194;
  font-size: .88rem;
  line-height: 1.75;
}

.community-pilot-path {
  padding: 100px 0;
}

.community-path-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.community-path-card {
  position: relative;
  min-height: 210px;
  padding: 25px;
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      #073b70,
      #087dbb
    );
  color: #fff;
}

.community-path-card span {
  display: block;
  color: #7fddff;
  font-size: 1.15rem;
  font-weight: 900;
}

.community-path-card p {
  margin: 55px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: .82rem;
  line-height: 1.7;
}

.community-discord {
  padding: 100px 0;
  background:
    linear-gradient(
      135deg,
      #062d5b,
      #075b95
    );
}

.community-discord__inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(360px, .85fr);
  align-items: center;
  gap: 75px;
}

.community-discord h2 {
  color: #fff;
}

.community-discord__content p {
  color: rgba(255, 255, 255, .78);
  line-height: 1.75;
}

.community-discord__visual {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.community-chat-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
}

.community-chat-card span,
.community-chat-card strong,
.community-chat-card small {
  display: block;
}

.community-chat-card span {
  color: #81dcff;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.community-chat-card strong {
  margin-top: 9px;
  color: #fff;
}

.community-chat-card small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .65);
}

.community-minors {
  padding: 90px 0;
  background: #f3f9fc;
}

.community-minors__card {
  display: grid;
  grid-template-columns:
    minmax(0, .9fr)
    minmax(0, 1.1fr);
  gap: 60px;
  padding: 45px;
  border: 1px solid #cae1ed;
  border-left: 6px solid #159bd3;
  border-radius: 17px;
  background: #fff;
}

.community-minors__card p {
  color: #607c8f;
  line-height: 1.8;
}

.community-minors__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.community-minors__links a {
  color: #087bc0;
  font-weight: 900;
  text-decoration: none;
}

.community-cta {
  padding: 90px 0;
}

.community-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      #eaf8fe,
      #f7fcfe
    );
}

.community-cta__inner > div {
  max-width: 720px;
}

.community-cta p:last-child {
  color: #617d90;
  line-height: 1.7;
}

@media (max-width: 1000px) {
  .community-intro__grid,
  .community-values__layout,
  .community-discord__inner,
  .community-minors__card {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .community-values__heading {
    position: static;
  }

  .community-feature-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .community-path-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .community-hero,
  .community-hero__inner {
    min-height: 540px;
  }

  .community-hero__content {
    padding: 70px 0;
  }

  .community-intro,
  .community-experience,
  .community-events,
  .community-values,
  .community-pilot-path,
  .community-discord,
  .community-minors,
  .community-cta {
    padding: 65px 0;
  }

  .community-feature-grid,
  .community-events__grid,
  .community-event-card--large,
  .community-path-grid,
  .community-discord__visual {
    grid-template-columns: 1fr;
  }

  .community-event-card--large {
    grid-column: auto;
    gap: 25px;
    padding: 30px;
  }

  .community-cta__inner {
    align-items: stretch;
    flex-direction: column;
    padding: 30px;
  }
}
