#top {
  align-items: center;
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  display: flex;
  min-height: 300px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

#top h1 {
  font-size: 1.8rem;
}

#top h2 {
  color: #fff;
  font-size: 1.4rem;
}

@media only screen and (min-width: 768px) {
  #top {
    min-height: 500px;
  }

  #top h1 {
    font-size: 2.4rem;
  }

  #top h2 {
    font-size: 1.8rem;
  }
}

/* Loan types */

#loan-types {
    padding: 3rem 0;
}

#loan-types h2 {
    color: #0f3247;
    margin: 0 0 2rem;
    text-align: center;
}

#loan-types .loan-types-subheading {
    color: #526574;
    font-size: 1.1rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

/* Compact grid */

#loan-types .loan-types-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 0 auto;
    max-width: 1050px;
    padding: 0;
}

/* Individual tiles */

#loan-types .loan-type {
    align-items: center;
    background: #fff;
    border: 1px solid #dce6ed;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding: 1.25rem 0.75rem;
    text-align: center;
}

/* Icon background */

#loan-types .loan-type-icon {
    align-items: center;
    background: #e6f0f7;
    border-radius: 10px;
    color: #0f6489;
    display: flex;
    flex: 0 0 auto;
    height: 56px;
    justify-content: center;
    width: 56px;
}

/* Existing inline SVGs */

#loan-types .loan-type-icon svg {
    display: block;
    fill: currentColor;
    height: 38px;
    width: 38px;
}

/* Override hardcoded black stroke in No Credit SVG */

#loan-types .loan-type-icon svg line {
    stroke: currentColor;
}

/* Labels */

#loan-types .loan-type h3 {
    color: #0f3247;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

@media (min-width: 576px) {
    #loan-types {
        padding: 4rem 0;
    }

    #loan-types .loan-types-grid {
        gap: 1rem;
    }

    #loan-types .loan-type {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem 1.25rem;
        text-align: left;
    }

    #loan-types .loan-type-icon {
        flex: 0 0 64px;
        height: 64px;
        width: 64px;
    }

    #loan-types .loan-type-icon svg {
        height: 44px;
        width: 44px;
    }

    #loan-types .loan-type h3 {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    #loan-types .loan-types-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* Assessment overview */

#assessment-overview {
    padding: 4rem 0;
}

/* Heading */

#assessment-overview .assessment-heading {
    margin: 0 auto 2.5rem;
    max-width: 760px;
    text-align: center;
}

#assessment-overview .assessment-heading h2 {
    color: #fff;
    margin-bottom: 1rem;
}

#assessment-overview .assessment-heading p {
    color: #d5e4ee;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

/* Summary statistics */

#assessment-overview .assessment-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto 3rem;
    max-width: 480px;
}

#assessment-overview .assessment-stat {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    text-align: center;
}

#assessment-overview .assessment-stat strong {
    color: #ecae49;
    font-size: clamp(3rem, 7vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

#assessment-overview .assessment-stat span {
    color: #fff;
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Characteristic groups */

#assessment-overview .assessment-groups {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 1100px;
}

/* Individual group */

#assessment-overview .assessment-group {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 0;
    padding: 1.75rem;
}

/* Group heading */

#assessment-overview .assessment-group header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

#assessment-overview .assessment-group h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.4rem;
}

#assessment-overview .assessment-group header span {
    color: #ecae49;
    font-size: 0.9rem;
}

/* Characteristic lists */

#assessment-overview .assessment-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#assessment-overview .assessment-group li {
    color: #e7f0f5;
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 0.45rem 0 0.45rem 1.5rem;
    position: relative;
}

#assessment-overview .assessment-group li::before {
    background: #ecae49;
    border-radius: 50%;
    content: "";
    height: 7px;
    left: 0.15rem;
    position: absolute;
    top: 1.1rem;
    width: 7px;
}

/* Tablet and larger */

@media (min-width: 768px) {
    #assessment-overview {
        padding: 5rem 0;
    }

    #assessment-overview .assessment-heading {
        margin-bottom: 3rem;
    }

    #assessment-overview .assessment-stat {
        padding: 1.75rem;
    }
}

/* Desktop */

@media (min-width: 992px) {
    #assessment-overview .assessment-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #assessment-overview .assessment-group {
        padding: 2rem;
    }
}


/* Loan benefits */

#loan-benefits {
    background: #fff;
    padding: 4rem 0;
}

#loan-benefits .benefits-layout {
    display: grid;
    gap: 2rem;
}

/* Introduction */

#loan-benefits .benefits-intro h2 {
    color: #0f3247;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

#loan-benefits .benefits-intro p {
    color: #536879;
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 0;
    max-width: 450px;
}

/* Benefits grid */

#loan-benefits .benefits-grid {
    display: grid;
    gap: 0 2rem;
    grid-template-columns: 1fr;
}

/* Individual benefit */

#loan-benefits .benefit {
    border-top: 1px solid #dce6ed;
    display: grid;
    gap: 1rem;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: 1.5rem 0;
}

/* Number */

#loan-benefits .benefit-number {
    color: #b7832c;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Text */

#loan-benefits .benefit h3 {
    color: #0f3247;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

#loan-benefits .benefit p {
    color: #536879;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Tablet */

@media (min-width: 768px) {
    #loan-benefits {
        padding: 5rem 0;
    }

    #loan-benefits .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #loan-benefits .benefit {
        display: block;
        padding: 1.5rem 0 2rem;
    }

    #loan-benefits .benefit-number {
        display: block;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Desktop */

@media (min-width: 992px) {
    #loan-benefits .benefits-layout {
        align-items: start;
        gap: 4rem;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    #loan-benefits .benefits-grid {
        column-gap: 2.5rem;
    }
}


/* Loan benefits */

#loan-benefits {
    background: #fff;
    padding: 4rem 0;
}

#loan-benefits .benefits-layout {
    display: grid;
    gap: 2rem;
}

/* Introduction */

#loan-benefits .benefits-intro h2 {
    color: #0f3247;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

#loan-benefits .benefits-intro p {
    color: #536879;
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 0;
    max-width: 450px;
}

/* Benefits grid */

#loan-benefits .benefits-grid {
    display: grid;
    gap: 0 2rem;
    grid-template-columns: 1fr;
}

/* Individual benefit */

#loan-benefits .benefit {
    border-top: 1px solid #dce6ed;
    display: grid;
    gap: 1rem;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: 1.5rem 0;
}

/* Number */

#loan-benefits .benefit-number {
    color: #b7832c;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Text */

#loan-benefits .benefit h3 {
    color: #0f3247;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

#loan-benefits .benefit p {
    color: #536879;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Tablet */

@media (min-width: 768px) {
    #loan-benefits {
        padding: 5rem 0;
    }

    #loan-benefits .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #loan-benefits .benefit {
        display: block;
        padding: 1.5rem 0 2rem;
    }

    #loan-benefits .benefit-number {
        display: block;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Desktop */

@media (min-width: 992px) {
    #loan-benefits .benefits-layout {
        align-items: start;
        gap: 4rem;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    #loan-benefits .benefits-grid {
        column-gap: 2.5rem;
    }
}

/* Call to action */

#loan-cta {
    padding: 4rem 0;
    text-align: center;
}

.loan-cta-intro {
    padding-bottom: 2rem;
}