/**
 * SEO feature / solutions landing pages — extends bk-tos-page layout.
 */

.bk-feature-page .bk-feature-page__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a58ca;
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin: 0 0 0.75rem;
    line-height: 1.25;
    text-align: center;
    align-self: flex-start;
    white-space: nowrap;
    flex: 0 0 auto;
}

.bk-feature-page .row > [class*='col-'] {
    display: flex;
}

.bk-feature-page__card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.35rem 1.35rem;
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bk-feature-page__card-media {
    display: block;
    margin: -1.25rem -1.35rem 1rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #eef4ff;
    aspect-ratio: 16 / 9;
}

.bk-feature-page__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bk-feature-page__card:hover .bk-feature-page__card-media img {
    transform: scale(1.03);
}

.bk-feature-page__hero-media {
    margin: 0 0 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    background: #eef4ff;
    border: 1px solid #e2e8f0;
    aspect-ratio: 16 / 9;
}

.bk-feature-page__hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-feature-page__card h2 {
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.bk-feature-page__card p {
    flex: 1 1 auto;
}

.bk-feature-page__card-actions {
    margin-top: 1rem;
}

.bk-feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bk-feature-btn--primary {
    background: linear-gradient(160deg, #0d47e8, #012cae);
    color: #fff !important;
    border: 1px solid #012cae;
    box-shadow: 0 8px 22px rgba(1, 44, 174, 0.28);
}

.bk-feature-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(1, 44, 174, 0.34);
    color: #fff !important;
}

.bk-feature-btn--outline {
    background: #fff;
    color: #012cae !important;
    border: 1px solid #b6d4fe;
}

.bk-feature-btn--outline:hover {
    background: #f8fbff;
    border-color: #0a58ca;
    color: #012cae !important;
}

.bk-feature-page__list {
    margin: 0;
    padding-left: 1.2rem;
}

.bk-feature-page__list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.bk-feature-page__related {
    border-top: 1px solid #e2e8f0;
}

.bk-feature-page__related-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.bk-feature-page__related-links a {
    color: #0a58ca;
    text-decoration: none;
}

.bk-feature-page__related-links a:hover {
    text-decoration: underline;
}

body[class^="feature_"] .bk-tos-hero,
body.feature_solutions .bk-tos-hero {
    scroll-margin-top: 6.5rem;
    padding-top: 4.25rem;
}

.bk-feature-page .bk-tos-hero .bk-feature-btn--primary {
    margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
    body[class^="feature_"] .bk-tos-hero,
    body.feature_solutions .bk-tos-hero {
        padding-top: 3.5rem;
    }
}
