/* SoundCloudMP3 Blog - Magazine Style Design */

/* ========================================
   CSS Variables for Blog
   ======================================== */
.blog-page {
    --blog-accent: #667eea;
    --blog-accent-dark: #5a67d8;
    --blog-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --blog-text: var(--text-dark);
    --blog-text-muted: var(--text-muted);
    --blog-bg: var(--bg-light);
    --blog-card-bg: var(--bg-white);
    --blog-border: var(--border-color);
    --blog-radius: 20px;
    --blog-radius-sm: 12px;
}

/* ========================================
   Single Article Page (blog-single)
   ======================================== */
.blog-single {
    background: var(--blog-bg);
}

.blog-single .article-hero {
    background: var(--blog-gradient);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.blog-single .article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.blog-single .article-hero .container {
    position: relative;
    z-index: 2;
}

.blog-single .article-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.blog-single .article-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-single .article-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.blog-single .article-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,0.6);
}

.blog-single .article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.blog-single .article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    margin-bottom: 1.25rem;
    transition: all 0.2s;
}

.blog-single .article-category:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.blog-single .article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: white;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.blog-single .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

.blog-single .article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.blog-single .article-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.blog-single .article-featured-image {
    margin: 0;
    margin-top: 2rem;
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.blog-single .article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Article Content Area */
.blog-single .article-content {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    padding: 3rem;
    margin-top: -3rem;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Table of Contents */
.blog-single .table-of-contents {
    background: var(--blog-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-sm);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    max-width: 480px;
}

.blog-single .table-of-contents h4 {
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    color: var(--blog-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-single .table-of-contents h4 i {
    font-size: 0.875rem;
}

.blog-single .table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 1;
}

.blog-single .table-of-contents li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.blog-single .table-of-contents li.toc-level-2 {
    margin-top: 0.5rem;
}

.blog-single .table-of-contents li.toc-level-2:first-child {
    margin-top: 0;
}

.blog-single .table-of-contents li.toc-level-3 {
    padding-left: 1rem;
    font-size: 0.9375rem; /* 15px */
    color: var(--blog-text-muted);
}

.blog-single .table-of-contents li.toc-level-3::before {
    content: "└";
    margin-right: 0.375rem;
    color: var(--blog-border);
}

.blog-single .table-of-contents a {
    color: var(--blog-text);
    text-decoration: none;
    font-size: 1rem; /* 16px */
    transition: color 0.2s;
}

.blog-single .table-of-contents li.toc-level-3 a {
    color: var(--blog-text-muted);
    font-size: 0.9375rem; /* 15px */
}

.blog-single .table-of-contents a:hover {
    color: var(--blog-accent);
}

/* Article Body / Prose */
.blog-single .article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--blog-text);
}

.blog-single .article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--blog-text);
}

.blog-single .article-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--blog-text);
}

.blog-single .article-body p {
    margin-bottom: 1.5rem;
}

.blog-single .article-body ul,
.blog-single .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-single .article-body li {
    margin-bottom: 0.5rem;
}

.blog-single .article-body a {
    color: var(--blog-accent);
    text-decoration: underline;
}

.blog-single .article-body a:hover {
    color: var(--blog-accent-dark);
}

.blog-single .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--blog-radius-sm);
    margin: 1.5rem 0;
}

.blog-single .article-body blockquote {
    border-left: 4px solid var(--blog-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--blog-text-muted);
}

.blog-single .article-body code {
    background: rgba(102,126,234,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-single .article-body pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: var(--blog-radius-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-single .article-body pre code {
    background: transparent;
    padding: 0;
}

/* Article Tags */
.blog-single .article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--blog-border);
}

.blog-single .article-tags .tags-label {
    font-weight: 600;
    color: var(--blog-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-single .article-tags .tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(102,126,234,0.1);
    color: var(--blog-accent);
    border-radius: 2rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-single .article-tags .tag:hover {
    background: var(--blog-accent);
    color: white;
}

/* Share Buttons */
.blog-single .article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--blog-border);
}

.blog-single .article-share .share-label {
    font-weight: 600;
    color: var(--blog-text-muted);
}

.blog-single .article-share .share-buttons {
    display: flex;
    gap: 0.5rem;
}

.blog-single .article-share .share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    font-size: 1.125rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.blog-single .article-share .share-btn:hover {
    transform: scale(1.1);
}

.blog-single .article-share .share-btn.facebook { background: #1877f2; }
.blog-single .article-share .share-btn.twitter { background: #000; }
.blog-single .article-share .share-btn.whatsapp { background: #25d366; }
.blog-single .article-share .share-btn.linkedin { background: #0077b5; }
.blog-single .article-share .share-btn.copy-link { background: var(--blog-accent); }

/* Author Box */
.blog-single .author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    border-radius: var(--blog-radius);
}

.blog-single .author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-single .author-box-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-single .author-box-info p {
    color: var(--blog-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.blog-single .author-box-info .author-link {
    color: var(--blog-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-single .author-box-info .author-link:hover {
    text-decoration: underline;
}

/* Inline Affiliate CTA */
.blog-single .inline-affiliate-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--blog-card-bg);
    border: 2px solid var(--blog-border);
    border-radius: var(--blog-radius);
}

.blog-single .inline-affiliate-cta h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-accent);
}

.blog-single .affiliate-grid {
    display: grid;
    gap: 1rem;
}

.blog-single .affiliate-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--blog-bg);
    border-radius: var(--blog-radius-sm);
    text-decoration: none;
    color: var(--blog-text);
    transition: all 0.2s;
}

.blog-single .affiliate-item:hover {
    background: rgba(102,126,234,0.1);
    transform: translateX(4px);
}

.blog-single .affiliate-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-single .affiliate-item-info {
    flex: 1;
}

.blog-single .affiliate-item-info strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.blog-single .affiliate-item-info span {
    font-size: 0.875rem;
    color: var(--blog-text-muted);
}

/* Related Posts */
.blog-single .related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
}

.blog-single .related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-single .related-posts .post-card-small {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.blog-single .related-posts .post-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.blog-single .related-posts .post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-single .related-posts .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-single .related-posts .post-card-small:hover .post-card-image img {
    transform: scale(1.05);
}

.blog-single .related-posts .post-card-body {
    padding: 1.25rem;
}

.blog-single .related-posts .post-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-single .related-posts .post-card-title a {
    color: var(--blog-text);
    text-decoration: none;
}

.blog-single .related-posts .post-card-title a:hover {
    color: var(--blog-accent);
}

.blog-single .related-posts .post-card-meta {
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
}

/* Sidebar */
.blog-single .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-single .blog-sidebar.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

.blog-single .sidebar-widget {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blog-single .sidebar-widget .widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-single .sidebar-widget.cta-widget {
    background: var(--blog-gradient);
    color: white;
    text-align: center;
}

.blog-single .sidebar-widget.cta-widget .cta-content .cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.blog-single .sidebar-widget.cta-widget h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-single .sidebar-widget.cta-widget p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

/* Popular Posts Widget */
.blog-single .popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-single .popular-posts li {
    margin-bottom: 1rem;
}

.blog-single .popular-posts li:last-child {
    margin-bottom: 0;
}

.blog-single .popular-posts a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--blog-text);
    transition: opacity 0.2s;
}

.blog-single .popular-posts a:hover {
    opacity: 0.8;
}

.blog-single .popular-posts img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-single .popular-posts .popular-title {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.blog-single .popular-posts .popular-views {
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
}

/* Newsletter Widget */
.blog-single .newsletter-widget {
    text-align: center;
}

.blog-single .newsletter-widget .widget-title {
    justify-content: center;
}

.blog-single .newsletter-widget p {
    color: var(--blog-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.blog-single .newsletter-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.blog-single .newsletter-form button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--blog-gradient);
    border: none;
    border-radius: var(--blog-radius-sm);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.blog-single .newsletter-form button:hover {
    opacity: 0.9;
}

/* Responsive Article Page */
@media (max-width: 991px) {
    .blog-single .article-content {
        padding: 2rem;
        margin-top: -2rem;
    }

    .blog-single .author-box {
        flex-direction: column;
        text-align: center;
    }

    .blog-single .author-box-avatar {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .blog-single .article-hero {
        padding: 2rem 0 3rem;
    }

    .blog-single .article-title {
        font-size: 1.75rem;
    }

    .blog-single .article-meta {
        gap: 1rem;
    }

    .blog-single .article-content {
        padding: 1.5rem;
        margin-top: -1.5rem;
        border-radius: var(--blog-radius-sm);
    }

    .blog-single .article-body {
        font-size: 1rem;
    }

    .blog-single .table-of-contents {
        padding: 1rem 1.25rem;
    }

    .blog-single .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   Magazine Hero - Full Width Impact
   ======================================== */
.magazine-hero {
    background: var(--blog-gradient);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: stretch;
}

.magazine-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.magazine-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 991px) {
    .magazine-hero {
        min-height: auto;
    }
    .magazine-hero .container {
        grid-template-columns: 1fr;
    }
}

.hero-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-excerpt {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    opacity: 0.85;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--blog-accent);
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: var(--blog-accent-dark);
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--blog-accent) 0%, transparent 30%);
}

@media (max-width: 991px) {
    .hero-content {
        padding: 3rem 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-image {
        height: 300px;
    }
    .hero-image-overlay {
        background: linear-gradient(to top, var(--blog-accent) 0%, transparent 50%);
    }
}

/* ========================================
   Category Navigation - Horizontal Tabs
   ======================================== */
.category-nav {
    background: var(--blog-card-bg);
    border-bottom: 1px solid var(--blog-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.category-nav .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem;
    scrollbar-width: none;
}

.category-nav .container::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--blog-bg);
    border: 1px solid var(--blog-border);
    border-radius: 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blog-text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-tab:hover,
.category-tab.active {
    background: var(--blog-gradient);
    border-color: transparent;
    color: white;
}

.category-tab i {
    font-size: 1rem;
}

.category-tab .count {
    background: rgba(0,0,0,0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
}

.category-tab.active .count,
.category-tab:hover .count {
    background: rgba(255,255,255,0.2);
}

/* ========================================
   Magazine Grid Layout
   ======================================== */
.magazine-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.section-title i {
    color: var(--blog-accent);
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-accent);
    font-weight: 600;
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

/* Magazine Grid - Bento Style */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.magazine-grid .post-card:nth-child(1) {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 450px;
}

.magazine-grid .post-card:nth-child(2),
.magazine-grid .post-card:nth-child(3) {
    grid-column: span 4;
}

.magazine-grid .post-card:nth-child(n+4) {
    grid-column: span 4;
}

@media (max-width: 991px) {
    .magazine-grid .post-card {
        grid-column: span 6 !important;
        grid-row: span 1 !important;
    }
}

@media (max-width: 767px) {
    .magazine-grid .post-card {
        grid-column: span 12 !important;
    }
}

/* ========================================
   Post Cards - Magazine Style
   ======================================== */
.post-card {
    position: relative;
    border-radius: var(--blog-radius);
    overflow: hidden;
    background: var(--blog-card-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.post-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.magazine-grid .post-card:first-child .post-card-image {
    aspect-ratio: auto;
    height: 100%;
    position: absolute;
    inset: 0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.post-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.magazine-grid .post-card:first-child .post-card-image::after {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.post-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 2;
}

.magazine-grid .post-card:first-child .post-card-content {
    padding: 2.5rem;
}

.post-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-grid .post-card:first-child .post-card-title {
    font-size: 2rem;
    -webkit-line-clamp: 3;
}

.post-card-excerpt {
    font-size: 0.9375rem;
    opacity: 0.85;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    display: none;
}

.magazine-grid .post-card:first-child .post-card-excerpt {
    display: -webkit-box;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    opacity: 0.75;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Standard grid (non-magazine) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.posts-grid .post-card-content {
    position: relative;
    background: var(--blog-card-bg);
    color: var(--blog-text);
    padding: 1.5rem;
}

.posts-grid .post-card-image::after {
    display: none;
}

.posts-grid .post-card-category {
    background: rgba(102, 126, 234, 0.1);
    color: var(--blog-accent);
}

.posts-grid .post-card-meta {
    color: var(--blog-text-muted);
    opacity: 1;
}

/* ========================================
   Article Page - Magazine Layout
   ======================================== */
.article-page {
    background: var(--blog-bg);
}

.article-hero-magazine {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero-bg {
    position: absolute;
    inset: 0;
}

.article-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    color: white;
    width: 100%;
}

.article-breadcrumb {
    margin-bottom: 2rem;
}

.article-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.article-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.article-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.article-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,0.5);
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--blog-gradient);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: white;
}

.article-category-badge:hover {
    color: white;
    opacity: 0.9;
}

.article-title-main {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.article-author-info {
    display: flex;
    flex-direction: column;
}

.article-author-name {
    font-weight: 600;
}

.article-author-date {
    font-size: 0.875rem;
    opacity: 0.75;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    opacity: 0.85;
}

@media (max-width: 767px) {
    .article-title-main {
        font-size: 2rem;
    }
    .article-hero-magazine {
        min-height: 50vh;
    }
}

/* Article Body */
.article-body-wrapper {
    padding: 4rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr minmax(auto, 720px) 1fr;
    gap: 4rem;
}

@media (max-width: 1199px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.article-sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (max-width: 1199px) {
    .article-sidebar-left,
    .article-sidebar-right {
        display: none;
    }
}

/* Share Buttons - Floating */
.share-floating {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.share-floating .share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
}

.share-floating .share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: var(--blog-text-muted); }

/* Table of Contents - Floating */
.toc-floating {
    position: sticky;
    top: 6rem;
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.toc-floating h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blog-text-muted);
    margin-bottom: 1rem;
}

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

.toc-floating li {
    margin-bottom: 0.5rem;
}

.toc-floating li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--blog-text);
    text-decoration: none;
    font-size: 0.875rem;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: all 0.2s;
}

.toc-floating li a:hover,
.toc-floating li a.active {
    color: var(--blog-accent);
    border-color: var(--blog-accent);
}

.toc-level-3 a {
    padding-left: 2rem !important;
    font-size: 0.8125rem !important;
}

/* Article Content */
.article-content-main {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
    .article-content-main {
        padding: 1.5rem;
        border-radius: var(--blog-radius-sm);
    }
}

.article-body {
    font-size: 1.125rem; /* 18px - optimal for reading */
    line-height: 1.7; /* Best for blogs */
    color: var(--blog-text);
    max-width: 680px; /* 50-75 chars per line */
}

.article-body h2 {
    font-size: 1.75rem; /* 28px */
    font-weight: 700;
    line-height: 1.25; /* Compact for headings */
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--blog-border);
    scroll-margin-top: 100px;
    letter-spacing: -0.02em;
}

.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    font-size: 1.375rem; /* 22px */
    font-weight: 600;
    line-height: 1.3;
    margin: 2rem 0 0.5rem; /* Reduced bottom margin */
    scroll-margin-top: 100px;
    color: var(--blog-text);
}

/* First paragraph after h3 should have less top margin */
.article-body h3 + p,
.article-body h3 + ul,
.article-body h3 + ol {
    margin-top: 0;
}

.article-body p {
    margin-bottom: 1.25rem; /* Slightly reduced */
}

/* Reduce gap when p is followed by list */
.article-body p + ul,
.article-body p + ol {
    margin-top: -0.5rem; /* Pull list closer to paragraph */
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body strong {
    font-weight: 600;
    color: var(--blog-text);
}

.article-body a {
    color: var(--blog-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: var(--blog-accent-dark);
}

.article-body blockquote {
    border-left: 4px solid var(--blog-accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--blog-bg);
    border-radius: 0 var(--blog-radius-sm) var(--blog-radius-sm) 0;
    font-style: italic;
    font-size: 1.125rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--blog-radius-sm);
    margin: 2rem 0;
}

.article-body pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: var(--blog-radius-sm);
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.article-body code {
    background: var(--blog-bg);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

/* Pro Tips & Warnings */
.article-body .pro-tip,
.article-body .warning {
    padding: 1.25rem 1.5rem;
    border-radius: var(--blog-radius-sm);
    margin: 2rem 0;
    font-style: normal;
}

.article-body .pro-tip {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid var(--blog-accent);
}

.article-body .warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border-left: 4px solid #f59e0b;
}

.article-body .pro-tip strong,
.article-body .warning strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Article Images with captions */
.article-body figure,
.article-body .article-image {
    margin: 2.5rem 0;
    text-align: center;
}

.article-body figure img,
.article-body .article-image img {
    border-radius: var(--blog-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.article-body figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--blog-text-muted);
    font-style: italic;
}

/* Better list styling */
.article-body ul {
    list-style: none;
    padding-left: 0;
}

.article-body ul li {
    position: relative;
    padding-left: 1.75rem;
}

.article-body ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--blog-accent);
    font-weight: bold;
}

.article-body ol {
    padding-left: 1.25rem;
}

.article-body ol li {
    padding-left: 0.5rem;
}

.article-body ol li::marker {
    color: var(--blog-accent);
    font-weight: 600;
}

/* Nested lists */
.article-body ul ul,
.article-body ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Section spacing for better readability */
.article-body > p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--blog-text-muted);
}

/* Dark mode adjustments */
[data-theme="dark"] .article-body .pro-tip {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.15));
}

[data-theme="dark"] .article-body .warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
}

[data-theme="dark"] .article-body figure img,
[data-theme="dark"] .article-body .article-image img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.article-tag {
    padding: 0.5rem 1rem;
    background: var(--blog-bg);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--blog-text);
    text-decoration: none;
    transition: all 0.2s;
}

.article-tag:hover {
    background: var(--blog-accent);
    color: white;
}

.author-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--blog-bg);
    border-radius: var(--blog-radius);
}

.author-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-card-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.author-card-info p {
    color: var(--blog-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.author-card-link {
    color: var(--blog-accent);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767px) {
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    .author-card img {
        margin: 0 auto;
    }
}

/* Related Posts */
.related-section {
    padding: 4rem 0;
    background: var(--blog-bg);
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
    background: var(--blog-gradient);
    border-radius: var(--blog-radius);
    padding: 3rem;
    text-align: center;
    color: white;
    margin: 4rem 0;
}

.cta-banner h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 3rem;
}

/* ========================================
   Affiliate Cards - Magazine Style
   ======================================== */
.affiliate-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--blog-radius);
    padding: 2rem;
    margin: 2rem 0;
}

[data-theme="dark"] .affiliate-highlight {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.affiliate-highlight h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.affiliate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.affiliate-card-magazine {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius-sm);
    text-decoration: none;
    color: var(--blog-text);
    transition: all 0.2s;
}

.affiliate-card-magazine:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.affiliate-card-magazine img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.affiliate-card-magazine .info {
    flex: 1;
}

.affiliate-card-magazine .name {
    font-weight: 600;
    display: block;
}

.affiliate-card-magazine .desc {
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
}

.affiliate-card-magazine i {
    color: var(--blog-text-muted);
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
    border: 1px solid var(--blog-border);
}

.newsletter-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: var(--blog-text-muted);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--blog-border);
    border-radius: 3rem;
    font-size: 1rem;
    background: var(--blog-bg);
    color: var(--blog-text);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--blog-accent);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--blog-gradient);
    color: white;
    border: none;
    border-radius: 3rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: var(--blog-text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--blog-text-muted);
    margin-bottom: 2rem;
}

/* ========================================
   Pagination
   ======================================== */
.blog-pagination {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.blog-pagination .pagination {
    display: flex;
    gap: 0.5rem;
}

.blog-pagination .page-link {
    padding: 0.75rem 1.25rem;
    border-radius: 3rem;
    border: 1px solid var(--blog-border);
    color: var(--blog-text);
    background: var(--blog-card-bg);
    text-decoration: none;
    transition: all 0.2s;
}

.blog-pagination .page-link:hover,
.blog-pagination .page-item.active .page-link {
    background: var(--blog-gradient);
    border-color: transparent;
    color: white;
}

/* ========================================
   Category Page (.blog-category)
   ======================================== */
.blog-category {
    background: var(--blog-bg);
}

/* Category Hero */
.blog-category .category-hero {
    background: var(--blog-gradient);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.blog-category .category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.blog-category .category-hero .container {
    position: relative;
    z-index: 2;
}

.blog-category .blog-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.blog-category .blog-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.blog-category .blog-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.blog-category .blog-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,0.6);
}

.blog-category .blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.blog-category .category-hero-content {
    text-align: center;
    color: white;
}

.blog-category .category-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.blog-category .category-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-category .category-hero-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.blog-category .category-count {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-weight: 600;
}

/* Category Posts Grid */
.blog-category .post-card {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.blog-category .post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-category .post-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-category .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-category .post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.blog-category .post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-category .post-card:hover .post-card-overlay {
    opacity: 1;
}

.blog-category .post-card-overlay .read-more-btn {
    padding: 0.5rem 1.25rem;
    background: white;
    color: var(--blog-accent);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-category .post-card-body {
    padding: 1.5rem;
}

.blog-category .post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-category .post-card-title a {
    color: var(--blog-text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-category .post-card-title a:hover {
    color: var(--blog-accent);
}

.blog-category .post-card-excerpt {
    color: var(--blog-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-category .post-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
}

.blog-category .post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Category Sidebar */
.blog-category .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-category .sidebar-widget {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blog-category .sidebar-widget .widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Category List in Sidebar */
.blog-category .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-category .category-list li {
    margin-bottom: 0.5rem;
}

.blog-category .category-list li:last-child {
    margin-bottom: 0;
}

.blog-category .category-list li.active .category-link {
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    border-color: var(--blog-accent);
}

.blog-category .category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--blog-radius-sm);
    border: 1px solid var(--blog-border);
    text-decoration: none;
    color: var(--blog-text);
    transition: all 0.2s;
}

.blog-category .category-link:hover {
    background: rgba(102,126,234,0.08);
    border-color: var(--blog-accent);
}

.blog-category .category-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-accent);
}

.blog-category .category-name {
    flex: 1;
    font-weight: 500;
}

.blog-category .category-count {
    background: var(--blog-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blog-text-muted);
}

/* CTA Widget */
.blog-category .sidebar-widget.cta-widget {
    background: var(--blog-gradient);
    color: white;
    text-align: center;
}

.blog-category .cta-widget .cta-content .cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.blog-category .cta-widget h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-category .cta-widget p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

/* Affiliate Widget */
.blog-category .affiliate-widget .affiliate-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--blog-bg);
    border-radius: var(--blog-radius-sm);
    text-decoration: none;
    color: var(--blog-text);
    transition: all 0.2s;
}

.blog-category .affiliate-widget .affiliate-card:last-child {
    margin-bottom: 0;
}

.blog-category .affiliate-widget .affiliate-card:hover {
    background: rgba(102,126,234,0.08);
    transform: translateX(4px);
}

.blog-category .affiliate-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-category .affiliate-info {
    flex: 1;
}

.blog-category .affiliate-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}

.blog-category .affiliate-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
}

.blog-category .affiliate-arrow {
    color: var(--blog-text-muted);
}

/* Empty State */
.blog-category .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
}

.blog-category .empty-state i {
    font-size: 4rem;
    color: var(--blog-text-muted);
    opacity: 0.5;
    margin-bottom: 1.5rem;
    display: block;
}

.blog-category .empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-category .empty-state p {
    color: var(--blog-text-muted);
    margin-bottom: 1.5rem;
}

/* Responsive Category Page */
@media (max-width: 991px) {
    .blog-category .category-hero {
        padding: 3rem 0;
    }

    .blog-category .category-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .blog-category .category-hero {
        padding: 2rem 0;
    }

    .blog-category .category-hero-title {
        font-size: 1.75rem;
    }

    .blog-category .category-hero-description {
        font-size: 1rem;
    }

    .blog-category .post-card-body {
        padding: 1.25rem;
    }

    .blog-category .post-card-title {
        font-size: 1.125rem;
    }
}

/* Tag Filter */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(102,126,234,0.1);
    color: var(--blog-accent);
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.clear-filter:hover {
    background: var(--blog-accent);
    color: white;
}

/* Single post in grid - full width */
.magazine-grid .post-card:only-child {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 400px;
    max-width: 800px;
    margin: 0 auto;
}

.magazine-grid .post-card:only-child .post-card-image {
    aspect-ratio: 16/9;
    position: relative;
    height: auto;
}

.magazine-grid .post-card:only-child .post-card-content {
    padding: 2rem;
}

.magazine-grid .post-card:only-child .post-card-title {
    font-size: 1.75rem;
}

/* Newsletter Widget Enhancement */
.blog-single .newsletter-widget {
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    border: 1px solid rgba(102,126,234,0.2);
}

.blog-single .newsletter-widget .widget-title {
    color: var(--blog-accent);
    justify-content: center;
}

.blog-single .newsletter-widget .widget-title i {
    font-size: 1.25rem;
}

.blog-single .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-single .newsletter-form input {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    padding: 0.875rem 1rem;
    border-radius: var(--blog-radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-single .newsletter-form input:focus {
    outline: none;
    border-color: var(--blog-accent);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.blog-single .newsletter-form input::placeholder {
    color: var(--blog-text-muted);
}

.blog-single .newsletter-form button {
    background: var(--blog-gradient);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--blog-radius-sm);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-single .newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

/* Dark Mode Newsletter Fix */
[data-theme="dark"] .blog-single .newsletter-form input {
    background: var(--bg-dark, #1a1a2e);
    color: var(--text-light, #ffffff);
    border-color: var(--border-dark, #333);
}

[data-theme="dark"] .blog-single .newsletter-form input::placeholder {
    color: var(--text-muted-dark, #888);
}

[data-theme="dark"] .blog-single .newsletter-widget {
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    border-color: rgba(102,126,234,0.3);
}

/* Also fix for category page */
[data-theme="dark"] .blog-category .newsletter-form input,
[data-theme="dark"] .newsletter-form input {
    background: var(--bg-dark, #1a1a2e);
    color: var(--text-light, #ffffff);
    border-color: var(--border-dark, #333);
}

[data-theme="dark"] .blog-category .newsletter-form input::placeholder,
[data-theme="dark"] .newsletter-form input::placeholder {
    color: var(--text-muted-dark, #888);
}
