section.u5m-rate-cards {
    padding: var(--section-padding-medium);
    margin: var(--section-margin-none);

    .intro-content {
        margin-bottom: 60px;
    }

    .section-inner > .button-group {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        align-items: center;
        margin-top: 40px;
    }

    div.statistics {
        display: grid;
        gap: 30px;
        justify-content: center;
        width: 100%;

        &.items-four {
            grid-template-columns: repeat(4, minmax(0, 1fr));

            @media (max-width: 1024px) {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            @media (max-width: 580px) {
                grid-template-columns: 1fr;
            }
        }

        &.items-three {
            grid-template-columns: repeat(3, minmax(0, 1fr));

            @media (max-width: 768px) {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            @media (max-width: 580px) {
                grid-template-columns: 1fr;
            }
        }

        &.items-two {
            grid-template-columns: repeat(2, minmax(0, 1fr));

            @media (max-width: 768px) {
                grid-template-columns: 1fr;
            }
        }

        &.items-one {
            grid-template-columns: minmax(0, 380px);
            justify-content: center;
        }

        div.statistics__item {
            min-width: 0;
            padding: 40px 25px;
            border-radius: 30px;
            border: 2px solid var(--aqua);
            background: rgba(255, 255, 255, 0.10);
            box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.10);
            backdrop-filter: blur(7.5px);
            text-align: center;

            .icon {
                display: flex;
                justify-content: center;
                margin-bottom: 15px;

                svg {
                    height: 40px;
                    width: auto;

                    path {
                        fill: var(--white);
                    }
                }
            }

            .eyebrow {
                color: var(--light-gray);
                margin-bottom: 10px;
                display: block;
            }

            .stat-row {
                display: flex;
                justify-content: center;
                align-items: flex-end;
                margin-bottom: 14px;

                .count,
                .number {
                    font-family: var(--font1);
                    font-size: 60px;
                    font-weight: 900;
                    color: var(--white);
                    line-height: 1;
                    font-variant-numeric: tabular-nums;
                }

                .prefix {
                    font-family: var(--font1);
                    font-size: 40px;
                    font-weight: 900;
                    color: var(--white);
                    line-height: 1.2;
                    padding-right: 2px;
                }

                .suffix {
                    font-family: var(--font1);
                    font-size: 40px;
                    font-weight: 900;
                    color: var(--white);
                    line-height: 1;
                    
                }
                .suffix-wrapper {
                    padding-left: 4px;
                    .suffix-text {
                        color: var(--white);
                        display: block;
                        text-transform: uppercase;
                        opacity: 0.7;
                        font-size: 20px;
                        font-weight: 700;
                        font-family: var(--font1);
                        margin-top: -5px;
                    }
                }
            }

            .caption {
                display: block;
                font-family: var(--font1);
                font-size: 16px;
                font-weight: 700;
                color: var(--light-gray);
                margin: 0;
            }
        }
        &.hubdb-cards {
            display: flex;
            flex-direction: column;
            align-items: stretch;

            > div.statistics {
                width: 100%;
            }

            .top-instructions, 
          .bottom-instructions {
            text-align: center;
            color: var(--white);
            p, ol, ul, li, a {
              font-size: 18px;
              color: var(--white);
            }
          }
          .top-instructions {
            margin-bottom: 30px;
          }
          .bottom-instructions {
            margin-top: 30px;
            p, ol, ul, li, a {
              font-weight: 300;
            }
          }
          div.statistics {
            display: grid;
            gap: 30px;
            width: 100%;
          
            &.items-four {
              grid-template-columns: repeat(4, minmax(0, 1fr));
          
              @media (max-width: 1024px) {
                grid-template-columns: repeat(2, minmax(0, 1fr));
              }
          
              @media (max-width: 580px) {
                grid-template-columns: 1fr;
              }
            }
          
            &.items-three {
              grid-template-columns: repeat(3, minmax(0, 1fr));
          
              @media (max-width: 768px) {
                grid-template-columns: repeat(2, minmax(0, 1fr));
              }
          
              @media (max-width: 580px) {
                grid-template-columns: 1fr;
              }
            }

            &.items-two {
              grid-template-columns: repeat(2, minmax(0, 1fr));
          
              @media (max-width: 768px) {
                grid-template-columns: 1fr;
              }
            }

            &.items-one {
              grid-template-columns: minmax(0, 380px);
              justify-content: center;
            }
          
            div.statistics__item {
              min-width: 0;
              padding: 40px 25px;
              border-radius: 30px;
              border: 2px solid var(--aqua);
              background: rgba(255, 255, 255, 0.10);
              box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.10);
              backdrop-filter: blur(7.5px);
              text-align: center;

              .stat-row {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 10px;
                margin-bottom: 14px;
                flex-wrap: wrap;
                flex-direction: column;
                .rate-stat {
                  display: flex;
                  flex-direction: column;
                  align-items: center;
                  justify-content: center;
                  &:nth-child(2), &:nth-child(3) {
                    &::before {
                      content: '';
                      height: 1px;
                      width: 100%;
                      max-width: 46px;
                      margin: 0 auto 15px;
                      background-color: var(--aqua);
                      display: block;
                    }
                    @media (max-width: 768px) {
                      &::before {
                        display: none;
                      }
                    }
                  }
                }

                .rate-value {
                  display: flex;
                  align-items: stretch;
                  justify-content: center;
                  font-family: var(--font1);
                  font-weight: 900;
                  color: var(--white);
                  line-height: 0.9;
                  font-variant-numeric: tabular-nums;
                  .prefix {
                    margin-right: 4px;
                  }
                }

                .rate-number {
                  font-size: 60px;
                  line-height: 0.9;
                  &.long-value {
                    font-size: 35px;
                  }
                }
                .rate-meta {
                  margin-left: 6px;
                  text-align: left;
                  &.no-symbol {
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-end;
                    .rate-label {
                      margin-bottom: 8px;
                    }
                  }
                }

                .rate-symbol {
                  font-size: 40px;
                  line-height: 1;

                  font-weight: 900;
                  transform: translateY(4px);
                }

                .rate-label {
                  color: var(--white);
                  display: block;
                  text-transform: uppercase;
                  opacity: 0.7;
                  font-size: 20px;
                  font-weight: 700;
                  font-family: var(--font1);
                  line-height: 1;
                  margin-top: 2px;
                }
              }

              .caption {
                display: block;
                font-family: var(--font1);
                font-size: 16px;
                font-weight: 700;
                color: var(--light-gray);
                margin: 0;
              }
              .mortgage-card-layout {
                display: flex;
                flex-direction: column;
                gap: 18px;
                text-align: left;

                .mortgage-row {
                  display: flex;
                  flex-direction: column;
                  align-items: center;
                  text-align: center;

                  &:not(:first-child)::before {
                    content: '';
                    height: 1px;
                    width: 100%;
                    max-width: 46px;
                    margin: 0 auto 18px;
                    background-color: var(--aqua);
                    display: block;
                  }
                }

                .mortgage-label {
                  color: var(--white);
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  gap: 6px;
                  text-transform: uppercase;
                  opacity: 0.7;
                  font-size: 20px;
                  font-weight: 700;
                  font-family: var(--font1);
                  line-height: 1;
                  margin-bottom: 8px;
                }

                .mortgage-value {
                  font-family: var(--font1);
                  font-size: 32px;
                  font-weight: 900;
                  color: var(--white);
                  line-height: 0.95;
                  font-variant-numeric: tabular-nums;
                }

                .tooltip {
                  position: relative;
                  display: inline-flex;
                  align-items: center;
                  justify-content: center;
                  width: 18px;
                  height: 18px;
                  border: 1px solid var(--aqua);
                  border-radius: 50%;
                  color: var(--white);
                  font-size: 12px;
                  line-height: 1;
                  cursor: help;
                  opacity: 1;

                  .tooltip-content {
                    position: absolute;
                    left: 50%;
                    bottom: calc(100% + 10px);
                    transform: translateX(-50%);
                    width: 220px;
                    padding: 12px;
                    border-radius: 10px;
                    background: var(--white);
                    color: var(--black);
                    font-size: 13px;
                    font-weight: 500;
                    line-height: 1.35;
                    text-transform: none;
                    opacity: 0;
                    visibility: hidden;
                    pointer-events: none;
                    z-index: 5;
                  }

                  &:hover,
                  &:focus {
                    .tooltip-content {
                      opacity: 1;
                      visibility: visible;
                    }
                  }
                }
              }

              @media (max-width: 580px) {
                .mortgage-card-layout {
                  .mortgage-value {
                    font-size: 36px;
                  }
                }
              }

            }
          }
    }
}
