/* Premium Blog Styles - Compatible with Your Theme */
.toc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #f9f9f9;
}

.toc-table td {
    padding: 8px 0;
    border: none;
}

.toc-title {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 15px;
    color: #333;
}

.toc-item {
    padding-left: 0;
    position: relative;
}

.toc-item a {
    text-decoration: none;
    color: #333;
}

.toc-item a::after {
    content: "....................";
    float: right;
    letter-spacing: 2px;
    color: #ccc;
}

.toc-subitem {
    padding-left: 20px;
    position: relative;
}

.toc-subitem a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.toc-subitem a::after {
    content: "....................";
    float: right;
    letter-spacing: 2px;
    color: #ccc;
}

.toc-page {
    text-align: right;
    width: 50px;
    color: #333;
}
/* Blog Images */
.blog-image {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    border-radius: 12px;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 30px;
    margin: 30px 0;
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #dc2626;
}

.table-of-contents ul {
    margin: 0;
    padding-left: 25px;
}

.table-of-contents li {
    margin: 8px 0;
}

.table-of-contents a {
    text-decoration: none;
    color: #333;
}

.table-of-contents a:hover {
    color: #dc2626;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    font-size: 14px;
}

.comparison-table th {
    background: #dc2626;
    color: white;
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.comparison-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.comparison-table tr:nth-child(even) {
    background: #f9f9f9;
}

.comparison-table tr:hover {
    background: #f1f1f1;
}

/* Blog Headings */
.blog-container h2 {
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc2626;
}

.blog-container h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
    
    .table-of-contents {
        padding: 15px;
    }
}
/* Table of Contents Styles */
.premium-blog-toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 0;
    margin: 30px 0 40px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.toc-header {
    background: #dc2626;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toc-icon {
    font-size: 20px;
}

.toc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.toc-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.toc-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.toc-content {
    padding: 20px;
    transition: all 0.3s;
}

.toc-content.collapsed {
    display: none;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 12px 0;
    position: relative;
}

.toc-link {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 14px;
}

.toc-link:hover {
    color: #dc2626;
    transform: translateX(5px);
}

.toc-bullet {
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
    display: inline-block;
}

.toc-level-h3 .toc-bullet {
    width: 4px;
    height: 4px;
    background: #666;
}

.toc-text {
    flex: 1;
}

/* Active section highlighting */
.toc-link.active {
    color: #dc2626;
    font-weight: 600;
}

.toc-link.active .toc-bullet {
    background: #dc2626;
    transform: scale(1.5);
}

/* Section Images Styles */
.section-image-container {
    margin: 30px 0;
    clear: both;
}

.section-image-align-center {
    text-align: center;
}

.section-image-align-left {
    float: left;
    margin-right: 20px;
    max-width: 45%;
}

.section-image-align-right {
    float: right;
    margin-left: 20px;
    max-width: 45%;
}

.section-image-figure {
    margin: 0;
    display: inline-block;
}

.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    .section-image-align-left,
    .section-image-align-right {
        float: none;
        margin: 20px auto;
        max-width: 100%;
        text-align: center;
    }
    
    .toc-list {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .toc-item {
        margin: 8px 0;
    }
    
    .toc-text {
        font-size: 13px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}
/* Blog Container */
.premium-blog-container {
    margin: 0 -15px;
}

/* Grid Layout */
.premium-blog-grid {
    display: grid;
    grid-gap: 30px;
    margin-bottom: 50px;
}

.premium-blog-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.premium-blog-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.premium-blog-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Blog Card Styles */
.premium-blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.premium-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-red, #dc2626);
}

.premium-blog-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.premium-blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-blog-card:hover .premium-blog-card-thumbnail img {
    transform: scale(1.1);
}

.premium-blog-card-categories {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-link {
    background: var(--primary-red, #dc2626);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--primary-red-dark, #991b1b);
    color: #fff;
}

.premium-blog-card-content {
    padding: 30px 25px 35px;
}

.premium-blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.premium-blog-card-title a {
    color: var(--dark-gray, #111827);
    text-decoration: none;
    transition: color 0.3s ease;
}

.premium-blog-card-title a:hover {
    color: var(--primary-red, #dc2626);
}

.premium-blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--medium-gray, #6b7280);
    flex-wrap: wrap;
}

.premium-blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-blog-card-meta i {
    color: var(--primary-red, #dc2626);
    font-size: 14px;
}

.premium-blog-card-excerpt {
    color: var(--medium-gray, #4b5563);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}

.premium-blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red, #dc2626);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.premium-blog-card-read-more i {
    transition: transform 0.3s ease;
}

.premium-blog-card-read-more:hover {
    color: var(--primary-red-dark, #991b1b);
    gap: 12px;
}

/* List Layout */
.premium-blog-list-item {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-blog-list-row {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
}

.premium-blog-list-thumbnail {
    flex: 0 0 300px;
    border-radius: 15px;
    overflow: hidden;
}

.premium-blog-list-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.premium-blog-list-item:hover .premium-blog-list-thumbnail img {
    transform: scale(1.05);
}

.premium-blog-list-content {
    flex: 1;
}

/* Single Post Styles */
.premium-blog-single-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.premium-blog-single-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff;
    padding: 60px 0;
}

.premium-blog-single-hero-content .post-categories {
    margin-bottom: 20px;
}

.premium-blog-single-hero-content .category-badge {
    background: var(--primary-red, #dc2626);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.premium-blog-single-hero-content .post-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.premium-blog-single-hero-content .post-meta {
    display: flex;
    gap: 25px;
    font-size: 16px;
    opacity: 0.9;
}

.premium-blog-single-hero-content .post-meta i {
    color: var(--primary-red, #dc2626);
    margin-right: 6px;
}

.premium-blog-single-article {
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.entry-header .post-categories {
    margin-bottom: 20px;
}

.entry-header .entry-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-gray, #111827);
}

.entry-header .entry-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--medium-gray, #6b7280);
    font-size: 16px;
}

.entry-header .entry-meta i {
    color: var(--primary-red, #dc2626);
    margin-right: 6px;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-gray, #1f2937);
}

.entry-content p {
    margin-bottom: 30px;
}

.entry-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 50px 0 25px;
    color: var(--dark-gray, #111827);
}

.entry-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--dark-gray, #111827);
}

.entry-content img {
    border-radius: 20px;
    margin: 40px 0;
}

.entry-content blockquote {
    background: linear-gradient(135deg, var(--light-gray, #f3f4f6) 0%, #fff 100%);
    border-left: 6px solid var(--primary-red, #dc2626);
    padding: 40px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-style: italic;
    margin: 40px 0;
    color: var(--dark-gray, #111827);
}

.entry-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray, #f3f4f6);
}

.post-tags {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--dark-gray, #111827);
}

.tag-link {
    background: var(--light-gray, #f3f4f6);
    color: var(--medium-gray, #4b5563);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--primary-red, #dc2626);
    color: #fff;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--dark-gray, #111827);
}

.share-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-link.facebook {
    background: #1877f2;
}

.share-link.twitter {
    background: #1da1f2;
}

.share-link.linkedin {
    background: #0077b5;
}

.share-link.email {
    background: var(--dark-gray, #111827);
}

.share-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.author-bio {
    display: flex;
    gap: 30px;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 60px 0;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 4px solid var(--primary-red, #dc2626);
}

.author-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray, #111827);
}

.author-description {
    color: var(--medium-gray, #4b5563);
    line-height: 1.8;
}

/* Filter Section */
.premium-blog-filter {
    text-align: center;
    margin: 40px 0;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--light-gray, #f3f4f6);
    color: var(--medium-gray, #4b5563);
    padding: 12px 30px;
    margin: 0 5px 10px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red, #dc2626);
    border-color: var(--primary-red, #dc2626);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Pagination */
.premium-blog-pagination {
    text-align: center;
    margin: 60px 0 30px;
}

.premium-blog-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-blog-pagination li {
    display: inline-block;
}

.premium-blog-pagination a,
.premium-blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid var(--light-gray, #f3f4f6);
    border-radius: 12px;
    color: var(--medium-gray, #4b5563);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.premium-blog-pagination a:hover,
.premium-blog-pagination .current {
    background: var(--primary-red, #dc2626);
    border-color: var(--primary-red, #dc2626);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

/* Sidebar Widgets */
.premium-blog-sidebar {
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.premium-blog-sidebar .widget {
    margin-bottom: 40px;
}

.premium-blog-sidebar .widget:last-child {
    margin-bottom: 0;
}

.premium-blog-sidebar .widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-red, #dc2626);
    color: var(--dark-gray, #111827);
}

/* Recent Posts Widget */
.premium-recent-posts-widget .recent-post-widget-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray, #f3f4f6);
}

.premium-recent-posts-widget .recent-post-widget-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-widget-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
}

.recent-post-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-widget-content h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-widget-content h4 a {
    color: var(--dark-gray, #111827);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-widget-content h4 a:hover {
    color: var(--primary-red, #dc2626);
}

.recent-post-widget-content .post-date {
    font-size: 12px;
    color: var(--medium-gray, #6b7280);
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-post-widget-content .post-date::before {
    content: '\f133';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: var(--primary-red, #dc2626);
}

/* Category Widget */
.premium-blog-category-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-blog-category-widget li {
    margin-bottom: 12px;
}

.premium-blog-category-widget li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--light-gray, #f3f4f6);
    border-radius: 10px;
    color: var(--dark-gray, #111827);
    text-decoration: none;
    transition: all 0.3s ease;
}

.premium-blog-category-widget li a:hover {
    background: var(--primary-red, #dc2626);
    color: #fff;
    transform: translateX(5px);
}

.premium-blog-category-widget li a span {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red, #dc2626);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .premium-blog-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .premium-blog-single-hero-content .post-title {
        font-size: 3rem;
    }
    
    .entry-header .entry-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .premium-blog-grid.columns-3,
    .premium-blog-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .premium-blog-single-wrapper.left-sidebar,
    .premium-blog-single-wrapper.right-sidebar {
        flex-direction: column;
    }
    
    .premium-blog-sidebar {
        margin-top: 50px;
    }
    
    .premium-blog-list-row {
        flex-direction: column;
        text-align: center;
    }
    
    .premium-blog-list-thumbnail {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .premium-blog-grid.columns-2,
    .premium-blog-grid.columns-3,
    .premium-blog-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .premium-blog-single-hero {
        min-height: 400px;
    }
    
    .premium-blog-single-hero-content .post-title {
        font-size: 2rem;
    }
    
    .premium-blog-single-hero-content .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .premium-blog-single-article {
        padding: 30px 20px;
    }
    
    .entry-header .entry-title {
        font-size: 2rem;
    }
    
    .entry-header .entry-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .premium-blog-card-content {
        padding: 25px 20px;
    }
    
    .premium-blog-card-title {
        font-size: 1.3rem;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .entry-content h2 {
        font-size: 1.8rem;
    }
    
    .entry-content h3 {
        font-size: 1.5rem;
    }
    
    .post-share {
        justify-content: center;
    }
    
    .premium-blog-pagination a,
    .premium-blog-pagination span {
        width: 40px;
        height: 40px;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}