/* ==========================================================================
   THE HINDI POST - ARTICLE TYPOGRAPHY & LAYOUT STYLES
   Scoped strictly to article and news card elements. Header and nav remain untouched.
   ========================================================================== */

.article-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0.5rem 1rem 2rem 1rem; 
    color: #111827; 
    flex-grow: 1; 
}

/* --- MAIN ARTICLE HEADLINE & SUBHEADLINE --- */
.article-headline { 
    font-family: 'Martel', 'Rozha One', serif; 
    font-weight: 800; 
    font-size: 44px; 
    line-height: 1.35; 
    margin-bottom: 0.85rem; 
    word-wrap: break-word; 
    color: #111827;
    letter-spacing: -0.01em;
}

.article-subheadline { 
    font-family: 'Mukta', sans-serif; 
    font-size: 21px; 
    color: #4b5563; 
    line-height: 1.55; 
    margin-top: 0; 
    margin-bottom: 0.85rem; 
    font-weight: 500; 
}

/* Rich Text in Headline & Subheadline */
.article-headline b, .article-headline strong { font-weight: 900; color: inherit; }
.article-headline i, .article-headline em { font-style: italic; color: inherit; }
.article-headline u { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.article-headline a { color: inherit; text-decoration: underline; text-decoration-color: #1d4ed8; transition: color 0.2s; }
.article-headline a:hover { color: #1d4ed8; }

.article-subheadline b, .article-subheadline strong { font-weight: 700; color: inherit; }
.article-subheadline i, .article-subheadline em { font-style: italic; }
.article-subheadline u { text-decoration: underline; }
.article-subheadline a { color: #1d4ed8; text-decoration: underline; }

/* --- BODY STYLES & CMS GAP CONTROLLER --- */
.article-body { 
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif; 
    font-size: 19px; 
    line-height: 1.95; 
    color: #1f2937; 
    letter-spacing: 0.01em;
}

.article-body p { margin-bottom: 0.75rem; } 
.article-body p:empty { display: none !important; }

.article-body p:first-of-type {
    margin-top: 0.25rem !important; 
}

.article-body br {
    display: inline !important;
    margin: 0 !important;
    content: normal !important; 
}

.article-body ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 0.85rem; }
.article-body ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 0.85rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body hr { margin: 2rem 0; border: 0; border-top: 1px solid #e5e7eb; }

.article-body b u, 
.article-body u b,
.article-body strong u,
.article-body u strong {
    display: inline-block;
    margin-top: 0.25rem !important;    
    margin-bottom: 0.25rem !important; 
    font-size: 1.15rem; 
    line-height: 1.3;   
}

.article-body b, .article-body strong { font-weight: 700; }
.article-body i, .article-body em { font-style: italic; }
.article-body u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.article-body a { 
    color: #1d4ed8; text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: 2px; word-break: break-word; overflow-wrap: break-word; cursor: pointer;
}
.article-body a:hover { color: #1e40af; text-decoration-thickness: 2px; }

/* --- HEADINGS INSIDE THE ARTICLE --- */
.article-body h2 { 
    font-family: 'Martel', 'Rozha One', serif; 
    font-weight: 700; 
    font-size: 1.8rem; 
    margin-top: 0.75rem !important; 
    margin-bottom: 1.15rem !important; 
    display: block; 
    line-height: 1.3; 
}
.article-body h3 { 
    font-family: 'Martel', 'Rozha One', serif; 
    font-weight: 700; 
    font-size: 1.5rem; 
    margin-top: 0.75rem !important; 
    margin-bottom: 1.15rem !important; 
    display: block; 
    line-height: 1.3; 
}
.article-body h4 { 
    font-family: 'Martel', 'Rozha One', serif; 
    font-weight: 700; 
    font-size: 1.2rem; 
    margin-top: 0.75rem !important; 
    margin-bottom: 1.15rem !important; 
    display: block; 
    line-height: 1.3; 
}

.article-body br + h2, .article-body br + h3, .article-body br + h4 { display: none !important; }
.article-body h2 + br, .article-body h3 + br, .article-body h4 + br { display: none !important; }

/* Blockquotes & Speech Boxes */
.article-body blockquote { 
    border-left: 4px solid #3b82f6; 
    margin: 2rem 0; 
    font-style: italic; 
    color: #4b5563; 
    background: #f8fafc; 
    padding: 1.5rem; 
    border-radius: 0 8px 8px 0; 
}
.article-body blockquote.quote-box {
    border-radius: 8px !important;
    border-left-width: 5px !important;
}
.article-body .speech-box {
    padding: 1.75rem;
    border-radius: 8px;
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    line-height: 1.8;
    margin: 2rem 0;
    border: 1px solid #e7d8c9;
    border-left: 5px solid #d97706;
}
.article-body .speech-header {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-body .speech-body {
    font-size: 1.1rem;
}
.article-body blockquote p { margin-bottom: 0.75rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Image & Caption Styling */
.article-figure { max-width: 100%; margin: -0.75rem auto 0.5rem auto; padding: 0; border: none; }
.article-figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 8px; }
.article-body > p > img:only-child, .article-body > img { max-width: 100%; height: auto; display: block; margin: 2rem auto; border-radius: 8px; }

.article-image-caption { 
    font-family: 'Mukta', sans-serif; 
    font-size: 14px; 
    color: #6b7280; 
    margin-top: 0.5rem; 
    margin-bottom: 0.75rem !important; 
    text-align: center; 
    display: block; 
    line-height: 1.25 !important; 
}

/* Tables */
.table-scroll-wrapper { position: relative; margin: 1.5rem 0; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.article-body .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; background: white; }
.article-body table { width: 100%; border-collapse: collapse; min-width: 600px; font-family: 'Mukta', sans-serif; font-size: 15px; margin: 0; }
.article-body caption { caption-side: bottom; padding: 8px; font-size: 0.85rem; color: #6b7280; text-align: left; border-top: 1px solid #f3f4f6; background: #fdfdfd; font-style: italic; }
.article-body th, .article-body td { padding: 12px 16px; vertical-align: top; line-height: 1.5; color: #374151; }
.article-body th { background-color: #f8fafc; font-weight: 700; text-align: left; color: #111827; white-space: nowrap; border-bottom: 2px solid #e2e8f0; }
.article-body td { border-bottom: 1px solid #f1f5f9; }
.article-body tr:last-child td { border-bottom: none; }
.table-container.striped tr:nth-child(even) { background-color: #f9fafb; }
.table-container.grid table { border: 1px solid #cbd5e1; }
.table-container.grid th, .table-container.grid td { border: 1px solid #cbd5e1; }
table.sortable th { cursor: pointer; user-select: none; position: relative; padding-right: 24px; }
table.sortable th:hover { background-color: #eff6ff; color: #1d4ed8; }
table.sortable th::after { content: '\f0dc'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 10px; opacity: 0.5; }
.table-scroll-wrapper::after { content: '\f061'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1) 80%); display: flex; align-items: center; justify-content: center; color: #94a3b8; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; font-size: 12px; padding-left: 10px; }
.table-scroll-wrapper.is-scrollable::after { opacity: 1; }
.table-scroll-wrapper.scrolled-end::after { opacity: 0; }

/* Embeds */
.embed-container { margin: 2rem 0; display: block !important; text-align: center; width: 100%; max-width: 100%; height: auto !important; overflow: visible !important; }
.embed-caption { 
    margin-top: 10px; 
    padding: 12px; 
    background: #f9fafb; 
    border-left: 4px solid #1d4ed8; 
    color: #374151; 
    font-family: 'Mukta', sans-serif; 
    font-size: 0.95rem; 
    width: 100%; 
    max-width: 550px; 
    text-align: left; 
    border-radius: 4px; 
    line-height: 1.25 !important; 
    word-wrap: break-word; 
}
.embed-caption b, .embed-caption strong { font-weight: 700; }
.embed-caption i, .embed-caption em { font-style: italic; }
.embed-caption a { color: #1d4ed8; text-decoration: underline; }
iframe.embed-responsive { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.twitter-tweet { margin: 0 auto !important; max-width: 550px !important; width: 100% !important; }

.telegram-embed-placeholder {
    display: block !important;
    width: 100%;
    max-width: 500px;
    margin: 1.5rem auto;
    height: auto !important;
    min-height: 150px;
    overflow: visible !important;
}
.telegram-embed-placeholder iframe {
    display: block !important;
    width: 100% !important;
    max-height: none !important;
    border: none !important;
    margin: 0 auto !important;
    min-height: 250px !important;
}

/* Meta & Tags */
.article-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }
.author-name { font-weight: 600; font-family: 'Mukta', sans-serif; }
.publish-date { font-size: 0.9rem; color: #6b7280; font-family: 'Mukta', sans-serif; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background-color: #f3f4f6; color: #374151; border: none; cursor: pointer; font-size: 1rem; }

.article-tags { 
    display: flex; 
    flex-wrap: nowrap; 
    gap: 0.5rem; 
    margin-bottom: 0.5rem; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    padding-bottom: 4px; 
}
.article-tags::-webkit-scrollbar { display: none; }
.tag { 
    background: rgba(220, 38, 38, 0.1); 
    color: #dc2626; 
    padding: 0.25rem 0.75rem; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    white-space: nowrap; 
    flex-shrink: 0;
}

/* Utility Class Override */
.font-merriweather { font-family: 'Martel', 'Rozha One', serif !important; }

/* Responsive Adjustments */
@media (max-width: 768px) { 
    .article-headline { font-size: 28px; line-height: 1.35; } 
    .article-subheadline { font-size: 18px; line-height: 1.45; } 
    .article-body { font-size: 17px; line-height: 1.85; }
}
