/* موقع الكاتب — branding, SEO and speed update */

.deferred-section {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.brand-intro-section {
    background:
        radial-gradient(circle at 90% 10%, rgba(107, 78, 255, .12), transparent 32%),
        linear-gradient(180deg, #fff 0%, #f8f7ff 100%);
}

.brand-intro-section h2,
.brand-page-hero h1 {
    line-height: 1.35;
}

.brand-intro-section p {
    color: var(--muted, #667085);
    line-height: 1.95;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.audience-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(107, 78, 255, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 50px rgba(37, 31, 75, .07);
}

.audience-card > .material-symbols-rounded {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 14px;
    color: #6647f5;
    background: #f0edff;
}

.audience-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.audience-card p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.8;
}

.home-template-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-page-hero {
    overflow: hidden;
}

.brand-content-section {
    padding-top: 20px;
}

.compact-price-card {
    min-height: 0;
}

.builder-page-intro {
    padding: 54px 0 18px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(107, 78, 255, .15), transparent 40%),
        #f8f9fd;
}

.builder-page-intro h1 {
    max-width: 850px;
    margin: 12px auto;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.35;
}

.builder-page-intro p {
    max-width: 760px;
    margin: 0 auto;
    color: #667085;
    line-height: 1.9;
}

.builder-page-intro + .builder-section {
    padding-top: 24px;
}

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

@media (max-width: 767.98px) {
    .deferred-section {
        contain-intrinsic-size: 1100px;
    }

    .audience-grid,
    .home-template-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .audience-card {
        padding: 18px;
    }

    .builder-page-intro {
        padding: 34px 0 10px;
    }

    .builder-page-intro h1 {
        font-size: 2rem;
        line-height: 1.5;
    }
}

/* BEGIN ELKATEB BREADCRUMB FIX */
.seo-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    line-height: 1.7;
}

.seo-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #667085;
}

.seo-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding: 0;
}

.seo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    float: none;
    padding: 0 0.55rem;
    color: #98a2b3;
}

.seo-breadcrumb a {
    color: #5f43e9;
    font-weight: 700;
    text-decoration: none;
}

.seo-breadcrumb a:hover {
    color: #4327cf;
    text-decoration: underline;
}

.seo-breadcrumb .breadcrumb-item.active {
    color: #475467;
    font-weight: 500;
    overflow-wrap: anywhere;
}

html[dir="rtl"] .seo-breadcrumb,
html[lang="ar"] .seo-breadcrumb {
    direction: rtl;
    justify-content: flex-start;
    text-align: right;
}

html[dir="rtl"] .seo-breadcrumb .breadcrumb-item + .breadcrumb-item::before,
html[lang="ar"] .seo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    float: none;
    padding: 0 0.55rem;
}

@media (max-width: 767.98px) {
    .seo-breadcrumb {
        margin-bottom: 16px;
        font-size: 0.82rem;
    }

    .seo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        padding-inline: 0.38rem;
    }

    .seo-breadcrumb .breadcrumb-item.active {
        max-width: calc(100vw - 115px);
    }
}
/* END ELKATEB BREADCRUMB FIX */

/* BEGIN FOOTER BRAND LIGHT COLOR */
.site-footer .brand-name,
.site-footer .brand-text,
.site-footer .footer-brand-name,
.site-footer .footer-brand strong,
.site-footer .footer-brand > span:not(.brand-icon),
.site-footer .brand-wrap strong,
.site-footer .brand-wrap > span:not(.brand-icon),
.site-footer .navbar-brand strong,
.site-footer .navbar-brand > span:not(.brand-icon) {
    color: #f8f9fa !important;
}
/* END FOOTER BRAND LIGHT COLOR */

/* FIX FOOTER LOGO TEXT */
.site-footer .footer-grid > div:first-child > a,
.site-footer .footer-grid > div:first-child > a *,
.site-footer .footer-grid > div:first-child .brand,
.site-footer .footer-grid > div:first-child .brand *,
.site-footer .footer-grid > div:first-child .brand-wrap,
.site-footer .footer-grid > div:first-child .brand-wrap *,
.site-footer .footer-grid > div:first-child .footer-brand,
.site-footer .footer-grid > div:first-child .footer-brand * {
    color: #f8f9fa !important;
}
