/* Blog Article Styles */

body.blog-article-template-default #main .fusion-row {
    max-width:1500px;
}

body.blog-article-template-default #content,
body.blog-article-template-default .container {
    width:100%;
}

.blog-article-content {
    padding: 20px 0;
}

.blog-article-wrapper {
    display: flex;
    gap: 20px;
    margin: 0 auto;
}

/* Main content area (70% width) */
.blog-article-main {
    flex: 0 0 70%;
}

.blog-article-inner {
    background-color: #eee;
    padding: 50px;
    border-radius: 5px;
}

/* Featured Image */
.blog-article-featured-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
}

.blog-article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Date styling */
.blog-article-date {
    background-color: #666666;
    color: white;
    padding: 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    display:inline-block;
}

/* Title styling */
.blog-article-title {
    color: #333;
    margin-bottom: 25px;
    font-size: 32px;
    line-height: 1.3;
    font-weight: bold;
    text-transform: capitalize;
    letter-spacing: 0;
}

/* Content styling */
.blog-article-content-text {
    color: #444;
    line-height: 1.6;
    font-size: 16px;
}

.blog-article-content-text p {
    margin-bottom: 20px;
}

.blog-article-content-text h2,
.blog-article-content-text h3,
.blog-article-content-text h4,
.blog-article-content-text h5,
.blog-article-content-text h6 {
    color: #333;
    margin: 30px 0 20px 0;
}

/* Sidebar (30% width) */
.blog-article-sidebar {
    flex: 0 0 30%;
    background-color: #333;
    padding: 30px;
    border-radius: 5px;
    height: fit-content;
}

/* Recent Posts Title */
.recent-posts-title {
    color: white;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
}

/* Recent Posts List */
.recent-posts-list {
    color: white;
}

.recent-post-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #555;
}

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

.recent-post-item h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.recent-post-item h4 a {
    color: white;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-item h4 a:hover {
    color: #ccc;
    text-decoration: underline;
}

.recent-post-date {
    color: #bbb;
    font-size: 13px;
    font-style: italic;
}

/* Recent Blog Articles Shortcode Styles */
.recent-blog-articles {
    margin: 20px 0;
}

.recent-article-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-article-item h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.recent-article-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-article-item h4 a:hover {
    color: #666;
    text-decoration: underline;
}

.article-date {
    color: #777;
    font-size: 13px;
    margin-bottom: 8px;
}

.article-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-article-wrapper {
        flex-direction: column;
    }
    
    .blog-article-main,
    .blog-article-sidebar {
        flex: 1;
    }
    
    .blog-article-inner {
        padding: 30px;
    }
    
    .blog-article-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .blog-article-inner {
        padding: 20px;
    }
    
    .blog-article-title {
        font-size: 24px;
    }
    
    .blog-article-sidebar {
        padding: 20px;
    }
    
    .recent-posts-title {
        font-size: 20px;
    }
}

/* Archive Page Styles */
.blog-articles-archive {
    padding: 40px 0;
}

.blog-articles-archive .page-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-articles-archive .page-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.blog-articles-archive .archive-description {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-article-excerpt {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-article-excerpt:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.blog-article-excerpt .article-thumbnail {
    overflow: hidden;
    height: 200px;
}

.blog-article-excerpt .article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-article-excerpt:hover .article-thumbnail img {
    transform: scale(1.05);
}

.blog-article-excerpt .article-content {
    padding: 25px;
}

.blog-article-excerpt .article-meta {
    margin-bottom: 15px;
}

.blog-article-excerpt .article-date {
    background-color: #666666;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.blog-article-excerpt .article-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-article-excerpt .article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-article-excerpt .article-title a:hover {
    color: #555;
}

.blog-article-excerpt .article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-article-excerpt .read-more {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.blog-article-excerpt .read-more:hover {
    background-color: #555;
}

.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #333;
    color: white;
}

/* Archive Responsive */
@media (max-width: 768px) {
    .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-articles-archive .page-title {
        font-size: 28px;
    }
    
    .blog-article-excerpt .article-content {
        padding: 20px;
    }
}

/* Blog Articles Grid Shortcode Styles */
.blog-articles-grid-container {
    margin: 40px 0;
}

.blog-articles-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-grid-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-grid-image img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.no-featured-image {
    width: 100%;
    height: 275px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    border: 2px dashed #ddd;
}

body #main .blog-grid-title {
    padding: 25px 20px;
    margin: 0;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0 !important;
    text-align: center;
    color: #333;
    transition: color 0.3s ease;
}

.blog-grid-item:hover .blog-grid-title {
    color: #555;
}

/* Grid Pagination */
.blog-grid-pagination {
    margin-top: 60px;
    text-align: center;
}

.blog-grid-pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.blog-grid-pagination .page-numbers:hover,
.blog-grid-pagination .page-numbers.current {
    background-color: #333;
    color: white;
    border-color: #333;
}

.blog-grid-pagination .page-numbers.dots {
    background: none;
    border: none;
    cursor: default;
}

.blog-grid-pagination .page-numbers.dots:hover {
    background: none;
    color: #333;
}

/* Grid Responsive Design */
@media (max-width: 1024px) {
    .blog-articles-grid-wrapper {
        gap: 25px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .blog-articles-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-grid-image,
    .blog-grid-image img,
    .no-featured-image {
        min-height: 250px;
        height: 250px;
    }
    
    .blog-grid-title {
        padding: 20px 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blog-articles-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-grid-image,
    .blog-grid-image img,
    .no-featured-image {
        min-height: 300px;
        height: 300px;
    }
    
    .blog-grid-title {
        padding: 25px 20px;
        font-size: 18px;
    }
    
    .blog-grid-pagination .page-numbers {
        padding: 10px 15px;
        font-size: 14px;
    }
}
