/**
 * PRIMARY BLOG POST CARD DESIGN - Global Component
 * 
 * This is the standardized blog post card design used across all pages.
 * Include this file wherever you need to display blog post cards.
 * 
 * Used in: Upskilled Page, Career Counselling Page, and any other page with blog listings
 * 
 * @version 1.0.0
 * @author CPB Theme
 */

/* ============================================================================
   ARTICLES SECTION WRAPPER
   ============================================================================ */

.articles-blog-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.articles-blog-section .container {
    max-width: 1280px;
}

.articles-section-heading {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #1A1A1A;
    margin-bottom: 32px;
}

/* ============================================================================
   BLOG POST CARDS GRID
   ============================================================================ */

.articles-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* ============================================================================
   INDIVIDUAL BLOG POST CARD
   ============================================================================ */

.blog-post-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
}

/* Card Image */
.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
}

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

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

/* Card Content */
.blog-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
}

.blog-card-heading-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 12px;
    width: 100%;
}

/* Meta Information (Category + Date) */
.blog-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-author-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #6941C6;
}

.meta-dot,
.meta-separator {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #667085;
    line-height: 1;
}

.blog-date-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
}

/* Heading with Icon */
.blog-heading-icon-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 100%;
}

.blog-card-heading {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #1A1A1A;
    margin: 0;
}

.blog-card-heading a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-heading a:hover {
    color: #6941C6;
}

.blog-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 0 0;
    width: 24px;
    height: 28px;
}

.blog-icon-wrapper i {
    font-size: 24px;
    color: #1A1A1A;
    transition: all 0.3s ease;
}

.blog-post-card:hover .blog-icon-wrapper i {
    transform: translateX(4px);
    color: #6941C6;
}

/* Supporting Text */
.blog-supporting-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #667085;
    margin: 0;
}

/* Category Badges */
.blog-categories-badges {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 10px;
    background: #F9F5FF;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #6941C6;
    mix-blend-mode: multiply;
}

.badge-item:nth-child(2) {
    background: #F8F9FC;
    color: #363F72;
}

.badge-item:nth-child(3) {
    background: #F0F9FF;
    color: #026AA2;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.blog-pagination-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0;
    gap: 20px;
    border-top: 1px solid #EAECF0;
}

.pagination-button-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pagination-button-nav:hover {
    color: #1A1A1A;
}

.pagination-button-nav i {
    font-size: 20px;
}

.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 2px;
}

.pagination-number-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #667085;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number-btn:hover {
    background: #F9FAFC;
    color: #1A1A1A;
}

.pagination-active {
    background: #F9F5FF;
    color: #7F56D9;
}

.pagination-ellipsis {
    padding: 12px 8px;
    color: #667085;
    font-family: 'Inter', sans-serif;
}

/* ============================================================================
   NO ARTICLES MESSAGE
   ============================================================================ */

.no-articles-message {
    text-align: center;
    padding: 80px 20px;
    background: #F9FAFC;
    border-radius: 12px;
    margin: 40px 0;
}

.no-articles-message p {
    font-family: 'Inter', sans-serif;
    color: #667085;
    margin-bottom: 16px;
}

.no-articles-message p:last-child {
    margin-bottom: 0;
}

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

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

@media (max-width: 768px) {
    .articles-blog-section {
        padding: 60px 0;
    }
    
    .articles-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-pagination-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .pagination-numbers-wrap {
        order: -1;
    }
}

@media (max-width: 576px) {
    .blog-card-heading {
        font-size: 20px;
        line-height: 28px;
    }
    
    .blog-supporting-text {
        font-size: 14px;
        line-height: 22px;
    }
}

