/*
Theme Name: uni
Description: پوسته راست چپ برای مرکز آموزش آزاد دانشگاه صنعتی شاهرود
Text Domain: shahroud-university
Version: 1.0
*/

:root {
    --primary: #1a56db;
    --secondary: #d1a054;
    --dark: #1f2937;
    --light: #f8fafc;
    --text: #374151;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    direction: rtl;
    background: #fff;
}

/* هدر و ناوبری */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* محتوای اصلی */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* بخش‌های صفحه اصلی */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2d6bc2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* گرید اخبار و دوره‌ها */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--dark);
    font-size: 2rem;
}

.news-grid, .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-item, .course-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-item:hover, .course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-item h3, .course-item h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.news-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.course-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
    margin: 1rem 0;
    display: block;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1e40af;
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: #b88c40;
}

/* فوتر */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}


/* استایل‌های مدرن برای صفحات داخلی */

/* هدر پست */
.post-hero {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0.3;
}

.post-header-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-category a {
    background: var(--secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    border-radius: 50%;
}

/* محتوای اصلی */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-body h2 {
    color: var(--dark);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.content-body h3 {
    color: var(--primary);
    margin: 1.5rem 0 1rem;
}

.content-body blockquote {
    border-right: 4px solid var(--secondary);
    background: var(--light);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* تگ‌ها */
.post-tags {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 8px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tags-label {
    font-weight: bold;
    color: var(--dark);
}

.tag {
    background: white;
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* اشتراک‌گذاری */
.social-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 8px;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.telegram { background: #0088CC; }

/* سایدبار */
.post-sidebar {
    position: sticky;
    top: 100px;
}

.author-card, .related-posts, .table-of-contents {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.author-card {
    text-align: center;
}

.author-avatar-large img {
    border-radius: 50%;
    margin-bottom: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.related-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-content h5 {
    margin-bottom: 0.3rem;
}

.related-post-content h5 a {
    text-decoration: none;
    color: var(--dark);
}

.related-post-date {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ناوبری */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-previous, .nav-next {
    text-align: center;
}

.nav-previous a, .nav-next a {
    display: block;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.nav-previous a:hover, .nav-next a:hover {
    background: var(--primary);
    color: white;
}

/* صفحه */
.page-hero {
    text-align: right;
    padding: 2rem 0;
    /* background: linear-gradient(135deg, var(--primary) 0%, #2d6bc2 100%); */
    color: black;
    border-radius: 15px;
    /* margin-bottom: 3rem; */
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-excerpt {
    font-size: 1.3rem;
    opacity: 0.9;
}

.page-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.page-cta {
    text-align: center;
    padding: 3rem;
    background: var(--light);
    border-radius: 12px;
    margin: 3rem 0;
}

.contact-info-card .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}

.quick-links a:hover {
    color: var(--primary);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .post-content-wrapper,
    .page-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .post-hero {
        margin-bottom: 2rem;
    }
    
    .post-header-content {
        position: static;
        padding: 2rem;
    }
    
    .post-featured-image img {
        height: 200px;
    }
}


/* استایل‌های ضروری برای نمایش محتوا */
.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #374151;
}

.entry-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.entry-content h2 {
    color: var(--dark);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary);
    font-size: 1.8rem;
}

.entry-content h3 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.entry-content h4 {
    color: var(--secondary);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.entry-content blockquote {
    border-right: 4px solid var(--secondary);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--dark);
    position: relative;
}

.entry-content blockquote:before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary);
    position: absolute;
    top: -1rem;
    right: 1rem;
    opacity: 0.3;
}

.entry-content ul, .entry-content ol {
    margin: 1.5rem 0;
    padding-right: 2.5rem;
}

.entry-content li {
    margin-bottom: 0.8rem;
    position: relative;
}

.entry-content ul li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: -1em;
}

.entry-content ol {
    list-style-type: persian;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.entry-content table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: right;
}

.entry-content table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: white;
}

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

.entry-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #dc2626;
}

.entry-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    direction: ltr;
}

/* استایل برای لینک‌های داخل محتوا */
.entry-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: var(--secondary);
    border-bottom: 1px solid var(--secondary);
}

.page-featured-image{
    width:100%;
    margin-bottom:30px;
}

.page-featured-image img{
    width:100%
}

.recent-news h3 a{
    text-decoration: none;
    color:black;
}


/* استایل‌های مدرن برای فوتر */
.site-footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 4rem 0 0;
    margin-top: 6rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

/* اطلاعات تماس */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    color: var(--secondary);
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: #d1d5db;
    font-size: 0.95rem;
}

/* لینک‌های مفید */
.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.link-column h4 {
    color: #f3f4f6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column li {
    margin-bottom: 0.7rem;
}

.link-column a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #d1d5db;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin-right: -1rem;
}

.link-column a:hover {
    color: var(--secondary);
    background: rgba(255,255,255,0.05);
    transform: translateX(-5px);
}

.link-column a i {
    color: var(--secondary);
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

/* خبرنامه */
.newsletter p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #b88c40;
    transform: translateY(-2px);
}

/* شبکه‌های اجتماعی */
.social-links h4 {
    color: #f3f4f6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: transparent;
}

.social-icon.telegram { background: #0088cc; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.linkedin { background: #0077b5; }
.social-icon.twitter { background: #1da1f2; }

/* بخش پایین فوتر */
.footer-bottom {
    background: rgba(0,0,0,0.3);
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.copyright p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.footer-logo {
    text-align: left;
}

.footer-logo h3 {
    color: var(--secondary);
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
}

.footer-logo p {
    color: #d1d5db;
    margin: 0;
    font-size: 0.9rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .contact-item {
        padding: 0.6rem 0;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        padding: 0 0.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .link-column a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}



/* استایل‌های بخش دریافت شماره موبایل */
.newsletter p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    direction: ltr;
    text-align: right;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(209, 160, 84, 0.1);
}

.input-wrapper input::placeholder {
    color: #9ca3af;
    text-align: right;
    direction: rtl;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 1.1rem;
}

.newsletter-form button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #b88c40;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(209, 160, 84, 0.3);
}

.newsletter-form button:active {
    transform: translateY(0);
}

.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    border-right: 2px solid var(--secondary);
}

.form-note i {
    color: var(--secondary);
    font-size: 0.8rem;
}

/* آیکون‌های شبکه‌های اجتماعی ایرانی */
.social-icon.whatsapp { 
    background: #25D366; 
}

.social-icon.eitaa { 
    background: #00A0E3;
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
}

.social-icon.eitaa:hover {
    background: #0088cc;
}

/* انیمیشن پیام */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.form-message {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
}

/* استایل برای حالت موبایل */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .input-wrapper input {
        padding: 1rem 1rem 1rem 3rem;
    }
    
    .newsletter-form button {
        justify-content: center;
        padding: 1rem;
    }
    
    .form-note {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .input-wrapper input {
        font-size: 16px; /* جلوگیری از زوم در iOS */
    }
    
    .newsletter p {
        font-size: 0.9rem;
        text-align: right;
    }
}


/* استایل هدر دسته‌بندی */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2d6bc2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.category-title {
    margin: 0;
    font-size: 2rem;
}

.category-description {
    margin-top: 0.5rem;
    opacity: 0.9;
}

.category-count {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* لیست مطالب */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-item:hover .post-thumb {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    margin-bottom: 0.8rem;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
}

h3.post-title {
    line-height: 1;
}


.post-title {
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.post-title a {
    text-decoration: none;
    color: var(--dark);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary);
}



.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 0.8rem 1.5rem;
    background: var(--light);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--primary);
    color: white;
}

/* حالت بدون پست */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.no-posts h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.btn11 {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn11:hover {
    background: var(--secondary);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
    }
    
    .nav-previous a,
    .nav-next a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-title a {
        font-size: 1.1rem;
    }
}


/* استایل‌های اصلی برای جدول محتوا */
.table-of-contents {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.table-of-contents::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.table-of-contents h4 {
    color: var(--dark);
    margin: 0 0 1rem 0;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents h4::before {
    content: '📑';
    font-size: 1.2rem;
}

/* لیست فهرست مطالب */
.toc-list {
    max-height: 400px;
    overflow-y: auto;
    padding-left: 0;
}

.toc-list::-webkit-scrollbar {
    width: 4px;
}

.toc-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.toc-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.toc-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.toc-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 0.5rem;
    transition: all 0.3s ease;
}

.toc-ul li::before {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc-ul li:hover::before {
    opacity: 1;
}

.toc-ul li:last-child {
    margin-bottom: 0;
}

.toc-ul a {
    display: block;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: #4a5568;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.toc-ul a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(26, 86, 219, 0.1), transparent);
    transition: width 0.3s ease;
}

.toc-ul a:hover {
    color: var(--primary);
    background: white;
    border-color: var(--primary);
    /* transform: translateX(-5px); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toc-ul a:hover::before {
    width: 100%;
}

/* سطوح مختلف عناوین */
.toc-ul .toc-h2 {
    font-weight: 600;
    border-right: 3px solid var(--primary);
}

.toc-ul .toc-h3 {
    margin-right: 1rem;
    font-size: 0.85rem;
    border-right: 2px solid var(--secondary);
    opacity: 0.9;
}

.toc-ul .toc-h4 {
    margin-right: 2rem;
    font-size: 0.8rem;
    border-right: 1px solid #cbd5e0;
    opacity: 0.8;
}

/* حالت فعال (هدری که در حال مشاهده هستید) */
.toc-ul a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
    /* transform: translateX(-5px); */
}

.toc-ul a.active::before {
    display: none;
}

/* حالت فشرده برای TOC */
.table-of-contents.compact {
    padding: 1rem;
}

.table-of-contents.compact .toc-ul a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
}

/* حالت شناور (sticky) */
.table-of-contents.sticky {
    position: sticky;
    top: 100px;
    max-height: 80vh;
    overflow-y: auto;
}

/* حالت بدون محتوا */
.no-toc {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

.no-toc::before {
    content: '📝';
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* دکمه باز/بسته کردن TOC (برای موبایل) */
.toc-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
    width: 100%;
    transition: background 0.3s ease;
}

.toc-toggle:hover {
    background: var(--secondary);
}

.toc-toggle::before {
    content: '📑 فهرست مطالب';
    margin-left: 0.5rem;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-of-contents {
    animation: fadeInUp 0.5s ease;
}

.toc-ul li {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.toc-ul li:nth-child(1) { animation-delay: 0.1s; }
.toc-ul li:nth-child(2) { animation-delay: 0.2s; }
.toc-ul li:nth-child(3) { animation-delay: 0.3s; }
.toc-ul li:nth-child(4) { animation-delay: 0.4s; }
.toc-ul li:nth-child(5) { animation-delay: 0.5s; }
.toc-ul li:nth-child(6) { animation-delay: 0.6s; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .table-of-contents {
        margin: 1.5rem 0;
        padding: 1.2rem;
    }
    
    .toc-toggle {
        display: block;
    }
    
    .table-of-contents.collapsed .toc-list {
        display: none;
    }
    
    .table-of-contents:not(.sticky) {
        position: static;
    }
    
    .toc-ul a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .toc-ul .toc-h3 {
        margin-right: 0.8rem;
    }
    
    .toc-ul .toc-h4 {
        margin-right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .table-of-contents {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .table-of-contents h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .toc-ul a {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .toc-ul .toc-h3 {
        margin-right: 0.5rem;
    }
    
    .toc-ul .toc-h4 {
        margin-right: 1rem;
    }
}

/* حالت تاریک (اگر تم تاریک دارید) */
@media (prefers-color-scheme: dark) {
    .table-of-contents {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
        color: white;
    }
    
    .table-of-contents h4 {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
    
    .toc-ul a {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .toc-ul a:hover {
        background: var(--primary);
        color: white;
    }
    
    .no-toc {
        background: rgba(74, 85, 104, 0.5);
        border-color: #718096;
        color: #cbd5e0;
    }
}


/* استایل‌های پایه برای خلاصه مطلب */
.page-excerpt {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 1.5rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f7fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-right: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

/* طرح ۱: مدرن با آیکون */
.page-excerpt.style-1 {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #e2e8f0;
    border-right: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-excerpt.style-1::before {
    content: '💡';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.3;
}

/* طرح ۲: گرادیانت رنگی */
.page-excerpt.style-2 {
    background: linear-gradient(135deg, var(--primary) 0%, #2d6bc2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(26, 86, 219, 0.15);
}

.page-excerpt.style-2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* طرح ۳: حاشیه دوتایی */
.page-excerpt.style-3 {
    background: white;
    border: 2px solid #e2e8f0;
    border-right: 6px solid var(--secondary);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.page-excerpt.style-3::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    bottom: -3px;
    left: -3px;
    border: 2px solid var(--primary);
    border-radius: 18px;
    opacity: 0.1;
    pointer-events: none;
}

/* طرح ۴: طرح کاغذی */
.page-excerpt.style-4 {
    background: #fff9f0;
    border: 1px solid #fed7aa;
    border-right: 4px solid var(--secondary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.1);
    font-style: italic;
    position: relative;
}

.page-excerpt.style-4::before {
    content: '"';
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.2;
    font-family: serif;
}

.page-excerpt.style-4::after {
    content: '"';
    position: absolute;
    left: 1rem;
    bottom: 0.5rem;
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.2;
    font-family: serif;
}

/* طرح ۵: مدرن مینیمال */
.page-excerpt.style-5 {
    background: white;
    border: none;
    border-radius: 10px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    font-weight: 500;
    color: #2d3748;
    position: relative;
}

.page-excerpt.style-5::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 10px 10px 0 0;
}

/* طرح ۶: شیشه‌ای (Glassmorphism) */
.page-excerpt.style-6 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #2d3748;
    padding: 2rem;
}

/* طرح ۷: نوستالژیک */
.page-excerpt.style-7 {
    background: #fef7ed;
    border: 2px dashed #fed7aa;
    border-radius: 12px;
    color: #7c2d12;
    font-style: italic;
    position: relative;
    padding: 2rem 2rem 2rem 3rem;
}

.page-excerpt.style-7::before {
    content: '📌';
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.2rem;
}

/* طرح ۸: مدرن تاریک */
.page-excerpt.style-8 {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #e2e8f0;
    border: 1px solid #4a5568;
    border-right: 4px solid var(--secondary);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* طرح ۹: با خط کشی */
.page-excerpt.style-9 {
    background: linear-gradient(white 0%, white 100%),
                linear-gradient(90deg, transparent 0%, transparent 95%, #e2e8f0 95%, #e2e8f0 100%);
    background-size: 100% 100%, 30px 100%;
    background-repeat: no-repeat, repeat;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem 2rem 2rem 3rem;
    font-family: 'Courier New', monospace;
    color: #4a5568;
    position: relative;
}

.page-excerpt.style-9::before {
    content: '// خلاصه مطلب';
    position: absolute;
    top: -10px;
    right: 1rem;
    background: white;
    padding: 0 0.5rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
}

/* طرح ۱۰: ساده و شیک (پیشنهادی) */
.page-excerpt.style-10 {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    color: #374151;
    line-height: 1.8;
}

.page-excerpt.style-10::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.page-excerpt.style-10::after {
    content: '✨';
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    font-size: 1.2rem;
    opacity: 0.3;
}

/* انیمیشن‌ها */
.page-excerpt {
    /* animation: fadeInUp 0.6s ease; */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* افکت hover برای طرح‌های تعاملی */
.page-excerpt.style-1:hover,
.page-excerpt.style-3:hover,
.page-excerpt.style-5:hover,
.page-excerpt.style-10:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .page-excerpt {
        margin: 1rem 0 1.5rem 0;
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .page-excerpt.style-1::before,
    .page-excerpt.style-4::before,
    .page-excerpt.style-4::after,
    .page-excerpt.style-7::before,
    .page-excerpt.style-9::before,
    .page-excerpt.style-10::after {
        display: none; /* مخفی کردن المان‌های تزئینی در موبایل */
    }
    
    .page-excerpt.style-4,
    .page-excerpt.style-7,
    .page-excerpt.style-9 {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-excerpt {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .page-excerpt.style-5,
    .page-excerpt.style-6,
    .page-excerpt.style-10 {
        padding: 1.5rem;
    }
}

/* استایل برای محتوای داخل خلاصه */
.page-excerpt p {
    margin: 0;
    text-align: justify;
}

.page-excerpt strong {
    color: var(--primary);
    font-weight: 700;
}

.page-excerpt em {
    color: var(--secondary);
    font-style: italic;
}


/* استایل‌های فروشگاه */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2d6bc2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.shop-title {
    margin: 0;
    font-size: 2rem;
}

.shop-description p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.shop-stats {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* نوار ابزار فروشگاه */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* گرید محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.product-title a {
    text-decoration: none;
    color: var(--dark);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary);
}

.product-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.product-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions .button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.product-actions .button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* صفحه تک محصول */
.product-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2d6bc2 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.product-header-content .product-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.2rem;
}

.product-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.product-info {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.product-sidebar {
    position: sticky;
    top: 100px;
}

.course-info, .support-info {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-sidebar {
        position: static;
    }
}







/* استایل‌های منو و دکمه همبرگر */

/* استایل‌های هدر جدید */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    text-align: right;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.logo span {
    font-size: 0.9rem;
    color: var(--dark);
    display: block;
}

/* استایل همبرگر */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1a56db;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3);
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.4);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-btn.active {
    background: #1e40af;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* منوی اصلی دسکتاپ */
.main-nav {
    display: block;
}

.main-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav .nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav .nav-menu a:hover {
    color: var(--primary);
}

.main-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-nav .nav-menu a:hover::after {
    width: 100%;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .header-left {
        gap: 0.8rem;
        width:90%;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo span {
        font-size: 0.8rem;
    }
    
    .hamburger-btn {
        display: flex !important;
    }
    
    /* منوی موبایل - باز از سمت چپ */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%; /* تغییر از right به left */
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1); /* سایه سمت راست */
        transition: left 0.3s ease; /* تغییر از right به left */
        z-index: 999;
        padding: 20px;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0; /* تغییر از right به left */
    }
    
    .main-nav .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .main-nav .nav-menu a {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
        color: var(--dark);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .main-nav .nav-menu a:hover {
        color: var(--primary);
        background: #f8fafc;
        padding-right: 15px;
    }
    
    .main-nav .nav-menu a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-left {
        gap: 0.5rem;
        
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo span {
        font-size: 0.75rem;
    }
    
    .main-nav {
        width: 85%;
    }
}

/* مخفی کردن منو در دسکتاپ */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }
    
    .main-nav {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .main-nav .nav-menu {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .main-nav .nav-menu li {
        border-bottom: none !important;
    }
    
    .main-nav .nav-menu a {
        padding: 0.5rem 0 !important;
        font-size: 1rem !important;
    }
    
    .main-nav .nav-menu a:hover {
        padding-right: 0 !important;
        background: none !important;
    }
}


.hamburger-btn {
    background: transparent;
    border: 2px solid #1a56db; /* فقط حاشیه آبی */
}

.hamburger-btn span {
    background: #1a56db; /* خطوط آبی */
}

.hamburger-btn.active {
    background: #1a56db; /* وقتی فعال شد background آبی */
}

.hamburger-btn.active span {
    background: #ffffff; /* خطوط سفید وقتی فعال است */
}


/* مشخص کردن لینک فعال در منو */
.main-nav .nav-menu .current-menu-item > a,
.main-nav .nav-menu .current-page-item > a {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.main-nav .nav-menu .current-menu-item > a::after,
.main-nav .nav-menu .current-page-item > a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .main-nav .nav-menu .current-menu-item > a::after,
    .main-nav .nav-menu .current-page-item > a::after {
        display: none;
    }
    
    .main-nav .nav-menu .current-menu-item > a,
    .main-nav .nav-menu .current-page-item > a {
        background-color: var(--light);
        border-right: 3px solid var(--primary);
    }
}


.post-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px; /* بر اساس محتوای شما تنظیم شود */
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-content .btn {
    align-self: center;
}


/* کارت ثبت نام دوره */
.course-registration-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1a56db 0%, #d1a054 100%);
}

.course-registration-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* هدر کارت */
.registration-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.registration-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    position: relative;
    display: inline-block;
}

.registration-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: #1a56db;
    border-radius: 2px;
}

/* جزئیات دوره */
.registration-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

.detail-item:last-of-type {
    /* border-bottom: none; */
}

.detail-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
}

.detail-value {
    font-weight: 600;
    font-size: 1rem;
}

/* وضعیت‌های مختلف */
.status-active {
    color: #059669;
    background: #d1fae5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-inactive {
    color: #dc2626;
    background: #fecaca;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* قیمت */
.price-amount {
    color: #1f2937;
    font-size: 1.2rem;
}

.currency {
    color: #64748b;
    font-size: 0.9rem;
    margin-right: 4px;
}

/* دکمه ثبت نام */
.registration-action {
    margin-top: 8px;
}

.register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a56db 0%, #2d6bc2 100%);
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
    border: none;
    cursor: pointer;
    width: 100%;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* حالت غیرفعال */
.registration-disabled {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.disabled-text {
    color: #94a3b8;
    font-weight: 500;
    font-size: 1rem;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .course-registration-card {
        padding: 20px;
        margin: 16px 0;
    }
    
    .registration-title {
        font-size: 1.2rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-label, .detail-value {
        width: 100%;
        text-align: center;
    }
    
    .register-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-registration-card {
    animation: fadeInUp 0.6s ease;
}

.justInMobile{
    display: none;
}

@media (max-width: 768px) {
    .justInMobile{
        display: block;
    }
}

body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(26, 86, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(209, 160, 84, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(248, 250, 252, 0.8) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    background-attachment: fixed;
}

.input-ltr{
    direction: ltr;
    text-align: left;
}

.form-input, .form-textarea{
    font-family: 'vazirmatn', 'tahoma';
}