/**
 * Blog Styles
 *
 * @package WeGrowMagic
 */

/* ==========================================================================
   Blog Archive
   ========================================================================== */

.wgm-blog-archive .wgm-page-header {
    text-align: center;
    padding: 80px 0 60px;
}

.wgm-page-header__subtitle {
    color: var(--wgm-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Post */
.wgm-featured-post__card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    background: #fff;
    border-radius: var(--wgm-radius-lg);
    overflow: hidden;
    box-shadow: var(--wgm-shadow);
}

.wgm-featured-post__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.wgm-featured-post__content {
    padding: 32px 32px 32px 0;
}

.wgm-featured-post__label {
    display: inline-block;
    background: var(--wgm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--wgm-radius-full);
    margin-bottom: 12px;
}

.wgm-featured-post__title {
    font-size: var(--wgm-text-3xl);
    margin-bottom: 16px;
}

.wgm-featured-post__title a {
    color: inherit;
    text-decoration: none;
}

.wgm-featured-post__excerpt {
    color: var(--wgm-text-light);
    margin-bottom: 16px;
}

/* Category Filter */
.wgm-blog-filters {
    padding: 24px 0;
    border-bottom: 1px solid var(--wgm-border);
}

.wgm-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wgm-category-filter__item {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--wgm-border);
    border-radius: var(--wgm-radius-full);
    font-size: var(--wgm-text-sm);
    color: var(--wgm-text);
    text-decoration: none;
    transition: all var(--wgm-transition-fast);
}

.wgm-category-filter__item:hover,
.wgm-category-filter__item.is-active {
    background: var(--wgm-primary);
    border-color: var(--wgm-primary);
    color: #fff;
}

/* Posts Grid */
.wgm-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.wgm-posts-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Post Card */
.wgm-post-card {
    background: #fff;
    border-radius: var(--wgm-radius-lg);
    overflow: hidden;
    box-shadow: var(--wgm-shadow-sm);
    transition: transform var(--wgm-transition), box-shadow var(--wgm-transition);
}

.wgm-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wgm-shadow);
}

.wgm-post-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wgm-post-card__placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--wgm-primary), var(--wgm-secondary));
}

.wgm-post-card__content {
    padding: 20px;
}

.wgm-post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wgm-primary);
    margin-bottom: 8px;
}

.wgm-post-card__title {
    font-size: var(--wgm-text-lg);
    margin-bottom: 8px;
    line-height: 1.4;
}

.wgm-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.wgm-post-card__excerpt {
    font-size: var(--wgm-text-sm);
    color: var(--wgm-text-light);
    margin-bottom: 12px;
}

/* Post Meta */
.wgm-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--wgm-text-sm);
    color: var(--wgm-text-light);
}

.wgm-post-meta__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wgm-post-meta__author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Newsletter */
.wgm-newsletter {
    background: var(--wgm-bg-alt);
    padding: 48px;
    border-radius: var(--wgm-radius-lg);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.wgm-newsletter h2 {
    margin-bottom: 12px;
}

.wgm-newsletter p {
    color: var(--wgm-text-light);
    margin-bottom: 24px;
}

.wgm-newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.wgm-newsletter__form input {
    flex: 1;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.wgm-post-header {
    text-align: center;
    padding: 80px 0 40px;
}

.wgm-post-header .wgm-post-category {
    margin-bottom: 16px;
}

.wgm-post-header__title {
    font-size: var(--wgm-text-4xl);
    max-width: 800px;
    margin: 0 auto 24px;
}

.wgm-post-header .wgm-post-meta {
    justify-content: center;
}

/* Featured Image */
.wgm-post-featured-image {
    margin-bottom: 48px;
}

.wgm-post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--wgm-radius-lg);
}

/* Post Layout */
.wgm-post-layout {
    display: grid;
    gap: 48px;
}

.wgm-post-layout.has-sidebar {
    grid-template-columns: 200px 1fr;
}

/* Sidebar / TOC */
.wgm-post-sidebar {
    position: sticky;
    top: calc(var(--wgm-header-height) + 24px);
    align-self: start;
}

.wgm-toc {
    padding: 20px;
    background: var(--wgm-bg-alt);
    border-radius: var(--wgm-radius);
}

.wgm-toc__title {
    font-size: var(--wgm-text-sm);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.wgm-toc__nav li {
    margin-bottom: 8px;
}

.wgm-toc__nav li.wgm-toc__sub {
    padding-left: 12px;
}

.wgm-toc__nav a {
    font-size: var(--wgm-text-sm);
    color: var(--wgm-text-light);
    text-decoration: none;
    transition: color var(--wgm-transition-fast);
}

.wgm-toc__nav a:hover {
    color: var(--wgm-primary);
}

/* Post Body */
.wgm-post-body {
    max-width: 700px;
}

.wgm-post-body h2 {
    font-size: var(--wgm-text-2xl);
    margin: 48px 0 24px;
}

.wgm-post-body h3 {
    font-size: var(--wgm-text-xl);
    margin: 32px 0 16px;
}

.wgm-post-body p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.wgm-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--wgm-radius);
    margin: 32px 0;
}

.wgm-post-body blockquote {
    border-left: 4px solid var(--wgm-primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--wgm-text-light);
}

/* Tags */
.wgm-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 48px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--wgm-border);
}

.wgm-tag {
    padding: 6px 12px;
    background: var(--wgm-bg-alt);
    border-radius: var(--wgm-radius-full);
    font-size: var(--wgm-text-sm);
    color: var(--wgm-text);
    text-decoration: none;
    transition: all var(--wgm-transition-fast);
}

.wgm-tag:hover {
    background: var(--wgm-primary);
    color: #fff;
}

/* Share */
.wgm-post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
}

.wgm-post-share span {
    font-weight: 500;
}

.wgm-post-share a,
.wgm-post-share button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wgm-bg-alt);
    color: var(--wgm-text);
    border: none;
    cursor: pointer;
    transition: all var(--wgm-transition-fast);
}

.wgm-post-share a:hover,
.wgm-post-share button:hover {
    background: var(--wgm-primary);
    color: #fff;
}

.wgm-copy-link.copied {
    background: var(--wgm-accent);
}

/* Author Box */
.wgm-author-box {
    padding: 48px 0;
    border-top: 1px solid var(--wgm-border);
}

.wgm-author-box__inner {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--wgm-bg-alt);
    border-radius: var(--wgm-radius-lg);
}

.wgm-author-box__inner img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.wgm-author-box__content h4 {
    margin-bottom: 8px;
}

.wgm-author-box__content p {
    color: var(--wgm-text-light);
    font-size: var(--wgm-text-sm);
}

/* Related Posts */
.wgm-related-posts {
    background: var(--wgm-bg-alt);
    padding: 60px 0;
}

.wgm-related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .wgm-post-layout.has-sidebar {
        grid-template-columns: 1fr;
    }
    
    .wgm-post-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .wgm-featured-post__card {
        grid-template-columns: 1fr;
    }
    
    
    .wgm-featured-post__image img {
        height: 250px;
    }
    
    .wgm-featured-post__content {
        padding: 24px;
    }
    
    .wgm-posts-grid,
    .wgm-posts-grid--3 {
        grid-template-columns: 1fr;
    }
    
    .wgm-post-header__title {
        font-size: var(--wgm-text-3xl);
    }
    
    .wgm-newsletter {
        padding: 32px 24px;
    }
    
    .wgm-newsletter__form {
        flex-direction: column;
    }
    
    .wgm-author-box__inner {
        flex-direction: column;
        text-align: center;
    }
}
.wgm-blog-more__container{
width:100%!important;
}