:root {
    --blog-ink: #12213f;
    --blog-muted: #667085;
    --blog-primary: #6544e8;
    --blog-primary-dark: #4627c4;
    --blog-soft: #f4f2ff;
    --blog-border: #e7e9f0;
    --blog-card: #ffffff;
}

.blog-body {
    background: #fbfcff;
    color: var(--blog-ink);
    font-family: "Poppins", sans-serif;
}

.blog-header {
    background: rgba(24, 17, 59, .97);
    box-shadow: 0 10px 35px rgba(26, 18, 64, .15);
    position: relative;
    z-index: 20;
}

.blog-header .navbar { min-height: 76px; }
.blog-header .navbar-brand img, .blog-footer img { height: 38px; width: auto; }
.blog-header .nav-link { color: rgba(255, 255, 255, .76); font-weight: 500; margin-inline: .4rem; }
.blog-header .nav-link:hover, .blog-header .nav-link.active { color: #fff; }
.blog-header .dropdown-menu { border: 0; border-radius: 16px; box-shadow: 0 18px 50px rgba(23, 15, 63, .16); }
.blog-header .portal-login-item { display: flex; align-items: center; }
.blog-header .portal-login-link {
    align-items: center;
    background: linear-gradient(135deg, #ffe08a, #ffc94d);
    border: 1px solid rgba(255, 209, 102, .5);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(255, 193, 56, .18);
    color: #2b2145;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 700;
    gap: .45rem;
    justify-content: center;
    margin-inline-start: .45rem;
    padding: .58rem 1rem;
    white-space: nowrap;
}
.blog-header .portal-login-link:hover,
.blog-header .portal-login-link:focus-visible { background: #fff0bd; color: #211536; transform: translateY(-1px); }

@media (max-width: 991.98px) {
    .blog-header .portal-login-item { margin-top: .75rem; }
    .blog-header .portal-login-link { margin-inline-start: .4rem; width: fit-content; }
}

.blog-hero {
    background: linear-gradient(135deg, #20134f 0%, #5230c8 48%, #7257ed 100%);
    color: #fff;
    overflow: hidden;
    padding: 7rem 0 8.5rem;
    position: relative;
    text-align: center;
}

.blog-hero .container { max-width: 850px; z-index: 2; }
.hero-eyebrow { color: #c9c0ff; display: block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; margin-bottom: 1rem; text-transform: uppercase; }
.blog-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 1.25rem; }
.blog-hero p { color: rgba(255,255,255,.78); font-size: 1.08rem; line-height: 1.8; margin: 0 auto 2.2rem; max-width: 670px; }
.blog-orb { border-radius: 999px; filter: blur(2px); opacity: .25; position: absolute; }
.blog-orb-one { background: #5eead4; height: 340px; inset-inline-start: -100px; top: -130px; width: 340px; }
.blog-orb-two { background: #fbbf24; bottom: -210px; height: 460px; inset-inline-end: -100px; width: 460px; }

.blog-search {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(12, 7, 38, .26);
    display: flex;
    gap: .5rem;
    margin: auto;
    max-width: 610px;
    padding: .48rem;
}

.blog-search input { background: transparent; border: 0; color: var(--blog-ink); flex: 1; min-width: 0; outline: 0; padding: .8rem 1rem; }
.blog-search button { background: var(--blog-primary); border: 0; border-radius: 13px; color: #fff; font-weight: 600; padding: .8rem 1.55rem; transition: .2s ease; }
.blog-search button:hover { background: var(--blog-primary-dark); transform: translateY(-1px); }

.blog-main-section { margin-top: -3rem; padding-bottom: 6rem; position: relative; z-index: 5; }
.category-strip { align-items: center; background: #fff; border: 1px solid rgba(231,233,240,.7); border-radius: 20px; box-shadow: 0 16px 45px rgba(36, 27, 80, .1); display: flex; gap: .6rem; overflow-x: auto; padding: .85rem; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-chip { border-radius: 12px; color: var(--blog-muted); flex: 0 0 auto; font-size: .9rem; font-weight: 500; padding: .72rem 1rem; text-decoration: none; transition: .2s ease; }
.category-chip span { background: #eef0f5; border-radius: 999px; font-size: .7rem; margin-inline-start: .35rem; padding: .15rem .42rem; }
.category-chip:hover, .category-chip.active { background: var(--blog-soft); color: var(--blog-primary-dark); }
.category-chip.active span { background: #fff; }

.section-heading { align-items: end; display: flex; justify-content: space-between; margin: 4rem 0 1.8rem; }
.section-heading span { color: var(--blog-primary); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2 { color: var(--blog-ink); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -.025em; margin: .4rem 0 0; }
.section-heading > a { color: var(--blog-primary); font-weight: 600; }

.blog-card { background: var(--blog-card); border: 1px solid var(--blog-border); border-radius: 22px; box-shadow: 0 12px 35px rgba(38, 31, 75, .06); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { box-shadow: 0 20px 50px rgba(38, 31, 75, .13); transform: translateY(-6px); }
.blog-card-media { display: block; height: 225px; overflow: hidden; position: relative; }
.blog-card-media img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.blog-card:hover .blog-card-media img { transform: scale(1.045); }
.featured-badge { backdrop-filter: blur(8px); background: rgba(255,255,255,.9); border-radius: 999px; color: var(--blog-primary-dark); font-size: .72rem; font-weight: 700; inset-inline-start: 1rem; padding: .42rem .7rem; position: absolute; top: 1rem; }
.blog-card-body { padding: 1.4rem 1.45rem 1.5rem; }
.category-pill { color: var(--blog-primary); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.blog-card h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.5; margin: .65rem 0 .75rem; }
.blog-card h2 a { color: var(--blog-ink); text-decoration: none; }
.blog-card h2 a:hover { color: var(--blog-primary); }
.blog-card p { color: var(--blog-muted); font-size: .9rem; line-height: 1.75; margin-bottom: 1.15rem; }
.blog-card-meta { align-items: center; color: #8b93a5; display: flex; flex-wrap: wrap; font-size: .75rem; gap: .45rem; }

.empty-blog { background: #fff; border: 1px dashed #d9d5ee; border-radius: 24px; padding: 4.5rem 1.5rem; text-align: center; }
.empty-blog > div { color: var(--blog-primary); font-size: 2rem; }
.empty-blog h2 { color: var(--blog-ink); margin: 1rem 0 .6rem; }
.empty-blog p { color: var(--blog-muted); margin: 0; }
.blog-pagination { margin-top: 3rem; }
.blog-pagination nav > div:first-child { display: none; }
.blog-pagination nav > div:last-child { align-items: center; display: flex; justify-content: space-between; }
.blog-pagination svg { height: 18px; width: 18px; }

.article-hero { background: linear-gradient(150deg, #f2efff, #fbfcff 60%); border-bottom: 1px solid #ece9f8; padding: 5rem 0 8rem; }
.article-container { max-width: 900px; }
.article-breadcrumb { align-items: center; color: #9690a9; display: flex; flex-wrap: wrap; font-size: .82rem; gap: .55rem; margin-bottom: 1.6rem; }
.article-breadcrumb a { color: var(--blog-primary); text-decoration: none; }
.article-hero h1 { color: var(--blog-ink); font-size: clamp(2.15rem, 5vw, 3.9rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
.article-lead { color: var(--blog-muted); font-size: 1.12rem; line-height: 1.9; margin-top: 1.4rem; max-width: 780px; }
.article-meta { color: #7f8799; display: flex; flex-wrap: wrap; font-size: .82rem; gap: .7rem 1.5rem; margin-top: 1.8rem; }
.article-cover { border-radius: 26px; box-shadow: 0 25px 65px rgba(35, 28, 73, .16); height: min(520px, 55vw); margin: -5.5rem 0 3.6rem; overflow: hidden; position: relative; }
.article-cover img { height: 100%; object-fit: cover; width: 100%; }
.article-content { color: #344054; font-size: 1.04rem; line-height: 2; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--blog-ink); font-weight: 700; line-height: 1.45; margin: 2.4rem 0 1rem; }
.article-content h2 { font-size: 1.85rem; }
.article-content h3 { font-size: 1.4rem; }
.article-content a { color: var(--blog-primary); }
.article-content img { border-radius: 18px; height: auto; margin: 1.4rem 0; max-width: 100%; }
.article-content blockquote { background: var(--blog-soft); border-inline-start: 4px solid var(--blog-primary); border-radius: 0 14px 14px 0; color: #51486c; margin: 2rem 0; padding: 1.2rem 1.5rem; }
.article-content pre { background: #171329; border-radius: 14px; color: #e9e4ff; overflow-x: auto; padding: 1.3rem; }
.article-tags { align-items: center; border-bottom: 1px solid var(--blog-border); border-top: 1px solid var(--blog-border); display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 3rem; padding: 1.4rem 0; }
.article-tags strong { margin-inline-end: .3rem; }
.article-tags a { background: var(--blog-soft); border-radius: 999px; color: var(--blog-primary-dark); font-size: .82rem; padding: .42rem .72rem; text-decoration: none; }
.article-back { margin: 2rem 0 5.5rem; }
.article-back a { color: var(--blog-primary); font-weight: 600; text-decoration: none; }
.related-section { background: #f5f4fa; border-top: 1px solid var(--blog-border); padding: 1rem 0 6rem; }

.blog-footer { background: #18113b; color: rgba(255,255,255,.66); padding: 2rem 0; }
.blog-footer a { color: #fff; text-decoration: none; }

[dir="rtl"] .article-content blockquote { border-radius: 14px 0 0 14px; }

@media (max-width: 767.98px) {
    .blog-hero { padding: 4.5rem 0 7rem; }
    .blog-search { border-radius: 15px; }
    .blog-search button { padding-inline: 1rem; }
    .category-strip { border-radius: 16px; }
    .blog-card-media { height: 210px; }
    .article-hero { padding: 3.5rem 0 7rem; }
    .article-cover { height: 58vw; min-height: 260px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: .8rem; }
}
