/* ========================================
   TEXTELLENT BLOG MODULE - CSS
   ======================================== */

/* Blog Section Wrapper */
.txtl-blog-section {
    padding: 80px 20px;
    background: #ffffff;
}

.txtl-blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.txtl-blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.txtl-blog-badge {
    display: inline-block;
    background: #e8edff;
    color: #5C76FF;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.txtl-blog-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

/* Blog Grid */
.txtl-blog-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 60px;
}

/* Column Variations */
.txtl-blog-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.txtl-blog-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.txtl-blog-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* List Layout */
.txtl-blog-layout-list {
    grid-template-columns: 1fr;
}

.txtl-blog-layout-list .txtl-blog-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: center;
}

/* Blog Card */
.txtl-blog-card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.txtl-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(92, 118, 255, 0.15);
    border-color: #5C76FF;
}

/* Featured Image */
.txtl-blog-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8f9ff;
}

.txtl-blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.txtl-blog-card:hover .txtl-blog-image {
    transform: scale(1.05);
}

/* Category Badge */
.txtl-blog-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #5C76FF 25%, #945CFF 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 12px rgba(92, 118, 255, 0.3);
}

/* Card Content */
.txtl-blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta Information */
.txtl-blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.txtl-blog-date,
.txtl-blog-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7a7a7a;
    font-family: 'Poppins', sans-serif;
}

.txtl-blog-date svg,
.txtl-blog-author svg {
    color: #5C76FF;
}

/* Post Title */
.txtl-blog-post-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
    flex-grow: 0;
}

.txtl-blog-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.txtl-blog-post-title a:hover {
    color: #5C76FF;
}

/* Excerpt */
.txtl-blog-excerpt {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    flex-grow: 1;
}

/* Read More Link */
.txtl-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #5C76FF;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.txtl-blog-read-more:hover {
    gap: 10px;
    color: #945CFF;
}

.txtl-blog-read-more svg {
    transition: transform 0.3s ease;
}

.txtl-blog-read-more:hover svg {
    transform: translateX(4px);
}

/* CTA Button */
.txtl-blog-cta-wrapper {
    text-align: center;
    margin-top: 20px;
}

.txtl-blog-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #5C76FF 25%, #945CFF 100%);
    color: #ffffff;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 16px rgba(92, 118, 255, 0.3);
    transition: all 0.3s ease;
}

.txtl-blog-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(92, 118, 255, 0.4);
    color: #ffffff;
}

/* Empty State */
.txtl-blog-empty {
    text-align: center;
    padding: 60px 20px;
}

.txtl-blog-empty p {
    font-size: 18px;
    color: #7a7a7a;
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .txtl-blog-section {
        padding: 60px 20px;
    }
    
    .txtl-blog-title {
        font-size: 32px;
    }
    
    .txtl-blog-col-3,
    .txtl-blog-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .txtl-blog-layout-list .txtl-blog-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .txtl-blog-section {
        padding: 60px 16px;
    }
    
    .txtl-blog-title {
        font-size: 28px;
    }
    
    .txtl-blog-col-2,
    .txtl-blog-col-3,
    .txtl-blog-col-4 {
        grid-template-columns: 1fr;
    }
    
    .txtl-blog-image-wrapper {
        height: 200px;
    }
    
    .txtl-blog-content {
        padding: 20px;
    }
    
    .txtl-blog-post-title {
        font-size: 18px;
    }
    
    .txtl-blog-excerpt {
        font-size: 14px;
    }
    
    .txtl-blog-cta-btn {
        width: 100%;
        padding: 16px 32px;
        font-size: 16px;
    }
}
