@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap");
body{
    color: #212529 !important;
}

/* Dark Mode Override برای تمام استایل‌های اصلی */
html.dark-mode body {
    color: #e2e8f0 !important;
    background-color: #0f172a !important;
}

html.dark-mode {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}
.blog_title{
    text-align: center !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 800;
    font-size: 45px !important;
    line-height:55px;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
    padding-top: 0;
}
.blog_title + br {
    display: none;
}
@media (max-width: 575px){
  .blog_title{
    text-align: center !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 800;
    font-size: 25px !important;
    line-height:40px;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    padding-top: 0;
}
  }

/* Post body: valid lists (wrapper must be div, not p) + explicit markers */
.blog_body_content ul,
.blog_body_content ol {
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}
.blog_body_content ul {
    list-style-type: disc;
    list-style-position: outside;
}
.blog_body_content ol {
    list-style-type: decimal;
    list-style-position: outside;
}
.blog_body_content li {
    display: list-item;
    list-style-position: outside;
    margin: 0.25rem 0;
}
.blog_body_content ul ul {
    list-style-type: circle;
    margin-top: 0.35rem;
}
.blog_body_content ul ul ul {
    list-style-type: square;
}

/* ============================================
   Blog Prose Typography — premium reading UX
   ============================================ */

.blog_body_content {
    font-family: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.85;
    color: #334155;
    letter-spacing: 0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
}

.blog-fa-scope .blog_body_content {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 1.0625rem;
    line-height: 2;
    letter-spacing: 0;
}

.blog_body_content > *:first-child {
    margin-top: 0;
}

.blog_body_content p {
    margin: 0 0 1.35em;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
}

.blog_body_content h1,
.blog_body_content h2,
.blog_body_content h3,
.blog_body_content h4,
.blog_body_content h5,
.blog_body_content h6 {
    font-family: 'Inter', Montserrat, 'Source Sans Pro', sans-serif;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin: 2em 0 0.75em;
    letter-spacing: -0.02em;
    scroll-margin-top: 90px;
}

.blog-fa-scope .blog_body_content h1,
.blog-fa-scope .blog_body_content h2,
.blog-fa-scope .blog_body_content h3,
.blog-fa-scope .blog_body_content h4,
.blog-fa-scope .blog_body_content h5,
.blog-fa-scope .blog_body_content h6 {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    letter-spacing: 0;
}

.blog_body_content h1 { font-size: 2rem !important; }
.blog_body_content h2 {
    font-size: 1.625rem !important;
    padding-bottom: 0.4em;
    border-bottom: 2px solid rgba(49, 160, 255, 0.15);
}
.blog_body_content h3 { font-size: 1.375rem !important; }
.blog_body_content h4 { font-size: 1.2rem !important; }
.blog_body_content h5 { font-size: 1.05rem !important; }
.blog_body_content h6 {
    font-size: 0.95rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.blog_body_content a {
    color: #0066ff;
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 255, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog_body_content a:hover {
    color: #004ecc;
    text-decoration-color: rgba(0, 102, 255, 0.7);
}

.blog_body_content strong,
.blog_body_content b {
    font-weight: 600;
    color: #1e293b;
}

.blog_body_content blockquote {
    margin: 1.75em 0;
    padding: 1.25em 1.5em;
    border-left: 4px solid #31a0ff;
    background: linear-gradient(135deg, rgba(240, 246, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

/* Blog callouts — Important / Note labels */
.blog_body_content .blog-callout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0.45rem 0.35rem 0;
    padding: 0.28rem 0.72rem 0.28rem 0.55rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.blog_body_content .blog-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
}

.blog_body_content .blog-callout-label {
    display: inline-block;
}

.blog_body_content .blog-callout-important {
    color: #92400e;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fde68a 100%);
    border: 1px solid rgba(245, 158, 11, 0.42);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.blog_body_content .blog-callout-note {
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 55%, #e0f2fe 100%);
    border: 1px solid rgba(59, 130, 246, 0.32);
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.blog-fa-scope .blog_body_content .blog-callout {
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 575px) {
    .blog_body_content .blog-callout {
        font-size: 0.72rem;
        padding: 0.24rem 0.62rem 0.24rem 0.5rem;
        margin-bottom: 0.45rem;
    }
}

html.dark-mode .blog_body_content .blog-callout-important {
    color: #fcd34d;
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.55) 0%, rgba(146, 64, 14, 0.42) 100%);
    border-color: rgba(251, 191, 36, 0.38);
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.35);
}

html.dark-mode .blog_body_content .blog-callout-note {
    color: #93c5fd;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.55) 0%, rgba(30, 64, 175, 0.42) 100%);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.28);
}

.blog-fa-scope .blog_body_content blockquote {
    border-left: none;
    border-right: 4px solid #31a0ff;
    border-radius: 12px 0 0 12px;
}

.blog_body_content code {
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.88em;
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.15em 0.45em;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.blog_body_content pre {
    margin: 1.75em 0;
    padding: 1.25em 1.5em;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog_body_content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.blog_body_content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(49, 160, 255, 0.35), transparent);
    margin: 2.5em 0;
}

.blog_body_content table {
    width: max-content;
    max-width: 100%;
    margin: 1.75em auto;
    font-size: 0.95rem;
    display: table;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.blog_body_content table th,
.blog_body_content table td {
    padding: 0.75em 1.15em;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.blog_body_content table th:last-child,
.blog_body_content table td:last-child {
    border-right: none;
}

.blog_body_content table tr:last-child td {
    border-bottom: none;
}

.blog_body_content table th {
    background: #f0f6ff;
    font-weight: 600;
    color: #1e293b;
}

.blog_body_content table tr:nth-child(even) td {
    background: #f8fafc;
}

@media (max-width: 575px) {
    .blog_body_content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Responsive images — auto-standardize all in-content media */
.blog_body_content img,
.blog_body_content picture img,
.blog_body_content .imgauto {
    max-width: 100% !important;
    width: auto;
    display: block;
    margin: 1.75em auto;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
    object-fit: contain;
}

.blog_body_content img:not([style*="height"]),
.blog_body_content picture img:not([style*="height"]),
.blog_body_content .imgauto:not([style*="height"]) {
    height: auto !important;
}

/*
 * Author Image-CSS width/height must paint inside the box.
 * object-fit:contain + a tall height centers the bitmap mid-box,
 * so the first viewport looks empty ("no image").
 */
.blog_body_content img[style*="width"],
.blog_body_content img[style*="height"],
.blog_body_content picture img[style*="width"],
.blog_body_content picture img[style*="height"] {
    object-fit: fill;
    object-position: top center;
}

/*
 * Match CKEditor 5 .ck-content image layout so editor placement
 * (center / left / right / side / resized %) matches the published post.
 */
.blog_body_content figure {
    margin: 2em 0;
    text-align: center;
}

.blog_body_content figure.image {
    clear: both;
    display: table;
    margin: 0.9em auto;
    min-width: 50px;
    text-align: center;
    max-width: 100%;
}

.blog_body_content figure.image.image_resized {
    box-sizing: border-box;
    display: block;
    max-width: 100%;
    /* Inline style="width: N%" comes from CKEditor; keep horizontal centering. */
    margin-left: auto;
    margin-right: auto;
}

.blog_body_content figure.image img,
.blog_body_content figure.image picture img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.blog_body_content figure.image .blog-img-lazy-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
}

/*
 * Admin "Image CSS" writes inline styles on the <img>. Keep the lazy wrap
 * shrink-wrapped (fit-content) so margin:auto on the wrap still centers it.
 * width:auto made the wrap full-column and pinned author-sized imgs left.
 */
.blog_body_content .blog-img-lazy-wrap:has(> img[style*="width"]),
.blog_body_content .blog-img-lazy-wrap:has(> img[style*="height"]),
.blog_body_content figure.image .blog-img-lazy-wrap:has(> img[style*="width"]),
.blog_body_content figure.image .blog-img-lazy-wrap:has(> img[style*="height"]) {
    width: fit-content;
    max-width: 100%;
    height: auto;
    /* Beat figure.image .blog-img-lazy-wrap { margin: 0 } so sized imgs stay centered after lazy wrap. */
    margin-left: auto;
    margin-right: auto;
}

.blog_body_content figure.image-style-align-center,
.blog_body_content figure.image-style-block-align-center {
    margin-left: auto;
    margin-right: auto;
}

.blog_body_content figure.image-style-align-left {
    float: left;
    margin-right: 1.5em;
    margin-left: 0;
    clear: none;
}

.blog_body_content figure.image-style-align-right,
.blog_body_content figure.image-style-side {
    float: right;
    margin-left: 1.5em;
    margin-right: 0;
    clear: none;
    max-width: 50%;
}

.blog_body_content figure.image-style-block-align-left {
    margin-left: 0;
    margin-right: auto;
}

.blog_body_content figure.image-style-block-align-right {
    margin-left: auto;
    margin-right: 0;
}

.blog_body_content .image-inline {
    display: inline-flex;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 0.25em;
}

.blog_body_content .image-inline img {
    display: block;
    margin: 0;
    max-width: 100% !important;
}

.blog_body_content figure img {
    margin: 0 auto;
}

/* Lazy-load image wrapper + blur placeholder */
.blog-img-lazy-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    max-width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f1ff 0%, #f1f5f9 45%, #e2e8f0 100%);
    background-size: 220% 220%;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}

.blog-img-lazy-wrap.is-loading {
    animation: blog-img-shimmer 1.8s ease-in-out infinite;
}

.blog-img-lazy-wrap.is-loaded,
.blog-img-lazy-wrap.is-error {
    animation: none;
    background: transparent;
}

.blog-img-lazy-wrap-featured {
    width: 100%;
    margin: 0;
}

.blog_body_content .blog-img-lazy-wrap {
    width: fit-content;
    margin: 1.75em auto;
}

.blog-img-lazy-wrap .blog-img-lazy {
    display: block;
    opacity: 0;
    filter: blur(18px);
    transform: scale(1.05);
    transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease;
    will-change: opacity, filter, transform;
}

/* Default lazy imgs: kill double vertical margin from .blog_body_content img.
   Do NOT use !important when author Image-CSS sets margin (e.g. margin:auto). */
.blog-img-lazy-wrap .blog-img-lazy:not([style*="margin"]) {
    margin: 0 !important;
}

.blog-img-lazy-wrap.is-loaded .blog-img-lazy {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.blog-img-lazy-wrap.is-error .blog-img-lazy {
    opacity: 0.35;
    filter: none;
    transform: none;
}

@keyframes blog-img-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Scroll reveal (fade + slide) */
.blog-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--blog-reveal-delay, 0ms),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--blog-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.blog-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-sidebar .blog-reveal {
    transform: translateX(28px);
}

.blog-sidebar .blog-reveal.is-visible {
    transform: translateX(0);
}

.blog-fa-scope .blog-sidebar .blog-reveal {
    transform: translateX(-28px);
}

.blog-fa-scope .blog-sidebar .blog-reveal.is-visible {
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .blog-img-lazy-wrap.is-loading {
        animation: none;
    }

    .blog-img-lazy-wrap .blog-img-lazy,
    .blog-img-lazy-wrap.is-loaded .blog-img-lazy {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }

    .blog-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.blog_body_content figcaption {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.75em;
    line-height: 1.5;
    font-style: italic;
}

.blog_body_content iframe,
.blog_body_content video,
.blog_body_content embed {
    max-width: 100%;
    display: block;
    margin: 1.75em auto;
    border-radius: 12px;
    border: none;
}

.blog_body_content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
}

.blog_body_content .video-embed-wrap {
    position: relative;
    width: 100%;
    margin: 1.75em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}

.blog_body_content .video-embed-wrap iframe {
    margin: 0;
    border-radius: 0;
}

.blog-featured-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog_img:hover .blog-featured-img {
    transform: scale(1.01);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15);
}

@media (max-width: 768px) {
    .blog_body_content {
        font-size: 1.0625rem;
        line-height: 1.8;
    }

    .blog-fa-scope .blog_body_content {
        font-size: 1rem;
        line-height: 1.95;
    }

    .blog_body_content h1 { font-size: 1.625rem !important; }
    .blog_body_content h2 { font-size: 1.375rem !important; }
    .blog_body_content h3 { font-size: 1.2rem !important; }

    .blog_body_content img,
    .blog_body_content picture img {
        border-radius: 10px;
        margin: 1.25em auto;
    }

    .blog_body_content .blog-img-lazy-wrap {
        margin: 1.25em auto;
        border-radius: 10px;
    }

    .blog_body_content .blog-img-lazy-wrap .blog-img-lazy:not([style*="margin"]) {
        margin: 0 !important;
    }
}

@media (max-width: 575px) {
    .blog_body_content {
        font-size: 1rem;
    }

    .blog_body_content blockquote {
        padding: 1em 1.15em;
    }
}

/* ============================================
   Blog post meta (date, reading time)
   ============================================ */

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 1.1rem;
    padding: 0.45rem 0.65rem;
    color: #64748b;
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.96) 0%, rgba(241, 247, 255, 0.9) 100%);
    border: 1px solid rgba(49, 160, 255, 0.16);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.5;
}

.blog-fa-scope .blog-post-meta {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
}

.blog-post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    white-space: nowrap;
}

.blog-post-meta-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #60a5fa 0%, #31a0ff 100%);
    box-shadow: 0 0 0 4px rgba(49, 160, 255, 0.1);
}

.blog-post-meta-reading-time::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #31a0ff 100%);
}

.blog-post-meta-views::before {
    background: linear-gradient(135deg, #22c55e 0%, #31a0ff 100%);
}

.blog-post-meta-posted {
    gap: 0.35rem;
    font-size: 0.86rem;
    color: #64748b;
    white-space: normal;
}

.blog-post-meta-posted-time {
    font-variant-numeric: tabular-nums;
}

.blog-post-meta-posted-time strong {
    color: #334155;
    font-weight: 600;
}

.blog-article-end-panel .blog-post-meta-posted {
    font-size: 0.9rem;
}

.blog-post-meta-bottom {
    margin-top: 0;
    margin-bottom: 0;
}

/* Unified article end panel — date, tools, share */
.blog-article-end-panel {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 0;
    border: 1px solid rgba(49, 160, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.94) 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.blog-article-end-section {
    padding: 1.15rem 1.25rem;
}

.blog-article-end-divider {
    height: 1px;
    margin: 0;
    background: linear-gradient(90deg, transparent, rgba(49, 160, 255, 0.18), transparent);
}

.blog-article-end-panel .blog-post-meta {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    justify-content: flex-start;
}

.blog-article-end-panel .blog-post-meta-posted {
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.55;
}

.blog-article-end-panel .blog-post-meta-posted-time strong {
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.84rem;
    font-weight: 500;
    word-break: break-all;
}

.blog-article-end-panel .blog-article-tools {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.blog-article-end-panel .blog-article-tools-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.blog-article-end-panel .blog-footer-share {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.blog-article-end-panel .blog-footer-share-head {
    margin-bottom: 0.75rem;
}

.blog-fa-scope .blog-article-end-panel .blog-post-meta {
    justify-content: flex-end;
}

.blog-fa-scope .blog-article-end-panel .blog-article-tools-inner {
    flex-direction: row-reverse;
}

@media (max-width: 575px) {
    .blog-article-end-panel {
        margin-top: 1.5rem;
        border-radius: 16px;
    }

    .blog-article-end-section {
        padding: 1rem;
    }

    .blog-article-end-panel .blog-article-tools-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-article-end-panel .blog-article-tools-label {
        text-align: center;
    }

    .blog-article-end-panel .blog-article-tools-actions {
        justify-content: center;
    }
}

html.dark-mode .blog-article-end-panel {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(56, 189, 248, 0.2);
}

html.dark-mode .blog-article-end-divider {
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.2), transparent);
}

/* Article end — share row + Telegram banner */
.blog-telegram-banner-above-vote {
    margin: 0 0 2rem;
}

.blog-footer-share-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.blog-footer-share-head i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.14) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #31a0ff;
    font-size: 0.85rem;
}

.blog-footer-share-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.blog-footer-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.blog-footer-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(49, 160, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-footer-share-btn:hover,
.blog-footer-share-btn:focus {
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(49, 160, 255, 0.28);
    color: #0066ff;
    outline: none;
    transform: translateY(-1px);
}

.blog-footer-share-btn i {
    font-size: 0.95rem;
}

.blog-telegram-banner {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 92px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-telegram-banner:hover,
.blog-telegram-banner:focus {
    transform: translateY(-2px);
    border-color: rgba(34, 158, 217, 0.35);
    box-shadow: 0 16px 36px rgba(34, 158, 217, 0.16);
    outline: none;
}

.blog-telegram-banner-visual {
    position: relative;
    flex: 0 0 108px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
    overflow: hidden;
}

.blog-telegram-banner-glow {
    position: absolute;
    right: -26px;
    top: 50%;
    width: 72px;
    height: 72px;
    margin-top: -36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.blog-telegram-banner-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.blog-telegram-banner-body {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1rem;
}

.blog-telegram-banner-title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f4c81;
}

.blog-telegram-banner-text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: #64748b;
}

.blog-telegram-banner-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 0.85rem;
    border-radius: 50%;
    background: rgba(34, 158, 217, 0.1);
    color: #229ed9;
    font-size: 0.82rem;
}

.blog-fa-scope .blog-telegram-banner {
    flex-direction: row-reverse;
}

.blog-fa-scope .blog-telegram-banner-body {
    text-align: right;
}

.blog-fa-scope .blog-telegram-banner-glow {
    right: auto;
    left: -26px;
}

.blog-fa-scope .blog-telegram-banner-arrow {
    margin-right: 0;
    margin-left: 0.85rem;
    transform: scaleX(-1);
}

.blog-fa-scope .blog-footer-share-head {
    flex-direction: row-reverse;
}

.blog-fa-scope .blog-footer-share-title {
    text-align: right;
}

@media (max-width: 575px) {
    .blog-footer-share-actions {
        gap: 0.45rem;
    }

    .blog-footer-share-btn {
        padding: 0.5rem 0.72rem;
        font-size: 0.78rem;
    }

    .blog-telegram-banner {
        min-height: 84px;
    }

    .blog-telegram-banner-visual {
        flex-basis: 88px;
    }

    .blog-telegram-banner-icon {
        width: 46px;
        height: 46px;
        font-size: 1.4rem;
    }

    .blog-telegram-banner-title {
        font-size: 0.92rem;
    }

    .blog-telegram-banner-text {
        font-size: 0.8rem;
    }

    .blog-telegram-banner-arrow {
        display: none;
    }
}

html.dark-mode .blog-footer-share-title {
    color: #e2e8f0;
}

html.dark-mode .blog-footer-share-btn {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.2);
    color: #cbd5e1;
}

html.dark-mode .blog-telegram-banner {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.92) 100%);
    border-color: rgba(56, 189, 248, 0.22);
}

html.dark-mode .blog-telegram-banner-title {
    color: #7dd3fc;
}

html.dark-mode .blog-telegram-banner-text {
    color: #94a3b8;
}

html.dark-mode .blog-telegram-banner-arrow {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

.blog-post-meta-sep {
    width: 1px;
    height: 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(49, 160, 255, 0.32) 50%, transparent 100%);
    color: transparent;
    font-weight: 300;
    user-select: none;
}

.blog-post-meta-reading-time {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .blog-post-meta {
        font-size: 0.8125rem;
        gap: 0.35rem 0.5rem;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.85rem;
        border-radius: 16px;
    }
}

html.dark-mode .blog-post-meta,
html.dark-mode .blog-post-meta-item {
    color: #cbd5e1;
}

html.dark-mode .blog-post-meta {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 41, 59, 0.68) 100%);
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28),
                inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

html.dark-mode .blog-post-meta-sep {
    background: linear-gradient(180deg, transparent 0%, rgba(96, 165, 250, 0.38) 50%, transparent 100%);
    color: transparent;
}

/* ============================================
   Auto Table of Contents
   ============================================ */

.blog-toc {
    margin: 0 0 1.5rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #f8fbff 0%, #f4f7fb 100%);
    border: 1px solid rgba(49, 160, 255, 0.14);
    border-left: 3px solid #31a0ff;
    border-radius: 0 12px 12px 0;
}

.blog-author-box {
    margin: 1.75rem 0 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.blog-author-box__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: contain;
    background: #071829;
    border: 1px solid rgba(49, 160, 255, 0.16);
    flex-shrink: 0;
}

.blog-author-box__label {
    margin: 0 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #31a0ff;
}

.blog-author-box h2 {
    margin: 0 0 0.4rem;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}

.blog-author-box h2 a {
    color: inherit !important;
}

.blog-author-box h2 a:hover {
    color: #31a0ff !important;
    text-decoration: none;
}

.blog-author-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.blog-byline {
    margin: 0 0 0.85rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.blog-byline a,
.blog-author-box p a {
    color: #31a0ff !important;
    text-decoration: none;
}

.blog-byline a:hover,
.blog-author-box p a:hover {
    color: #0666ff !important;
    text-decoration: underline;
}

html.dark-mode .blog-author-box {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(56, 189, 248, 0.16);
    box-shadow: none;
}

html.dark-mode .blog-author-box h2 {
    color: #e2e8f0;
}

html.dark-mode .blog-author-box p {
    color: #cbd5e1;
}

@media (max-width: 575px) {
    .blog-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

html.dark-mode .blog-byline {
    color: #94a3b8;
}

html.dark-mode .blog-byline a,
html.dark-mode .blog-author-box p a {
    color: #38bdf8 !important;
}

.blog-fa-scope .blog-toc {
    border-left: 1px solid rgba(49, 160, 255, 0.14);
    border-right: 3px solid #31a0ff;
    border-radius: 12px 0 0 12px;
}

.blog-toc[hidden] {
    display: none !important;
}

.blog-toc-title {
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 0.65rem !important;
    padding: 0 0 0.55rem !important;
    line-height: 1.3 !important;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid rgba(49, 160, 255, 0.12);
}

.blog-fa-scope .blog-toc-title {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.blog-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.blog-toc-item {
    margin: 0;
    line-height: 1.5;
    position: relative;
    padding-left: 0.95rem;
}

.blog-fa-scope .blog-toc-item {
    padding-left: 0;
    padding-right: 0.95rem;
}

.blog-toc-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 5px;
    height: 5px;
    background: #31a0ff;
    border-radius: 50%;
    opacity: 0.75;
}

.blog-fa-scope .blog-toc-item::before {
    left: auto;
    right: 0;
}

.blog-toc-link {
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, padding 0.2s ease;
    display: inline;
}

.blog-toc-link:hover {
    color: #0066ff !important;
    text-decoration: none !important;
}

.blog-fa-scope .blog-toc-link:hover {
    color: #0066ff !important;
}

/* Scroll-spy: current section highlight */
.blog-toc-link.is-active {
    color: #0066ff !important;
    font-weight: 700;
}

.blog-toc-item.is-active::before {
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%);
    box-shadow: 0 0 0 3px rgba(49, 160, 255, 0.18);
    transform: scale(1.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 575px) {
    .blog-toc {
        padding: 0.85rem 1rem;
        margin-bottom: 1.15rem;
    }

    .blog-toc-title {
        font-size: 0.875rem !important;
    }

    .blog-toc-link {
        font-size: 0.85rem;
    }
}

html.dark-mode .blog-toc {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 100%);
    border-color: rgba(56, 189, 248, 0.18);
    border-left-color: #38bdf8;
}

html.dark-mode .blog-fa-scope .blog-toc {
    border-left-color: rgba(56, 189, 248, 0.18);
    border-right-color: #38bdf8;
}

html.dark-mode .blog-toc-title {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(56, 189, 248, 0.15);
}

html.dark-mode .blog-toc-item::before {
    background: #38bdf8;
}

html.dark-mode .blog-toc-link {
    color: #cbd5e1 !important;
}

html.dark-mode .blog-toc-link:hover {
    color: #60a5fa !important;
}

html.dark-mode .blog-toc-link.is-active {
    color: #60a5fa !important;
}

html.dark-mode .blog-toc-item.is-active::before {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.table {
	width: 100%;
	border: 1px solid ;
}

.table-header {
	display: flex;
	width: 100%;
	background: #000;
}

.table-row {
	display: flex;
	width: 100%;
}

.table-data,
.header__item {
	flex: 1 1 20%;
	text-align: center;
}

.header__item {
	text-transform: uppercase;
}

.filter__link {
	color: white;
	text-decoration: none;
	position: relative;
	display: inline-block;
}
.filter__link::after {
    content: "";
    position: absolute;
    color: white;
    top: 50%;
    transform: translateY(-50%);
}
.desc::after {
    content: "(desc)";
}

.asc::after {
    content: "(asc)";
}


p{
color: #212529;
font-family:tahoma;
font-size: 16px;
}

html.dark-mode p {
    color: #cbd5e1 !important;
}
a {
  letter-spacing: -0.025rem;
  color: #344767;
}

html.dark-mode a {
    color: #60a5fa !important;
}

html.dark-mode a:hover {
    color: #38bdf8 !important;
}
h1 {
    font-size: 48px !important;
      margin-bottom: 15px;
}
h2{
    font-size:28px;
    margin-bottom: 15px;
}
h3{
     font-size:22px;
     margin-bottom: 15px;
}
h4{
     font-size:18px;
     margin-bottom: 15px;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
    color: #e2e8f0 !important;
}
/* Featured hero image — fully responsive */
.imgauto,
.blog_img img,
.blog_img .imgauto {
    max-width: 100% !important;
    width: 100%;
    height: auto !important;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .imgauto,
    .blog_img img,
    .blog_img .imgauto {
        max-height: 360px;
        border-radius: 14px;
    }
}

@media (max-width: 575px) {
    .imgauto,
    .blog_img img,
    .blog_img .imgauto {
        max-height: 260px;
        border-radius: 12px;
    }
}

a:hover{
    color: rgb(0, 0, 67);
}

html.dark-mode a:hover {
    color: #38bdf8 !important;
}
.backgroundff{
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 56px;
}

/* ============================================
   Blog breadcrumb (modern pill + icons)
   ============================================ */

.naHdCt.bacgroundbody > .container {
    padding-top: 0;
    padding-bottom: 0.75rem;
}

.breadcrumb-blogsin{
    margin-top: 0 !important;
    width: 100% !important;
  }

.blog-breadcrumb-nav {
    width: 100%;
    max-width: 100%;
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    list-style: none;
    width: fit-content;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.96) 0%, rgba(241, 247, 255, 0.9) 100%);
    border: 1px solid rgba(49, 160, 255, 0.16);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.blog-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.blog-breadcrumb-item::before,
.blog-breadcrumb-item + .blog-breadcrumb-item::before {
    content: none !important;
    display: none !important;
}

.blog-breadcrumb-link,
.blog-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease;
}

.blog-breadcrumb-link:hover,
.blog-breadcrumb-link:focus {
    color: #0066ff;
    text-decoration: none;
}

.blog-breadcrumb-current {
    color: #1e293b;
    font-weight: 600;
}

.blog-breadcrumb-text {
    max-width: none;
    overflow: visible;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: translateY(1px);
}

.blog-breadcrumb-item.is-current {
    flex: 1 1 auto;
    min-width: 0;
}

.blog-breadcrumb-item.is-current .blog-breadcrumb-current {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 576px) {
    .blog-breadcrumb,
    .blog-breadcrumb:has(> .blog-breadcrumb-item:nth-child(5)) {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
    }

    .blog-breadcrumb:has(> .blog-breadcrumb-item:nth-child(5)) > .blog-breadcrumb-item.is-current {
        flex: 1 1 auto;
        min-width: 0;
    }

    .blog-breadcrumb .is-current .blog-breadcrumb-text {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        max-width: 100%;
    }
}

.blog-breadcrumb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.14) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #31a0ff;
    font-size: 0.72rem;
    flex-shrink: 0;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.blog-breadcrumb-icon i {
    display: block;
    line-height: 1;
}

.blog-breadcrumb-item.is-current .blog-breadcrumb-icon {
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(49, 160, 255, 0.28);
}

.blog-breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.62rem;
    opacity: 0.85;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-fa-scope .blog-breadcrumb {
    direction: rtl;
}

  @media (max-width:575px){
    .naHdCt.bacgroundbody {
      padding-left: 16px;
      padding-right: 16px;
    }
    .naHdCt.bacgroundbody > .container {
      padding-left: 0 !important;
      padding-right: 0 !important;
      width: 100% !important;
      max-width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
    .breadcrumb-blogsin{
      margin-top: 0 !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
    .blog-breadcrumb-nav {
      width: 100%;
      max-width: 100%;
    }
    .blog-breadcrumb {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px;
        padding: 0.5rem 0.65rem;
        gap: 0.3rem 0.35rem;
        box-sizing: border-box;
        flex-wrap: wrap;
    }
    .blog-breadcrumb:has(> .blog-breadcrumb-item:nth-child(5)) > .blog-breadcrumb-item.is-current {
        flex: 1 1 100%;
    }
    .blog-breadcrumb-text {
        max-width: none;
        font-size: 0.8rem;
    }
    .blog-breadcrumb:has(> .blog-breadcrumb-item:nth-child(5)) .is-current .blog-breadcrumb-text {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .blog-breadcrumb-icon {
        width: 24px;
        height: 24px;
        font-size: 0.68rem;
    }
    .backgroundff{
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-bottom: 32px !important;
    }
  }
  #slider-text{
    padding-top: 40px;
    display: block;
  }
  #slider-text .col-md-6{
    overflow: hidden;
  }

  #slider-text h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: 3px;
    margin: 30px auto;
    padding-left: 40px;
  }
  #slider-text h2::after{
    border-top: 2px solid #c7c7c7;
    content: "";
    position: absolute;
    bottom: 35px;
    width: 100%;
    }

  #itemslider h4{
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    margin: 10px auto 3px;
  }
  #itemslider h5{
    font-family: 'Josefin Sans', sans-serif;
    font-weight: bold;
    font-size: 12px;
    margin: 3px auto 2px;
  }
  #itemslider h6{
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;;
    font-size: 10px;
    margin: 2px auto 5px;
  }
  .badge {
    background: #b20c0c;
    position: absolute;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    line-height: 31px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    border: 2px solid #FFF;
    box-shadow: 0 0 0 1px #b20c0c;
    top: 5px;
    right: 25%;
  }
  #slider-control img{
    padding-top: 60%;
    margin: 0 auto;
  }
  @media screen and (max-width: 992px){
  #slider-control img {
    padding-top: 70px;
    margin: 0 auto;
  }
  }

  .carousel-showmanymoveone .carousel-control {
    width: 4%;
    background-image: none;
  }
  .carousel-showmanymoveone .carousel-control.left {
    margin-left: 5px;
  }
  .carousel-showmanymoveone .carousel-control.right {
    margin-right: 5px;
  }
  .carousel-showmanymoveone .cloneditem-1,
  .carousel-showmanymoveone .cloneditem-2,
  .carousel-showmanymoveone .cloneditem-3,
  .carousel-showmanymoveone .cloneditem-4,
  .carousel-showmanymoveone .cloneditem-5 {
    display: none;
  }
  @media all and (min-width: 768px) {
    .carousel-showmanymoveone .carousel-inner > .active.left,
    .carousel-showmanymoveone .carousel-inner > .prev {
      left: -50%;
    }
    .carousel-showmanymoveone .carousel-inner > .active.right,
    .carousel-showmanymoveone .carousel-inner > .next {
      left: 50%;
    }
    .carousel-showmanymoveone .carousel-inner > .left,
    .carousel-showmanymoveone .carousel-inner > .prev.right,
    .carousel-showmanymoveone .carousel-inner > .active {
      left: 0;
    }
    .carousel-showmanymoveone .carousel-inner .cloneditem-1 {
      display: block;
    }
  }
  @media all and (min-width: 768px) and (transform-3d), all and (min-width: 768px) and (-webkit-transform-3d) {
    .carousel-showmanymoveone .carousel-inner > .item.active.right,
    .carousel-showmanymoveone .carousel-inner > .item.next {
      -webkit-transform: translate3d(50%, 0, 0);
      transform: translate3d(50%, 0, 0);
      left: 0;
    }
    .carousel-showmanymoveone .carousel-inner > .item.active.left,
    .carousel-showmanymoveone .carousel-inner > .item.prev {
      -webkit-transform: translate3d(-50%, 0, 0);
      transform: translate3d(-50%, 0, 0);
      left: 0;
    }
    .carousel-showmanymoveone .carousel-inner > .item.left,
    .carousel-showmanymoveone .carousel-inner > .item.prev.right,
    .carousel-showmanymoveone .carousel-inner > .item.active {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
      left: 0;
    }
  }
  @media all and (min-width: 992px) {
    .carousel-showmanymoveone .carousel-inner > .active.left,
    .carousel-showmanymoveone .carousel-inner > .prev {
      left: -16.666%;
    }
    .carousel-showmanymoveone .carousel-inner > .active.right,
    .carousel-showmanymoveone .carousel-inner > .next {
      left: 16.666%;
    }
    .carousel-showmanymoveone .carousel-inner > .left,
    .carousel-showmanymoveone .carousel-inner > .prev.right,
    .carousel-showmanymoveone .carousel-inner > .active {
      left: 0;
    }
    .carousel-showmanymoveone .carousel-inner .cloneditem-2,
    .carousel-showmanymoveone .carousel-inner .cloneditem-3,
    .carousel-showmanymoveone .carousel-inner .cloneditem-4,
    .carousel-showmanymoveone .carousel-inner .cloneditem-5,
    .carousel-showmanymoveone .carousel-inner .cloneditem-6  {
      display: block;
    }
  }
  @media all and (min-width: 992px) and (transform-3d), all and (min-width: 992px) and (-webkit-transform-3d) {
    .carousel-showmanymoveone .carousel-inner > .item.active.right,
    .carousel-showmanymoveone .carousel-inner > .item.next {
      -webkit-transform: translate3d(16.666%, 0, 0);
      transform: translate3d(16.666%, 0, 0);
      left: 0;
    }
    .carousel-showmanymoveone .carousel-inner > .item.active.left,
    .carousel-showmanymoveone .carousel-inner > .item.prev {
      -webkit-transform: translate3d(-16.666%, 0, 0);
      transform: translate3d(-16.666%, 0, 0);
      left: 0;
    }
    .carousel-showmanymoveone .carousel-inner > .item.left,
    .carousel-showmanymoveone .carousel-inner > .item.prev.right,
    .carousel-showmanymoveone .carousel-inner > .item.active {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
      left: 0;
    }
  }

  body{
    font-size: 15px !important;
  }
  li{
    font-size: 14px !important;
  }
 .fs ul{
    margin-left: 90px !important;
  }
  button , .btn{
    font-size: 15px !important;
  }
  .btn:hover{
    background: #2f7ae3;
    box-shadow: #2f7ae3;
  }
  h1 {
    font-size: 48px !important;
  }

  #itemslider h4 {
    color: #212529 !important;
    font-family:tahoma !important;
    font-size: 16px !important;
    line-height: normal;
    margin: 10px auto 3px;
}
#itemslider img {
height: 150px;
border-radius: 16px;
}
@media (max-width:575px){
    .fs ul{
        margin-left: 10px !important;
      }
      #itemslider img {
        width: 250px !important;
        }
  }


  /* بخش رتبه‌بندی وسط‌چین */
  .rating-section-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .rating-wrapper-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .rating-box{
    gap: 20px;
    display: flex;
    position: relative;
    left: 0 !important;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
  }
.live-rating{
    gap: 20px;
    display: flex;
    position: relative;
    left: 0 !important;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
  }
  .live-rating2{
    gap: 20px;
    display: flex;
    position: relative;
    left: 0 !important;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
  }
  label{
    font-size: 30px !important;

  }
  @media (max-width: 1280px) and (min-width:1024px){
    .rating-box,
    .live-rating,
    .live-rating2{
      left: 0 !important;
    }
  }
  @media (max-width: 1024px) and (min-width:575px){
    .rating-box,
    .live-rating,
    .live-rating2{
      left: 0 !important;
    }
  }
  @media (max-width:575px){
    .rating-box,
    .live-rating,
    .live-rating2{
      left: 0 !important;
    }
    label{
      font-size: 25px !important;
    }
  }

  input:checked~label {
    color: #ffa534;
    animation: filling-animation.7s forwards;
    filter: drop-shadow(0px 0px 10px #ffffff3f);
  }
 .tooltip{
    font-size: 14px !important;
  }

.comments {
    display: none !important;
}
.comments-body{
  background: #fbfdff !important;
  padding:10px !important;
  box-shadow: 0 1px 4px 0 rgb(0 0 0 / 10%);
  border-radius:8px;
  min-height:30px !important;

}

    .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
  .btn-Comment{
      background-image: linear-gradient( 183deg , #31a0ff, #0066ff) !important;
      color:#fff !important;
      width:50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  }

input , textarea{ font:400 12px/16px "Open Sans", Helvetica, Arial, sans-serif; }
input {
      width:100%;
      border:1px solid rgb(178, 178, 178) !important;
      background: #fbfdff !important;
      margin:0 0 5px;
      padding:15px;
      border-radius:5px;
      font-size:15px !important;
      padding-left:5px;
      padding-right:5px;
      text-indent:5px;
}
 textarea {
      width:95%;
      border:1px solid rgb(178, 178, 178) !important;
      background: #fbfdff !important;
      margin:0 0 5px;
      padding:15px;
      border-radius:5px;
      font-size:15px !important;
      padding-left:5px;
      padding-right:5px;
      text-indent:5px;
}
@media (max-width: 575px){
input {
      width:320px !important;
        padding:1px !important;
}
}
.comments .img-star{
       width:70px !important;
   }


   .carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.carousel-slide {
    margin: 0 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.carousel-slide h3 {
    margin: 10px;
    font-size: 18px;
    color: #333;
    text-align: center;
}
.carousel-slide p {
    margin: 0 10px 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}
.slick-prev, .slick-next {
    background: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 1;
}
.slick-prev:before, .slick-next:before {
    color: #fff;
}
.slick-dots li button:before {
    font-size: 12px;
    color: #333;
}
.slick-dots li.slick-active button:before {
    color: #007bff;
}
/* ریسپانسیو */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 150px;
    }
    .carousel-slide h3 {
        font-size: 16px;
    }
    .carousel-slide p {
        font-size: 12px;
    }
}
.blog_img{
  background: linear-gradient(145deg, #f0f6ff 0%, #e8f0fe 100%);
  padding: 28px !important;
  border-radius: 20px;
  margin-bottom: 2rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(49, 160, 255, 0.1);
  box-shadow: 0 4px 24px rgba(49, 160, 255, 0.06);
}
@media (max-width: 575px){
  .blog_img{
    padding: 14px !important;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }
  }
  .carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    padding-bottom: 80px;
}

.carousel-showmanymoveone {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap;
    overflow: hidden;
    min-height: 300px;
}

.carousel-slide {
    padding: 10px;
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    margin-right: 20px;
}

.carousel-slide:last-child {
    margin-right: 0;
}

.carousel-slide a {
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-slide a:hover {
    transform: translateY(-3px);
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0;
}

.carousel-slide h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.4;
    padding: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Slick Slider Custom Styles */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.slick-prev {
    left: -25px;
}

.slick-next {
    right: -25px;
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slick-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
}

/* اطمینان از نمایش dots */
.slick-dots {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* استایل برای دایره‌های دستی */
.manual-dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    background: #ccc;
    transition: all 0.3s ease;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.dot-btn:hover {
    background: #999;
    transform: scale(1.2);
}

.dot-btn.active {
    background: #0066ff;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.dot-btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.dot-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.dot-btn:hover {
    background: #999;
    transform: scale(1.2);
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.slick-dots li {
    margin: 0 8px;
}

.slick-dots li {
    margin: 0 8px;
    cursor: pointer;
}

.slick-dots li button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
    padding: 0;
    outline: none;
}

.slick-dots li.slick-active button {
    background: #0066ff;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.slick-dots li button:hover {
    background: #999;
    transform: scale(1.1);
}

.slick-dots li.slick-active button:hover {
    background: #0056cc;
    transform: scale(1.3);
}

/* Slick slider styles */
.slick-track {
    display: flex !important;
    flex-direction: row !important;
}

.slick-slide {
    display: flex !important;
    height: auto !important;
}

.slick-slide > div {
    display: flex !important;
    height: 100% !important;
}

@media (max-width: 1024px) {
    .carousel-slide {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 10px;
    }

    .carousel-slide {
        width: calc(100% - 10px);
        margin-right: 10px;
    }

    .carousel-slide img {
        height: 180px;
    }

    .carousel-slide h3 {
        font-size: 14px;
        padding: 12px;
    }

    .slick-prev,
    .slick-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slick-prev {
        left: -20px;
    }

    .slick-next {
        right: -20px;
    }
}
.btn.dropdown-toggle {
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 10px !important;
}
.close-menu {
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 10px !important;
}
.dot-btn {
  min-width: 24px;
  min-height: 24px;
  margin: 4px; /* حداقل فاصله 8 پیکسل بین دکمه‌ها */
}
.navLink + .navLink {
  margin-left: 8px;
}
.dropdown-menu .dropdown-item {
  margin: 4px 0;
}
.dot-btn + .dot-btn {
  margin-left: 8px;
}

.hr-horizontal {
    background: rgba(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: .5rem 0;
    background-image: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(0, 0, 0, 0.4)), to(transparent));
    background-image: -webkit-linear-gradient(left, transparent, rgba(0, 0, 0, 0.4), transparent);
    background-image: -o-linear-gradient(left, transparent, rgba(0, 0, 0, 0.4), transparent);
    background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4), transparent);
}

/* ============================================
   Modern Blog Carousel Styles - خفن و مدرن
   ============================================ */

.modern-blog-carousel-wrapper {
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 60px 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.modern-blog-carousel-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(49, 160, 255, 0.8) 0%,
        rgba(111, 69, 255, 0.8) 50%,
        rgba(49, 160, 255, 0.8) 100%);
    background-size: 200% 100%;
    animation: gradient-shift-carousel 3s ease infinite;
}

@keyframes gradient-shift-carousel {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.carousel-header-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.carousel-section-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    font-family: Montserrat, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.carousel-section-title i {
    color: #31a0ff;
    font-size: 32px;
    animation: pulse-icon 2s ease infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.carousel-section-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    padding-bottom: 80px;
}

.carousel-showmanymoveone {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    gap: 25px;
}

.carousel-showmanymoveone::-webkit-scrollbar {
    display: none;
}

.modern-slide-card {
    flex: 0 0 auto;
    width: calc(33.333% - 17px);
    min-width: 320px;
}

.blog-card-modern {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(49, 160, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(49, 160, 255, 0.05);
    position: relative;
    backdrop-filter: blur(10px);
}

.blog-card-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(49, 160, 255, 0.8) 0%,
        rgba(111, 69, 255, 0.8) 50%,
        rgba(49, 160, 255, 0.8) 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15),
                0 0 0 1px rgba(49, 160, 255, 0.2),
                0 0 60px rgba(49, 160, 255, 0.15);
    border-color: rgba(49, 160, 255, 0.3);
}

.blog-card-link:hover::before {
    opacity: 1;
    animation: gradient-shift-carousel 3s ease infinite;
}

.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.1) 0%, rgba(111, 69, 255, 0.1) 100%);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-card-link:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-link:hover .blog-card-image {
    transform: scale(1.1);
}

.blog-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    animation: badge-pulse 2s ease infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 193, 7, 0.6);
    }
}

.blog-card-badge i {
    font-size: 11px;
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat, sans-serif;
    transition: color 0.3s ease;
}

.blog-card-link:hover .blog-card-title {
    color: #31a0ff;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(49, 160, 255, 0.1);
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.blog-card-date i {
    font-size: 12px;
    color: #31a0ff;
}

.blog-card-read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #31a0ff;
    transition: all 0.3s ease;
}

.blog-card-link:hover .blog-card-read-more {
    color: #0066ff;
    transform: translateX(-5px);
}

.blog-card-read-more i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.blog-card-link:hover .blog-card-read-more i {
    transform: translateX(-3px);
}

/* دایره‌های navigation مدرن */
.manual-dots-container {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modern-dot-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(49, 160, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.modern-dot-btn .dot-indicator {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(49, 160, 255, 0.3);
    transition: all 0.3s ease;
}

.modern-dot-btn:hover {
    transform: scale(1.3);
    background: rgba(49, 160, 255, 0.4);
}

.modern-dot-btn:hover .dot-indicator {
    background: rgba(49, 160, 255, 0.6);
}

.modern-dot-btn.active {
    width: 32px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(49, 160, 255, 0.3) 0%, rgba(111, 69, 255, 0.3) 100%);
}

.modern-dot-btn.active .dot-indicator {
    background: linear-gradient(90deg, #31a0ff 0%, #6f45ff 100%);
    box-shadow: 0 0 15px rgba(49, 160, 255, 0.5);
}

.modern-dot-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 160, 255, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .modern-slide-card {
        width: calc(50% - 13px);
        min-width: 280px;
    }

    .carousel-section-title {
        font-size: 30px;
    }

    .blog-card-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .modern-blog-carousel-wrapper {
        padding: 40px 15px;
    }

    .carousel-header-section {
        margin-bottom: 35px;
    }

    .carousel-section-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .carousel-section-title i {
        font-size: 28px;
    }

    .carousel-section-subtitle {
        font-size: 14px;
    }

    .modern-slide-card {
        width: calc(100% - 10px);
        min-width: 280px;
    }

    .blog-card-image-wrapper {
        height: 180px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 16px;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .carousel-container {
        padding-bottom: 70px;
    }
}

@media (max-width: 575px) {
    .modern-blog-carousel-wrapper {
        padding: 30px 10px;
    }

    .carousel-section-title {
        font-size: 20px;
    }

    .carousel-section-subtitle {
        font-size: 13px;
    }

    .blog-card-image-wrapper {
        height: 160px;
    }

    .blog-card-content {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .blog-card-date {
        font-size: 12px;
    }

    .blog-card-read-more {
        font-size: 12px;
    }

    .modern-dot-btn {
        width: 10px;
        height: 10px;
    }

    .modern-dot-btn.active {
        width: 28px;
        height: 10px;
    }
}

/* ============================================
   Blog Sidebar Styles - Modern & SEO-Friendly
   ============================================ */

/* ساختار 2 ستونی */
.blog-main-content {
    padding-right: 30px;
}

.blog-sidebar {
    padding-left: 30px;
    align-self: stretch;
}

.blog-sidebar-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    min-height: 100%;
}

.blog-sidebar-content {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-sidebar-rail-wrap {
    flex: 0 0 48px;
    width: 48px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    z-index: 6;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.blog-sidebar-rail-wrap.is-near-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 991px) {
    .blog-main-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .blog-sidebar {
        padding-left: 0;
    }

    .blog-sidebar-content {
        position: static;
    }
}

/* سایدبار: محتوا + نوار اشتراک جدا */

.sidebar-register-section {
    margin: 0;
}

.sidebar-related-posts,
.sidebar-categories {
    margin: 0;
}

.blog-sidebar-rail {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 6px 12px;
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.88) 0%, rgba(255, 255, 255, 0.42) 100%);
    border: 1px solid rgba(49, 160, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
}

.blog-sidebar-rail-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-rail-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 48px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    background-color: transparent;
    color: #64748b;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    transition: color 0.2s ease;
}

.blog-rail-btn:hover,
.blog-rail-btn:focus,
.blog-rail-btn:active,
.blog-rail-btn[aria-expanded="true"] {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    color: #0066ff !important;
    transform: none;
}

.blog-rail-btn:hover .blog-rail-label,
.blog-rail-btn:focus .blog-rail-label,
.blog-rail-btn[aria-expanded="true"] .blog-rail-label {
    color: #0066ff !important;
}

.blog-rail-btn i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #31a0ff;
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blog-rail-btn i.fas,
.blog-rail-btn i.far,
.blog-rail-btn i.fab {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-style: normal;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.blog-rail-btn i.fab {
    font-weight: 400;
}

.blog-rail-btn:hover i,
.blog-rail-btn:focus i,
.blog-rail-btn[aria-expanded="true"] i {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(49, 160, 255, 0.28);
}

.blog-rail-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    max-width: 52px;
}

.blog-rail-reading-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(49, 160, 255, 0.12);
}

.blog-rail-remaining {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 42px;
    padding: 4px 2px;
    text-align: center;
    line-height: 1.1;
}

.blog-rail-remaining-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #31a0ff;
    font-variant-numeric: tabular-nums;
}

.blog-rail-remaining-label {
    font-size: 0.5625rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.01em;
    max-width: 42px;
    word-break: break-word;
}

.blog-rail-font-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.blog-rail-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    border: 1px solid rgba(49, 160, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92) !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    color: #475569 !important;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-rail-mini-btn:hover,
.blog-rail-mini-btn:focus,
.blog-rail-mini-btn:active {
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.14) 0%, rgba(139, 92, 246, 0.1) 100%) !important;
    background-color: transparent !important;
    border-color: rgba(49, 160, 255, 0.32);
    color: #0066ff !important;
    outline: none;
}

.blog-rail-mini-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.blog-focus-toggle[aria-pressed="true"] .blog-rail-label,
.blog-focus-toggle[aria-pressed="true"] i {
    color: #0066ff !important;
}

body.blog-font-level--2 .blog_body_content {
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
}

body.blog-font-level--1 .blog_body_content {
    font-size: 0.9375rem !important;
    line-height: 1.7 !important;
}

body.blog-font-level-0 .blog_body_content {
    font-size: 1rem !important;
    line-height: 1.75 !important;
}

body.blog-font-level-1 .blog_body_content {
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
}

body.blog-font-level-2 .blog_body_content {
    font-size: 1.25rem !important;
    line-height: 1.85 !important;
}

body.blog-focus-mode .blog-sidebar-content {
    display: none !important;
}

body.blog-focus-mode .blog-main-content {
    flex: 0 0 100%;
    max-width: 100%;
}

body.blog-focus-mode .blog-sidebar {
    flex: 0 0 auto;
    width: auto;
    max-width: 64px;
}

body.blog-focus-mode .blog-sidebar-inner {
    justify-content: flex-start;
}

body.blog-focus-mode .blog-article,
body.blog-focus-mode .blog-main-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.blog-share-menu {
    position: absolute;
    top: 0;
    right: calc(100% + 12px);
    left: auto;
    min-width: 184px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(49, 160, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.blog-share-menu[hidden] {
    display: none !important;
}

.blog-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 11px;
    border: none;
    border-radius: 10px;
    background: transparent;
    background-color: transparent;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-share-item:hover,
.blog-share-item:focus,
.blog-share-item:active {
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.11) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
    background-color: rgba(49, 160, 255, 0.08) !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    color: #0066ff !important;
    text-decoration: none !important;
}

.blog-share-item i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(49, 160, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
}

.blog-read-progress {
    display: flex;
    justify-content: center;
    width: 100%;
}

.blog-read-progress-track {
    position: relative;
    width: 5px;
    height: 280px;
    max-height: calc(100vh - 220px);
    background: linear-gradient(180deg, rgba(49, 160, 255, 0.16) 0%, rgba(226, 232, 240, 0.85) 100%);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(49, 160, 255, 0.08);
}

.blog-read-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #93c5fd 0%, #31a0ff 45%, #0066ff 100%);
    border-radius: 999px;
    transition: height 0.12s ease-out;
}

.blog-read-progress-thumb {
    position: absolute;
    left: 50%;
    top: 0;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    margin-top: -6px;
    background: #31a0ff;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: none;
    box-shadow: 0 4px 14px rgba(49, 160, 255, 0.45),
                0 0 0 5px rgba(49, 160, 255, 0.12);
    transition: top 0.12s ease-out;
    pointer-events: none;
}

.blog-rail-progress-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.blog-toc-rail-toggle .fa-list-ul {
    font-size: 0.95rem;
}

.blog-toc-rail-toggle[aria-expanded="true"] i {
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(49, 160, 255, 0.28);
}

/* TOC modal (Zoomit-style slide panel) */
.blog-toc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000045;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    pointer-events: none;
}

.blog-toc-modal[hidden] {
    display: none !important;
}

.blog-toc-modal.is-open {
    pointer-events: auto;
}

.blog-toc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.blog-toc-modal.is-open .blog-toc-modal-backdrop {
    opacity: 1;
}

.blog-toc-modal-panel {
    position: relative;
    z-index: 2;
    width: min(420px, 92vw);
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-left: 1px solid rgba(49, 160, 255, 0.14);
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.14);
    transform: translateX(104%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-toc-modal.is-open .blog-toc-modal-panel {
    transform: translateX(0);
}

.blog-toc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(49, 160, 255, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.blog-toc-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

.blog-toc-modal-title i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.14) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #31a0ff;
    font-size: 0.9rem;
}

.blog-toc-modal-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-toc-modal-close:hover,
.blog-toc-modal-close:focus {
    background: rgba(49, 160, 255, 0.12);
    border-color: rgba(49, 160, 255, 0.28);
    color: #0066ff;
    outline: none;
}

.blog-toc-modal-body {
    flex: 1;
    overflow: auto;
    padding: 0.85rem 0.75rem 1.25rem;
}

.blog-toc-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.blog-toc-modal-item {
    margin: 0;
    padding: 0;
}

.blog-toc-modal-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #334155;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-toc-modal-link:hover,
.blog-toc-modal-link:focus {
    background: rgba(49, 160, 255, 0.08);
    border-color: rgba(49, 160, 255, 0.14);
    color: #0066ff;
    outline: none;
}

.blog-toc-modal-link.is-active,
.blog-toc-modal-item.is-active > .blog-toc-modal-link {
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(49, 160, 255, 0.22);
    color: #0066ff;
    box-shadow: inset 3px 0 0 #31a0ff;
}

.blog-toc-modal-index {
    flex: 0 0 auto;
    min-width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(49, 160, 255, 0.1);
    color: #31a0ff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.blog-toc-modal-text {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.55;
}

.blog-toc-modal-item-h3 {
    padding-left: 0.85rem;
}

.blog-toc-modal-item-h3 .blog-toc-modal-text {
    font-size: 0.86rem;
    color: #64748b;
}

.blog-toc-modal-item-h3 .blog-toc-modal-link.is-active .blog-toc-modal-text,
.blog-toc-modal-item-h3.is-active > .blog-toc-modal-link .blog-toc-modal-text {
    color: #0066ff;
}

.blog-toc-modal-open {
    overflow: hidden;
}

.blog-fa-scope .blog-toc-modal {
    justify-content: flex-start;
}

.blog-fa-scope .blog-toc-modal-panel {
    border-left: none;
    border-right: 1px solid rgba(49, 160, 255, 0.14);
    box-shadow: 18px 0 48px rgba(15, 23, 42, 0.14);
    transform: translateX(-104%);
}

.blog-fa-scope .blog-toc-modal.is-open .blog-toc-modal-panel {
    transform: translateX(0);
}

.blog-fa-scope .blog-toc-modal-link.is-active,
.blog-fa-scope .blog-toc-modal-item.is-active > .blog-toc-modal-link {
    box-shadow: inset -3px 0 0 #31a0ff;
}

.blog-fa-scope .blog-toc-modal-item-h3 {
    padding-left: 0;
    padding-right: 0.85rem;
}

@media (max-width: 575px) {
    .blog-toc-modal-panel {
        width: 100%;
    }

    .blog-toc-modal-header {
        padding: 1rem;
    }

    .blog-toc-modal-body {
        padding: 0.75rem 0.55rem 1rem;
    }
}

html.dark-mode .blog-toc-modal-panel {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: rgba(56, 189, 248, 0.18);
}

html.dark-mode .blog-toc-modal-header {
    background: rgba(15, 23, 42, 0.94);
    border-bottom-color: rgba(56, 189, 248, 0.16);
}

html.dark-mode .blog-toc-modal-title {
    color: #e2e8f0;
}

html.dark-mode .blog-toc-modal-close {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.2);
    color: #94a3b8;
}

html.dark-mode .blog-toc-modal-link {
    color: #cbd5e1;
}

html.dark-mode .blog-toc-modal-link:hover,
html.dark-mode .blog-toc-modal-link:focus,
html.dark-mode .blog-toc-modal-link.is-active,
html.dark-mode .blog-toc-modal-item.is-active > .blog-toc-modal-link {
    color: #7dd3fc;
}

.blog-fa-scope .blog-share-menu {
    right: auto;
    left: calc(100% + 10px);
}

@media (max-width: 991px) {
    .blog-sidebar-inner {
        flex-direction: column;
        gap: 0;
    }

    .blog-sidebar-rail-wrap {
        display: none !important;
    }

    body.blog-single-page {
        padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        --blog-fab-right: 18px;
        --blog-fab-left: 18px;
        --blog-fab-size: 60px;
        --blog-fab-pad: 24px;
        --blog-fab-gap: 16px;
        --blog-fab-bar: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    body.blog-single-page .bottom-bar {
        display: none !important;
    }

    body.blog-single-page.blog-mobile-bar-visible .integration-fixed.integration-fixed__bottom-right {
        bottom: var(--blog-fab-bar);
        right: 0;
    }

    body.blog-single-page.blog-mobile-bar-visible .integration-fixed .whatsapp-container {
        padding: 12px var(--blog-fab-right) 12px 12px;
    }

    body.blog-single-page.blog-mobile-bar-visible .mobile-app-install {
        bottom: var(--blog-fab-bar);
        left: var(--blog-fab-left);
    }
}

/* ============================================
   Article tools (Print / PDF) — end of post
   ============================================ */

.blog-article-tools {
    margin: 18px 0 12px;
    padding: 18px 20px;
    border: 1px solid rgba(49, 160, 255, 0.18);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 255, 0.94) 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.blog-article-tools-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.blog-article-tools-label {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
}

.blog-article-tools-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-article-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(49, 160, 255, 0.22);
    border-radius: 12px;
    background: #fff !important;
    background-color: #fff !important;
    color: #0369a1 !important;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-article-tool-btn:hover,
.blog-article-tool-btn:focus,
.blog-article-tool-btn:active {
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%) !important;
    background-color: #31a0ff !important;
    border-color: transparent;
    color: #fff !important;
    outline: none;
    transform: translateY(-1px);
}

.blog-article-tool-btn-pdf {
    color: #b91c1c !important;
    border-color: rgba(185, 28, 28, 0.25);
}

.blog-article-tool-btn-pdf:hover,
.blog-article-tool-btn-pdf:focus,
.blog-article-tool-btn-pdf:active {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    background-color: #ef4444 !important;
    color: #fff !important;
}

#blog-vote-section.blog-vote-section-highlight,
.add_comment_area.blog-vote-section-highlight {
    animation: blog-vote-highlight 1.8s ease;
}

@keyframes blog-vote-highlight {
    0%, 100% {
        box-shadow: none;
    }
    25%, 55% {
        box-shadow: 0 0 0 4px rgba(49, 160, 255, 0.22),
                    0 12px 32px rgba(49, 160, 255, 0.12);
        border-radius: 16px;
    }
}

html.dark-mode .blog-article-tools {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(56, 189, 248, 0.22);
}

html.dark-mode .blog-article-tools-label {
    color: #e2e8f0;
}

html.dark-mode .blog-article-tool-btn {
    background: rgba(15, 23, 42, 0.8) !important;
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(56, 189, 248, 0.25);
    color: #7dd3fc !important;
}

html.dark-mode .blog-article-tool-btn-pdf {
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.3);
}

@media print {
    body.blog-single-page {
        padding-bottom: 0 !important;
        background: #fff !important;
    }

    #noAuthHeader,
    .mobile-header,
    .blog-sidebar,
    .blog-sidebar-rail-wrap,
    .blog-mobile-bar,
    .blog-mobile-share-sheet,
    .blog-back-to-top,
    .blog-lightbox,
    .blog-toc-modal,
    .blog-article-tools,
    .integration-fixed,
    .mobile-app-install,
    .sidebar-register-section,
    .sidebar-related-posts,
    .sidebar-categories,
    #maincommentscontainer,
    .modern-blog-carousel-wrapper,
    footer,
    .fotwel,
    .breadcrumb-blogsin {
        display: none !important;
    }

    .blog-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .blog-img-lazy-wrap .blog-img-lazy {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .blog-main-content,
    .blog-article,
    .blog_body_content {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        box-shadow: none !important;
    }

    .blog_title {
        color: #000 !important;
    }

    .blog_body_content,
    .blog_body_content * {
        color: #111 !important;
        background: transparent !important;
    }

    a[href]::after {
        content: none !important;
    }
}

/* ============================================
   Text selection share (Medium-style)
   ============================================ */

.blog-selection-share {
    position: absolute;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    pointer-events: none;
}

.blog-selection-share.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.blog-selection-share.is-below {
    transform: translateY(-6px) scale(0.96);
}

.blog-selection-share.is-below.is-visible {
    transform: translateY(0) scale(1);
}

.blog-selection-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.blog-selection-share-icon {
    width: 34px;
    min-width: 34px;
    padding: 0;
}

.blog-selection-share-btn:hover,
.blog-selection-share-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.blog-selection-share-divider {
    width: 1px;
    height: 18px;
    margin: 0 0.1rem;
    background: rgba(255, 255, 255, 0.18);
}

.blog-fa-scope .blog-selection-share {
    direction: rtl;
}

@media (max-width: 575px) {
    .blog-selection-share {
        max-width: calc(100vw - 24px);
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 16px;
    }

    .blog-selection-share-copy span {
        display: none;
    }

    .blog-selection-share-copy {
        width: 34px;
        min-width: 34px;
        padding: 0;
    }
}

html.dark-mode .blog-selection-share {
    background: rgba(2, 6, 23, 0.96);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
}

/* ============================================
   Blog image lightbox
   ============================================ */

.blog-lightbox-trigger {
    cursor: zoom-in;
}

.blog-lightbox-trigger:hover {
    box-shadow: 0 12px 36px rgba(49, 160, 255, 0.22);
}

.blog-lightbox-open {
    overflow: hidden;
}

.blog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.blog-lightbox[hidden] {
    display: none !important;
}

.blog-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
}

.blog-lightbox-toolbar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

.blog-lightbox-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-lightbox-btn:hover,
.blog-lightbox-btn:focus {
    background: rgba(49, 160, 255, 0.28);
    color: #fff;
    outline: none;
}

.blog-lightbox-zoom-level {
    min-width: 3.2rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    user-select: none;
}

.blog-lightbox-stage {
    position: relative;
    z-index: 2;
    width: min(92vw, 1200px);
    height: min(78vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.blog-lightbox-stage.is-pannable {
    cursor: grab;
}

.blog-lightbox-stage.is-dragging {
    cursor: grabbing;
}

.blog-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
    transform-origin: center center;
    transition: box-shadow 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.blog-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.blog-lightbox-nav:hover,
.blog-lightbox-nav:focus {
    background: rgba(49, 160, 255, 0.28);
    color: #fff;
    outline: none;
}

.blog-lightbox-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.blog-lightbox-prev {
    left: 16px;
}

.blog-lightbox-next {
    right: 16px;
}

.blog-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 3;
    max-width: min(90vw, 760px);
    margin: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.blog-fa-scope .blog-lightbox-caption {
    direction: rtl;
}

.blog-fa-scope .blog-lightbox-prev {
    left: auto;
    right: 16px;
}

.blog-fa-scope .blog-lightbox-next {
    right: auto;
    left: 16px;
}

.blog-fa-scope .blog-lightbox-prev i,
.blog-fa-scope .blog-lightbox-next i {
    transform: scaleX(-1);
}

html.dark-mode .blog-lightbox-toolbar,
html.dark-mode .blog-lightbox-nav,
html.dark-mode .blog-lightbox-caption {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.22);
}

@media (max-width: 768px) {
    .blog-lightbox {
        padding: 0.75rem;
    }

    .blog-lightbox-stage {
        width: 100%;
        height: calc(100vh - 120px);
    }

    .blog-lightbox-toolbar {
        top: auto;
        bottom: 72px;
        gap: 0.25rem;
        padding: 0.35rem 0.45rem;
    }

    .blog-lightbox-btn {
        width: 34px;
        height: 34px;
    }

    .blog-lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .blog-lightbox-prev {
        left: 8px;
    }

    .blog-lightbox-next {
        right: 8px;
    }

    .blog-fa-scope .blog-lightbox-prev {
        right: 8px;
    }

    .blog-fa-scope .blog-lightbox-next {
        left: 8px;
    }

    .blog-lightbox-caption {
        bottom: 126px;
        font-size: 0.8rem;
    }
}

/* ============================================
   Back to top (floating)
   ============================================ */

.blog-back-to-top {
    position: fixed;
    right: 24px;
    bottom: calc(24px + 60px + 16px);
    z-index: 10000002;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(49, 160, 255, 0.22);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 255, 0.92) 100%) !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    color: #31a0ff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12),
                0 0 0 1px rgba(49, 160, 255, 0.06);
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.94);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease, box-shadow 0.2s ease, color 0.2s ease;
    pointer-events: none;
}

.blog-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.blog-back-to-top i {
    font-size: 1rem;
    line-height: 1;
}

.blog-back-to-top:hover,
.blog-back-to-top:focus,
.blog-back-to-top:active {
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%) !important;
    background-color: #31a0ff !important;
    color: #fff !important;
    box-shadow: 0 12px 32px rgba(49, 160, 255, 0.35);
    outline: none;
}

@media (max-width: 991px) {
    .blog-back-to-top {
        right: 18px;
        bottom: calc(24px + 60px + 16px + env(safe-area-inset-bottom, 0px));
    }

    body.blog-single-page.blog-mobile-bar-visible .blog-back-to-top {
        right: var(--blog-fab-right);
        bottom: calc(
            var(--blog-fab-bar) +
            var(--blog-fab-pad) +
            var(--blog-fab-size) +
            var(--blog-fab-gap)
        );
    }
}

@media (min-width: 992px) {
    body.blog-single-page .integration-fixed .whatsapp-container {
        padding: 24px;
    }

    body.blog-single-page .blog-back-to-top {
        right: 24px;
        bottom: calc(24px + 60px + 16px);
    }
}

html.dark-mode .blog-back-to-top {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
    background-color: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(56, 189, 248, 0.28);
    color: #60a5fa;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45),
                0 0 0 1px rgba(56, 189, 248, 0.12);
}

html.dark-mode .blog-back-to-top:hover,
html.dark-mode .blog-back-to-top:focus,
html.dark-mode .blog-back-to-top:active {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%) !important;
    background-color: #38bdf8 !important;
    color: #0f172a !important;
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
}

/* ============================================
   Mobile bottom bar (Zoomit-style)
   ============================================ */

.blog-mobile-bar {
    display: none;
}

@media (max-width: 991px) {
    .blog-mobile-bar {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        background: #fff;
        border-top: 1px solid rgba(148, 163, 184, 0.28);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .blog-mobile-bar.is-hidden {
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
    }

    .blog-mobile-bar-actions {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 8px;
        padding: 10px 16px 8px;
    }

    .blog-mobile-action {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 56px;
        padding: 4px 8px;
        border: none;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        color: #64748b;
        font-size: 0.6875rem;
        font-weight: 500;
        cursor: pointer;
        position: relative;
        text-decoration: none;
    }

    .blog-mobile-action-link:hover,
    .blog-mobile-action-link:focus,
    .blog-mobile-action-link:active {
        text-decoration: none;
    }

    .blog-mobile-action i {
        font-size: 1.2rem;
        line-height: 1;
    }

    .blog-mobile-action:hover,
    .blog-mobile-action:focus,
    .blog-mobile-action:active {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        color: #31a0ff !important;
        outline: none;
    }

    .blog-mobile-action.is-active,
    .blog-mobile-action[aria-pressed="true"] {
        color: #f97316 !important;
    }

    .blog-mobile-action.is-active i,
    .blog-mobile-action[aria-pressed="true"] i {
        font-weight: 700;
    }

    .blog-mobile-action-count {
        font-size: 0.6875rem;
        line-height: 1.2;
        color: inherit;
    }

    .blog-mobile-progress {
        width: 100%;
        padding: 0;
    }

    .blog-mobile-progress-track {
        width: 100%;
        height: 3px;
        background: #e2e8f0;
        overflow: hidden;
    }

    .blog-mobile-progress-fill {
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, #60a5fa 0%, #31a0ff 100%);
        transition: width 0.12s ease-out;
    }

    .blog-mobile-share-sheet[hidden] {
        display: none !important;
    }

    .blog-mobile-share-sheet {
        position: fixed;
        inset: 0;
        z-index: 1300;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .blog-mobile-share-sheet-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
    }

    .blog-mobile-share-sheet-panel {
        position: relative;
        width: 100%;
        max-width: 520px;
        background: #fff;
        border-radius: 18px 18px 0 0;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.15);
        animation: blog-mobile-sheet-up 0.25s ease;
    }

    @keyframes blog-mobile-sheet-up {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .blog-mobile-share-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        color: #1e293b;
        font-size: 1rem;
    }

    .blog-mobile-share-close {
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 50%;
        background: #f1f5f9 !important;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .blog-mobile-share-sheet-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .blog-mobile-share-option {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 12px 10px;
        border: none;
        border-radius: 10px;
        background: transparent !important;
        color: #334155;
        text-decoration: none;
        font-size: 0.9375rem;
        font-weight: 500;
        cursor: pointer;
    }

    .blog-mobile-share-option:hover,
    .blog-mobile-share-option:focus,
    .blog-mobile-share-option:active {
        background: #f8fafc !important;
        color: #0066ff !important;
        text-decoration: none;
    }

    .blog-mobile-share-option i {
        width: 18px;
        text-align: center;
        font-size: 1rem;
    }

    html.dark-mode .blog-mobile-bar {
        background: rgba(15, 23, 42, 0.98);
        border-top-color: rgba(56, 189, 248, 0.2);
        box-shadow: 0 -8px 24px rgba(2, 6, 23, 0.45);
    }

    html.dark-mode .blog-mobile-action {
        color: #94a3b8;
    }

    html.dark-mode .blog-mobile-action:hover,
    html.dark-mode .blog-mobile-action:focus,
    html.dark-mode .blog-mobile-action:active {
        color: #38bdf8 !important;
    }

    html.dark-mode .blog-mobile-progress-track {
        background: #334155;
    }

    html.dark-mode .blog-mobile-share-sheet-panel {
        background: rgba(15, 23, 42, 0.98);
    }

    html.dark-mode .blog-mobile-share-sheet-header {
        color: #e2e8f0;
    }

    html.dark-mode .blog-mobile-share-option {
        color: #cbd5e1;
    }

    html.dark-mode .blog-mobile-share-option:hover,
    html.dark-mode .blog-mobile-share-option:focus,
    html.dark-mode .blog-mobile-share-option:active {
        background: rgba(56, 189, 248, 0.1) !important;
        color: #60a5fa !important;
    }
}

html.dark-mode .blog-sidebar-rail {
    color: #94a3b8;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 41, 59, 0.42) 100%);
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.38);
}

html.dark-mode .blog-rail-btn {
    color: #94a3b8;
    background: transparent !important;
    background-color: transparent !important;
}

html.dark-mode .blog-rail-btn:hover,
html.dark-mode .blog-rail-btn:focus,
html.dark-mode .blog-rail-btn:active,
html.dark-mode .blog-rail-btn[aria-expanded="true"] {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #38bdf8 !important;
}

html.dark-mode .blog-rail-btn i {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(139, 92, 246, 0.12) 100%);
    color: #60a5fa;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

html.dark-mode .blog-rail-btn:hover i,
html.dark-mode .blog-rail-btn:focus i,
html.dark-mode .blog-rail-btn[aria-expanded="true"] i {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(56, 189, 248, 0.24);
}

html.dark-mode .blog-rail-btn:hover .blog-rail-label,
html.dark-mode .blog-rail-btn:focus .blog-rail-label,
html.dark-mode .blog-rail-btn[aria-expanded="true"] .blog-rail-label {
    color: #38bdf8 !important;
}

html.dark-mode .blog-rail-reading-tools {
    border-top-color: rgba(56, 189, 248, 0.16);
}

html.dark-mode .blog-rail-remaining-value {
    color: #60a5fa;
}

html.dark-mode .blog-rail-remaining-label {
    color: #94a3b8;
}

html.dark-mode .blog-rail-mini-btn {
    background: rgba(15, 23, 42, 0.82) !important;
    background-color: rgba(15, 23, 42, 0.82) !important;
    border-color: rgba(56, 189, 248, 0.22);
    color: #cbd5e1 !important;
}

html.dark-mode .blog-rail-mini-btn:hover,
html.dark-mode .blog-rail-mini-btn:focus,
html.dark-mode .blog-rail-mini-btn:active {
    background: rgba(56, 189, 248, 0.12) !important;
    background-color: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.34);
    color: #60a5fa !important;
}

html.dark-mode .blog-share-menu {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.5);
}

html.dark-mode .blog-share-item {
    color: #cbd5e1;
}

html.dark-mode .blog-share-item:hover,
html.dark-mode .blog-share-item:focus,
html.dark-mode .blog-share-item:active {
    background: rgba(56, 189, 248, 0.1) !important;
    background-color: rgba(56, 189, 248, 0.1) !important;
    box-shadow: none !important;
    color: #60a5fa !important;
}

html.dark-mode .blog-read-progress-track {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18) 0%, rgba(51, 65, 85, 0.88) 100%);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12);
}

html.dark-mode .blog-read-progress-thumb {
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4),
                0 0 0 5px rgba(56, 189, 248, 0.12);
}

.register-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 255, 0.95) 100%);
    border: 1px solid rgba(49, 160, 255, 0.18);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(49, 160, 255, 0.05);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.register-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(49, 160, 255, 0.8) 0%,
        rgba(111, 69, 255, 0.8) 50%,
        rgba(49, 160, 255, 0.8) 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.register-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12),
                0 0 0 1px rgba(49, 160, 255, 0.15),
                0 0 40px rgba(49, 160, 255, 0.1);
    border-color: rgba(49, 160, 255, 0.3);
}

.register-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.15) 0%, rgba(111, 69, 255, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #31a0ff;
}

.register-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    font-family: Montserrat, sans-serif;
}

.register-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 160, 255, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 160, 255, 0.4);
    color: white;
}

.btn-register i {
    font-size: 14px;
}

/* بلاگ‌های مرتبط */
.sidebar-related-posts {
    margin: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(49, 160, 255, 0.15);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(49, 160, 255, 0.05);
    backdrop-filter: blur(10px);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Montserrat, sans-serif;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(49, 160, 255, 0.1);
}

.sidebar-title i {
    color: #31a0ff;
    font-size: 22px;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.related-post-item {
    min-width: 0;
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(49, 160, 255, 0.1);
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.related-post-link:hover {
    transform: translateY(-5px);
    border-color: rgba(49, 160, 255, 0.28);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.related-post-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f0f6ff;
}

.related-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.related-post-link:hover .related-post-image img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.related-post-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.48) 100%);
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.related-post-link:hover .related-post-image-overlay {
    opacity: 0.9;
}

.related-post-open-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0066ff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.related-post-link:hover .related-post-open-icon {
    opacity: 1;
    transform: translateY(0);
}

.blog-fa-scope .related-post-open-icon {
    right: auto;
    left: 12px;
    transform: translateY(8px) scaleX(-1);
}

.blog-fa-scope .related-post-link:hover .related-post-open-icon {
    transform: translateY(0) scaleX(-1);
}

.related-post-content {
    min-width: 0;
    padding: 14px 15px 15px;
}

.related-post-match {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(49, 160, 255, 0.1);
    color: #0369a1;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.related-post-match-keyword {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
}

.related-post-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat, sans-serif;
}

.related-post-link:hover .related-post-title {
    color: #31a0ff;
}

.related-post-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-post-meta i {
    font-size: 11px;
}

/* دسته‌بندی‌ها */
.sidebar-categories {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(49, 160, 255, 0.15);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(49, 160, 255, 0.05);
    backdrop-filter: blur(10px);
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.categories-list li {
    margin: 0;
}

.categories-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(49, 160, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: rgba(49, 160, 255, 0.08);
    color: #31a0ff;
    transform: translateX(5px);
    border-color: rgba(49, 160, 255, 0.2);
}

.categories-list a i {
    color: #31a0ff;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 991px) {
    .register-card {
        padding: 24px 20px;
    }

    .register-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .register-card h3 {
        font-size: 20px;
    }

    .sidebar-related-posts,
    .sidebar-categories {
        padding: 24px 20px;
    }

    .sidebar-title {
        font-size: 18px;
    }

    .related-post-image {
        width: 100%;
        height: 210px;
    }

    .related-post-title {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .register-card {
        padding: 20px 16px;
    }

    .register-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .register-card h3 {
        font-size: 18px;
    }

    .register-card p {
        font-size: 13px;
    }

    .btn-register {
        padding: 12px 24px;
        font-size: 14px;
    }

    .sidebar-related-posts,
    .sidebar-categories {
        padding: 20px 16px;
    }

    .sidebar-title {
        font-size: 16px;
        padding-bottom: 12px;
    }

    .related-post-link {
        padding: 0;
    }

    .related-post-image {
        width: 100%;
        height: 180px;
    }

    .related-post-title {
        font-size: 13px;
    }

    .categories-list a {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ============================================
   Dark Mode Styles for Single Post Page
   ============================================ */

html.dark-mode body {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

html.dark-mode * {
    border-color: rgba(56, 189, 248, 0.15);
}

html.dark-mode ::selection {
    background-color: rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
}

html.dark-mode ::-moz-selection {
    background-color: rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
}

html.dark-mode .blog-main-content,
html.dark-mode .blog-sidebar {
    color: #e2e8f0;
}

html.dark-mode .blog_title {
    color: #e2e8f0 !important;
}

html.dark-mode .blog_body_content {
    color: #cbd5e1 !important;
}

/* Override تمام استایل‌های inline و مهم */
html.dark-mode .blog_body_content [style*="color"] {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content [style*="background"] {
    background-color: rgba(15, 23, 42, 0.8) !important;
}

html.dark-mode .blog_body_content [style*="background-color"] {
    background-color: rgba(15, 23, 42, 0.8) !important;
}

/* Override برای تمام کلاس‌های ممکن */
html.dark-mode .blog_body_content .text-dark,
html.dark-mode .blog_body_content .text-black {
    color: #e2e8f0 !important;
}

html.dark-mode .blog_body_content .text-muted {
    color: #94a3b8 !important;
}

html.dark-mode .blog_body_content .text-secondary {
    color: #94a3b8 !important;
}

html.dark-mode .blog_body_content .bg-light,
html.dark-mode .blog_body_content .bg-white {
    background-color: rgba(30, 41, 59, 0.6) !important;
}

html.dark-mode .blog_body_content .bg-dark {
    background-color: rgba(15, 23, 42, 0.9) !important;
}

html.dark-mode .blog_body_content .border {
    border-color: rgba(56, 189, 248, 0.25) !important;
}

html.dark-mode .blog_body_content .border-dark {
    border-color: rgba(56, 189, 248, 0.4) !important;
}

html.dark-mode .blog_body_content .shadow {
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.5) !important;
}

html.dark-mode .blog_body_content .shadow-sm {
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.4) !important;
}

html.dark-mode .blog_body_content .shadow-lg {
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6) !important;
}

html.dark-mode .blog_img {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

html.dark-mode .register-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 12px 48px rgba(2, 6, 23, 0.5),
                0 0 0 1px rgba(56, 189, 248, 0.15);
}

html.dark-mode .register-card::before {
    background: linear-gradient(90deg,
        #38bdf8 0%,
        #818cf8 25%,
        #38bdf8 50%,
        #818cf8 75%,
        #38bdf8 100%);
}

html.dark-mode .register-card h3 {
    color: #e2e8f0;
}

html.dark-mode .register-card p {
    color: #94a3b8;
}

html.dark-mode .sidebar-related-posts,
html.dark-mode .sidebar-categories {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 12px 48px rgba(2, 6, 23, 0.5),
                0 0 0 1px rgba(56, 189, 248, 0.15);
}

html.dark-mode .sidebar-title {
    color: #e2e8f0;
    border-bottom-color: rgba(56, 189, 248, 0.2);
}

html.dark-mode .sidebar-title i {
    color: #60a5fa;
}

html.dark-mode .related-post-link {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(56, 189, 248, 0.15);
}

html.dark-mode .related-post-link:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
}

html.dark-mode .related-post-title {
    color: #e2e8f0;
}

html.dark-mode .related-post-link:hover .related-post-title {
    color: #60a5fa;
}

html.dark-mode .related-post-meta {
    color: #94a3b8;
}

html.dark-mode .related-post-match {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

html.dark-mode .related-post-match-keyword {
    background: rgba(167, 139, 250, 0.14);
    color: #c4b5fd;
}

html.dark-mode .related-post-open-icon {
    background: rgba(15, 23, 42, 0.92);
    color: #7dd3fc;
}

html.dark-mode .categories-list a {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(56, 189, 248, 0.15);
    color: #cbd5e1;
}

html.dark-mode .categories-list a:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
    border-color: rgba(56, 189, 248, 0.3);
}

html.dark-mode .categories-list a i {
    color: #60a5fa;
}

html.dark-mode .blog-card-modern {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 12px 48px rgba(2, 6, 23, 0.5),
                0 0 0 1px rgba(56, 189, 248, 0.15);
}

html.dark-mode .blog-card-link-modern:hover {
    box-shadow: 0 20px 64px rgba(2, 6, 23, 0.7),
                0 0 0 1px rgba(56, 189, 248, 0.3),
                0 0 60px rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.4);
}

html.dark-mode .blog-card-title-modern,
html.dark-mode .blog-card-title-modern a {
    color: #e2e8f0;
}

html.dark-mode .blog-card-link-modern:hover .blog-card-title-modern a {
    color: #60a5fa;
}

html.dark-mode .blog-card-date {
    color: #94a3b8;
}

html.dark-mode .blog-card-read-more {
    color: #60a5fa;
}

html.dark-mode .blog-card-link-modern:hover .blog-card-read-more {
    color: #38bdf8;
}

html.dark-mode .blog-card-footer-modern {
    border-top-color: rgba(56, 189, 248, 0.2);
}

html.dark-mode .modern-blog-carousel-wrapper {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%);
}

html.dark-mode .modern-blog-carousel-wrapper::before {
    background: linear-gradient(90deg,
        #38bdf8 0%,
        #818cf8 25%,
        #38bdf8 50%,
        #818cf8 75%,
        #38bdf8 100%);
}

html.dark-mode .carousel-section-title {
    color: #e2e8f0;
}

html.dark-mode .carousel-section-subtitle {
    color: #94a3b8;
}

html.dark-mode .modern-dot-btn {
    background: rgba(56, 189, 248, 0.2);
}

html.dark-mode .modern-dot-btn .dot-indicator {
    background: rgba(56, 189, 248, 0.3);
}

html.dark-mode .modern-dot-btn.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.3) 0%, rgba(129, 140, 248, 0.3) 100%);
}

html.dark-mode .modern-dot-btn.active .dot-indicator {
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

html.dark-mode .breadcrumb-blogsin a,
html.dark-mode .blog-breadcrumb-link {
    color: #94a3b8;
}

html.dark-mode .breadcrumb-blogsin .actives,
html.dark-mode .blog-breadcrumb-current {
    color: #e2e8f0;
}

html.dark-mode .blog-breadcrumb {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

html.dark-mode .blog-breadcrumb-link:hover,
html.dark-mode .blog-breadcrumb-link:focus {
    color: #60a5fa;
}

html.dark-mode .blog-breadcrumb-icon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(129, 140, 248, 0.12) 100%);
    color: #60a5fa;
}

html.dark-mode .blog-breadcrumb-item.is-current .blog-breadcrumb-icon {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    color: #0f172a;
}

html.dark-mode .blog-breadcrumb-sep {
    color: #64748b;
}

html.dark-mode .backgroundff {
    background-color: #0f172a;
}

html.dark-mode .bacgroundbody {
    background-color: #0f172a;
}

html.dark-mode .naHdCt {
    background-color: #0f172a !important;
}

html.dark-mode p {
    color: #cbd5e1 !important;
}

html.dark-mode a {
    color: #60a5fa;
}

html.dark-mode a:hover {
    color: #38bdf8;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
    color: #e2e8f0;
}

/* استایل‌های جامع برای تمام متن‌های داخل محتوای بلاگ */
html.dark-mode .blog_body_content,
html.dark-mode .blog_body_content * {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content p {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content span {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content div {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content li {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content ul,
html.dark-mode .blog_body_content ol {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content strong,
html.dark-mode .blog_body_content b {
    color: #e2e8f0 !important;
}

html.dark-mode .blog_body_content em,
html.dark-mode .blog_body_content i {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content a {
    color: #60a5fa !important;
}

html.dark-mode .blog_body_content a:hover {
    color: #38bdf8 !important;
}

html.dark-mode .blog_body_content h1,
html.dark-mode .blog_body_content h2,
html.dark-mode .blog_body_content h3,
html.dark-mode .blog_body_content h4,
html.dark-mode .blog_body_content h5,
html.dark-mode .blog_body_content h6 {
    color: #e2e8f0 !important;
}

html.dark-mode .blog_body_content code {
    background-color: rgba(30, 41, 59, 0.8) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
}

html.dark-mode .blog_body_content pre {
    background-color: rgba(15, 23, 42, 0.9) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 16px;
    border-radius: 8px;
}

html.dark-mode .blog_body_content pre code {
    background-color: transparent !important;
    border: none;
    padding: 0;
}

html.dark-mode .blog_body_content blockquote {
    border-left: 4px solid rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    color: #cbd5e1 !important;
    padding: 12px 20px;
    margin: 16px 0;
    border-radius: 4px;
}

html.dark-mode .blog-fa-scope .blog_body_content blockquote {
    border-left: none;
    border-right: 4px solid rgba(56, 189, 248, 0.5);
}

html.dark-mode .blog_body_content table {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
}

html.dark-mode .blog_body_content table th {
    background-color: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border-color: rgba(56, 189, 248, 0.25);
}

html.dark-mode .blog_body_content table td {
    background-color: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
    border-color: rgba(56, 189, 248, 0.15);
}

html.dark-mode .blog_body_content table tr:hover {
    background-color: rgba(30, 41, 59, 0.6);
}

html.dark-mode .blog_body_content img {
    opacity: 0.9;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
}

html.dark-mode .blog-img-lazy-wrap .blog-img-lazy {
    opacity: 0;
    border: none;
}

html.dark-mode .blog-img-lazy-wrap.is-loaded .blog-img-lazy {
    opacity: 1;
}

html.dark-mode .blog_body_content img:hover {
    opacity: 1;
    border-color: rgba(56, 189, 248, 0.4);
}

html.dark-mode .blog-img-lazy-wrap {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 45%, #1e293b 100%);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
}

html.dark-mode .blog_body_content hr {
    border-color: rgba(56, 189, 248, 0.2);
    background-color: rgba(56, 189, 248, 0.2);
}

html.dark-mode .blog_body_content mark {
    background-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

html.dark-mode .blog_body_content del {
    color: #94a3b8;
    text-decoration-color: #64748b;
}

html.dark-mode .blog_body_content ins {
    color: #6ee7b7;
    text-decoration-color: #10b981;
}

html.dark-mode .blog_body_content kbd {
    background-color: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html.dark-mode .blog_body_content samp {
    color: #60a5fa;
    background-color: rgba(30, 41, 59, 0.6);
}

html.dark-mode .blog_body_content var {
    color: #fbbf24;
}

html.dark-mode .blog_body_content small {
    color: #94a3b8;
}

html.dark-mode .blog_body_content sub,
html.dark-mode .blog_body_content sup {
    color: #cbd5e1;
}

html.dark-mode .blog_body_content abbr {
    color: #60a5fa;
    border-bottom: 1px dotted rgba(56, 189, 248, 0.5);
}

html.dark-mode .blog_body_content dfn {
    color: #e2e8f0;
    font-style: italic;
}

html.dark-mode .blog_body_content cite {
    color: #94a3b8;
    font-style: italic;
}

html.dark-mode .blog_body_content q {
    color: #cbd5e1;
}

html.dark-mode .blog_body_content q::before,
html.dark-mode .blog_body_content q::after {
    color: #60a5fa;
}

html.dark-mode .blog_body_content address {
    color: #cbd5e1;
    font-style: normal;
}

html.dark-mode .blog_body_content time {
    color: #94a3b8;
}

html.dark-mode .blog_body_content u {
    color: #cbd5e1;
    text-decoration-color: rgba(56, 189, 248, 0.5);
}

html.dark-mode .blog_body_content s {
    color: #94a3b8;
    text-decoration-color: #64748b;
}

html.dark-mode .comments {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

html.dark-mode .comments-body {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(56, 189, 248, 0.15);
    color: #cbd5e1;
}

html.dark-mode input,
html.dark-mode textarea {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
    color: #e2e8f0 !important;
}

html.dark-mode input:focus,
html.dark-mode textarea:focus {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
    color: #64748b !important;
}

html.dark-mode .btn-Comment {
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%) !important;
    border-color: rgba(56, 189, 248, 0.3);
    color: #fff !important;
}

html.dark-mode .btn-Comment:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%) !important;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

html.dark-mode .btn-register {
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%);
    border-color: rgba(56, 189, 248, 0.3);
}

html.dark-mode .btn-register:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

html.dark-mode .btn,
html.dark-mode button {
    color: #e2e8f0;
}

html.dark-mode .btn:hover {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

html.dark-mode .btn-primary {
    background: linear-gradient(135deg, #31a0ff 0%, #0066ff 100%);
    border-color: rgba(56, 189, 248, 0.3);
}

html.dark-mode .btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    border-color: rgba(56, 189, 248, 0.5);
}

html.dark-mode .alert {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
}

html.dark-mode .alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

html.dark-mode .alert-danger {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

html.dark-mode .breadcrumb {
    background-color: transparent;
}

html.dark-mode .breadcrumb-item + .breadcrumb-item::before {
    color: #64748b;
}

html.dark-mode .breadcrumb-item a {
    color: #94a3b8;
}

html.dark-mode .breadcrumb-item.active {
    color: #e2e8f0;
}

html.dark-mode .table {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
}

html.dark-mode .table-header {
    background-color: rgba(30, 41, 59, 0.9);
}

html.dark-mode .table-row {
    border-color: rgba(56, 189, 248, 0.15);
}

html.dark-mode .table-row:hover {
    background-color: rgba(30, 41, 59, 0.6);
}

html.dark-mode .filter__link {
    color: #e2e8f0;
}

html.dark-mode .dropdown-menu {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 12px 48px rgba(2, 6, 23, 0.5);
}

html.dark-mode .dropdown-item {
    color: #cbd5e1;
}

html.dark-mode .dropdown-item:hover {
    background-color: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
}

html.dark-mode .dropdown-toggle {
    color: #e2e8f0;
    border-color: rgba(56, 189, 248, 0.25);
}

html.dark-mode .form-control {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
}

html.dark-mode .form-control:focus {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.5);
    color: #e2e8f0;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

html.dark-mode .form-control::placeholder {
    color: #64748b;
}

html.dark-mode .rating-box label {
    color: #475569 !important;
}

html.dark-mode .rating-box label[style*="color:#ffa534"] {
    color: #ffa534 !important;
}

html.dark-mode .live-rating,
html.dark-mode .live-rating2 {
    color: #cbd5e1 !important;
}

html.dark-mode .live-rating strong,
html.dark-mode .live-rating2 strong {
    color: #e2e8f0 !important;
}

html.dark-mode .fsrs-ratings-info {
    color: #cbd5e1 !important;
}

html.dark-mode .fsrs-ratings-info strong {
    color: #e2e8f0 !important;
}

html.dark-mode .fsrs-ratings-info b {
    color: #94a3b8 !important;
}

html.dark-mode .add_comment_area {
    background-color: transparent;
}

html.dark-mode .form-group {
    color: #e2e8f0;
}

html.dark-mode #noAuthHeader:not(.site-header) {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

html.dark-mode .hdMnLi {
    color: #cbd5e1;
}

html.dark-mode .hdMnLi:hover,
html.dark-mode .hdMnLi.active {
    color: #60a5fa;
}

html.dark-mode .mobile-header {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

html.dark-mode .close-menu {
    color: #e2e8f0;
}

html.dark-mode .close-menu:hover {
    color: #60a5fa;
}

html.dark-mode .menu-btn {
    color: #e2e8f0;
}

html.dark-mode .menu-btn:hover {
    color: #60a5fa;
}

html.dark-mode .hr-horizontal {
    background-image: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
}

html.dark-mode .container,
html.dark-mode .container-fluid {
    background-color: transparent;
}

html.dark-mode section {
    background-color: transparent;
}

html.dark-mode .row {
    background-color: transparent;
}

html.dark-mode .col,
html.dark-mode .col-auto {
    background-color: transparent;
}

html.dark-mode .author,
html.dark-mode .categories {
    color: #cbd5e1;
}

html.dark-mode .author a,
html.dark-mode .categories a {
    color: #60a5fa;
}

html.dark-mode .author a:hover,
html.dark-mode .categories a:hover {
    color: #38bdf8;
}

html.dark-mode .carousel-container {
    background-color: transparent;
}

html.dark-mode .carousel-showmanymoveone {
    background-color: transparent;
}

html.dark-mode .carousel-slide {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.25);
}

html.dark-mode .carousel-slide h3 {
    color: #e2e8f0;
}

html.dark-mode .carousel-slide p {
    color: #cbd5e1;
}

html.dark-mode .tooltip {
    background-color: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

html.dark-mode .tooltip-inner {
    background-color: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
}

html.dark-mode .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(15, 23, 42, 0.95);
}

html.dark-mode .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(15, 23, 42, 0.95);
}

html.dark-mode .tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(15, 23, 42, 0.95);
}

html.dark-mode .tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(15, 23, 42, 0.95);
}

html.dark-mode .visually-hidden {
    color: transparent;
}

html.dark-mode .maincommentscontainer {
    background-color: transparent;
}

html.dark-mode #main-container {
    background-color: transparent;
}

html.dark-mode .blog-content-modern {
    background-color: transparent;
}

html.dark-mode .blog-thumb-modern {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
}

html.dark-mode .blog-image-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

html.dark-mode .blog-card-content {
    background-color: transparent;
}

html.dark-mode .blog-card-footer {
    border-top-color: rgba(56, 189, 248, 0.2);
}

html.dark-mode .blog-card-date {
    color: #94a3b8;
}

html.dark-mode .blog-card-date i {
    color: #60a5fa;
}

html.dark-mode .blog-card-date time {
    color: #94a3b8;
}

html.dark-mode .blog-card-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%);
    color: #0f172a;
}

html.dark-mode .blog-card-image-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
}

html.dark-mode .blog-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

html.dark-mode .register-icon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
    color: #60a5fa;
}

html.dark-mode .related-post-image {
    background: rgba(30, 41, 59, 0.6);
}

html.dark-mode .blog-author-section {
    background-color: transparent;
}

html.dark-mode .blog-rating-section {
    background-color: transparent;
}

html.dark-mode .rating-wrapper-center {
    background-color: transparent;
}

html.dark-mode .rating-section-centered {
    background-color: transparent;
}

html.dark-mode .add_comment_area {
    background-color: transparent;
}

html.dark-mode .blog-head-content {
    background-color: transparent;
}

html.dark-mode .blog-head-title {
    color: #e2e8f0 !important;
}

html.dark-mode .blog-head-text {
    color: #cbd5e1 !important;
}

html.dark-mode .blogs-section {
    background-color: transparent;
}

html.dark-mode .post-data {
    background-color: transparent;
}

html.dark-mode #post-data {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

html.dark-mode #post-data * {
    color: inherit;
}

html.dark-mode #post-data section {
    background-color: transparent !important;
    color: inherit;
}

html.dark-mode #post-data .container {
    background-color: transparent !important;
    color: inherit;
}

html.dark-mode #post-data .row {
    background-color: transparent !important;
    color: inherit;
}

html.dark-mode #post-data .col {
    background-color: transparent !important;
    color: inherit;
}

html.dark-mode #post-data .blogs-section {
    background-color: transparent !important;
    color: inherit;
}

html.dark-mode #post-data .blog-item-modern {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
    color: inherit;
}

html.dark-mode #post-data .blog-item-modern * {
    color: inherit;
}

html.dark-mode #post-data .blog-title-modern,
html.dark-mode #post-data .blog-title-modern * {
    color: #e2e8f0 !important;
}

html.dark-mode #post-data .blog-item-modern:hover .blog-title-modern,
html.dark-mode #post-data .blog-item-modern:hover .blog-title-modern * {
    color: #60a5fa !important;
}

html.dark-mode #post-data .blog-author-modern {
    color: #cbd5e1 !important;
}

html.dark-mode #post-data .blog-item-modern:hover .blog-author-modern {
    color: #60a5fa !important;
}

html.dark-mode #post-data .blog-vote-count-modern {
    color: #94a3b8 !important;
}

html.dark-mode #post-data .blog-vote-count-modern i {
    color: #60a5fa !important;
}

html.dark-mode #post-data .blog-vote-count-modern span {
    color: #94a3b8 !important;
}

html.dark-mode #post-data .rating-box-modern label {
    color: #475569 !important;
}

html.dark-mode #post-data .rating-box-modern label[style*="color:#ffa534"] {
    color: #ffa534 !important;
}

html.dark-mode #post-data .blog-card-link-modern {
    background-color: transparent !important;
    color: inherit !important;
}

html.dark-mode #post-data .blog-content-modern {
    background-color: transparent !important;
    color: inherit;
}

html.dark-mode #post-data .blog-footer-modern {
    background-color: transparent !important;
    border-top-color: rgba(56, 189, 248, 0.2) !important;
    color: inherit;
}

html.dark-mode #post-data .blog-thumb-modern {
    background-color: transparent !important;
}

html.dark-mode #post-data .blog-image-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%) !important;
}

html.dark-mode #post-data img {
    opacity: 0.9;
}

html.dark-mode #post-data .blog-item-modern:hover img {
    opacity: 1;
}

html.dark-mode #post-data picture {
    background-color: transparent !important;
}

html.dark-mode #post-data article {
    background-color: transparent !important;
    color: inherit;
}

html.dark-mode #post-data a {
    color: inherit;
}

html.dark-mode #post-data a:hover {
    color: inherit;
}

html.dark-mode #post-data p {
    color: #cbd5e1 !important;
}

html.dark-mode #post-data span {
    color: #cbd5e1 !important;
}

html.dark-mode #post-data div {
    color: inherit;
}

html.dark-mode #post-data h1,
html.dark-mode #post-data h2,
html.dark-mode #post-data h3,
html.dark-mode #post-data h4,
html.dark-mode #post-data h5,
html.dark-mode #post-data h6 {
    color: #e2e8f0 !important;
}

html.dark-mode #post-data strong,
html.dark-mode #post-data b {
    color: #e2e8f0 !important;
}

html.dark-mode #post-data em,
html.dark-mode #post-data i:not(.fa):not(.fas):not(.far):not(.fab) {
    color: #cbd5e1 !important;
}

html.dark-mode #post-data time {
    color: #94a3b8 !important;
}

html.dark-mode #post-data small {
    color: #94a3b8 !important;
}

html.dark-mode #post-data [style*="color"] {
    color: #cbd5e1 !important;
}

html.dark-mode #post-data [style*="background"] {
    background-color: rgba(15, 23, 42, 0.8) !important;
}

html.dark-mode #post-data [style*="background-color"] {
    background-color: rgba(15, 23, 42, 0.8) !important;
}

/* Override جامع برای تمام عناصر در single_post */
html.dark-mode .blog-main-content *,
html.dark-mode .blog-sidebar *,
html.dark-mode .backgroundff *,
html.dark-mode .bacgroundbody *,
html.dark-mode .naHdCt *,
html.dark-mode section *,
html.dark-mode .container *,
html.dark-mode .container-fluid *,
html.dark-mode .row *,
html.dark-mode .col *,
html.dark-mode .col-auto * {
    color: inherit;
}

html.dark-mode .blog_body_content *:not(a):not(code):not(pre):not(strong):not(b):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    color: #cbd5e1 !important;
}

html.dark-mode .blog_body_content a {
    color: #60a5fa !important;
}

html.dark-mode .blog_body_content strong,
html.dark-mode .blog_body_content b {
    color: #e2e8f0 !important;
}

html.dark-mode .blog_body_content h1,
html.dark-mode .blog_body_content h2,
html.dark-mode .blog_body_content h3,
html.dark-mode .blog_body_content h4,
html.dark-mode .blog_body_content h5,
html.dark-mode .blog_body_content h6 {
    color: #e2e8f0 !important;
}

html.dark-mode .add_comment_area * {
    color: inherit;
}

html.dark-mode .form-group * {
    color: inherit;
}

html.dark-mode .rating-section-centered * {
    color: inherit;
}

html.dark-mode .rating-wrapper-center * {
    color: inherit;
}

html.dark-mode .rating-box * {
    color: inherit !important;
}

html.dark-mode .live-rating *,
html.dark-mode .live-rating2 * {
    color: #cbd5e1 !important;
}

html.dark-mode .live-rating strong,
html.dark-mode .live-rating2 strong {
    color: #e2e8f0 !important;
}

html.dark-mode .live-rating b,
html.dark-mode .live-rating2 b {
    color: #94a3b8 !important;
}

html.dark-mode .fsrs-ratings-info * {
    color: #cbd5e1 !important;
}

html.dark-mode .fsrs-ratings-info strong {
    color: #e2e8f0 !important;
}

html.dark-mode .fsrs-ratings-info b {
    color: #94a3b8 !important;
}

html.dark-mode #main-container * {
    color: inherit;
}

html.dark-mode #maincommentscontainer * {
    color: inherit;
}

html.dark-mode .comments * {
    color: inherit;
}

html.dark-mode .comments-body * {
    color: #cbd5e1 !important;
}

html.dark-mode .author *,
html.dark-mode .categories * {
    color: inherit;
}

html.dark-mode .author a,
html.dark-mode .categories a {
    color: #60a5fa !important;
}

html.dark-mode .carousel-container * {
    color: inherit;
}

html.dark-mode .carousel-showmanymoveone * {
    color: inherit;
}

html.dark-mode .carousel-slide * {
    color: inherit;
}

html.dark-mode .modern-blog-carousel-wrapper * {
    color: inherit;
}

html.dark-mode .carousel-header-section * {
    color: inherit;
}

html.dark-mode .carousel-section-title {
    color: #e2e8f0 !important;
}

html.dark-mode .carousel-section-subtitle {
    color: #94a3b8 !important;
}

html.dark-mode .blog-card-modern * {
    color: inherit;
}

html.dark-mode .blog-card-link-modern * {
    color: inherit;
}

html.dark-mode .blog-card-content * {
    color: inherit;
}

html.dark-mode .blog-card-footer * {
    color: inherit;
}

html.dark-mode .blog-card-date * {
    color: #94a3b8 !important;
}

html.dark-mode .blog-card-read-more * {
    color: #60a5fa !important;
}

html.dark-mode .blog-card-title * {
    color: #e2e8f0 !important;
}

html.dark-mode .blog-card-title a {
    color: #e2e8f0 !important;
}

html.dark-mode .blog-card-link-modern:hover .blog-card-title a {
    color: #60a5fa !important;
}

/* استایل‌های جامع برای override تمام متن‌ها */
html.dark-mode {
    --dark-text-primary: #e2e8f0;
    --dark-text-secondary: #cbd5e1;
    --dark-text-muted: #94a3b8;
    --dark-link: #60a5fa;
    --dark-link-hover: #38bdf8;
    --dark-bg-primary: #0f172a;
    --dark-bg-secondary: rgba(15, 23, 42, 0.95);
    --dark-bg-tertiary: rgba(30, 41, 59, 0.8);
    --dark-border: rgba(56, 189, 248, 0.25);
}

html.dark-mode body,
html.dark-mode html {
    background-color: var(--dark-bg-primary) !important;
    color: var(--dark-text-primary) !important;
}

html.dark-mode div:not(.theme-toggle-btn):not(.theme-toggle-btn *):not([class*="slick"]):not([class*="slick"] *) {
    color: inherit;
}

html.dark-mode span:not(.theme-label):not(.theme-icon) {
    color: inherit;
}

html.dark-mode label:not([for*="rating"]):not(.theme-icon) {
    color: var(--dark-text-secondary) !important;
}

html.dark-mode .blog-item-modern label {
    color: inherit !important;
}

html.dark-mode .blog-item-modern .rating-box-modern label {
    color: #475569 !important;
}

html.dark-mode .blog-item-modern .rating-box-modern label[style*="color:#ffa534"] {
    color: #ffa534 !important;
}

html.dark-mode .blog-item-modern .blog-vote-count-modern span {
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-vote-count-modern i {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-author-modern {
    color: #cbd5e1 !important;
}

html.dark-mode .blog-item-modern:hover .blog-author-modern {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-title-modern,
html.dark-mode .blog-item-modern .blog-title-modern a {
    color: #1e293b !important;
}

html.dark-mode .blog-item-modern:hover .blog-title-modern,
html.dark-mode .blog-item-modern:hover .blog-title-modern a {
    color: #31a0ff !important;
}

html.dark-mode .blog-item-modern .blog-card-link-modern {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-content-modern {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-footer-modern {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-rating-section {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-author-section {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-thumb-modern {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-image-overlay {
    color: inherit;
}

html.dark-mode .blog-item-modern picture,
html.dark-mode .blog-item-modern img {
    color: inherit;
}

html.dark-mode .blog-item-modern article {
    color: inherit;
}

html.dark-mode .blog-item-modern a {
    color: inherit;
}

html.dark-mode .blog-item-modern a:hover {
    color: inherit;
}

html.dark-mode .blog-item-modern time {
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-date time {
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-date {
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-date i {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more {
    color: #31a0ff !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-read-more {
    color: #0066ff !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more i {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-card-badge {
    color: #0f172a !important;
}

html.dark-mode .blog-item-modern .blog-card-badge i {
    color: #0f172a !important;
}

html.dark-mode .blog-item-modern .blog-card-image-wrapper {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-card-overlay {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-card-image {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-card-content {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-card-footer {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-card-title {
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item-modern .blog-card-title a {
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-title,
html.dark-mode .blog-item-modern:hover .blog-card-title a {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-date {
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-date i {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-date time {
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-read-more {
    color: #38bdf8 !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more i {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-card-footer {
    border-top-color: rgba(56, 189, 248, 0.2) !important;
}

html.dark-mode .blog-item-modern .blog-card-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%) !important;
    color: #0f172a !important;
}

html.dark-mode .blog-item-modern .blog-card-badge i {
    color: #0f172a !important;
}

html.dark-mode .blog-item-modern .blog-card-image-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-image {
    opacity: 0.9;
}

html.dark-mode .blog-item-modern:hover .blog-card-image {
    opacity: 1;
}

html.dark-mode .blog-item-modern .blog-card-content {
    background-color: transparent !important;
}

html.dark-mode .blog-item-modern .blog-card-footer {
    background-color: transparent !important;
}

html.dark-mode .blog-item-modern .blog-card-title {
    background-color: transparent !important;
}

html.dark-mode .blog-item-modern .blog-card-date {
    background-color: transparent !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more {
    background-color: transparent !important;
}

html.dark-mode .blog-item-modern .blog-card-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-image-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-image {
    filter: brightness(0.95);
}

html.dark-mode .blog-item-modern:hover .blog-card-image {
    filter: brightness(1);
}

html.dark-mode .blog-item-modern .blog-card-link-modern {
    background-color: transparent !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-link-modern {
    background-color: transparent !important;
}

html.dark-mode .blog-item-modern .blog-card-modern {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%) !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-modern {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-link-modern::before {
    background: linear-gradient(90deg,
        #38bdf8 0%,
        #818cf8 25%,
        #38bdf8 50%,
        #818cf8 75%,
        #38bdf8 100%) !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-link-modern::before {
    background: linear-gradient(90deg,
        #38bdf8 0%,
        #818cf8 25%,
        #38bdf8 50%,
        #818cf8 75%,
        #38bdf8 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-image-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-image {
    filter: brightness(0.95) contrast(1.05);
}

html.dark-mode .blog-item-modern:hover .blog-card-image {
    filter: brightness(1) contrast(1.1);
}

html.dark-mode .blog-item-modern .blog-card-content {
    background-color: transparent !important;
}

html.dark-mode .blog-item-modern .blog-card-footer {
    background-color: transparent !important;
    border-top-color: rgba(56, 189, 248, 0.2) !important;
}

html.dark-mode .blog-item-modern .blog-card-title {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item-modern .blog-card-title a {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-title,
html.dark-mode .blog-item-modern:hover .blog-card-title a {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-date {
    background-color: transparent !important;
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-date i {
    background-color: transparent !important;
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-date time {
    background-color: transparent !important;
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more {
    background-color: transparent !important;
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-read-more {
    color: #38bdf8 !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more i {
    background-color: transparent !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern .blog-card-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
}

html.dark-mode .blog-item-modern .blog-card-badge i {
    color: #0f172a !important;
}

html.dark-mode .blog-item-modern .blog-card-image-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-image {
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
}

html.dark-mode .blog-item-modern:hover .blog-card-image {
    filter: brightness(1) contrast(1.1) saturate(1.2);
}

html.dark-mode .blog-item-modern .blog-card-link-modern {
    background-color: transparent !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-link-modern {
    background-color: transparent !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern .blog-card-modern {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
    box-shadow: 0 12px 48px rgba(2, 6, 23, 0.5),
                0 0 0 1px rgba(56, 189, 248, 0.15),
                inset 0 1px 0 rgba(56, 189, 248, 0.1) !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-modern {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 20px 64px rgba(2, 6, 23, 0.7),
                0 0 0 1px rgba(56, 189, 248, 0.3),
                inset 0 1px 0 rgba(56, 189, 248, 0.15),
                0 0 60px rgba(56, 189, 248, 0.25) !important;
}

html.dark-mode .blog-item-modern .blog-card-link-modern::before {
    background: linear-gradient(90deg,
        #38bdf8 0%,
        #818cf8 25%,
        #38bdf8 50%,
        #818cf8 75%,
        #38bdf8 100%) !important;
    opacity: 0;
}

html.dark-mode .blog-item-modern:hover .blog-card-link-modern::before {
    opacity: 1 !important;
    animation: gradient-shift-carousel 3s ease infinite !important;
}

html.dark-mode .blog-item-modern .blog-card-image-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%) !important;
    opacity: 0;
}

html.dark-mode .blog-item-modern:hover .blog-card-overlay {
    opacity: 1 !important;
}

html.dark-mode .blog-item-modern .blog-card-image {
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
    transform: scale(1);
}

html.dark-mode .blog-item-modern:hover .blog-card-image {
    filter: brightness(1) contrast(1.1) saturate(1.2);
    transform: scale(1.1);
}

html.dark-mode .blog-item-modern .blog-card-content {
    background-color: transparent !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern .blog-card-footer {
    background-color: transparent !important;
    border-top-color: rgba(56, 189, 248, 0.2) !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern .blog-card-title {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item-modern .blog-card-title a {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-title,
html.dark-mode .blog-item-modern:hover .blog-card-title a {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-date {
    background-color: transparent !important;
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-date i {
    background-color: transparent !important;
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-date time {
    background-color: transparent !important;
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more {
    background-color: transparent !important;
    color: #60a5fa !important;
    text-decoration: none !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-read-more {
    color: #38bdf8 !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more i {
    background-color: transparent !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern .blog-card-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
}

html.dark-mode .blog-item-modern .blog-card-badge i {
    color: #0f172a !important;
}

html.dark-mode .blog-item-modern .blog-card-image-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%) !important;
    opacity: 0;
}

html.dark-mode .blog-item-modern:hover .blog-card-overlay {
    opacity: 1 !important;
}

html.dark-mode .blog-item-modern .blog-card-image {
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
    transform: scale(1);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark-mode .blog-item-modern:hover .blog-card-image {
    filter: brightness(1) contrast(1.1) saturate(1.2);
    transform: scale(1.1);
}

html.dark-mode .blog-item-modern .blog-card-content {
    background-color: transparent !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern .blog-card-footer {
    background-color: transparent !important;
    border-top-color: rgba(56, 189, 248, 0.2) !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern .blog-card-title {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item-modern .blog-card-title a {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-title,
html.dark-mode .blog-item-modern:hover .blog-card-title a {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-date {
    background-color: transparent !important;
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-date i {
    background-color: transparent !important;
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-card-date time {
    background-color: transparent !important;
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more {
    background-color: transparent !important;
    color: #60a5fa !important;
    text-decoration: none !important;
}

html.dark-mode .blog-item-modern:hover .blog-card-read-more {
    color: #38bdf8 !important;
}

html.dark-mode .blog-item-modern .blog-card-read-more i {
    background-color: transparent !important;
    color: inherit !important;
}

html.dark-mode .blog-item-modern .blog-card-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
}

html.dark-mode .blog-item-modern .blog-card-badge i {
    color: #0f172a !important;
}

html.dark-mode .blog-item-modern .blog-card-image-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%) !important;
}

html.dark-mode .blog-item-modern .blog-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%) !important;
    opacity: 0;
}

html.dark-mode .blog-item-modern:hover .blog-card-overlay {
    opacity: 1 !important;
}

html.dark-mode .blog-item-modern .blog-card-image {
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
    transform: scale(1);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark-mode .blog-item-modern:hover .blog-card-image {
    filter: brightness(1) contrast(1.1) saturate(1.2);
    transform: scale(1.1);
}

.blog_body_content a,
.blog_body_content a[style*='color'],
.blog_body_content a * {
    color: #0066ff !important;
}

.blog_body_content a:hover,
.blog_body_content a:hover * {
    color: #004ecc !important;
}

html.dark-mode .blog_body_content a,
html.dark-mode .blog_body_content a[style*='color'],
html.dark-mode .blog_body_content a * {
    color: #60a5fa !important;
}

html.dark-mode .blog_body_content a:hover,
html.dark-mode .blog_body_content a:hover * {
    color: #38bdf8 !important;
}

.blog_body_content .blog-faq {
    margin: 2.5rem 0 1.5rem;
}

.blog_body_content .blog-faq-title {
    margin: 0 0 1rem !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.blog_body_content .blog-faq-card {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.blog_body_content .blog-faq-item + .blog-faq-item {
    border-top: 1px solid #eef2f6;
}

.blog_body_content .blog-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
}

.blog_body_content .blog-faq-q-text {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}

.blog_body_content .blog-faq-plus {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef4ff;
    position: relative;
}

.blog_body_content .blog-faq-plus::before,
.blog_body_content .blog-faq-plus::after {
    content: "";
    position: absolute;
    inset: 50%;
    background: #1e3a5f;
    border-radius: 1px;
}

.blog_body_content .blog-faq-plus::before {
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
}

.blog_body_content .blog-faq-plus::after {
    width: 2px;
    height: 12px;
    margin: -6px 0 0 -1px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.blog_body_content .blog-faq-q.is-open .blog-faq-plus::after {
    transform: scaleY(0);
    opacity: 0;
}

.blog_body_content .blog-faq-a {
    padding: 0 20px 18px;
}

.blog_body_content .blog-faq-a[hidden] {
    display: none !important;
}

.blog_body_content .blog-faq-a-inner,
.blog_body_content .blog-faq-a-inner p,
.blog_body_content .blog-faq-a-inner span {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
}

.blog_body_content .blog-faq-a-inner p + p {
    margin-top: 0.75em;
}

.blog-fa-scope .blog_body_content .blog-faq-title,
.blog-fa-scope .blog_body_content .blog-faq-q {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

html.dark-mode .blog_body_content .blog-faq-title {
    color: #e2e8f0 !important;
}

html.dark-mode .blog_body_content .blog-faq-card {
    background: #151c2e;
    border-color: rgba(148, 163, 184, 0.18);
}

html.dark-mode .blog_body_content .blog-faq-item + .blog-faq-item {
    border-top-color: rgba(148, 163, 184, 0.14);
}

html.dark-mode .blog_body_content .blog-faq-q {
    color: #e2e8f0 !important;
}

html.dark-mode .blog_body_content .blog-faq-plus {
    background: rgba(96, 165, 250, 0.16);
}

html.dark-mode .blog_body_content .blog-faq-plus::before,
html.dark-mode .blog_body_content .blog-faq-plus::after {
    background: #93c5fd;
}

html.dark-mode .blog_body_content .blog-faq-a-inner,
html.dark-mode .blog_body_content .blog-faq-a-inner p,
html.dark-mode .blog_body_content .blog-faq-a-inner span {
    color: #94a3b8 !important;
}

