.seo-page,
.seo-tools-hub {
    --primary-color: #002868;
    --primary-dark: #001d4f;
    --primary-light: #eaf0f8;
    --brand-red: #bf0a30;
}

.seo-page .btn-primary {
    --bs-btn-bg: #002868;
    --bs-btn-border-color: #002868;
    --bs-btn-hover-bg: #001d4f;
    --bs-btn-hover-border-color: #001d4f;
    --bs-btn-active-bg: #001d4f;
    --bs-btn-active-border-color: #001d4f;
}

.seo-page .form-check-input:checked {
    background-color: #bf0a30;
    border-color: #bf0a30;
}

.seo-page .tool-breadcrumb .text-primary,
.seo-page .tool-page-title .text-primary,
.seo-page .text-primary {
    color: #002868 !important;
}

.seo-tools-page-note {
    color: #667085;
    font-size: .88rem;
    line-height: 1.5;
}

.seo-tools-eyebrow {
    margin: 0 0 8px;
    color: #bf0a30;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.seo-tools-hub-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: #bf0a30 !important;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
}

.seo-tools-hub-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: #002868;
    border-radius: 10px;
}

.seo-tools-hub-hero {
    padding: 88px 0 74px;
    color: #fff;
    text-align: center;
    background: linear-gradient(130deg, #001d4f, #002868 62%, #123d77);
}

.seo-tools-hub-hero .container {
    max-width: 900px;
}

.seo-tools-hub-hero .seo-tools-eyebrow {
    color: #ffb5c5;
}

.seo-tools-hub-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
}

.seo-tools-hub-hero p:last-child {
    margin: 0 auto;
    max-width: 700px;
    color: rgba(255,255,255,.82);
    font-size: 1.1rem;
    line-height: 1.7;
}

.seo-tools-hub-list {
    padding: 64px 0 80px;
    background: #f7f9fc;
}

.seo-tools-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.seo-tools-hub-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 26px;
    color: #13233c;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 40, 104, .05);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.seo-tools-hub-card:hover {
    color: #13233c;
    border-color: #bf0a30;
    box-shadow: 0 16px 38px rgba(0, 40, 104, .12);
    transform: translateY(-3px);
}

.seo-tools-hub-card .seo-tools-hub-icon {
    margin-bottom: 20px;
}

.seo-tools-hub-category {
    margin-bottom: 8px;
    color: #bf0a30;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.seo-tools-hub-card h2 {
    margin: 0 0 10px;
    color: #002868;
    font-size: 1.2rem;
    font-weight: 750;
}

.seo-tools-hub-card p {
    margin: 0 0 20px;
    color: #596579;
    line-height: 1.6;
}

.seo-tools-hub-link {
    margin-top: auto;
}

.seo-tools-hub-note {
    margin: 28px 0 0;
    color: #667085;
    font-size: .88rem;
    text-align: center;
}

@media (max-width: 991px) {
    .seo-tools-hub-hero {
        padding: 62px 0 54px;
    }

    .seo-tools-hub-list {
        padding: 42px 0 54px;
    }

    .seo-tools-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .seo-tools-hub-card {
        min-height: 230px;
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .seo-tools-hub-grid {
        grid-template-columns: 1fr;
    }
}
