/* Nofal SEO — rich article layouts (.nfs-article + .nfs-seo-article) */

.rich-content .nfs-article,
.rich-content .nfs-seo-article,
.post-content .nfs-article,
.post-content .nfs-seo-article {
    --nfs-blue: #25aae1;
    --nfs-blue-deep: #1a94c8;
    --nfs-dark: #1c1c35;
    --nfs-text: #4d5567;
    --nfs-soft: #f6faff;
    --nfs-border: rgba(28, 28, 53, 0.1);
    font-size: 17px;
    line-height: 1.9;
    color: var(--nfs-text);
}

.rich-content .nfs-article *,
.rich-content .nfs-seo-article *,
.post-content .nfs-article *,
.post-content .nfs-seo-article * {
    box-sizing: border-box;
}

.rich-content .nfs-article a,
.rich-content .nfs-seo-article a,
.post-content .nfs-article a,
.post-content .nfs-seo-article a {
    color: var(--nfs-blue-deep);
    font-weight: 700;
    text-decoration: none;
}

.rich-content .nfs-article a:hover,
.rich-content .nfs-seo-article a:hover,
.post-content .nfs-article a:hover,
.post-content .nfs-seo-article a:hover {
    color: var(--nfs-blue);
    text-decoration: underline;
}

/* Hero — dark gradient panel */
.nfs-hero,
.nfs-hero-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #1c1c35 0%, #25254d 58%, #25aae1 145%);
    color: #fff;
    padding: 36px 32px;
    margin: 0 0 32px;
    box-shadow: 0 20px 50px rgba(28, 28, 53, 0.18);
}

.nfs-hero::after,
.nfs-hero-box::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    inset-inline-end: -70px;
    top: -70px;
    pointer-events: none;
}

.nfs-hero p,
.nfs-hero-box p,
.nfs-hero-box li,
.nfs-hero .nfs-lead,
.nfs-hero-box .nfs-lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nfs-pill,
.nfs-updated {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 800;
}

.nfs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.nfs-badges span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Headings inside article body (not hero) */
.nfs-article h2,
.nfs-seo-article h2 {
    color: var(--nfs-dark);
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.35;
    margin: 40px 0 14px;
    font-weight: 900;
}

.nfs-article h3,
.nfs-seo-article h3 {
    color: var(--nfs-dark);
    font-size: 1.25rem;
    margin: 24px 0 10px;
    font-weight: 800;
}

/* Hero headings — must stay white on dark background */
.nfs-article .nfs-hero h2,
.nfs-seo-article .nfs-hero-box h2,
.nfs-hero h2,
.nfs-hero-box h2 {
    color: #fff !important;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 900;
}

.nfs-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #394055;
}

.nfs-toc,
.nfs-box,
.nfs-card,
.nfs-note,
.nfs-faq,
.nfs-faq-item,
.nfs-cta {
    background: #fff;
    border: 1px solid var(--nfs-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(28, 28, 53, 0.05);
}

.nfs-toc {
    padding: 22px;
    margin: 28px 0;
}

.nfs-toc strong {
    display: block;
    color: var(--nfs-dark);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.nfs-toc ol {
    columns: 2;
    gap: 24px;
    margin: 0;
    padding-inline-start: 22px;
}

.nfs-toc li {
    break-inside: avoid;
    margin: 5px 0;
}

.nfs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.nfs-box,
.nfs-card {
    padding: 20px;
}

.nfs-box strong,
.nfs-card strong {
    display: block;
    color: var(--nfs-dark);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.nfs-list,
.nfs-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.nfs-list li,
.nfs-checklist li {
    list-style: none;
    background: var(--nfs-soft);
    border: 1px solid rgba(37, 170, 225, 0.14);
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.nfs-list li::before,
.nfs-checklist li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nfs-blue);
    color: #fff;
    font-size: 11px;
    margin-inline-end: 8px;
    vertical-align: middle;
}

.nfs-note {
    border-inline-start: 4px solid var(--nfs-blue);
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 22px 0;
}

.nfs-figure {
    text-align: center;
    margin: 24px 0;
}

.nfs-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(28, 28, 53, 0.12);
}

.nfs-steps {
    counter-reset: nfs-step;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.nfs-steps li {
    counter-increment: nfs-step;
    list-style: none;
    position: relative;
    background: #fff;
    border: 1px solid var(--nfs-border);
    border-radius: 16px;
    padding: 16px 16px 16px 68px;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(28, 28, 53, 0.04);
}

html[dir="rtl"] .nfs-steps li {
    padding: 16px 68px 16px 16px;
}

.nfs-steps li::before {
    content: counter(nfs-step);
    position: absolute;
    inset-inline-start: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--nfs-blue), var(--nfs-blue-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
}

.nfs-faq,
.nfs-faq-item {
    padding: 20px;
    margin: 12px 0;
}

.nfs-faq h3,
.nfs-faq-item h3 {
    margin-top: 0;
}

.nfs-cta {
    padding: 28px;
    margin: 36px 0;
    background: linear-gradient(135deg, #f8fbff, #fff);
}

.nfs-cta h2 {
    margin-top: 0;
    color: var(--nfs-dark) !important;
}

.nfs-btn,
.nfs-cta .button-link,
.nfs-cta a.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nfs-blue), var(--nfs-blue-deep));
    color: #fff !important;
    border-radius: 999px;
    padding: 12px 22px;
    margin-top: 10px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(37, 170, 225, 0.28);
    text-decoration: none !important;
}

.nfs-btn:hover,
.nfs-cta .button-link:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.nfs-table {
    overflow: auto;
    border: 1px solid var(--nfs-border);
    border-radius: 18px;
    margin: 22px 0;
    background: #fff;
}

.nfs-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.nfs-table th {
    background: var(--nfs-dark);
    color: #fff;
    text-align: start;
}

.nfs-table th,
.nfs-table td {
    padding: 14px;
    border-bottom: 1px solid var(--nfs-border);
    vertical-align: top;
}

.nfs-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 991px) {
    .nfs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nfs-toc ol {
        columns: 1;
    }
}

@media (max-width: 767px) {
    .nfs-article,
    .nfs-seo-article {
        font-size: 16px;
    }

    .nfs-hero,
    .nfs-hero-box {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .nfs-grid,
    .nfs-list,
    .nfs-checklist {
        grid-template-columns: 1fr;
    }

    .nfs-steps li {
        padding-inline-start: 58px;
    }

    html[dir="rtl"] .nfs-steps li {
        padding-inline-start: 58px;
    }
}
