body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f9fafb;
}

.right-sidebar {
    width: 280px;
    transition: transform 0.3s ease;
}

.main-content {
    margin-right: 280px;
    transition: margin-right 0.3s ease;
}

@media (max-width: 1024px) {
.right-sidebar {
        transform: translateX(100%);
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        z-index: 20;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

.right-sidebar.active {
        transform: translateX(0);
    }

.main-content {
        margin-right: 0;
    }

.overlay {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 20;
    }

.overlay.active {
        display: block;
    }
}

.nav-item {
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background-color: #f3f4f6;
    border-right-color: #3b82f6;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-title {
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: #3b82f6;
    border-radius: 3px;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.active {
    max-height: 500px;
}

.category-toggle {
    transition: all 0.3s ease;
}

.category-toggle.active {
    transform: rotate(180deg);
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-filter {
    transition: all 0.3s ease;
}

.category-filter.active {
    background-color: #3b82f6;
    color: white;
}

.article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.category-toggle {
    transition: all 0.3s ease;
}

.category-toggle.active {
    transform: rotate(180deg);
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.read-more {
    position: relative;
    padding-left: 20px;
}

.read-more::before {
    content: '←';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.read-more:hover::before {
    transform: translateX(-5px);
}

.article-image-main {
    height: 400px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .article-image-main {
        height: 250px;
    }
}

.article-image-main {
    height: 400px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .article-image-main {
        height: 250px;
    }
}

.article-content {
    line-height: 2;
    font-size: 1.05rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-right: 4px solid #3b82f6;
    background-color: #f3f4f6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content th, .article-content td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: right;
}

.article-content th {
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
}

.article-content tr:nth-child(even) {
    background-color: #f9fafb;
}

.share-button {
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
}

.tag {
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #3b82f6;
    color: white;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: bold;
}

.related-article-card {
    transition: all 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    min-height: auto;
    max-height: none;

}

.progress-bar {
    height: 5px;
    background-color: #3b82f6;
    width: 0%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
}

.toc-item {
    transition: all 0.2s ease;
}

.toc-item:hover {
    color: #3b82f6;
    transform: translateX(-5px);
}

.toc-item.active {
    color: #3b82f6;
    font-weight: bold;
    border-right: 3px solid #3b82f6;
    padding-right: 10px;
}

.timeline-item {
    position: relative;
    padding-right: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 25px;
    width: 2px;
    height: calc(100% - 15px);
    background-color: #e5e7eb;
}

.timeline-item:last-child::after {
    display: none;
}

.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== Pagination Wrapper ===== */
.pagination-wrapper ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.pagination-wrapper li {
    margin: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pagination-wrapper a {
    background-color: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.pagination-wrapper a:hover {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination-wrapper .current {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.pagination-wrapper .pagination-prev,
.pagination-wrapper .pagination-next {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white !important;
    border-color: #64748b !important;
}

.pagination-wrapper .pagination-prev:hover,
.pagination-wrapper .pagination-next:hover {
    background: linear-gradient(135deg, #475569, #334155) !important;
    border-color: #475569 !important;
}

.pagination-wrapper .dots {
    background-color: transparent;
    color: #94a3b8;
    border-color: transparent;
    cursor: default;
    min-width: 24px;
}

.pagination-wrapper .dots:hover {
    background-color: transparent !important;
    color: #94a3b8 !important;
    border-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.pagination-wrapper i {
    font-size: 12px;
    margin: 0 4px;
}

.submenu-toggle{
    width: 20%;
}



.submenu {
    display: none !important;;
}

.category-item.open > .submenu {
    display: block !important;;
}

.toggle-icon {
    transition: transform 0.3s ease !important;;
}

.category-item.open .toggle-icon {
    transform: rotate(180deg) !important;;
}

/* ===== FORCE SHOW SUBMENU ===== */

.right-sidebar {
    overflow-y: auto !important;
    overflow-x: visible !important;
}

.category-item {
    overflow: visible !important;
}

.category-item > .submenu {
    display: none !important;
    max-height: 1000px;
    overflow: visible !important;
    transition: max-height 0.3s ease-out;
}

.category-item.open > .submenu {
    display: block !important;
    max-height: 1000px;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* برای اینکه submenu واقعاً فضا بگیرد */
.submenu ul {
    display: block !important;
}

/* چرخش فلش */
.toggle-icon {
    transition: transform 0.3s ease !important;
}

.category-item.open .toggle-icon {
    transform: rotate(180deg) !important;
}


.page-numbers{
    display: flex !important;
}

.description {
    display: -webkit-box!important;
    -webkit-line-clamp: 3!important; /* تعداد خطوط محدود شده */
    -webkit-box-orient: vertical!important;
    overflow: hidden!important;
    text-overflow: ellipsis!important; /* برای اضافه کردن '...' در انتهای متن */
}



.submenu-toggle.depth-1 i {
    transition: transform 0.3s ease-in-out;
}

/* فلش‌های لایه سوم */
.submenu-toggle.depth-2 i {
    transition: transform 0.3s ease-in-out;
}

/* تغییر جهت فلش‌ها هنگام باز شدن */
.submenu-toggle.depth-0.open i {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

.submenu-toggle.depth-1.open i {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

.submenu-toggle.depth-2.open i {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

/* استایل‌های زیرمنوها */
.submenu {
    display: none;
    transition: max-height 0.3s ease;
}

.submenu.open {
    display: block;
}

.submenu {
    font-size: 12px!important;

}

/* انیمیشن برای چرخش فلش */
.submenu-toggle i {
    transition: transform 0.3s ease !important;
}

.submenu-toggle.open i {
    transform: rotate(180deg); /* چرخش 180 درجه */
}



/* استایل دایره‌ها داخل تگ i */
.category-item .nav-item {
    display: flex;
    align-items: center;
}

.category-item .nav-item i.fas.fa-circle {
    width: 12px; /* اندازه دایره */
    height: 12px;
    border-radius: 50%;
    margin-right: 10px; /* فاصله از عنوان */
    display: inline-block;
}

/* رنگ‌های دایره‌ها */
.text-red-400 {
    color: #F56565;
}

.text-green-400 {
    color: #48BB78;
}

.text-blue-400 {
    color: #63B3ED;
}

.text-yellow-400 {
    color: #F6E05E;
}

.text-purple-400 {
    color: #9F7AEA;
}

.text-pink-400 {
    color: #F687B3;
}

.text-gray-400 {
    color: #A0AEC0;
}


/* و به همین ترتیب برای دیگر رنگ‌ها */

