/* Blog Styles - PincodesInfo */

/* Blog Container */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    padding-top: 120px;
    /* Account for fixed navbar (94px) + extra spacing */
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-title {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Article List */
.article-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card h2 {
    font-size: 1.75rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.article-card h2 a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    transform: translateX(4px);
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.article-body h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-body h3 {
    font-size: 1.5rem;
    color: #334155;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-body strong {
    color: #1a1a2e;
    font-weight: 600;
}

.article-body a {
    color: #667eea;
    text-decoration: underline;
}

.article-body a:hover {
    color: #764ba2;
}

/* Info Boxes */
.info-box {
    background: #f1f5f9;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.info-box.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.info-box.success {
    background: #d1fae5;
    border-left-color: #10b981;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-body th,
.article-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.article-body th {
    background: #f8fafc;
    font-weight: 600;
    color: #1a1a2e;
}

.article-body tr:hover {
    background: #f8fafc;
}

/* Related Articles */
.related-articles {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.related-articles h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.related-list {
    display: grid;
    gap: 1rem;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateX(8px);
}

.related-item-icon {
    font-size: 1.5rem;
}

.related-item-title {
    color: #1a1a2e;
    font-weight: 500;
}

/* Back to Blog Link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.back-to-blog:hover {
    transform: translateX(-4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .article-card {
        padding: 1.5rem;
    }
}

/* Featured Image Optimization from Fix */
.featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* NEW: Unified Alert Styles (Matches 'alert-info' used in content) */
.alert {
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid;
    background: #f8fafc;
}

.alert h3 {
    margin-top: 0 !important;
    font-size: 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.alert-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #15803d;
}

.alert-warning {
    background: #fefce8;
    border-left-color: #eab308;
    color: #854d0e;
}

.alert-danger {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* NEW: Table Styles */
.data-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.comparison-table th {
    background: #f1f5f9;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td,
.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.data-table tr:last-child td,
.comparison-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover,
.comparison-table tr:hover {
    background: #f8fafc;
}

/* Highlight Box (Specific util) */
.highlight-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}