/*
 * Content Block Module
 * ========================================================================
 * Styles for content block components used throughout the site.
 * Includes layout, typography, and spacing configurations for content sections.
 */

/* ==========================================================================
   Base Content Block Styles
   ========================================================================== */
.content-block-section {
  padding: 3.75rem 0;
}

@media (max-width: 61.99875rem) {
  .content-block-section {
    padding: 3.125rem 0;
  }
  .content-block-section .button-wrapper .btn {
    width: 100%;
  }
}
.content-block-card {
  border-radius: 1.25rem;
  padding: 4.375rem 2.5rem;
}
.content-block-card[style*="background-color: #fff"],
.content-block-card[style*="background-color:#fff"],
.content-block-card[style*="background-color: #ffffff"],
.content-block-card[style*="background-color:#ffffff"] {
  padding: 4.375rem 0rem;
}
@media (max-width: 61.99875rem) {
  .content-block-card {
    padding: 4.375rem 1.25rem;
  }
  .content-block-card[style*="background-color: #fff"],
  .content-block-card[style*="background-color:#fff"],
  .content-block-card[style*="background-color: #ffffff"],
  .content-block-card[style*="background-color:#ffffff"] {
    padding: 4.375rem 0rem;
  }
}
.content-block-tag-name {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  color: var(--bs-primary-900);
}

.content-block-title {
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 3.438rem;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 3.438rem;
    margin-bottom: 0;
  }
  p {
    margin-bottom: 0;
  }
  span {
    color: var(--bs-primary);
  }

  .font-serif {
    font-size: 3.438rem;
    line-height: 3.438rem;
  }
}
@media (max-width: 61.99875rem) {
  .content-block-tag-name {
    font-size: 1rem;
    line-height: 1.25rem;
  }
  .content-block-title {
    font-size: 2.125rem;
    line-height: 2.875rem;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-size: 2.125rem;
      line-height: 2.875rem;
    }

    .font-serif {
      font-size: 2.5rem;
      line-height: 2.875rem;
    }
  }
}
.content-block-description {
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.875rem;
  color: var(--bs-gray-500);
  margin-top: 1.25rem;
  @media (max-width: 61.99875rem) {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

.content-block-buttons {
  padding-top: 1.25rem;
  margin-top: auto;
  display: flex;
}

.content-block-full-description {
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 3.438rem;
  max-width: 70rem;
  &.text-center {
    text-align: center;
    margin: 0 auto;
  }
  &.text-left {
    text-align: left;
    margin-right: auto;
  }
  &.text-right {
    text-align: right;
    margin-left: auto;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 3.438rem;
    margin-bottom: 0;
  }

  span {
    color: var(--bs-primary);
  }

  .font-serif {
    font-size: 3.438rem;
    line-height: 3.438rem;
    font-weight: 400;
  }
}

@media (max-width: 61.99875rem) {
  .content-block-full-description {
    font-size: 2.125rem;
    line-height: 2.875rem;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-size: 2.125rem;
      line-height: 2.875rem;
    }

    .font-serif {
      font-size: 2.5rem;
      line-height: 2.875rem;
    }
  }
  .content-block-buttons {
    width: 100%;
    .button-wrapper {
      width: 100%;
    }
  }
}

.content-block-card-left {
  text-align: left;
  .content-block-buttons {
    justify-content: flex-start;
  }
}
.content-block-card-center {
  text-align: center;
  .content-block-buttons {
    justify-content: center;
  }
}
.content-block-card-right {
  text-align: right;
  .content-block-buttons {
    justify-content: flex-end;
  }
}

.content-block-section + .styled-card-section {
  & .container {
    .styled-card {
      margin-top: 0;
    }
  }
}

.content-block-section
  + .why-fundi-sction[style*="background-color: transparent"] {
  .container {
    .why-fundi-card {
      margin-top: 0;
    }
  }
}
