/* ==========================================================================
   Home page: pole barn guru
   Media (bordered photo + gradient caption box) + content column (title,
   subtitle, "featured guides" list). Desktop: 2 columns. Mobile: stacked,
   the "view all guides" link becomes a full-width bordered button.
   ========================================================================== */

.home-guru {
    padding: 80px 0 48px;
}

.home-guru__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-guru__media {
    position: relative;
    border: 3px solid var(--hpb-color-subtext);
    border-radius: 8px;
    overflow: hidden;
}

.wrapper .home-guru__image,
.home-guru__image {
    display: block;
    width: auto;
    height: 100% !important;
    object-fit: cover;
}

.home-guru__image-content {
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 16px;
    padding: 70px 32px 32px;
    border-radius: 8px;
    background: linear-gradient(360deg, #004F99 30.46%, rgba(0, 56, 112, 0) 101.63%);
}

.home-guru__image-content_wrapper {
    display: flex;
    flex-direction: column;
    padding-left: 24px;
    border-left: 2px solid var(--hpb-color-white);
    color: var(--hpb-color-white);
}

.home-guru__image-text,
.home-guru__image-title {
    font-family: var(--hpb-font-family-base);
    font-size: var(--hpb-font-size-20);
    line-height: 28px;
    font-weight: var(--hpb-fw-regular);
    color: var(--hpb-color-white);
}

.home-guru__image-title {
   font-weight: var(--hpb-fw-bold);
}

.home-guru__content {
    margin-top: 24px;
}

.home-guru__title {
    color: var(--hpb-color-dark);
}

.home-guru__text {
    margin-top: 16px;
}

.home-guru__guides-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
}

.home-guru__guides-title {
    color: var(--hpb-color-dark);
}

.home-guru__link--desktop {
    display: none;
    text-decoration: underline;
    color: var(--hpb-color-dark-50);
}

.home-guru__guides {
    margin-top: 24px;
}

.home-guru__guide {
    position: relative;
    padding: 16px 32px 16px 0;
    border-bottom: 2px solid var(--hpb-color-border-3);
}

.home-guru__guide::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background-color: #C2C6D3;
    transition: background-color 300ms;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-2.29485e-07 6.75L9.13125 6.75L4.93125 10.95L6 12L12 6L6 6.91406e-07L4.93125 1.05L9.13125 5.25L-2.95052e-07 5.25L-2.29485e-07 6.75Z' fill='%23122239'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-2.29485e-07 6.75L9.13125 6.75L4.93125 10.95L6 12L12 6L6 6.91406e-07L4.93125 1.05L9.13125 5.25L-2.95052e-07 5.25L-2.29485e-07 6.75Z' fill='%23122239'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.home-guru__guide:first-child::after {
    top: calc(50% - 8px);
}

.home-guru__guide:hover::after {
    background-color: var(--hpb-color-blue-middle);
}

.home-guru__guide:first-child {
    padding-top: 0;
}

.home-guru__guide-link {
    display: block;
    text-decoration: none;
}

.home-guru__guide-link::before {
    content: '';
    position: absolute;
    inset: 0;
}

.home-guru__guide-title {
    font-family: var(--hpb-font-family-base);
    font-size: var(--hpb-font-size-14);
    line-height: 20px;
    font-weight: var(--hpb-fw-bold);
    color: var(--hpb-color-dark);
    text-decoration: none;
}

.home-guru__guide-excerpt {
    font-family: var(--hpb-font-family-base);
    font-size: var(--hpb-font-size-12);
    line-height: 20px;
    color: var(--hpb-color-dark-70);
}

.home-guru__link--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
}

@media (min-width: 750px) {
    .home-guru__inner {
        flex-direction: row;
    }
    .home-guru__content,
    .home-guru__media {
        width: calc(50% - 16px);
        height: auto;
    }
}

@media (min-width: 992px) {
    .home-guru {
        padding: 128px 0;
    }

    .home-guru__inner {
        gap: 80px;
    }

    .home-guru__content,
    .home-guru__media {
        width: calc(50% - 40px);
    }

    .home-guru__guides-heading {
        margin-top: 64px;
    }

    .home-guru__content {
        margin-top: 0;
    }

    .home-guru__link--desktop {
        display: inline-flex;
        flex-shrink: 0;
    }

    .home-guru__link--mobile {
        display: none;
    }
    .home-guru__guides {
        margin-top: 32px;
    }
    .home-guru__guide {
        padding: 24px 32px 16px 0;
    }
    .home-guru__guide-title {
        font-size: var(--hpb-font-size-16);
        line-height: 24px;
    }
    .home-guru__guide-excerpt {
        margin-top: 4px;
        font-size: var(--hpb-font-size-14);
        font-weight: var(--hpb-fw-medium);
    }
    .home-guru__guide::after {
        top: calc(50% + 8px);
    }
    .home-guru__image-content {
        max-width: 320px;
    }
}
