/* SEO Education guide pages — layout shell */

.page-seo-education-guide {
    --seo-ed-purple: #6b2d8a;
    --seo-ed-purple-deep: #3d1a5c;
    --seo-ed-purple-dark: #1a0a28;
    --seo-ed-gold: #e7b863;
    --seo-ed-mint: #14b8a6;
    --seo-ed-surface: #f3f0f8;
    --seo-ed-line: rgba(107, 45, 138, 0.12);
    --seo-ed-text: #334445;
}

.page-seo-education-guide .post-seo-ed-guide {
    padding-bottom: 0;
}

/* Hero */
.seo-ed-guide-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(2.25rem, 4.5vw, 3.75rem) 0 clamp(2rem, 4vw, 3.25rem);
    background:
        radial-gradient(900px 480px at 10% -10%, rgba(231, 184, 99, 0.28), transparent 58%),
        radial-gradient(760px 420px at 92% 0%, rgba(20, 184, 166, 0.22), transparent 55%),
        linear-gradient(155deg, var(--seo-ed-purple-dark) 0%, var(--seo-ed-purple-deep) 38%, var(--seo-ed-purple) 72%, #4a1d66 100%);
}

.seo-ed-guide-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--seo-ed-gold) 0%, var(--seo-ed-mint) 50%, var(--seo-ed-purple) 100%);
}

.seo-ed-guide-hero-glow {
    position: absolute;
    inset: auto -15% -45% 35%;
    height: 70%;
    z-index: 0;
    background: radial-gradient(circle, rgba(107, 45, 138, 0.45), transparent 68%);
    pointer-events: none;
}

.seo-ed-guide-hero-media {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    pointer-events: none;
}

.seo-ed-guide-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.seo-ed-guide-hero--has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(26, 10, 40, 0.82) 0%, rgba(26, 10, 40, 0.58) 48%, rgba(61, 26, 92, 0.22) 100%);
    pointer-events: none;
}

.seo-ed-guide-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.seo-ed-guide-eyebrow,
.seo-ed-guide-eyebrow a {
    color: rgba(255, 255, 255, 0.78);
}

.seo-ed-guide-eyebrow a:hover {
    color: #fff;
}

.seo-ed-guide-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.seo-ed-guide-hero-lead {
    margin: 1rem 0 0;
    max-width: 40rem;
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.seo-ed-guide-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.35rem;
}

.seo-ed-guide-meta-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.seo-ed-guide-meta-pill strong {
    font-weight: 800;
    color: #fff;
}

/* Body */
.seo-ed-guide-body {
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(3rem, 5vw, 4rem);
    background: var(--seo-ed-surface);
}

.seo-ed-guide-body > .container {
    max-width: 1180px;
}

.seo-ed-guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
    grid-template-areas: "content sidebar";
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
    align-items: start;
}

.seo-ed-guide-layout > * {
    min-width: 0;
}

.seo-ed-guide-content {
    grid-area: content;
}

.seo-ed-guide-sidebar {
    grid-area: sidebar;
}

.seo-ed-guide-layout--full {
    display: block;
    grid-template-areas: none;
}

.seo-ed-guide-layout--full .seo-ed-guide-content {
    grid-area: auto;
}

.seo-ed-guide-content {
    min-width: 0;
    max-width: none;
    background: #fff;
    border: 1px solid var(--seo-ed-line);
    border-radius: 20px;
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 2.8vw, 2.35rem);
    box-shadow: 0 18px 48px rgba(26, 10, 40, 0.07);
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--seo-ed-text);
}

/* Prose rhythm — override global .post-content stacking */
.page-seo-education-guide .seo-ed-guide-content.post-content p,
.page-seo-education-guide .seo-ed-guide-content.post-content ul,
.page-seo-education-guide .seo-ed-guide-content.post-content ol {
    margin-bottom: 0.85rem;
}

.page-seo-education-guide .seo-ed-guide-content.post-content p:last-child,
.page-seo-education-guide .seo-ed-guide-content.post-content ul:last-child,
.page-seo-education-guide .seo-ed-guide-content.post-content ol:last-child {
    margin-bottom: 0;
}

.page-seo-education-guide .seo-ed-guide-content.post-content a {
    color: var(--seo-ed-purple);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(107, 45, 138, 0.35);
    text-underline-offset: 0.14em;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.page-seo-education-guide .seo-ed-guide-content.post-content a:hover {
    color: var(--seo-ed-purple-deep);
    text-decoration-color: rgba(61, 26, 92, 0.55);
}

.page-seo-education-guide .seo-ed-guide-content strong,
.page-seo-education-guide .seo-ed-guide-content b {
    color: var(--seo-ed-purple-deep);
    font-weight: 700;
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-guide-prose {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Empty Elementor columns only — keep real images, spacers, and overlays */
.page-seo-education-guide .seo-ed-guide-content .elementor-column:not(:has(.elementor-widget-wrap.elementor-element-populated)) {
    display: none !important;
    width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 0 !important;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-button,
.page-seo-education-guide .seo-ed-cta-wrap {
    margin: 0;
    padding: 0;
    text-align: center;
    background: none;
    border: none;
}

.seo-ed-guide-sidebar .post-toc {
    margin-bottom: 1rem;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc {
    position: static;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-desktop {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--seo-ed-line);
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 10, 40, 0.06);
    width: 100%;
    max-width: 100%;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--seo-ed-purple);
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-list {
    margin: 0.65rem 0 0;
    padding-left: 0;
    list-style: none;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-item {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(107, 45, 138, 0.08);
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-item:first-child {
    border-top: none;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-item a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 600;
    color: #3d4a5c;
    text-decoration: none;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-item a:hover {
    color: var(--seo-ed-purple);
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-level-3,
.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-level-4,
.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-level-5,
.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-level-6 {
    display: none;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-desktop::before {
    background: linear-gradient(180deg, var(--seo-ed-purple) 0%, rgba(231, 184, 99, 0.65) 100%);
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-icon {
    background: rgba(107, 45, 138, 0.1);
    color: var(--seo-ed-purple);
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-item a.is-active {
    color: var(--seo-ed-purple);
    background: rgba(107, 45, 138, 0.08);
    border-left-color: var(--seo-ed-purple);
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-nav {
    max-height: 42vh;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.seo-ed-toc-group + .seo-ed-toc-group {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(107, 45, 138, 0.1);
}

.seo-ed-toc-group-label {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(107, 45, 138, 0.72);
}

.seo-ed-guide-sidebar.post-v2-sidebar {
    position: sticky;
    top: 5.75rem;
    align-self: start;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    padding-bottom: 0.25rem;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-mobile {
    display: none;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc,
.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-desktop,
.page-seo-education-guide .seo-ed-guide-sidebar .post-v2-sidebar-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-seo-education-guide .seo-ed-guide-sidebar .post-toc-item a {
    overflow-wrap: anywhere;
}

.seo-ed-guide-sidebar-panel {
    border-color: var(--seo-ed-line);
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(231, 184, 99, 0.2), transparent 55%),
        linear-gradient(155deg, var(--seo-ed-purple-dark) 0%, var(--seo-ed-purple-deep) 48%, var(--seo-ed-purple) 100%);
    box-shadow: 0 16px 36px rgba(26, 10, 40, 0.2);
}

.seo-ed-guide-sidebar-panel .post-v2-sidebar-eyebrow {
    color: var(--seo-ed-gold);
}

/* Elementor shell — clean prose layout inside the guide card */
.page-seo-education-guide .seo-ed-guide-content .elementor {
    width: 100%;
    color: var(--seo-ed-text);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-section {
    position: relative;
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-image: none !important;
    border: none;
    box-shadow: none;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-section .elementor-background-overlay,
.page-seo-education-guide .seo-ed-guide-content .elementor-shape,
.page-seo-education-guide .seo-ed-guide-content .elementor-widget-spacer {
    display: none !important;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-section.elementor-section-height-min-height {
    min-height: 0 !important;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-column,
.page-seo-education-guide .seo-ed-guide-content .elementor-col-100,
.page-seo-education-guide .seo-ed-guide-content .elementor-col-66,
.page-seo-education-guide .seo-ed-guide-content .elementor-col-50,
.page-seo-education-guide .seo-ed-guide-content .elementor-col-33,
.page-seo-education-guide .seo-ed-guide-content .seo-ed-split-col,
.page-seo-education-guide .seo-ed-guide-content .elementor-element-8c0bafd {
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.elementor-col-50 h2):has(.elementor-col-50:nth-child(2) h2) h2 {
    font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
}

/* Icon + copy rows (imported 50/50 Elementor columns) */
.page-seo-education-guide .seo-ed-guide-content .seo-ed-tip-card {
    margin: 1.15rem 0 1.25rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--seo-ed-line);
    background-color: #faf8fc;
    background-image: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
    box-shadow: 0 8px 22px rgba(26, 10, 40, 0.04);
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-tip-card .elementor-inner-section {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.elementor-widget-icon) {
    margin: 0 0 1.1rem;
    padding: 1.05rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--seo-ed-line);
    background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
    box-shadow: 0 8px 22px rgba(26, 10, 40, 0.04);
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-tip-card .elementor-inner-section:has(.elementor-widget-icon) {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.elementor-widget-icon) .elementor-container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.9rem;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section .elementor-col-50:has(.elementor-widget-icon):not(:has(.elementor-widget-text-editor)):not(:has(.elementor-widget-heading)) {
    flex: 0 0 3.25rem !important;
    width: 3.25rem !important;
    max-width: 3.25rem !important;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.elementor-widget-icon) .elementor-col-50:has(.elementor-widget-text-editor) {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-tip-card .elementor-column {
    align-self: flex-start;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-icon {
    margin: 0;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-icon .elementor-icon-wrapper {
    display: flex;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-icon .elementor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: rgba(107, 45, 138, 0.1);
    color: var(--seo-ed-purple);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-icon svg,
.page-seo-education-guide .seo-ed-guide-content .elementor-widget-icon .e-font-icon-svg {
    width: 1.35rem !important;
    height: 1.35rem !important;
    max-width: 1.35rem !important;
    max-height: 1.35rem !important;
    fill: currentColor;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.elementor-widget-animated-headline) {
    margin: 1.85rem 0 0.25rem;
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-tip-card .elementor-inner-section:has(.elementor-widget-animated-headline) {
    margin: 0 0 0.55rem;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-animated-headline .elementor-headline {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--seo-ed-purple-deep);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-headline-plain-text {
    color: var(--seo-ed-mint);
    font-variant-numeric: tabular-nums;
}

.page-seo-education-guide .seo-ed-guide-content h4.elementor-heading-title {
    margin: 0.35rem 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--seo-ed-purple);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ol:has(h4) {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: seo-ed-step;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-process-panel {
    margin: 1rem 0 1.5rem;
    padding: 1.05rem 1.05rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--seo-ed-line);
    background: linear-gradient(180deg, rgba(107, 45, 138, 0.04) 0%, #fff 42%);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ol:has(h4) > li {
    counter-increment: seo-ed-step;
    position: relative;
    padding: 0.95rem 1.05rem 0.95rem 3.4rem;
    border-radius: 14px;
    border: 1px solid var(--seo-ed-line);
    background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ol:has(h4) > li::before {
    content: counter(seo-ed-step);
    position: absolute;
    left: 0.85rem;
    top: 0.95rem;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--seo-ed-purple);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ol:has(h4) > li h4 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--seo-ed-purple-deep);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ol:has(h4) > li ul {
    margin: 0.15rem 0 0;
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-process-panel ol:has(h4) > li ol {
    list-style: decimal;
    margin: 0.35rem 0 0.15rem;
    padding-left: 1.35rem;
    display: block;
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-process-panel ol:has(h4) > li ol > li {
    counter-increment: none;
    padding: 0.1rem 0;
    border: none;
    background: none;
    border-radius: 0;
}

.page-seo-education-guide .seo-ed-guide-content .seo-ed-process-panel ol:has(h4) > li ol > li::before {
    content: none;
    display: none;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-image:has(img[alt*="More SEO"]) {
    display: none !important;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-wrap {
    width: 100%;
    gap: 0;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget {
    margin-bottom: 0.65rem;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget:last-child {
    margin-bottom: 0;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section {
    margin: 0.85rem 0;
    padding: 0;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor p,
.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor li {
    font-size: inherit;
    line-height: 1.72;
    color: var(--seo-ed-text);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ul,
.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ol {
    margin: 0.65rem 0 0.9rem;
    padding-left: 0;
    list-style: none;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ul li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.4rem;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--seo-ed-mint);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ol {
    padding-left: 1.35rem;
    list-style: decimal;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-text-editor ol:not(:has(h4)) li::before {
    content: none;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-heading-title {
    color: var(--seo-ed-purple-deep);
}

.page-seo-education-guide .seo-ed-guide-content h2.elementor-heading-title {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: clamp(1.32rem, 2.6vw, 1.72rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.page-seo-education-guide .seo-ed-guide-content h2.seo-ed-guide-section {
    margin-top: 2.35rem;
    margin-bottom: 0.85rem;
    padding-top: 0;
    border-top: none;
}

.page-seo-education-guide .seo-ed-guide-content h2.seo-ed-guide-section::before {
    content: "";
    display: block;
    width: 3.25rem;
    height: 3px;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--seo-ed-purple) 0%, var(--seo-ed-gold) 100%);
}

.page-seo-education-guide .seo-ed-guide-content h3.elementor-heading-title {
    font-size: 1.08rem;
    margin-top: 1.1rem;
    margin-bottom: 0.45rem;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-headline {
    margin: 0.75rem 0 1rem;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--seo-ed-purple-deep);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-headline-dynamic-text {
    color: var(--seo-ed-purple);
}

.page-seo-education-guide .elementor-element-e08b7fe {
    display: none !important;
}

/* Imported footer widgets stripped in PHP — hide any survivors */
.page-seo-education-guide .seo-ed-guide-content .elementor-widget-loop-carousel,
.page-seo-education-guide .seo-ed-guide-content .elementor-widget-share-buttons,
.page-seo-education-guide .seo-ed-guide-content #ez-toc-container,
.page-seo-education-guide .seo-ed-guide-content .ez-toc-container {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

/* Duplicate page hero h1 inside imported markup */
.page-seo-education-guide .seo-ed-guide-content h1.elementor-heading-title {
    display: none !important;
}

/* Lead callout — not in TOC */
.seo-ed-lead-callout {
    margin: 1.25rem 0 1.5rem;
    padding: 1.15rem 1.2rem 1.15rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(107, 45, 138, 0.14);
    border-left: 4px solid var(--seo-ed-gold);
    background: linear-gradient(135deg, rgba(107, 45, 138, 0.06), rgba(231, 184, 99, 0.12));
    font-size: 1rem;
    line-height: 1.55;
    color: #2d3748;
    font-weight: 600;
}

.seo-ed-lead-callout-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--seo-ed-purple);
}

.seo-ed-lead-callout > p:last-child {
    margin: 0;
    font-weight: 600;
    color: #2d3748;
}

.seo-ed-lead-callout-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-ed-lead-callout-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.35rem;
    font-weight: 600;
}

.seo-ed-lead-callout-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--seo-ed-purple);
    box-shadow: 0 0 0 3px rgba(107, 45, 138, 0.15);
}

.seo-ed-lead-callout br {
    display: block;
    margin-bottom: 0.5rem;
    content: "";
}

.seo-ed-section-kicker {
    display: inline-flex;
    align-items: center;
    margin: 1.75rem 0 0.85rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--seo-ed-purple);
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Case study clusters — stack copy, then results, so metrics have room */
.page-seo-education-guide .seo-ed-guide-content .seo-ed-case-cluster {
    margin: 1.5rem 0;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--seo-ed-line);
    background: #fff;
    box-shadow: 0 10px 28px rgba(26, 10, 40, 0.05);
}

.page-seo-education-guide .seo-ed-case-cluster .elementor-container,
.page-seo-education-guide .seo-ed-case-cluster .seo-ed-block > .elementor-container:has(.seo-ed-split-col) {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 1rem;
    width: 100%;
}

.page-seo-education-guide .seo-ed-case-cluster .seo-ed-split-col,
.page-seo-education-guide .seo-ed-case-cluster .elementor-col-50,
.page-seo-education-guide .seo-ed-case-cluster .elementor-col-50:first-child,
.page-seo-education-guide .seo-ed-case-cluster .elementor-col-50:last-child {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.seo-ed-case-study-head {
    margin: 0 0 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(107, 45, 138, 0.1);
}

.seo-ed-case-study-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--seo-ed-purple);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.seo-ed-case-study-title {
    margin: 0 !important;
    color: var(--seo-ed-purple-deep) !important;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem) !important;
}

.seo-ed-results-title {
    display: inline-flex;
    align-items: center;
    margin: 0.5rem 0 0.75rem !important;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f5c4e !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.seo-ed-stat-label {
    margin: 0.35rem 0 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: var(--seo-ed-purple-deep) !important;
}

.seo-ed-results-panel {
    width: 100%;
    box-sizing: border-box;
    margin: 0.35rem 0 0.15rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 16px;
    border: 1px solid var(--seo-ed-line);
    background: linear-gradient(180deg, rgba(107, 45, 138, 0.05) 0%, #fff 58%);
}

.seo-ed-results-panel .seo-ed-results-title {
    margin: 0 0 0.85rem !important;
}

.seo-ed-results-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(9.75rem, 1fr));
}

.seo-ed-results-metrics:has(.elementor-widget-counter:nth-child(2)),
.seo-ed-results-metrics:has(.elementor-widget-counter:nth-child(3)) {
    grid-template-columns: repeat(auto-fit, minmax(9.75rem, 1fr));
}

.seo-ed-results-metrics .elementor-widget-counter,
.seo-ed-results-metrics .seo-ed-stat {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    transform: none !important;
}

.seo-ed-results-metrics .elementor-counter {
    height: 100%;
    padding: 0.85rem 0.7rem !important;
    box-sizing: border-box;
}

.seo-ed-results-metrics .elementor-counter-title {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.seo-ed-results-metrics .elementor-counter-number-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.seo-ed-results-metrics .elementor-counter-number {
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
}

.seo-ed-results-metrics .elementor-counter-number-prefix,
.seo-ed-results-metrics .elementor-counter-number-suffix {
    font-size: 1rem !important;
}

.seo-ed-results-panel .seo-ed-stat-label {
    margin: 0.9rem 0 0 !important;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(107, 45, 138, 0.1);
}

/* Stat counters in results */
.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section .elementor-widget-wrap:has(.elementor-widget-counter),
.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section .elementor-widget-wrap:has(.seo-ed-results-panel) {
    display: block;
    width: 100%;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-image {
    margin: 0.35rem 0 0.65rem;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-image figure {
    margin: 0;
    line-height: 0;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-image img {
    margin: 0 !important;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--seo-ed-line);
    box-shadow: 0 10px 28px rgba(26, 10, 40, 0.08);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-image figcaption {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
    text-align: center;
}

.page-seo-education-guide .seo-ed-guide-content .qodef-qi-before-after {
    margin: 0.75rem 0 1rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--seo-ed-line);
    box-shadow: 0 12px 32px rgba(26, 10, 40, 0.1);
}

.page-seo-education-guide .seo-ed-guide-content img {
    max-width: 100%;
    height: auto;
}

/* Qi Addons info cards — two-column On-Page / Off-Page layout */
.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.qodef-qi-info-cards) {
    margin: 1rem 0;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--seo-ed-line);
    background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.qodef-qi-info-cards) .elementor-container {
    flex-direction: column;
    align-items: stretch;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.qodef-qi-info-cards) .elementor-col-50 {
    width: 100% !important;
    max-width: 100% !important;
}

.page-seo-education-guide .seo-ed-guide-content .qodef-qi-info-cards {
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--seo-ed-line);
    background: #fff;
    height: 100%;
}

.page-seo-education-guide .seo-ed-guide-content .qodef-m-icon-wrapper {
    margin-bottom: 0.5rem;
}

/* Process steps timeline */
.page-seo-education-guide .seo-ed-guide-content .qodef-qi-process {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--seo-ed-line);
    background: #faf8fc;
}

.page-seo-education-guide .seo-ed-guide-content .qodef-qi-process .qodef-process-item:last-child .qodef-e-line {
    display: none;
}

/* Metric pills (Ranking / Traffic / Leads) */
.page-seo-education-guide .seo-ed-guide-content .elementor-widget-icon-list {
    margin: 0.75rem 0 1rem;
}

@media (max-width: 720px) {
    .page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.qodef-qi-info-cards) .elementor-col-50 {
        width: 100%;
    }
}

/* Process / icon grid sections */
.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.elementor-widget-icon-box) {
    margin: 1.15rem 0;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--seo-ed-line);
    background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-widget-icon-box .elementor-icon-box-wrapper {
    padding: 0.85rem 0.65rem;
    border-radius: 12px;
    border: 1px solid var(--seo-ed-line);
    background: #faf8fc;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-seo-education-guide .elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 10, 40, 0.08);
}

.page-seo-education-guide .elementor-widget-icon-box .elementor-icon-box-icon {
    margin-bottom: 0.45rem;
}

.page-seo-education-guide .elementor-widget-icon-box .elementor-icon-box-title {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--seo-ed-purple-deep) !important;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section .elementor-widget-wrap:has(.elementor-widget-icon-box) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.65rem;
}

.page-seo-education-guide .seo-ed-guide-content .elementor-inner-section .elementor-widget-wrap:has(.elementor-widget-icon-box) .elementor-widget-icon-box {
    margin-bottom: 0;
}

/* Section dividers */
.page-seo-education-guide .seo-ed-guide-content .elementor-widget-divider {
    margin: 1.25rem 0 0.5rem;
}

.page-seo-education-guide .seo-ed-cta-wrap {
    margin: 1.5rem 0;
    padding: 0;
    background: none;
    border: none;
    text-align: center;
}

.page-seo-education-guide .seo-ed-cta {
    display: flex;
    justify-content: center;
    margin: 1.75rem 0 1.25rem;
}

.page-seo-education-guide .seo-ed-cta .button {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    max-width: 100%;
    font-weight: 800;
    color: #1a0a28;
    box-shadow: 0 10px 24px rgba(231, 184, 99, 0.28);
}

.page-seo-education-guide .seo-ed-guide-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.page-seo-education-guide .seo-ed-guide-content table th,
.page-seo-education-guide .seo-ed-guide-content table td {
    border: 1px solid var(--seo-ed-line);
    padding: 0.55rem 0.7rem;
    text-align: left;
}

.page-seo-education-guide .seo-ed-guide-content table th {
    background: rgba(107, 45, 138, 0.06);
    color: var(--seo-ed-purple-deep);
    font-weight: 700;
}

.page-seo-education-guide .seo-ed-article {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.page-seo-education-guide .seo-ed-split-col {
    width: 100%;
    max-width: 100%;
}

.page-seo-education-guide .seo-ed-media img {
    border-radius: 16px;
}

.page-seo-education-guide .seo-ed-stat .elementor-counter,
.page-seo-education-guide .seo-ed-stat {
    border-radius: 16px;
}

.page-seo-education-guide .seo-ed-kicker-line .elementor-headline {
    font-family: var(--font-sans);
    color: var(--seo-ed-purple-deep);
}

.page-seo-education-guide .seo-ed-faq .elementor-accordion-item {
    border: 1px solid var(--seo-ed-line);
    border-radius: 14px;
    background: #fff;
    margin-bottom: 0.55rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(26, 10, 40, 0.04);
}

.page-seo-education-guide .seo-ed-faq .elementor-accordion-title {
    padding: 0.9rem 1rem;
    font-weight: 700;
    color: var(--seo-ed-purple-deep);
    background: rgba(107, 45, 138, 0.05);
}

.page-seo-education-guide .seo-ed-faq .elementor-tab-content {
    padding: 0.85rem 1rem 1rem;
    color: var(--seo-ed-text);
}

.page-seo-education-guide .seo-ed-toc-accordion {
    margin: 0 0 1.35rem;
}

.page-seo-education-guide .seo-ed-toc-accordion .elementor-tab-content {
    display: block !important;
}

.page-seo-education-guide .seo-ed-toc-accordion .elementor-tab-content ol {
    margin: 0;
    padding-left: 1.2rem;
}

.page-seo-education-guide .seo-ed-toc-accordion .elementor-tab-content a {
    color: var(--seo-ed-purple);
    font-weight: 650;
}

.page-seo-education-guide .seo-ed-icon-list .elementor-icon-list-item {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--seo-ed-line);
}

.page-seo-education-guide .seo-ed-guide-content .elementor-column {
    background-color: transparent !important;
    background-image: none !important;
}

/* Related guides */
.seo-ed-guide-related {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.75rem;
    border-top: 1px solid var(--seo-ed-line);
}

.seo-ed-guide-related-head h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.3rem, 2.8vw, 1.65rem);
    color: var(--seo-ed-purple-deep);
}

.seo-ed-guide-related-grid {
    margin-top: 1rem;
}

.seo-ed-guide-related-card {
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-ed-guide-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 10, 40, 0.08);
}

.seo-ed-guide-related-meta {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--seo-ed-purple);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.seo-ed-guide-related-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
}

.seo-ed-guide-related-card h3 a {
    color: var(--seo-ed-purple-deep);
    text-decoration: none;
}

.seo-ed-guide-related-card h3 a:hover {
    color: var(--seo-ed-purple);
}

/* Footer */
.seo-ed-guide-footer {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.seo-ed-guide-nav {
    margin-bottom: 1.5rem;
}

.seo-ed-guide-cta {
    border-radius: 20px;
    padding: clamp(1.35rem, 2.5vw, 1.85rem);
    background:
        radial-gradient(640px 280px at 0% 0%, rgba(231, 184, 99, 0.22), transparent 60%),
        linear-gradient(135deg, var(--seo-ed-purple-deep) 0%, var(--seo-ed-purple) 58%, #4a1d66 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(26, 10, 40, 0.18);
}

.seo-ed-guide-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.75rem;
}

.seo-ed-guide-cta h2 {
    margin: 0.3rem 0 0.45rem;
    color: #fff;
    font-size: clamp(1.3rem, 2.8vw, 1.7rem);
}

.seo-ed-guide-cta p {
    margin: 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.seo-ed-guide-cta .cs-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.seo-ed-guide-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.seo-ed-guide-cta-btn {
    background: var(--seo-ed-gold);
    color: #1a0a28;
    border: none;
    font-weight: 800;
}

.seo-ed-guide-cta-btn:hover {
    background: #f0c978;
    color: #1a0a28;
}

.seo-ed-guide-cta-secondary {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.seo-ed-guide-cta-secondary:hover {
    color: #fff;
}

.seo-ed-guide-back {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 700;
    color: var(--seo-ed-purple);
}

.seo-ed-guide-back:hover {
    color: var(--seo-ed-purple-deep);
}

@media (max-width: 960px) {
    .seo-ed-guide-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "sidebar"
            "content";
    }

    .seo-ed-guide-sidebar {
        order: 0;
    }

    .page-seo-education-guide .seo-ed-guide-sidebar .post-toc-mobile {
        display: block;
    }

    .page-seo-education-guide .seo-ed-guide-sidebar .post-toc-desktop {
        display: none;
    }

    .page-seo-education-guide .seo-ed-guide-content .elementor-inner-section:has(.elementor-widget-icon) .elementor-container {
        flex-wrap: wrap;
    }

    .page-seo-education-guide .seo-ed-guide-content .elementor-col-50,
    .page-seo-education-guide .seo-ed-guide-content .elementor-col-33 {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .seo-ed-results-metrics:has(.elementor-widget-counter:nth-child(3)) {
        grid-template-columns: 1fr;
    }

    .seo-ed-guide-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Basic SEO hub — infographics and structured article */
.page-basic-seo .basic-seo-article > p,
.page-basic-seo .basic-seo-article > h2 {
    max-width: 42rem;
}

.page-basic-seo .basic-seo-kicker {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--seo-ed-purple);
}

.page-basic-seo .basic-seo-article h2 {
    margin: 2.1rem 0 0.85rem;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    color: var(--seo-ed-purple-deep);
}

.page-basic-seo .basic-seo-article p {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--seo-ed-text);
}

.page-basic-seo .basic-seo-figure {
    margin: 1.35rem 0 1.6rem;
    max-width: none;
}

.page-basic-seo .basic-seo-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--seo-ed-line);
    box-shadow: 0 16px 40px rgba(26, 10, 40, 0.08);
    background: #fff;
}

.page-basic-seo .basic-seo-figure figcaption {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    font-style: italic;
    color: #5b6570;
}

.page-basic-seo .basic-seo-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.25rem 0 1.5rem;
}

.page-basic-seo .basic-seo-step {
    padding: 1.05rem 1.05rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--seo-ed-line);
    background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
    box-shadow: 0 8px 22px rgba(26, 10, 40, 0.04);
}

.page-basic-seo .basic-seo-step-num {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--seo-ed-gold);
}

.page-basic-seo .basic-seo-step-title {
    margin: 0 0 0.4rem;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--seo-ed-purple-deep);
}

.page-basic-seo .basic-seo-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.page-basic-seo .basic-seo-factors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.15rem 0 1.5rem;
}

.page-basic-seo .basic-seo-factor {
    padding: 1.2rem 1.15rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--seo-ed-line);
    background: #fff;
    box-shadow: 0 10px 28px rgba(26, 10, 40, 0.05);
}

.page-basic-seo .basic-seo-factor:first-child {
    background: linear-gradient(180deg, rgba(107, 45, 138, 0.06) 0%, #fff 42%);
}

.page-basic-seo .basic-seo-factor:last-child {
    background: linear-gradient(180deg, rgba(231, 184, 99, 0.16) 0%, #fff 42%);
}

.page-basic-seo .basic-seo-factor-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--seo-ed-purple);
}

.page-basic-seo .basic-seo-factor-title {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--seo-ed-purple-deep);
}

.page-basic-seo .basic-seo-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0.35rem 0 1.35rem;
}

.page-basic-seo .basic-seo-metric {
    padding: 1rem 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--seo-ed-line);
    background: #fff;
}

.page-basic-seo .basic-seo-metric strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
    color: var(--seo-ed-purple-deep);
}

.page-basic-seo .basic-seo-metric span {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--seo-ed-text);
}

.page-basic-seo .basic-seo-tools-cta {
    margin: 0.35rem 0 0.5rem;
}

@media (max-width: 900px) {
    .page-basic-seo .basic-seo-steps,
    .page-basic-seo .basic-seo-factors,
    .page-basic-seo .basic-seo-metrics {
        grid-template-columns: 1fr;
    }
}

/* Injected infographics on all SEO Education guides */
.seo-ed-infographic-block {
    margin: 0 0 1.6rem;
}

.seo-ed-guide-content > .seo-ed-infographic-block:first-child {
    margin-top: 0;
}

.seo-ed-info-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    gap: 0.85rem;
    margin: 0 0 1.15rem;
}

.seo-ed-info-step {
    padding: 1.05rem 1.05rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--seo-ed-line);
    background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
    box-shadow: 0 8px 22px rgba(26, 10, 40, 0.04);
}

.seo-ed-info-step-num {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--seo-ed-gold);
}

.seo-ed-info-step-title {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--seo-ed-purple-deep);
}

.seo-ed-info-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.seo-ed-infographic {
    margin: 0;
    max-width: none;
}

.seo-ed-infographic img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--seo-ed-line);
    box-shadow: 0 16px 40px rgba(26, 10, 40, 0.08);
    background: #fff;
}

.seo-ed-infographic figcaption {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    font-style: italic;
    color: #5b6570;
}

@media (max-width: 700px) {
    .seo-ed-info-steps {
        grid-template-columns: 1fr;
    }
}
