:root {
    --blog-bg: #FFFFFF;
    --blog-text-main: #0F172A;
    --blog-text-secondary: #475569;
    --blog-primary: #059669;
    --blog-accent: #34D399;
    --blog-border: #E5E7EB;
    --blog-card-bg: #F8FAFC;
    --blog-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.premium-blog-section {
    padding: 100px 0;
    background-color: var(--blog-bg);
    color: var(--blog-text-main);
}

/* --- Section Header --- */
.section-header {
    margin-bottom: 60px;
}

.tag-label {
    display: inline-block;
    background: #D1FAE5;
    color: var(--blog-primary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-main {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--blog-text-main);
    margin-bottom: 15px;
}

.text-primary-accent {
    color: var(--blog-primary);
}

.subtitle-text {
    font-size: 1.1rem;
    color: var(--blog-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Articles Grid (Uniform 3-Column) --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.03);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-shadow-hover);
    border-color: var(--blog-primary);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    /* FIX: Force a uniform aspect ratio/height for all cards */
    height: 200px; 
    overflow: hidden;
    flex-shrink: 0;
    
    /* Fallback/Placeholder Styling */
    background-color: #EAF0F6; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0; /* Initial state for loading */
}

.article-image.loaded {
    opacity: 1;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

/* --- Fallback Icon Styling --- */
.image-fallback-icon {
    position: absolute;
    color: #9CA3AF; /* Subtle Gray */
    font-size: 3rem;
    z-index: 2;
    pointer-events: none;
}
/* Hide the icon once the image is loaded */
.article-image.loaded + .image-fallback-icon {
    display: none;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--blog-primary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    z-index: 3;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blog-text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--blog-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px dashed var(--blog-border);
}

.meta-item {
    font-size: 0.85rem;
    color: var(--blog-text-secondary);
}

/* --- Footer CTA --- */
.cta-footer {
    padding-top: 20px;
}

.btn-primary-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--blog-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border: 2px solid var(--blog-primary);
    border-radius: 50px;
}

.btn-primary-ghost i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-primary-ghost:hover {
    color: #fff;
    background: var(--blog-primary);
}

.btn-primary-ghost:hover i {
    transform: translateX(3px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .title-main {
        font-size: 2rem;
    }
    .card-image-wrapper {
        height: 180px;
    }
}