
:root {
    --primary-yellow: #FFD700;
    --dark-yellow: #FFC400;
    --black: #1A1A1A;
    --dark-gray: #2D2D2D;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --border-radius: 4px;
}

.blog-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
    display: grid !important;
    grid-template-columns: 1fr 300px; 
    gap: 2rem !important;
}

.blog-posts {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

.blog-post {
    background: var(--white) !important;
    border: 1px solid #E5E5E5 !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
}

    .blog-post:hover {
        border-color: var(--primary-yellow);
        transform: translateY(-2px);
    }

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.post-category {
    background: var(--primary-yellow);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: bold;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    line-height: 1.4;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

    .read-more:hover {
        color: var(--dark-yellow);
        border-color: var(--dark-yellow);
    }

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid #E5E5E5;
    padding: 1.5rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-yellow);
    color: var(--black);
}

.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #E5E5E5;
    border-right: none;
    outline: none;
    font-family: 'Vazir', sans-serif;
}

.search-button {
    background: var(--primary-yellow);
    color: var(--black);
    border: 1px solid var(--primary-yellow);
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    font-family: 'Vazir', sans-serif;
}

    .search-button:hover {
        background: var(--dark-yellow);
        border-color: var(--dark-yellow);
    }

.recent-posts {
    list-style: none;
}

    .recent-posts li {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #F0F0F0;
    }

    .recent-posts a {
        color: #555;
        text-decoration: none;
        transition: color 0.2s ease;
        display: block;
        line-height: 1.6;
    }

        .recent-posts a:hover {
            color: var(--black);
        }

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .page-numbers a, .pagination .prev, .pagination .next {
        display: inline-block;
        padding: 0.5rem 1rem;
        border: 1px solid #E5E5E5;
        color: #555;
        text-decoration: none;
        transition: all 0.2s ease;
        font-family: 'Vazir', sans-serif;
    }

        .page-numbers a:hover, .pagination .prev:hover, .pagination .next:hover {
            border-color: var(--primary-yellow);
            color: var(--black);
        }

    .page-numbers .current {
        background: var(--primary-yellow);
        border-color: var(--primary-yellow);
        color: var(--black);
    }

.no-articles {
    text-align: center;
    padding: 3rem;
    color: #666;
    grid-column: 1 / -1;
}

.tag {
    display: inline-block;
    background: #FFD700;
    color: #1A1A1A;
    padding: 0.3rem 0.7rem;
    margin: 0.2rem;
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

    .tag:hover {
        background: #FFC400;
        color: #1A1A1A;
        transform: translateY(-1px);
    }

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr; /* Single column */
        grid-template-areas:
            "sidebar"
            "content"; /* Define areas */
    }

    /* Make sidebar appear above blog posts */
    .blog-sidebar {
        order: -1; /* This moves sidebar above in flex/grid */
        width: 100%;
        grid-area: sidebar; /* Assign to sidebar area */
    }

    /* Ensure blog posts take full width */
    .blog-posts {
        width: 100%;
        grid-area: content;
    }

    /* Adjust blog post layout for mobile */
    .blog-post {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .post-image {
        height: 180px; /* Slightly smaller on mobile */
    }

    .post-content {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    /* Adjust sidebar widgets */
    .sidebar-widget {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .widget-title {
        font-size: 1.1rem;
    }

    /* Stack pagination items */
    .pagination {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .page-numbers {
        justify-content: center;
    }

    /* Adjust search form for mobile */
    .search-form {
        flex-direction: column;
    }

    .search-input {
        border: 1px solid #E5E5E5;
        margin-bottom: 0.5rem;
        text-align: right;
    }

    .search-button {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .blog-container {
        padding: 0.5rem;
    }

    .post-title {
        font-size: 1.2rem;
    }

    .post-excerpt {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .tags-container {
        justify-content: center;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    /* Make recent posts list more compact */
    .recent-posts li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

/* ===== WEBLOG DETAIL PAGE STYLES ===== */
.weblog-detail-hero {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
}

.weblog-detail-hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0;
}

    .breadcrumb a {
        color: var(--color-white);
        text-decoration: none;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

        .breadcrumb a:hover {
            opacity: 1;
        }

    .breadcrumb span {
        opacity: 0.6;
    }

.weblog-detail-hero-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.weblog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    letter-spacing: 0;
    opacity: 0.8;
}

.weblog-detail-section {
    padding: 6rem 3rem;
    background-color: var(--color-white);
}

.weblog-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.weblog-detail-image {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

    .weblog-detail-image img {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }

.weblog-detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
}

    .weblog-detail-text h2 {
        font-size: 2rem;
        font-weight: 300;
        margin: 3rem 0 1.5rem;
        color: var(--color-black);
        letter-spacing: 0;
    }

    .weblog-detail-text p {
        margin-bottom: 1.5rem;
    }

    .weblog-detail-text blockquote {
        border-right: 4px solid var(--color-accent);
        padding-right: 2rem;
        margin: 2rem 0;
        font-style: italic;
        font-size: 1.2rem;
        color: var(--color-black);
    }

.weblog-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gallery-caption {
    font-size: 0.875rem;
    text-align: center;
    color: var(--color-gray);
    font-style: italic;
}

.weblog-detail-text ul {
    margin: 1.5rem 0;
    padding-right: 1.5rem;
}

.weblog-detail-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.weblog-detail-quote {
    background: var(--color-gray-light);
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.quote-content p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.quote-author {
    font-weight: 500;
    letter-spacing: 0;
}

.weblog-detail-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tags-label {
    font-weight: 500;
    letter-spacing: 0;
}

.tag {
    background: var(--primary-yellow);
    padding: 0.5rem 1rem;
   
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--color-gray);
    transition: all 0.3s ease;
}

    .tag:hover {
        background: var(--color-accent);
        color: var(--color-white);
    }

.weblog-detail-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.share-label {
    font-weight: 500;
    letter-spacing: 0;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-gray-light);
    border-radius: 50%;
    color: var(--color-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .share-link:hover {
        background: var(--color-accent);
        color: var(--color-white);
    }

.weblog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sidebar-widget {
    background: var(--color-gray-light);
    padding: 2rem;
   
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0;
    color: var(--color-accent);
}

.author-bio {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

    .author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.author-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.author-description {
    color: var(--color-gray);
    line-height: 1.6;
    font-size: 0.875rem;
}

.recent-posts {
    list-style: none;
}

.recent-post-link {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .recent-post-link:hover {
        background: rgba(255,255,255,0.5);
        padding-right: 0.5rem;
    }

    .recent-post-link:last-child {
        border-bottom: none;
    }

.recent-post-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-black);
    letter-spacing: 0;
    font-size: 0.875rem;
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.categories-list {
    list-style: none;
}

    .categories-list li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

        .categories-list li:last-child {
            border-bottom: none;
        }

    .categories-list a {
        display: flex;
        justify-content: space-between;
        text-decoration: none;
        color: var(--color-gray);
        transition: color 0.3s ease;
    }

        .categories-list a:hover {
            color: var(--color-accent);
        }

.category-count {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.related-posts-section {
    padding: 6rem 3rem;
    background-color: var(--color-gray-light);
}

.related-posts-container {
    max-width: 1400px;
    margin: 0 auto;
}

.related-posts-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-accent);
    letter-spacing: 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .related-post:hover {
        transform: translateY(-10px);
    }

.related-post-image {
    height: 200px;
    overflow: hidden;
}

    .related-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.related-post:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0;
    line-height: 1.4;
}

.related-post-link {
    color: var(--color-black);
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

    .related-post-link:hover {
        color: var(--color-accent);
    }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .weblog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post.featured {
        grid-template-columns: 1fr;
    }

    .weblog-detail-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .weblog-hero-title,
    .weblog-detail-hero-title {
        font-size: 2.5rem;
    }

    .weblog-section,
    .weblog-detail-section,
    .related-posts-section {
        padding: 4rem 2rem;
    }

    .weblog-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .weblog-detail-gallery {
        grid-template-columns: 1fr;
    }

    .weblog-detail-tags,
    .weblog-detail-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }
 }




.article-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Vazir', sans-serif;
    /*margin:60px;*/
}

.article-header {
    margin-bottom: 2rem;
    text-align: right;
}

.article-title {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: bold;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.95rem;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E5E5;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .meta-item i {
        color: var(--primary-yellow);
    }

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
    color: #333;
    text-align: justify;
}

    .article-content h2 {
        color: var(--black);
        margin: 2.5rem 0 1.5rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary-yellow);
        font-size: 1.6rem;
    }

    .article-content h3 {
        color: var(--black);
        margin: 2rem 0 1rem 0;
        font-size: 1.3rem;
    }

    .article-content p {
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .article-content ul, .article-content ol {
        margin: 1.5rem 0;
        padding-right: 2rem;
    }

    .article-content li {
        margin-bottom: 0.5rem;
    }

    .article-content blockquote {
        border-right: 4px solid var(--primary-yellow);
        padding: 1rem 2rem;
        margin: 2rem 0;
        background: var(--light-gray);
        font-style: italic;
    }

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E5E5;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.tags-label {
    color: #666;
    font-weight: bold;
}

.tag {
    background: var(--primary-yellow);
    color: var(--black);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .tag:hover {
        background: var(--dark-yellow);
        transform: translateY(-1px);
    }

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .back-to-blog:hover {
        border-color: var(--primary-yellow);
        color: var(--dark-yellow);
    }

.social-share {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E5E5;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

    .share-button:hover {
        background: var(--primary-yellow);
        color: var(--black);
    }

@@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .article-image {
        height: 250px;
    }

    .article-content {
        font-size: 1rem;
    }

    .social-share {
        flex-wrap: wrap;
    }
}