/* ==================================================
   MARKETREVIEW HOMEPAGE HERO — FINAL CSS
================================================== */

body.home .mr-home-hero {
    position: relative;
    width: 100vw;
    margin-top: -75px !important; /* Exactly offsets the theme's 75px desktop section padding without covering the header. */
    margin-left: calc(50% - 50vw);
    padding: 38px 24px 30px;
    box-sizing: border-box;
    overflow: hidden;
    color: #ffffff;

    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(54, 173, 115, 0.13) 0,
            rgba(54, 173, 115, 0) 32%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(55, 112, 162, 0.18) 0,
            rgba(55, 112, 162, 0) 38%
        ),
        linear-gradient(
            135deg,
            #0b1f33 0%,
            #0b2637 100%
        );
}


/* ==================================================
   INNER CONTAINER
================================================== */

body.home .mr-home-hero .mr-home-hero__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    text-align: center !important;
}


/* ==================================================
   EYEBROW
================================================== */

body.home .mr-home-hero .mr-home-hero__eyebrow {
    display: block;
    width: 100%;
    margin: 0 auto 12px;
    padding: 0;

    color: #76d6a4;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-align: center !important;
    text-transform: uppercase;
}


/* ==================================================
   MAIN HEADING
================================================== */

body.home .mr-home-hero h1 {
    display: block;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 20px;
    padding: 0;

    color: #ffffff;
    font-size: clamp(38px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-align: center !important;
}


/* ==================================================
   DESCRIPTION
================================================== */

body.home .mr-home-hero .mr-home-hero__description {
    display: block !important;

    /*
     Fixed desktop width prevents the theme from
     squeezing this paragraph into four lines.
    */
    width: 880px !important;
    max-width: calc(100vw - 64px) !important;

    margin: 0 auto !important;
    padding: 0 !important;

    color: #d7e1ea;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    text-align: center !important;
}


/* ==================================================
   BUTTON CONTAINER
================================================== */

body.home .mr-home-hero .mr-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 14px;

    margin: 26px 0 0;
    padding: 0;
}


/* ==================================================
   SHARED BUTTONS
================================================== */

body.home .mr-home-hero .mr-home-hero__button {
    display: grid !important;
    place-items: center !important;

    width: 300px;
    height: 60px;
    min-height: 60px;

    margin: 0 !important;
    padding: 0 24px !important;

    border: 1px solid transparent;
    border-radius: 5px;
    box-sizing: border-box !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

body.home .mr-home-hero .mr-home-hero__button span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;

    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.15 !important;
    text-align: center !important;

    transform: translateY(-1px);
}

body.home .mr-home-hero .mr-home-hero__button:hover,
body.home .mr-home-hero .mr-home-hero__button:focus {
    transform: translateY(-2px);
    text-decoration: none !important;
}


/* Primary button */

body.home .mr-home-hero .mr-home-hero__button--primary {
    border-color: #278355 !important;
    background-color: #278355 !important;
    color: #ffffff !important;
}

body.home .mr-home-hero .mr-home-hero__button--primary:hover,
body.home .mr-home-hero .mr-home-hero__button--primary:focus {
    border-color: #1f7049 !important;
    background-color: #1f7049 !important;
    color: #ffffff !important;
}


/* Secondary button */

body.home .mr-home-hero
.mr-home-hero__button--secondary,
body.home .mr-home-hero
.mr-home-hero__button--secondary:visited {
    border-color: #5f8297 !important;
    background-color: #315d75 !important;
    color: #ffffff !important;
}

body.home .mr-home-hero
.mr-home-hero__button--secondary span,
body.home .mr-home-hero
.mr-home-hero__button--secondary:visited span {
    color: #ffffff !important;
}

body.home .mr-home-hero
.mr-home-hero__button--secondary:hover,
body.home .mr-home-hero
.mr-home-hero__button--secondary:focus {
    border-color: #7ba2b8 !important;
    background-color: #3b6c85 !important;
    color: #ffffff !important;
}

body.home .mr-home-hero
.mr-home-hero__button--secondary:hover span,
body.home .mr-home-hero
.mr-home-hero__button--secondary:focus span {
    color: #ffffff !important;
}


/* Keyboard accessibility */

body.home .mr-home-hero .mr-home-hero__button:focus-visible {
    outline: 3px solid rgba(118, 214, 164, 0.55);
    outline-offset: 3px;
}


/* ==================================================
   TRUST POINTS
================================================== */

body.home .mr-home-hero .mr-home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;

    width: 100%;
    max-width: 790px;

    margin: 12px auto 0;
    padding: 16px 0 0;

    border-top: 1px solid rgba(255, 255, 255, 0.16);

    color: #bdcad5;
    font-size: 14px;
    line-height: 1.5;
    text-align: center !important;
}

body.home .mr-home-hero .mr-home-hero__trust span {
    position: relative;
}


/* Dots between trust points */

@media (min-width: 701px) {

    body.home .mr-home-hero
    .mr-home-hero__trust span:not(:last-child)::after {
        content: "•";
        position: absolute;
        right: -19px;
        color: #76d6a4;
    }
}


/* ==================================================
   TABLET AND MOBILE
================================================== */

@media (max-width: 768px) {

    body.home .mr-home-hero {
        margin-top: -30px !important; /* Exactly offsets the theme's 30px mobile section padding without covering the header. */
        padding: 30px 20px 22px;
    }

    body.home .mr-home-hero .mr-home-hero__inner {
        max-width: 100%;
    }

    body.home .mr-home-hero .mr-home-hero__eyebrow {
        width: 100%;
        max-width: 360px;
        margin: 0 auto 18px;

        font-size: 13px;
        line-height: 1.55;
        text-align: center !important;
    }

    body.home .mr-home-hero h1 {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 26px;

        font-size: 34px;
        line-height: 1.1;
        letter-spacing: -0.025em;
        text-align: center !important;
    }

    body.home .mr-home-hero .mr-home-hero__description {
        width: 100% !important;
        max-width: 540px !important;
        margin: 0 auto !important;

        font-size: 17px;
        line-height: 1.6;
        text-align: center !important;
    }

    body.home .mr-home-hero .mr-home-hero__actions {
        flex-direction: column;
        gap: 14px;
        margin-top: 28px;
    }

    body.home .mr-home-hero .mr-home-hero__button {
        width: 100% !important;
        height: 64px;
        min-height: 64px;
        padding: 0 18px !important;
    }

body.home .mr-home-hero .mr-home-hero__trust {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;

    width: 100%;
    row-gap: 6px !important;
    column-gap: 0 !important;

    margin: 16px auto 0 !important;
    padding: 14px 0 0 !important;

    min-height: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

body.home .mr-home-hero .mr-home-hero__trust span {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    min-height: 0 !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

/* Close TABLET AND MOBILE media query */
}

/* ==================================================
   SMALL PHONES
================================================== */

@media (max-width: 420px) {

    body.home .mr-home-hero {
        padding: 26px 18px 28 px;
    }

    body.home .mr-home-hero .mr-home-hero__eyebrow {
        font-size: 12px;
    }

    body.home .mr-home-hero h1 {
        font-size: 32px;
        line-height: 1.1;
    }

    body.home .mr-home-hero .mr-home-hero__description {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 17px;
        line-height: 1.6;
    }
}
/* ==================================================
   MARKETREVIEW — LATEST FINANCIAL NEWS
================================================== */

body.home .mr-latest-news {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 28px 24px 28px;
    box-sizing: border-box;
    background: #f4f7f9;
    color: #1c2b36;
}

body.home .mr-latest-news__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* ==================================================
   SECTION HEADING
================================================== */

body.home .mr-latest-news__header {
    margin: 0 0 28px;
    text-align: center;
}

body.home .mr-latest-news__header h2 {
    margin: 0;
    padding: 0;
    color: #172a38;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-align: center;
}


/* ==================================================
   THREE-COLUMN NEWS GRID
================================================== */

body.home .mr-latest-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}


/* ==================================================
   NEWS CARDS
================================================== */

body.home .mr-news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;

    border: 1px solid #dbe3e8;
    border-radius: 7px;
    box-sizing: border-box;

    background: #ffffff;
    box-shadow: 0 7px 22px rgba(16, 42, 58, 0.06);

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

body.home .mr-news-card:hover {
    box-shadow: 0 10px 28px rgba(16, 42, 58, 0.10);
    transform: translateY(-2px);
}


/* ==================================================
   CARD IMAGES
================================================== */

body.home .mr-news-card__image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dce5ea;
    text-decoration: none !important;
}

body.home .mr-news-card__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;

    transition: transform 0.35s ease;
}

body.home .mr-news-card:hover .mr-news-card__image {
    transform: scale(1.025);
}

body.home .mr-news-card__image--placeholder {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    background: #17364a;
}


/* ==================================================
   CARD CONTENT
================================================== */

body.home .mr-news-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 19px 20px 20px;
    box-sizing: border-box;
}

/* Category label */

body.home .mr-news-card__category {
    display: none !important;
}

body.home .mr-news-card__category:hover,
body.home .mr-news-card__category:focus {
    color: #23764f !important;
}


/* Headline */

body.home .mr-news-card__title {
    display: -webkit-box;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;

    color: #172a38;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.home .mr-news-card__title a,
body.home .mr-news-card__title a:visited {
    color: #172a38 !important;
    text-decoration: none !important;
}

body.home .mr-news-card__title a:hover,
body.home .mr-news-card__title a:focus {
    color: #2d7fc1 !important;
}

/* Excerpt */

body.home .mr-news-card__excerpt {
    display: -webkit-box;
    min-height: 0;
    margin: 10px 0 0;
    padding: 0;
    overflow: hidden;

    color: #465661;
    font-size: 14px;
    line-height: 1.55;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Author and date */

body.home .mr-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    margin: auto 0 0;
    padding: 15px 0 0;

    color: #5b6973;
    font-size: 12.5px;
    line-height: 1.4;
}

body.home .mr-news-card__meta a,
body.home .mr-news-card__meta a:visited {
    color: #344b59 !important;
    font-weight: 700;
    text-decoration: none !important;
}

body.home .mr-news-card__meta a:hover,
body.home .mr-news-card__meta a:focus {
    color: #2d7fc1 !important;
}


/* ==================================================
   VIEW ALL NEWS
================================================== */

body.home .mr-latest-news__view-all {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-height: 46px;
    margin: 30px auto 0;
    padding: 10px 24px;

    border: 1px solid #b7c5ce;
    border-radius: 5px;
    box-sizing: border-box;

    background: #ffffff;
    color: #17364a !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

body.home .mr-latest-news__view-all:hover,
body.home .mr-latest-news__view-all:focus {
    border-color: #2e9b66;
    background: #2e9b66;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* ==================================================
   TABLET — TWO COLUMNS
================================================== */

@media (max-width: 980px) {

    body.home .mr-latest-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}


/* ==================================================
   MOBILE — ONE COLUMN
================================================== */

@media (max-width: 700px) {

    body.home .mr-latest-news {
        padding: 24px 18px 24px;
    }

    body.home .mr-latest-news__header {
        margin-bottom: 24px;
    }

    body.home .mr-latest-news__header h2 {
        font-size: 30px;
    }

    body.home .mr-latest-news__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.home .mr-news-card__content {
        min-height: 0;
        padding: 18px 18px 19px;
    }

    body.home .mr-news-card__title {
        min-height: 0;
        font-size: 19px;
        -webkit-line-clamp: 3;
    }

    body.home .mr-news-card__excerpt {
        min-height: 0;
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    body.home .mr-news-card__meta {
        margin-top: 14px;
        padding-top: 0;
    }

    body.home .mr-latest-news__view-all {
        width: 100%;
        margin-top: 24px;
    }
}


/* ==================================================
   VERY SMALL PHONES
================================================== */

@media (max-width: 420px) {

    body.home .mr-latest-news {
        padding-right: 16px;
        padding-left: 16px;
    }

    body.home .mr-news-card__title {
        font-size: 18px;
    }
}
/* =========================================================
   MARKETREVIEW FEATURED GUIDES — COMPACT CARD GRID
   ========================================================= */

body.home .mr-featured-guides {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 24px 24px 44px;
    box-sizing: border-box;

    background: #ffffff;
    color: #172a38;
}

body.home .mr-featured-guides__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Section heading */

body.home .mr-featured-guides__header {
    margin: 0 0 26px;
    text-align: center;
}

body.home .mr-featured-guides__header h2 {
    margin: 0;
    padding: 0;

    color: #172a38;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-align: center;
}

/* Grid */

body.home .mr-featured-guides__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Complete card container */

body.home .mr-guide-card {
    display: flex;
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
    flex-direction: column;

    border: 1px solid #dbe3e8;
    border-radius: 8px;
    box-sizing: border-box;

    background: #ffffff;
    box-shadow: 0 6px 18px rgba(16, 42, 58, 0.055);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

body.home .mr-guide-card:hover {
    box-shadow: 0 9px 24px rgba(16, 42, 58, 0.09);
    transform: translateY(-2px);
}

/* Image container */

body.home .mr-guide-card__image-link {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;

    background: #dce5ea;
    font-size: 0;
    line-height: 0;
    text-decoration: none !important;
}

/* Prevent Classic Editor from creating space above image */

body.home .mr-guide-card__image-link p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

body.home .mr-guide-card__image-link br {
    display: none !important;
}

/* Final generated image */

body.home .mr-guide-card__image {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;
    margin: 0;

    object-fit: cover;
    transition: transform 0.3s ease;
}

body.home .mr-guide-card:hover .mr-guide-card__image {
    transform: scale(1.025);
}

/* Temporary placeholders */

body.home .mr-guide-card__placeholder {
    position: absolute;
    inset: 0;

    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    box-sizing: border-box;

    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
}

body.home .mr-guide-card__placeholder--investing {
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(47, 173, 113, 0.32),
            transparent 30%
        ),
        linear-gradient(135deg, #14364a, #205a67);
}

body.home .mr-guide-card__placeholder--retirement {
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(84, 167, 143, 0.30),
            transparent 30%
        ),
        linear-gradient(135deg, #284653, #52757a);
}

body.home .mr-guide-card__placeholder--insurance {
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(64, 159, 122, 0.30),
            transparent 30%
        ),
        linear-gradient(135deg, #193849, #376777);
}

body.home .mr-guide-card__placeholder--credit {
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(70, 170, 137, 0.30),
            transparent 30%
        ),
        linear-gradient(135deg, #173348, #315d75);
}

/* White title container */

body.home .mr-guide-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 15px 17px;
    box-sizing: border-box;

    border-top: 1px solid #e2e8ec;
    background: #ffffff;
    text-align: left;
}

/* Category */

body.home .mr-guide-card__category {
    margin: 0 0 6px;
    padding: 0;

    color: #237a50;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

/* Title */

body.home .mr-guide-card__title {
    display: -webkit-box;
    margin: 0;
    padding: 0;
    overflow: hidden;

    color: #172a38;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    text-align: left !important;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.home .mr-guide-card__title a,
body.home .mr-guide-card__title a:visited {
    color: #172a38 !important;
    text-decoration: none !important;
}

body.home .mr-guide-card__title a:hover,
body.home .mr-guide-card__title a:focus {
    color: #23764f !important;
    text-decoration: none !important;
}

/* Tablet: 2 × 2 */

@media (max-width: 900px) {

    body.home .mr-featured-guides__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }
}

/* Mobile: 2 × 2 */

@media (max-width: 700px) {

    body.home .mr-featured-guides {
        padding: 8px 15px 34px;
    }

    body.home .mr-featured-guides__header {
        margin-bottom: 21px;
    }

    body.home .mr-featured-guides__header h2 {
        font-size: 30px;
    }

    body.home .mr-featured-guides__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 10px;
    }

    body.home .mr-guide-card {
        border-radius: 7px;
    }

    body.home .mr-guide-card__content {
        padding: 10px 10px 12px;
    }

    body.home .mr-guide-card__category {
        margin-bottom: 5px;
        font-size: 9px;
        letter-spacing: 0.06em;
    }

    body.home .mr-guide-card__title {
        font-size: 14px;
        line-height: 1.35;
    }

    body.home .mr-guide-card__placeholder {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
}

/* Small phones — still 2 × 2 */

@media (max-width: 420px) {

    body.home .mr-featured-guides {
        padding: 16px 12px 34px;
    }

    body.home .mr-featured-guides__header h2 {
        font-size: 28px;
    }

    body.home .mr-featured-guides__grid {
        gap: 14px 8px;
    }

    body.home .mr-guide-card__content {
        padding: 9px 9px 11px;
    }

    body.home .mr-guide-card__category {
        font-size: 8.5px;
    }

    body.home .mr-guide-card__title {
        font-size: 13.5px;
    }

    body.home .mr-guide-card__placeholder {
        font-size: 10px;
    }
}
/* =========================================================
   MARKETREVIEW EXPLORE FINANCIAL TOPICS
   ========================================================= */

/*
 * Reduce the gap after Featured Guides.
 * This controls the white space before the next section.
 */
body.home .mr-featured-guides {
    padding-bottom: 26px;
}

/* Full-width section */

body.home .mr-topic-hub {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 6px 24px 0px;
    box-sizing: border-box;

    background: #ffffff;
    color: #172a38;
}

/* Blue-grey outer container */

body.home .mr-topic-hub__inner {
    width: 100%;
    max-width: 1172px;
    margin: 0 auto;
    padding: 27px 32px 34px;
    box-sizing: border-box;

    background: #f0f4f6;
    border-radius: 22px;
}

/* Section heading */

body.home .mr-topic-hub__header {
    margin: 0 0 22px;
    text-align: center;
}

body.home .mr-topic-hub__header h2 {
    margin: 0;
    padding: 0;

    color: #172a38;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-align: center;
}

/* Desktop grid */

body.home .mr-topic-hub__grid {
    display: grid;
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* Individual card */

body.home .mr-topic-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 232px;
    margin: 0;

    /* Match the Investing page card box size on desktop. */
    padding: 20px 20px 22px;
    box-sizing: border-box;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    border: 1px solid #d8e1e6;
    border-radius: 17px;

    background: #ffffff;
    box-shadow: 0 7px 20px rgba(16, 42, 58, 0.055);
    text-align: center;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

body.home .mr-topic-card:hover {
    border-color: #bdccd5;
    box-shadow: 0 11px 26px rgba(16, 42, 58, 0.09);
    transform: translateY(-2px);
}

/* Entire card clickable */

body.home .mr-topic-card__link {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: block;
    border-radius: inherit;
    text-decoration: none !important;
}

body.home .mr-topic-card__link:focus-visible {
    outline: 3px solid #2d9664;
    outline-offset: -4px;
}

body.home .mr-topic-card__link-text {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Straight arrow */

body.home .mr-topic-card__arrow {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;

    color: #607681;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

body.home .mr-topic-card:hover .mr-topic-card__arrow {
    color: #237c53;
    transform: translateX(3px);
}

/* Topic illustration */

body.home .mr-topic-card__icon {
    display: flex;
    width: 120px;
    height: 120px;
    margin: 0 0 20px;

    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.home .mr-topic-card__icon svg {
    display: block;
    width: 116px;
    height: 116px;
    overflow: visible;
}

/* Card title */

body.home .mr-topic-card__title {
    margin: 0;
    padding: 0;

    color: #172a38;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.018em;
    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    body.home .mr-topic-hub__grid {
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /*
     * Reduce the gap below Featured Guides.
     */
    body.home .mr-featured-guides {
        padding-bottom: 22px;
    }

    body.home .mr-topic-hub {
        padding: 0 14px;
    }

    body.home .mr-topic-hub__inner {
        padding: 18px 12px 22px;
        border-radius: 18px;
    }

    body.home .mr-topic-hub__header {
        margin-bottom: 17px;
    }

    body.home .mr-topic-hub__header h2 {
        font-size: 30px;
    }

    body.home .mr-topic-hub__grid {
        max-width: none;
        margin: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /*
     * Match the Investing page feel more closely on mobile:
     * slightly narrower cards, larger icons, and less dead space under the title.
     */
    body.home .mr-topic-card {
        min-height: 195px;
        padding: 14px 10px 8px;
        border-radius: 15px;
        justify-content: center;
    }

    body.home .mr-topic-card__arrow {
        top: 10px;
        right: 11px;
        font-size: 18px;
    }

    body.home .mr-topic-card__icon {
        width: 94px;
        height: 94px;
        margin: 0 0 18px;
    }

    body.home .mr-topic-card__icon svg,
    body.home .mr-topic-card__icon img {
        width: 90px;
        height: 90px;
    }

    body.home .mr-topic-card__title {
        margin: 0;
        font-size: 16px;
        line-height: 1.2;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    body.home .mr-featured-guides {
        padding-bottom: 22px;
    }

    body.home .mr-topic-hub {
        padding: 0 10px;
    }

    body.home .mr-topic-hub__inner {
        padding: 16px 8px 19px;
        border-radius: 16px;
    }

    body.home .mr-topic-hub__header {
        margin-bottom: 15px;
    }

    body.home .mr-topic-hub__header h2 {
        font-size: 27px;
    }

    body.home .mr-topic-hub__grid {
        max-width: none;
        gap: 9px;
    }

    body.home .mr-topic-card {
        min-height: 188px;
        padding: 12px 8px 7px;
        border-radius: 13px;
        justify-content: center;
    }

    body.home .mr-topic-card__arrow {
        top: 9px;
        right: 9px;
        font-size: 17px;
    }

    body.home .mr-topic-card__icon {
        width: 88px;
        height: 88px;
        margin: 0 0 16px;
    }

    body.home .mr-topic-card__icon svg,
    body.home .mr-topic-card__icon img {
        width: 84px;
        height: 84px;
    }

    body.home .mr-topic-card__title {
        font-size: 14.5px;
        line-height: 1.2;
    }
}
/* Remove legacy empty homepage section and footer gap */
body.home main#main .section-about {
    display: none !important;
}

body.home footer,
body.home #footer,
body.home .site-footer {
    margin-top: 0 !important;
}
/* =========================================================
   MARKETREVIEW TRUST BAND
   ========================================================= */

body.home .mr-trust {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 24px 24px 10px;
    box-sizing: border-box;

    background: #ffffff;
    color: #172a38;
}

body.home .mr-trust__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Section heading */

body.home .mr-trust__header {
    max-width: 720px;
    margin: 0 auto 22px;
    text-align: center;
}

body.home .mr-trust__header h2 {
    margin: 0;
    padding: 0;

    color: #172a38;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

body.home .mr-trust__header p {
    margin: 8px 0 0;
    padding: 0;

    color: #53636e;
    font-size: 15px;
    line-height: 1.55;
}

/* Three-column trust band */

body.home .mr-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;

    border: 1px solid #dbe4e9;
    border-radius: 10px;
    background: #f4f7f9;
}

/* Individual item */

body.home .mr-trust__item {
    position: relative;
    min-width: 0;
    min-height: 188px;
    margin: 0;

    /* Comfortable space above the section label. */
    padding: 15px 24px 23px;
    box-sizing: border-box;

    background: transparent;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

body.home .mr-trust__item + .mr-trust__item {
    border-left: 1px solid #dbe4e9;
}

body.home .mr-trust__item:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 42, 58, 0.055);
}

/* Entire item clickable */

body.home .mr-trust__item-link {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: block;
    text-decoration: none !important;
}

body.home .mr-trust__item-link:focus-visible {
    outline: 3px solid #2d9664;
    outline-offset: -4px;
}

body.home .mr-trust__screen-reader {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Top labels */

body.home .mr-trust__label {
    display: block;
    margin: 0 0 12px;
    padding: 0;

    color: #287f57;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/* Titles */

body.home .mr-trust__title {
    margin: 0;
    padding: 0;

    color: #172a38;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.018em;
}

/* Descriptions */

body.home .mr-trust__description {
    margin: 9px 0 0;
    padding: 0;

    color: #3f505b;
    font-size: 14.5px;
    line-height: 1.58;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    body.home .mr-trust__item {
        padding-right: 20px;
        padding-left: 20px;
    }

    body.home .mr-trust__label {
        margin-bottom: 11px;
        font-size: 13px;
    }

    body.home .mr-trust__title {
        font-size: 18px;
    }

    body.home .mr-trust__description {
        font-size: 13.5px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body.home .mr-trust {
        padding: 12px 14px 14px;
    }

    body.home .mr-trust__header {
        margin-bottom: 18px;
    }

    body.home .mr-trust__header h2 {
        font-size: 29px;
    }

    body.home .mr-trust__header p {
        margin-top: 7px;
        font-size: 15px;
        line-height: 1.58;
    }

    body.home .mr-trust__grid {
        grid-template-columns: 1fr;
        border-radius: 9px;
    }

    body.home .mr-trust__item {
        min-height: 0;

        padding: 14px 18px 18px;
    }

    body.home .mr-trust__item + .mr-trust__item {
        border-top: 1px solid #dbe4e9;
        border-left: 0;
    }

    body.home .mr-trust__label {
        margin-bottom: 11px;
        font-size: 14.5px;
        letter-spacing: 0.05em;
    }

    body.home .mr-trust__title {
        font-size: 18.5px;
        line-height: 1.28;
    }

    body.home .mr-trust__description {
        margin-top: 9px;
        color: #3f505b;
        font-size: 14.75px;
        line-height: 1.55;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    body.home .mr-trust {
        padding: 15px 10px 0px;
    }

    body.home .mr-trust__header h2 {
        font-size: 27px;
    }

    body.home .mr-trust__header p {
        font-size: 14.5px;
        line-height: 1.56;
    }

    body.home .mr-trust__item {
        padding: 13px 15px 17px;
    }

    body.home .mr-trust__label {
        margin-bottom: 10px;
        font-size: 14px;
        letter-spacing: 0.045em;
    }

    body.home .mr-trust__title {
        font-size: 18px;
    }

    body.home .mr-trust__description {
        margin-top: 9px;
        font-size: 14.25px;
        line-height: 1.53;
    }
}
/* Remove legacy homepage bands without hiding their content */

/* Grey space immediately above Why MarketReview */
body.home .intro-block {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background: #ffffff !important;
}

/* Grey space immediately above the footer */
body.home .section-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background: #ffffff !important;
}

/* This old section was confirmed empty */
body.home main#main .section-about {
    display: none !important;
}

/* =========================================================
   STRUCTURED HOMEPAGE — MEDIA ICONS AND TOOLS
   ========================================================= */
body.home .mr-topic-card__icon img {
    display: block;
    width: 116px;
    height: 116px;
    object-fit: contain;
}

body.home .mr-tools {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 28px 24px 8px;
    box-sizing: border-box;
    background: #ffffff;
    color: #172a38;
}
body.home .mr-tools__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 32px 34px;
    box-sizing: border-box;
    border: 1px solid #dbe4e9;
    border-radius: 18px;
    background: #f7f9fa;
}
body.home .mr-tools__header {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}
body.home .mr-tools__header h2 {
    margin: 0;
    color: #172a38;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
body.home .mr-tools__header p {
    margin: 9px 0 0;
    color: #53636e;
    font-size: 15px;
    line-height: 1.55;
}
body.home .mr-tools__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
body.home .mr-tool-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    min-height: 202px;
    overflow: hidden;
    border: 1px solid #d9e2e7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(16, 42, 58, 0.045);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
body.home .mr-tool-card:hover {
    transform: translateY(-2px);
    border-color: #b9d6c7;
    box-shadow: 0 10px 24px rgba(16, 42, 58, 0.08);
}
body.home .mr-tool-card__link {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    text-decoration: none !important;
}
body.home .mr-tool-card__link:focus-visible {
    outline: 3px solid #2d9664;
    outline-offset: -4px;
}
body.home .mr-tool-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5ebef;
}
body.home .mr-tool-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.home .mr-tool-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: 21px 22px 19px;
    box-sizing: border-box;
    flex: 1 1 auto;
    flex-direction: column;
    text-align: left;
}
body.home .mr-tool-card__status {
    display: inline-flex;
    margin: 0 0 13px;
    padding: 5px 9px;
    align-items: center;
    align-self: flex-start;
    border-radius: 999px;
    background: #e8f4ed;
    color: #1f7049;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}
body.home .mr-tool-card__content h3 {
    margin: 0;
    color: #172a38;
    font-size: 20px;
    line-height: 1.25;
    text-align: left;
}
body.home .mr-tool-card__content > p:not(.mr-tool-card__status) {
    margin: 9px 0 0;
    color: #53636e;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}
body.home .mr-tool-card__cta {
    display: inline-flex;
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
    align-items: center;
    align-self: stretch;
    gap: 7px;
    border-top: 1px solid #edf1f3;
    color: #237c53;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
}
body.home .mr-tool-card__cta-arrow {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}
body.home .mr-tool-card:hover .mr-tool-card__cta-arrow {
    transform: translateX(3px);
}
body.home .mr-tools__footer {
    display: flex;
    margin-top: 26px;
    justify-content: center;
}
body.home .mr-tools__view-all,
body.home .mr-tools__view-all:visited {
    display: inline-flex;
    min-height: 44px;
    padding: 9px 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #278355;
    border-radius: 5px;
    box-sizing: border-box;
    background: #278355;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
body.home .mr-tools__view-all:hover,
body.home .mr-tools__view-all:focus {
    border-color: #1f7049;
    background: #1f7049;
    color: #ffffff !important;
    transform: translateY(-1px);
}
body.home .mr-tools__view-all:focus-visible {
    outline: 3px solid rgba(45, 150, 100, 0.35);
    outline-offset: 3px;
}
@media (max-width: 900px) {
    body.home .mr-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    body.home .mr-tools { padding: 20px 12px 6px; }
    body.home .mr-tools__inner { padding: 22px 14px 24px; border-radius: 15px; }
    body.home .mr-tools__header h2 { font-size: 29px; }
    body.home .mr-tools__grid { grid-template-columns: 1fr; gap: 13px; }
    body.home .mr-tool-card { min-height: 188px; }
    body.home .mr-tool-card__content { padding: 18px 18px 16px; }
    body.home .mr-tools__view-all { width: 100%; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    body.home .mr-tool-card,
    body.home .mr-tool-card__cta-arrow,
    body.home .mr-tools__view-all {
        transition: none;
    }
    body.home .mr-tool-card:hover,
    body.home .mr-tools__view-all:hover,
    body.home .mr-tools__view-all:focus {
        transform: none;
    }
}
