h1 {
    font-size: 40px;
    line-height: 50px;
    color: #252525;
    text-transform: capitalize;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.gap-32 {
    gap: 32px;
}

.bg-highlight {
    background: #F3F7F8;
}

.is-style-blue-pill {
    border-radius: 30px;
    border: 1px solid #006AC3;
    background-color: #FFF;
    padding: 3px 10px;
    color: #006AC3;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.nav.breadcrumb-wpr {
    background: #F3F7F8;
}

.banner-content {
    flex: 1;
}

.banner-img {
    width: 100%;
    max-width: 570px;
    aspect-ratio: 570/400;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#advices.section-inner {
    position: relative;
}

.published-date {
    color: #6F6F6F;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.advices-container {
    display: flex;
    flex-direction: row;
}

.advice-left-contents {
    flex: 2;
    max-width: 670px;
}

.advice-right-table-of-contents {
    flex: 1;
    position: relative;
}

.advice-copy {
    display: flex;
    flex-direction: column;
    gap: 64px
}

.advice-copy p:not(.h2, .h3, .h4, .h5, .h6),
.advice-copy li {
    font-size: 18px;
    line-height: 28px;
}

.special-content-box {
    box-shadow: 0 4px 0 0 #006AC3 inset, 0 2px 24px 0 rgba(0, 0, 0, 0.07);
    border-top: 2px solid #006AC3;
    padding: 32px;
}

.special-content-box li {
    font-size: 16px;
}

.tips-box {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 24px;
    background-color: #EDF7FC;
}

.tips-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-container {
    padding: 32px;
    background-color: #F5F8F9;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.faq-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-tools-grid-item {
    display: flex;
    height: 100%;
    flex-grow: 1;
}

.tool-style-1 {
    height: 100%;
    align-self: end;
    margin-bottom: -20px;
    margin-left: 15px;

    @media screen and (max-width: 639px) {
        &.reward {
            max-width: 157px;
        }
        &.compare {
            max-width: 152px;
            margin-bottom: -30px;
            margin-right: -30px;
        }
        &.cashback {
            max-width: 217px;
            margin-bottom: -30px;
            margin-right: -30px;
        }
        &.help {
            max-width: 125px;
        }
    }

    @media screen and (min-width: 640px) {
        &.reward {
            width: 50%;
            max-width: 226px;
            position: absolute;
            right: 0;
            bottom: -8px;
        }
        &.compare {
            max-width: 152px;
            position: absolute;
            right: 0;
            bottom: -16px;
        }
        &.cashback {
            max-width: 217px;
            margin-right: -30px;
        }
        &.help {
            max-width: 125px;
        }
    }
}

.article-img {
    border-radius: 8px;
    width: 100%;
    max-width: 370px;
}

.article-link {
    color: #333;
    font-family: "RBCDisplay";
    font-size: 24px;
    font-weight: 500;
    line-height: 32px; 
}

a.article-link:active, a.article-link:focus, a.article-link:visited {
    color: #333 !important;
}

@media screen and (max-width: 640px) {
    .advices-container {
        flex-direction: column-reverse;
    }

    .advice-copy img {
        max-width: 100%;
    }

    .article-img {
        max-width: 50%;
        flex: 1;
    }

    .article-link {
        font-size: 18px;
        line-height: 27px; 
        flex: 1;
    }

    #read-next-articles .flex {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .faq-container {
        flex-direction: column;
    }
}

/* 
    for the share buttons, reference from:
    https://www.rbcroyalbank.com/en-ca/my-money-matters/goals-aspirations/buying-a-home/buying-your-first-home/how-you-can-afford-your-first-home-in-canada-yes-even-in-this-market/
 */

.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.social-links span {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.social-links img {
    width: 23px;
    height: 20px;
}

.social-links .sharing-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 70px;
}

.socials-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 800px) {
    /* for the side nav will be changed to dropdown when width < 800px */
    .advice-left-contents {
        max-width: unset;
    }
}

@media screen and (max-width: 640px) {
    h1 {
        font-size: 24px;
        line-height: 30px;
    }

    .social-links {
        justify-content: space-between;
        gap: 10px;
    }

    .social-links .sharing-custom {
        width: 55px;
    }
}