/* Section: Firm (Home) */
.firm-home {
  background: #0c4a34;
  padding: 100px 0;
  text-align: center;
}

.firm-home__container {
  padding: 0 130px;
}
@media (max-width: 1450px) {
  .firm-home__container {
    padding: 0 90px;
  }
}
@media (max-width: 1024px) {
  .firm-home__container {
    padding: 0 60px;
  }
}
@media (max-width: 768px) {
  .firm-home__container {
    padding: 0 40px;
  }
}
@media (max-width: 526px) {
  .firm-home__container {
    padding: 0 14px;
  }
}

.firm-home h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-family: var(--glm-secondary-font);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
}

.firm-home__text {
  max-width: 900px;
  margin: 0 auto 50px;
  color: #ffffffd9;
}

.firm-home__text p {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.7;
}

.firm-home__text p:last-child {
  margin-bottom: 0;
}

.firm-home__list {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  text-align: left;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.firm-home__list::-webkit-scrollbar {
  display: none;
}

.firm-home__card {
  display: flex;
  flex: 0 0 calc((100% - 60px) / 3);
  flex-direction: column;
  background: #ffffff;
  scroll-snap-align: start;
  padding: 15px 15px 25px 15px;
}

.firm-home__card-media {
  aspect-ratio: 4 / 2;
}

.firm-home__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.firm-home__card-body {
  padding-top: 24px;
}

.firm-home__card-body h3 {
  margin: 0 0 8px;
  color: #0f0f0f;
  font-family: var(--glm-secondary-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.firm-home__card-subtitle {
  display: block;
  margin-bottom: 17px;
  color: #0c4a34;
  font-size: 16px;
  font-weight: 700;
}

.firm-home__card-body p {
  margin: 0;
  color: #2d2d2db2;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .firm-home {
    padding: 70px 0;
  }

  .firm-home h2 {
    font-size: 36px;
  }

  .firm-home__card {
    flex-basis: calc((100% - 30px) / 2);
  }
}

@media (max-width: 767px) {
  .firm-home {
    padding: 56px 0;
  }

  .firm-home h2 {
    font-size: 28px;
  }

  .firm-home__text {
    margin-bottom: 30px;
  }

  .firm-home__card {
    flex-basis: 85%;
  }
}
