/*
|--------------------------------------------------------------------------
| Who Uses Veteran Owned Business — Shared Footer Sections
|--------------------------------------------------------------------------
| Used by:
| /includes/php/users/related-user-pages.php
| /includes/php/users/user-footer-cta.php
|--------------------------------------------------------------------------
*/

.vob-user-footer {
    clear: both;
    margin: 30px 0 0;
    font-family: Arial, Helvetica, sans-serif;
}

.vob-user-footer * {
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| Related User Pages
|--------------------------------------------------------------------------
*/

.vob-related-users {
    margin: 28px 0;
    padding: 25px 24px 27px;
    border: 1px solid #d6e0e9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 46, 72, 0.09);
}

.vob-related-users-header {
    margin: 0 0 20px;
    text-align: center;
}

.vob-related-users-eyebrow {
    display: inline-block;
    margin: 0 0 7px;
    color: #a61f2d;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.75px;
    line-height: 1.2;
    text-transform: uppercase;
}

.vob-related-users-header h2 {
    margin: 0 0 8px;
    color: #0d3b66;
    font-size: 24px;
    line-height: 1.3;
}

.vob-related-users-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #556575;
    font-size: 15px;
    line-height: 1.65;
}

.vob-related-users-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vob-related-user-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    overflow: hidden;
    padding: 21px 19px 18px;
    border: 1px solid #d9e2ea;
    border-radius: 11px;
    background: #f8fafc;
    color: #33475a;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.vob-related-user-card:before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: #a61f2d;
    content: "";
}

.vob-related-user-card:hover,
.vob-related-user-card:focus {
    border-color: #b9c9d8;
    box-shadow: 0 9px 20px rgba(20, 46, 72, 0.12);
    color: #33475a;
    text-decoration: none;
    transform: translateY(-3px);
}

.vob-related-user-card:focus {
    outline: 2px solid #0d3b66;
    outline-offset: 3px;
}

.vob-related-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    margin: 0 0 14px;
    border-radius: 50%;
    background: #e7eef5;
    color: #0d3b66;
    font-size: 18px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.vob-related-user-card:hover .vob-related-user-icon,
.vob-related-user-card:focus .vob-related-user-icon {
    background: #0d3b66;
    color: #ffffff;
}

.vob-related-user-card h3 {
    margin: 0 0 8px;
    color: #173f73;
    font-size: 17px;
    line-height: 1.35;
}

.vob-related-user-card p {
    flex: 1 1 auto;
    margin: 0 0 15px;
    color: #566675;
    font-size: 13px;
    line-height: 1.6;
}

.vob-related-user-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #a61f2d;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
}

.vob-related-user-link .fa {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.vob-related-user-card:hover .vob-related-user-link .fa,
.vob-related-user-card:focus .vob-related-user-link .fa {
    transform: translateX(3px);
}

.vob-related-users-all {
    margin: 20px 0 0;
    text-align: center;
}

.vob-related-users-all a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #b7c6d5;
    border-radius: 5px;
    background: #ffffff;
    color: #0d3b66;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.vob-related-users-all a:hover,
.vob-related-users-all a:focus {
    border-color: #0d3b66;
    background: #0d3b66;
    color: #ffffff;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Shared Footer CTA
|--------------------------------------------------------------------------
*/

.vob-user-footer-cta {
    position: relative;
    overflow: hidden;
    margin: 28px 0 0;
    padding: 31px 25px 29px;
    border: 1px solid #c7d4df;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(245, 249, 252, 0.98) 0%,
            rgba(237, 244, 248, 0.97) 52%,
            rgba(248, 241, 242, 0.97) 100%
        );
    box-shadow: 0 8px 24px rgba(20, 46, 72, 0.08);
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Subtle Patriotic Flag Watermark
|--------------------------------------------------------------------------
*/

.vob-user-footer-cta:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 39%;
    height: 58%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.72) 0 1.5px,
            transparent 2px
        ) 0 0 / 22px 22px,
        linear-gradient(
            135deg,
            rgba(13, 59, 102, 0.10),
            rgba(13, 59, 102, 0.025)
        );
    content: "";
    opacity: 0.55;
    pointer-events: none;
}

.vob-user-footer-cta:after {
    position: absolute;
    right: -12%;
    bottom: -25%;
    width: 85%;
    height: 100%;
    background:
        repeating-linear-gradient(
            -12deg,
            rgba(166, 31, 45, 0.055) 0,
            rgba(166, 31, 45, 0.055) 14px,
            rgba(255, 255, 255, 0) 14px,
            rgba(255, 255, 255, 0) 30px
        );
    content: "";
    transform: rotate(-4deg);
    pointer-events: none;
}

.vob-user-footer-cta-content {
    position: relative;
    z-index: 2;
}

.vob-user-footer-cta-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    color: #a61f2d;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.75px;
    line-height: 1.2;
    text-transform: uppercase;
}

.vob-user-footer-cta h2 {
    margin: 0 0 9px;
    color: #0d3b66;
    font-size: 25px;
    line-height: 1.35;
}

.vob-user-footer-tagline {
    margin: 0 0 12px;
    color: #285b28;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.vob-user-footer-cta-copy {
    max-width: 760px;
    margin: 0 auto 21px;
    color: #4f5d68;
    font-size: 15px;
    line-height: 1.65;
}

.vob-user-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
}

.vob-user-footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(20, 46, 72, 0.08);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.vob-user-footer-button:hover,
.vob-user-footer-button:focus {
    box-shadow: 0 7px 14px rgba(20, 46, 72, 0.16);
    text-decoration: none;
    transform: translateY(-2px);
}

.vob-user-footer-button:focus {
    outline: 2px solid #0d3b66;
    outline-offset: 3px;
}

.vob-user-footer-button-primary {
    background: #a61f2d;
    color: #ffffff;
}

.vob-user-footer-button-primary:hover,
.vob-user-footer-button-primary:focus {
    background: #841722;
    color: #ffffff;
}

.vob-user-footer-button-secondary {
    border-color: #0d3b66;
    background: #0d3b66;
    color: #ffffff;
}

.vob-user-footer-button-secondary:hover,
.vob-user-footer-button-secondary:focus {
    border-color: #082c4d;
    background: #082c4d;
    color: #ffffff;
}

.vob-user-footer-button-light {
    border-color: #b8c8b5;
    background: rgba(255, 255, 255, 0.92);
    color: #285b28;
}

.vob-user-footer-button-light:hover,
.vob-user-footer-button-light:focus {
    border-color: #397339;
    background: #397339;
    color: #ffffff;
}

.vob-user-footer-button .fa {
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| Responsive Layout
|--------------------------------------------------------------------------
*/

@media only screen and (max-width: 850px) {
    .vob-related-users-grid {
        grid-template-columns: 1fr;
    }

    .vob-related-user-card {
        min-height: 0;
    }
}

@media only screen and (max-width: 620px) {
    .vob-related-users,
    .vob-user-footer-cta {
        padding: 22px 18px;
        border-radius: 11px;
    }

    .vob-related-users-header h2,
    .vob-user-footer-cta h2 {
        font-size: 21px;
    }

    .vob-user-footer-tagline {
        font-size: 17px;
    }

    .vob-user-footer-actions {
        display: block;
    }

    .vob-user-footer-button {
        display: flex;
        width: 100%;
        margin: 0 0 10px;
    }

    .vob-user-footer-button:last-child {
        margin-bottom: 0;
    }

    .vob-user-footer-cta:before {
        width: 58%;
        height: 44%;
        opacity: 0.4;
    }

    .vob-user-footer-cta:after {
        right: -28%;
        bottom: -30%;
        width: 115%;
    }
}

@media only screen and (max-width: 420px) {
    .vob-related-users,
    .vob-user-footer-cta {
        padding: 20px 15px;
    }

    .vob-related-user-card {
        padding: 19px 16px 17px;
    }

    .vob-user-footer-cta-copy {
        font-size: 14px;
    }
}