/* ===== BLOG HERO ===== */
.blog-hero {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: #fff;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.blog-hero-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.blog-hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== BLOG HUB GRID ===== */
.blog-category-section {
    margin-bottom: 3.5rem;
}

.blog-category-title {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-left: 5px solid var(--primary);
    padding-left: 1rem;
    border-bottom: 1px solid var(--border);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ===== BLOG CARD ===== */
.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    /* Stack vertically for better card layout */
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card-content {
    flex: 1;
    margin-bottom: 1.25rem;
}

.blog-card-content h3 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-content h3 {
    color: var(--secondary);
}

.blog-card-content p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.blog-date {
    font-size: 0.78rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-card-arrow {
    color: var(--primary);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(67, 97, 238, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
    background: var(--primary);
    color: #fff;
    transform: translateX(4px);
}

/* ===== BLOG HERO RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-hero {
        padding: 2.5rem 1.5rem;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Page-Specific Article Enhancements */
.blog-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444;
    font-weight: 500;
    margin-bottom: 2rem;
}

.blog-lead strong {
    color: var(--primary);
}

.step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem 5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.step-list li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.blog-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

/* ===== KEEP EXISTING ARTICLE STYLES BELOW ===== */
/* (Make sure not to delete your existing .blog-article, .blog-breadcrumbs, .image-placeholder etc. styles) */
/* Blog-specific styling to ensure readability */
.blog-main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.blog-article h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-article h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-article p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.blog-article ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-article li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.blog-article a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.blog-article a:hover {
    text-decoration: underline;
}

.blog-breadcrumbs {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.blog-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.image-placeholder {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #aaa;
    margin: 2rem 0;
    font-style: italic;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* ===== BLOG HUB GRID ===== */
.blog-category-section {
    margin-bottom: 3rem;
}

.blog-category-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.blog-card-content h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-card-content p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.blog-date {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    margin-left: 1rem;
    flex-shrink: 0;
}