
@media (min-width: 768px){
    .container2 {
        max-width: 1480px;
    }
    }
    .container2{
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }
    .row {
        display: flex;
        flex-wrap: wrap;
    }


    .blog-item {
        display: block;
        padding: 15px;
        border-radius: 15px;
        margin-bottom: 30px;
        box-shadow: 0 0 23px #dddddd57;
    }

    .card {
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
        width: 405px;
        height: auto;
        word-wrap: break-word;
        background-color: #fff;
        background-clip: border-box;
        border: 1px solid rgba(0, 0, 0, 0.125);
        box-shadow: 10px 4px 15px 0px rgb(0 0 0 / 20%);
        border-radius: 0.25rem;
    }

html.dark-mode .card {
    background-color: rgba(15, 23, 42, 0.95) !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) !important;
}
    @media (max-width:1480px){
        .card {
        width: 330px;
    }
    }
    @media (max-width: 575px){
        .card {
        width: 100%;
    }
    .blog-item .blog-title {
        padding-top: 10px !important;
    }
    }

    .blog-item .blog-thumb {
        position: relative;
        padding-top: 60%;
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
    }
    .blog-item .blog-thumb .img-fluid {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background:cover;
    }
    .img-fluid {
        max-width: 100%;
        height: 100% !important;
    }
    .blog-item .blog-title {
        padding-top: 30px;
        font-weight: 600;
        font-size: 21px;
        line-height: 25px;
    }
    .blog-item p , .blog-item span{
        font-weight: 3000 !important;
        font-size: 12px !important;
        line-height: 23px !important;
        color: #0a2753 !important;
        max-width: 450px !important;
        width: 100% !important;
    }
    .blog-item span{
        margin-top:30px !important;
    }
    .pt-3 {
        padding-top: 1rem !important;
    }
    .align-items-center {
        align-items: center !important;
    }
    .col-auto {
        flex: 0 0 auto;
        width: auto;
    }
    .blog-item {
        display: block;
        padding: px;
        border-radius: 15px;
        margin-bottom: 30px;
        box-shadow: 0 0 23px #dddddd57;
    }
    .pc_b {
        box-shadow: 0 0 23px #dddddd57;
        border: 1px solid rgba(0, 0, 0, 0.125);
    }
    .blog-item .blog-thumb {
        position: relative;
        padding-top: 60%;
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
    }
    .blog-item .blog-thumb img {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .blog-item .blog-title {
        padding: 5px;
        font-weight: 600;
        font-size: 18px;
        line-height: 25px;
        background: #f0f6ff;
        margin-top:20px;
        border-radius: 8px;
    }
    .blog-item .blog-title a {
        text-decoration:none;
        color: #212529;

    }

    .blog-item .blog-author {
        font-weight: 600;
        font-size: 14px;
        line-height: 25px;
        color: black;
    }
    .blog-item .blog-avatar {
        width: 34px;
        height: 34px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-image: url('https://7panel.org/seven.png');
    }
    @media (max-width: 575px){
        .naHead {
        margin-top: 0px !important;
    }
    }
    p{
    color: #212529;
    }

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

.blog-index-hero {
    margin-top: 0;
    padding: 0 0 1.25rem;
}

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

.blog-index-hero .blog-breadcrumb-nav {
    margin-bottom: 0.9rem;
}

.blog-head-content {
    margin: 0;
}

.blog-head-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.blog-head-text {
    margin: 0;
    max-width: 42rem;
    line-height: 1.7;
    color: #475569;
}

.blog_title {
    text-align: center !important;
}

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

/* ============================================
   Modern Blog Cards Styles - مشابه single_post
   ============================================ */

.blog-item-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: auto;
    word-wrap: break-word;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    background-clip: border-box;
    border: 1px solid rgba(49, 160, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(49, 160, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.blog-item-modern::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-item-modern: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-item-modern:hover::before {
    opacity: 1;
    animation: gradient-shift-blog 3s ease infinite;
}

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

.blog-card-link-modern {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}

.blog-thumb-modern {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(49, 160, 255, 0.1) 0%, rgba(111, 69, 255, 0.1) 100%);
}

.blog-image-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-item-modern:hover .blog-image-overlay {
    opacity: 1;
}

.blog-thumb-modern .img-fluid {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-item-modern:hover .blog-thumb-modern img {
    transform: scale(1.1);
}

.blog-content-modern {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.blog-title-modern a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin: 0 0 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.blog-card-meta-date,
.blog-card-meta-reading {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card-meta-date i,
.blog-card-meta-reading i {
    color: #31a0ff;
    font-size: 0.78rem;
}

.blog-card-meta-sep {
    color: #94a3b8;
    font-weight: 700;
}

.blog-card-rating-meta {
    display: none;
}

html[lang^="fa"] .blog-card-meta,
html[lang^="ar"] .blog-card-meta,
html[lang^="ur"] .blog-card-meta,
html[lang^="he"] .blog-card-meta {
    direction: rtl;
}

.blog-item-modern:hover .blog-title-modern a {
    color: #31a0ff;
}

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

.blog-author-section {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.blog-author-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.blog-author-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.2;
}

.blog-avatar-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    background: #071829;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid rgba(49, 160, 255, 0.18);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.blog-item-modern:hover .blog-avatar-modern {
    border-color: rgba(49, 160, 255, 0.4);
    transform: scale(1.05);
}

.blog-author-modern {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    transition: color 0.3s ease;
    line-height: 1.25;
    white-space: nowrap;
}

a.blog-author-section:hover .blog-author-modern {
    color: #31a0ff;
}

.blog-item-modern:hover .blog-author-modern {
    color: #31a0ff;
}

.blog-rating-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.rating-box-modern {
    display: flex;
    gap: 4px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-box-modern label {
    font-size: 14px !important;
    color: #cbd5e1;
    cursor: default;
    transition: transform 0.2s ease;
}

.rating-box-modern label:hover {
    transform: scale(1.2);
}

.blog-vote-count-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.blog-vote-count-modern i {
    font-size: 11px;
    color: #31a0ff;
}

/* Responsive */
@media (max-width: 1480px) {
    .blog-item-modern {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-content-modern {
        padding: 20px;
    }

    .blog-title-modern {
        font-size: 18px;
    }

    .blog-footer-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px 20px;
    }

    .blog-rating-section {
        align-items: flex-start;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .blog-item-modern {
        margin-bottom: 20px;
    }

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

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

    .blog-footer-modern {
        padding: 12px 16px 16px;
    }

    .blog-author-modern {
        font-size: 13px;
    }

    .rating-box-modern label {
        font-size: 12px !important;
    }

    .blog-vote-count-modern {
        font-size: 11px;
    }
}

/* ============================================
   Dark Mode Styles for Blog Pages
   ============================================ */

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

html.dark-mode .blog-item-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),
                inset 0 1px 0 rgba(56, 189, 248, 0.1);
}

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

html.dark-mode .blog-item-modern:hover {
    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);
    border-color: rgba(56, 189, 248, 0.4);
}

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

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

html.dark-mode .blog-card-meta-date i,
html.dark-mode .blog-card-meta-reading i {
    color: #60a5fa;
}

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

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

html.dark-mode .blog-author-label {
    color: #64748b;
}

html.dark-mode .blog-item-modern:hover .blog-author-modern {
    color: #60a5fa;
}

html.dark-mode .blog-avatar-modern {
    border-color: rgba(56, 189, 248, 0.3);
}

html.dark-mode .blog-item-modern:hover .blog-avatar-modern {
    border-color: rgba(56, 189, 248, 0.5);
}

html.dark-mode .blog-vote-count-modern {
    color: #94a3b8;
}

html.dark-mode .blog-vote-count-modern i {
    color: #60a5fa;
}

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

html.dark-mode .blog-head-title,
html.dark-mode .blog-head-text {
    color: #e2e8f0;
}

html.dark-mode .blog-head-content {
    color: #cbd5e1;
}

/* Blog breadcrumb (modern pill + icons) */
.breadcrumb-blogsin {
    margin: 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: 0 1 auto;
    min-width: 0;
}

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

.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;
}

html[lang^="fa"] .blog-breadcrumb,
html[lang^="ar"] .blog-breadcrumb,
html[lang^="ur"] .blog-breadcrumb,
html[lang^="he"] .blog-breadcrumb {
    direction: rtl;
}

html[lang^="fa"] .blog-breadcrumb-sep i,
html[lang^="ar"] .blog-breadcrumb-sep i,
html[lang^="ur"] .blog-breadcrumb-sep i,
html[lang^="he"] .blog-breadcrumb-sep i {
    transform: scaleX(-1);
}

@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;
    }

    .blog-index-hero {
        margin-top: 0;
        padding-bottom: 1rem;
    }

    .breadcrumb-blogsin {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .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;
    }

    .blog-breadcrumb:has(> .blog-breadcrumb-item:nth-child(5)) {
        flex-wrap: wrap;
    }

    .blog-breadcrumb:has(> .blog-breadcrumb-item:nth-child(5)) > .blog-breadcrumb-item.is-current {
        flex: 1 1 100%;
    }

    .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-text {
        max-width: none;
        font-size: 0.8rem;
    }

    .blog-breadcrumb-icon {
        width: 24px;
        height: 24px;
        font-size: 0.68rem;
    }
}

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

html.dark-mode .breadcrumb-blog .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 .naHdCt,
html.dark-mode .bacgroundbody {
    background-color: #0f172a !important;
}

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

html.dark-mode .container,
html.dark-mode .container-fluid {
    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 .card {
    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 .blog-item {
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.5);
}

html.dark-mode .blog-item .blog-title {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
}

html.dark-mode .blog-item .blog-title a {
    color: #e2e8f0 !important;
}

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

html.dark-mode .blog-item .blog-author {
    color: #cbd5e1 !important;
}

html.dark-mode .blog-item p,
html.dark-mode .blog-item span {
    color: #cbd5e1 !important;
}

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

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

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

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

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 .pagination .page-link {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
}

html.dark-mode .pagination .page-link:hover {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.4);
    color: #60a5fa;
}

html.dark-mode .pagination .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

html.dark-mode .pagination .page-item.disabled .page-link {
    background-color: rgba(15, 23, 42, 0.5);
    border-color: rgba(56, 189, 248, 0.15);
    color: #64748b;
}

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 p {
    color: #cbd5e1 !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 span {
    color: #cbd5e1 !important;
}

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

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

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

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

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

html.dark-mode 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 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 pre code {
    background-color: transparent !important;
    border: none;
    padding: 0;
}

html.dark-mode blockquote {
    border-left: 4px solid rgba(56, 189, 248, 0.5);
    background-color: rgba(30, 41, 59, 0.6);
    color: #cbd5e1 !important;
    padding: 12px 20px;
    margin: 16px 0;
    border-radius: 4px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

html.dark-mode [style*="color"] {
    color: #cbd5e1 !important;
}

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

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

/* Override جامع برای تمام عناصر */
html.dark-mode *:not(.theme-toggle-btn):not(.theme-toggle-btn *):not(.theme-icon):not(.theme-label) {
    color: inherit;
}

html.dark-mode .blog-item-modern *,
html.dark-mode .blog-card-link-modern *,
html.dark-mode .blog-content-modern *,
html.dark-mode .blog-footer-modern * {
    color: inherit;
}

html.dark-mode .blog-item * {
    color: #cbd5e1 !important;
}

html.dark-mode .blog-item .blog-title * {
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item .blog-author * {
    color: #cbd5e1 !important;
}

html.dark-mode .blog-item .blog-time * {
    color: #cbd5e1 !important;
}

html.dark-mode .blog-item .rating-box * {
    color: inherit !important;
}

html.dark-mode .blog-item .live-rating2 * {
    color: #cbd5e1 !important;
}

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

html.dark-mode .blog-item .fsrs-ratings-info strong {
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item .fsrs-ratings-info b {
    color: #94a3b8 !important;
}

html.dark-mode .blog-head-content * {
    color: inherit;
}

html.dark-mode .blog-head-content h1 {
    color: #e2e8f0 !important;
}

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

html.dark-mode .breadcrumb * {
    color: inherit;
}

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

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

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 section * {
    color: inherit;
}

html.dark-mode #post-data * {
    color: inherit;
}

html.dark-mode .blogs-section * {
    color: inherit;
}

html.dark-mode .naHdCt * {
    color: inherit;
}

html.dark-mode .bacgroundbody * {
    color: inherit;
}

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

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 .section {
    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-content-modern {
    background-color: transparent;
}

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

html.dark-mode .blog-card-link-modern {
    background-color: transparent;
}

html.dark-mode .blog-card-link-modern:hover {
    background-color: transparent;
}

html.dark-mode .blog-rating-section {
    background-color: transparent;
}

html.dark-mode .blog-author-section {
    background-color: transparent;
}

html.dark-mode .row-cols-lg-3,
html.dark-mode .row-cols-md-2,
html.dark-mode .row-cols-1 {
    background-color: transparent;
}

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

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

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

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

html.dark-mode .blog-head-content .row {
    background-color: transparent;
}

html.dark-mode .blog-head-content .col-lg-7,
html.dark-mode .blog-head-content .col-md-10 {
    background-color: transparent;
}

html.dark-mode .blogs-section .container {
    background-color: transparent;
}

html.dark-mode .blogs-section .row {
    background-color: transparent;
}

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

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

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

html.dark-mode #post-data,
html.dark-mode #post-data div,
html.dark-mode #post-data section {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

html.dark-mode #post-data * {
    color: inherit;
}

html.dark-mode #post-data section {
    background-color: #0f172a !important;
    background: #0f172a !important;
    color: inherit;
}

html.dark-mode #post-data section.blogs-section {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

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: #0f172a !important;
    background: #0f172a !important;
    color: inherit;
}

html.dark-mode #post-data section.blogs-section {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

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;
}

html.dark-mode .blog-head-content {
    background-color: transparent;
}

html.dark-mode .blog-head-content h1 {
    color: #e2e8f0 !important;
}

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

html.dark-mode .rating-box-modern {
    background-color: transparent;
}

html.dark-mode .blog-vote-count-modern {
    background-color: transparent;
}

html.dark-mode .blog-author-modern {
    background-color: transparent;
}

html.dark-mode .blog-avatar-modern {
    background-color: #071829;
}

html.dark-mode .blog-title-modern {
    background-color: transparent;
}

html.dark-mode .blog-thumb-modern picture,
html.dark-mode .blog-thumb-modern img {
    background-color: transparent;
}

html.dark-mode .blog-item-modern article {
    background-color: transparent;
}

html.dark-mode .blog-card-link-modern {
    background-color: transparent;
}

html.dark-mode .blog-card-link-modern:hover {
    background-color: transparent;
}

/* استایل جامع برای override تمام متن‌ها در صفحه index */
html.dark-mode .blog-item-modern *:not(.fa):not(.fas):not(.far):not(.fab):not(.theme-icon):not(.theme-label) {
    color: inherit;
}

html.dark-mode .blog-item-modern .blog-title-modern,
html.dark-mode .blog-item-modern .blog-title-modern * {
    color: #e2e8f0 !important;
}

html.dark-mode .blog-item-modern:hover .blog-title-modern,
html.dark-mode .blog-item-modern:hover .blog-title-modern * {
    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-vote-count-modern {
    color: #94a3b8 !important;
}

html.dark-mode .blog-item-modern .blog-vote-count-modern i {
    color: #60a5fa !important;
}

html.dark-mode .blog-item-modern .blog-vote-count-modern span {
    color: #94a3b8 !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;
}

/* Override قوی برای پس‌زمینه سفید در #post-data */
html.dark-mode #post-data,
html.dark-mode #post-data div,
html.dark-mode #post-data section,
html.dark-mode #post-data .blogs-section,
html.dark-mode #post-data section.blogs-section {
    background-color: #0f172a !important;
    background: #0f172a !important;
    background-image: none !important;
}

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

html.dark-mode #post-data[style*="background"] {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

html.dark-mode #post-data[style*="background-color"] {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

/* Dark Mode برای بخش‌های پایین صفحه */
html.dark-mode section {
    background-color: #0f172a !important;
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

html.dark-mode section * {
    color: inherit;
}

html.dark-mode .pagination {
    background-color: transparent !important;
}

html.dark-mode .pagination .page-item {
    background-color: transparent !important;
}

html.dark-mode .pagination .page-link {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
    color: #cbd5e1 !important;
}

html.dark-mode .pagination .page-link:hover {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #60a5fa !important;
}

html.dark-mode .pagination .page-item.active .page-link {
    background-color: rgba(56, 189, 248, 0.3) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    color: #e2e8f0 !important;
}

html.dark-mode .pagination .page-item.disabled .page-link {
    background-color: rgba(15, 23, 42, 0.5) !important;
    border-color: rgba(56, 189, 248, 0.15) !important;
    color: #64748b !important;
}

html.dark-mode .container {
    background-color: transparent !important;
}

html.dark-mode .container * {
    color: inherit;
}

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

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