/* ==========================================================================
   Blog Pages — South Delhi Realty
   ========================================================================== */

/* ---- Blog Index ---- */
.blog-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #1e40af 100%);
    padding: 4rem 0;
    text-align: center;
    color: #fff;
}
.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.blog-hero p {
    font-size: 1.125rem;
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto;
}

/* Category pills */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0 1rem;
}
.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.125rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.blog-cat-pill:hover,
.blog-cat-pill.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Blog cards grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.75rem;
    padding: 1.5rem 0 3rem;
}
@media (min-width: 640px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
}
.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.blog-card-cat {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #007bff;
    background: #eff6ff;
    padding: 0.2rem 0.625rem;
    border-radius: 4px;
    width: fit-content;
}
.blog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin: 0;
}
.blog-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

/* ---- Article Page ---- */

/* Breadcrumb */
.blog-breadcrumb {
    padding: 1rem 0;
    font-size: 0.8125rem;
    color: #6b7280;
}
.blog-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}
.blog-breadcrumb a:hover {
    text-decoration: underline;
}
.blog-breadcrumb span {
    margin: 0 0.375rem;
    color: #9ca3af;
}

/* Article header */
.article-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}
.article-cat-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #007bff;
    background: #eff6ff;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
    margin: 0 0 1rem;
}
@media (min-width: 768px) {
    .article-header h1 {
        font-size: 2.5rem;
    }
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
}
.article-meta svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 3px;
}

/* Article layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
    }
}

/* Article body prose */
.article-body {
    max-width: 100%;
    overflow-wrap: break-word;
}
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eff6ff;
}
.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.75rem 0 0.75rem;
}
.article-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
    margin: 0 0 1.25rem 1.5rem;
    color: #374151;
    line-height: 1.8;
}
.article-body li {
    margin-bottom: 0.5rem;
}
.article-body strong {
    color: #111827;
    font-weight: 600;
}
.article-body a {
    color: #007bff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-body a:hover {
    color: #0056b3;
}
.article-body blockquote {
    border-left: 4px solid #007bff;
    background: #f0f7ff;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #1e40af;
}

/* Comparison tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.article-body thead th {
    background: #0a1628;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.article-body tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
.article-body tbody tr:nth-child(even) {
    background: #f9fafb;
}
.article-body tbody tr:hover {
    background: #eff6ff;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f7ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.highlight-box h3, .highlight-box h4 {
    color: #1e40af;
    margin-top: 0;
}
.highlight-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border-color: #fcd34d;
}
.highlight-box.warning h3, .highlight-box.warning h4 {
    color: #92400e;
}
.highlight-box.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #86efac;
}
.highlight-box.success h3, .highlight-box.success h4 {
    color: #166534;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
@media (min-width: 640px) {
    .pros-cons { grid-template-columns: 1fr 1fr; }
}
.pros-box, .cons-box {
    border-radius: 10px;
    padding: 1.25rem;
}
.pros-box {
    background: #ecfdf5;
    border: 1px solid #86efac;
}
.cons-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}
.pros-box h4 { color: #166534; margin-top: 0; }
.cons-box h4 { color: #991b1b; margin-top: 0; }
.pros-box ul, .cons-box ul {
    margin: 0;
    padding-left: 1.25rem;
}
.pros-box li::marker { color: #22c55e; }
.cons-box li::marker { color: #ef4444; }

/* TOC sidebar */
.article-sidebar {
    position: sticky;
    top: 5.5rem;
    align-self: start;
}
.toc-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}
.toc-box h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 0.75rem;
}
.toc-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.toc-box li {
    margin-bottom: 0.375rem;
}
.toc-box a {
    font-size: 0.8125rem;
    color: #374151;
    text-decoration: none;
    display: block;
    padding: 0.35rem 0.625rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.toc-box a:hover, .toc-box a.active {
    background: #eff6ff;
    color: #007bff;
}

/* CTA banner */
.blog-cta {
    background: linear-gradient(135deg, #0a1628 0%, #1e40af 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2.5rem 0;
}
.blog-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.blog-cta p {
    opacity: 0.85;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.blog-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #007bff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9375rem;
}
.blog-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.blog-cta.inline-cta {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.blog-cta.inline-cta h3 {
    font-size: 1.125rem;
    flex: 1;
    min-width: 200px;
}
.blog-cta.inline-cta p { display: none; }

/* FAQ accordion */
.faq-section {
    margin: 2.5rem 0;
}
.faq-section h2 {
    border-bottom: none !important;
}
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    background: #fff;
    user-select: none;
    transition: background 0.15s;
}
.faq-question:hover {
    background: #f9fafb;
}
.faq-question svg {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
}
.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Related articles */
.related-articles {
    margin: 3rem 0 1rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}
.related-articles h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.2s;
    align-items: flex-start;
}
.related-card:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}
.related-card-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.related-card-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}
.related-card-text p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* Key stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
@media (min-width: 640px) {
    .stats-row { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #007bff;
    display: block;
}
.stat-card .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    display: block;
}

/* Author box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    margin: 2rem 0;
}
.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.author-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem;
}
.author-info p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.share-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    margin-right: 0.25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    position: relative;
}
.share-btn svg {
    width: 16px;
    height: 16px;
}
.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}
.share-whatsapp:hover { background: #25D366; }
.share-twitter:hover { background: #000; }
.share-facebook:hover { background: #1877F2; }
.share-linkedin:hover { background: #0A66C2; }
.share-copy:hover { background: #007bff; }

.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #111827;
    color: #fff;
    font-size: 0.6875rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Print */
@media print {
    .article-sidebar, .blog-cta, .related-articles, .faq-section, .share-bar { display: none; }
    .article-layout { grid-template-columns: 1fr; }
}
