/* ============================================================
   JatavHistory.com — UNIVERSAL BLOG CSS
   One reusable stylesheet for article pages + blog listing cards.
   Best article wrapper: <article class="blog-article"> ... </article>
   Also supports the current .chamar-regiment-article wrapper.
   ============================================================ */

:root {
  --jh-blue: #1746a2;
  --jh-blue-dark: #0c285f;
  --jh-blue-light: #2f70e8;
  --jh-ink: #1e293b;
  --jh-muted: #64748b;
  --jh-line: #dce5f2;
  --jh-soft: #f4f7fc;
  --jh-white: #ffffff;
  --jh-radius: 18px;
  --jh-shadow: 0 10px 28px rgba(15, 40, 90, .08);
}

/* Basic safety and media responsiveness */
.blog-article, .chamar-regiment-article, .article-content, .dalit-content,
main article {
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto;
  color: var(--jh-ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}
.blog-article *, .chamar-regiment-article *, .article-content *, .dalit-content *,
main article * { box-sizing: border-box; }

.blog-article p, .chamar-regiment-article p, .article-content p,
.dalit-content p, main article p { margin: 0 0 19px; }

.blog-article h1, .chamar-regiment-article h1, .article-content h1,
.dalit-content h1, main article h1 {
  margin: 0 0 18px;
  color: var(--jh-blue-dark);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -.7px;
  text-wrap: balance;
}
.blog-article h2, .chamar-regiment-article h2, .article-content h2,
.dalit-content h2, main article h2 {
  margin: 42px 0 16px;
  padding: 0 0 11px;
  border-bottom: 2px solid var(--jh-line);
  color: var(--jh-blue-dark);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.3px;
  scroll-margin-top: 100px;
}
.blog-article h2::after, .chamar-regiment-article h2::after,
.article-content h2::after, .dalit-content h2::after, main article h2::after {
  content: ""; display: block; width: 62px; height: 3px;
  margin: 10px 0 -14px; border-radius: 5px;
  background: linear-gradient(90deg, var(--jh-blue-light), #f0b84b);
}
.blog-article h3, .chamar-regiment-article h3, .article-content h3,
.dalit-content h3, main article h3 {
  margin: 26px 0 10px; color: #163b7d;
  font-size: clamp(19px, 2.5vw, 22px); font-weight: 750; line-height: 1.42;
}
.blog-article h4, .chamar-regiment-article h4, .article-content h4,
.dalit-content h4, main article h4 { color: var(--jh-blue-dark); line-height: 1.45; }

.blog-article a, .chamar-regiment-article a, .article-content a,
.dalit-content a, main article a {
  color: #174fc4; text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color .18s ease;
}
.blog-article a:hover, .chamar-regiment-article a:hover,
.article-content a:hover, .dalit-content a:hover, main article a:hover { color: #09265f; }

.blog-article ul, .blog-article ol, .chamar-regiment-article ul,
.chamar-regiment-article ol, .article-content ul, .article-content ol,
.dalit-content ul, .dalit-content ol, main article ul, main article ol {
  margin: 0 0 22px; padding-left: 26px;
}
.blog-article li, .chamar-regiment-article li, .article-content li,
.dalit-content li, main article li { margin: 0 0 9px; padding-left: 2px; }

/* Images: show the whole image; don't force crop */
.blog-article img, .chamar-regiment-article img, .article-content img,
.dalit-content img, main article img {
  max-width: 100%; height: auto;
}
.blog-article img.responsive-img, .chamar-regiment-article img.responsive-img,
.article-content img.responsive-img, .dalit-content img.responsive-img,
main article img.responsive-img {
  display: block; width: 100%; height: auto; margin: 24px auto 30px;
  border: 1px solid var(--jh-line); border-radius: var(--jh-radius);
  box-shadow: var(--jh-shadow); object-fit: contain;
}
.blog-article figure, .chamar-regiment-article figure, .article-content figure,
.dalit-content figure, main article figure { margin: 25px 0 30px; }
.blog-article figcaption, .chamar-regiment-article figcaption,
.article-content figcaption, .dalit-content figcaption, main article figcaption {
  margin-top: 9px; color: var(--jh-muted); font-size: 14px; line-height: 1.55; text-align: center;
}

/* Optional hero banner. Add class="article-hero" around title/subtitle. */
.blog-article .article-hero, .chamar-regiment-article .article-hero,
.article-content .article-hero, .dalit-content .article-hero,
main article .article-hero, .chamar-regiment-article .cr-article-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 12px 0 28px; padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 24px;
  background: radial-gradient(circle at 92% 5%, rgba(244,190,75,.23), transparent 27%),
              linear-gradient(135deg, #0c285f, #1746a2 58%, #2f70e8);
  box-shadow: 0 16px 36px rgba(23,70,162,.18);
}
.blog-article .article-hero h1, .chamar-regiment-article .article-hero h1,
.article-content .article-hero h1, .dalit-content .article-hero h1,
main article .article-hero h1, .chamar-regiment-article .cr-article-hero h1 {
  margin: 0 0 13px; color: #fff; font-size: clamp(29px, 4.2vw, 43px); line-height: 1.17;
}
.blog-article .article-subtitle, .chamar-regiment-article .article-subtitle,
.article-content .article-subtitle, .dalit-content .article-subtitle,
main article .article-subtitle, .chamar-regiment-article .cr-hero-subtitle {
  margin: 0; color: #e8f1ff; font-size: clamp(15px, 2vw, 18px); line-height: 1.7;
}

/* Article metadata */
.article-meta, .blog-article .meta, .chamar-regiment-article .meta,
.article-content .meta, .dalit-content .meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  margin: 0 0 22px; color: var(--jh-muted); font-size: 14px;
}

/* Table of contents */
.table-of-contents, .cr-table-of-contents {
  margin: 26px 0 34px; padding: 21px 23px;
  border: 1px solid #d5e2f8; border-radius: var(--jh-radius);
  background: linear-gradient(145deg, #f8fbff, #eef5ff);
  box-shadow: 0 7px 20px rgba(24,65,145,.06);
}
.table-of-contents h2, .cr-table-of-contents h2 {
  margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; font-size: 21px !important;
}
.table-of-contents h2::after, .cr-table-of-contents h2::after { display: none !important; }
.table-of-contents ul, .cr-table-of-contents ul {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 22px;
  margin: 0 !important; padding-left: 20px !important;
}
.table-of-contents li, .cr-table-of-contents li { margin: 0 !important; line-height: 1.55; }
.table-of-contents a, .cr-table-of-contents a { font-size: 15px; font-weight: 650; text-decoration: none; }

/* Highlight / key facts / note boxes */
.highlight, .key-takeaway, .fact-box, .info-box, .article-note,
.blog-article blockquote, .chamar-regiment-article blockquote,
.article-content blockquote, .dalit-content blockquote, main article blockquote {
  margin: 24px 0; padding: 18px 22px; border: 1px solid #cbdcfb;
  border-left: 5px solid var(--jh-blue-light); border-radius: 13px;
  background: #f2f7ff; color: #1d3154;
}
.blog-article blockquote p:last-child, .chamar-regiment-article blockquote p:last-child,
.article-content blockquote p:last-child, .dalit-content blockquote p:last-child,
main article blockquote p:last-child { margin-bottom: 0; }

/* Tables */
.seo-table-wrap, .table-responsive, .blog-table-wrap {
  width: 100%; margin: 23px 0 30px; overflow-x: auto;
  border: 1px solid var(--jh-line); border-radius: 15px; background: #fff;
  box-shadow: 0 6px 18px rgba(15,35,75,.045); -webkit-overflow-scrolling: touch;
}
.blog-article table, .chamar-regiment-article table, .article-content table,
.dalit-content table, main article table {
  width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: 15px; line-height: 1.6;
}
.seo-table-wrap table, .table-responsive table, .blog-table-wrap table { min-width: 500px; margin: 0; }
.blog-article th, .chamar-regiment-article th, .article-content th,
.dalit-content th, main article th {
  padding: 14px 16px; background: linear-gradient(120deg, #123d91, #1f5dc4);
  color: #fff; font-weight: 750; text-align: left;
}
.blog-article td, .chamar-regiment-article td, .article-content td,
.dalit-content td, main article td { padding: 13px 16px; border: 1px solid #e5ebf4; vertical-align: top; }
.blog-article tbody tr:nth-child(even), .chamar-regiment-article tbody tr:nth-child(even),
.article-content tbody tr:nth-child(even), .dalit-content tbody tr:nth-child(even),
main article tbody tr:nth-child(even) { background: #f7faff; }
.blog-article tbody tr:hover, .chamar-regiment-article tbody tr:hover,
.article-content tbody tr:hover, .dalit-content tbody tr:hover, main article tbody tr:hover { background: #edf4ff; }

/* FAQs: works with .faq-section or details/summary */
.faq-section, .faq-container {
  margin: 20px 0 34px; padding: 5px 22px 18px; border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius); background: #fff; box-shadow: 0 6px 18px rgba(15,35,75,.035);
}
.faq-section h3, .faq-container h3 { margin: 20px 0 8px; padding-top: 15px; border-top: 1px solid #e9eef6; font-size: 18px; }
.faq-section h3:first-child, .faq-container h3:first-child { border-top: 0; }
.faq-section p:last-child, .faq-container p:last-child { margin-bottom: 10px; }
.blog-article details, .chamar-regiment-article details, .article-content details,
.dalit-content details, main article details { margin: 12px 0; padding: 15px 17px; border: 1px solid var(--jh-line); border-radius: 12px; background: #fff; }
.blog-article summary, .chamar-regiment-article summary, .article-content summary,
.dalit-content summary, main article summary { color: var(--jh-blue-dark); font-weight: 750; cursor: pointer; }

/* Sources and related articles */
.cr-sources, .sources-section, .article-sources {
  margin: 34px 0; padding: 22px 24px; border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius); background: #f8fafc;
}
.cr-sources h2, .sources-section h2, .article-sources h2 { margin-top: 0; }
.cr-source-note, .source-note { color: var(--jh-muted); font-size: 14px; }
.internal-links, .related-articles {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 22px 0 32px;
}
.internal-card, .related-article-card {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  padding: 18px; border: 1px solid var(--jh-line); border-radius: 16px;
  background: #fff; box-shadow: 0 6px 18px rgba(15,35,75,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.internal-card:hover, .related-article-card:hover { transform: translateY(-3px); border-color: #a9c4f5; box-shadow: 0 12px 26px rgba(15,35,75,.09); }
.internal-card h3, .related-article-card h3 { margin: 0 0 8px; font-size: 17px; }
.internal-card p, .related-article-card p { margin: 0 0 14px; color: var(--jh-muted); font-size: 14px; line-height: 1.65; }
.internal-card a, .related-article-card a { margin-top: auto; font-weight: 750; text-decoration: none; }
.author-box, .article-author {
  display: flex; align-items: center; gap: 17px; margin: 34px 0 12px; padding: 21px;
  border: 1px solid var(--jh-line); border-radius: var(--jh-radius);
  background: linear-gradient(135deg, #f7faff, #fff);
}
.author-img, .article-author img { width: 78px; height: 78px; flex: 0 0 78px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--jh-line); }
.author-info h4, .article-author h4 { margin: 0 0 5px; }
.author-info p, .article-author p { margin: 0; color: var(--jh-muted); font-size: 14px; line-height: 1.7; }

/* Existing blog listing cards: .blog > img + .blog-content */
.blog {
  display: flex; align-items: stretch; gap: 20px; margin: 0 0 22px; padding: 18px;
  border: 1px solid #e0e8f4; border-radius: 18px; background: #fff; box-shadow: var(--jh-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(15,40,90,.12); }
.blog > img { display: block; flex: 0 0 220px; width: 220px; max-width: 38%; height: auto; max-height: 220px; object-fit: contain; align-self: flex-start; border-radius: 12px; background: var(--jh-soft); }
.blog .blog-content { flex: 1; min-width: 0; }
.blog .blog-content h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.4; }
.blog .blog-content h3 a { color: var(--jh-blue-dark); text-decoration: none; }
.blog .blog-content h3 a:hover { color: var(--jh-blue-light); }
.blog .meta { margin: 0 0 10px; color: var(--jh-muted); font-size: 13px; }
.blog .short-description { margin: 0 0 14px; color: #475569; font-size: 15px; line-height: 1.7; }
.see-more, a.see-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border: 0; border-radius: 9px; background: var(--jh-blue);
  color: #fff !important; font-size: 14px; font-weight: 750; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.see-more:hover, a.see-more:hover { background: var(--jh-blue-dark); color: #fff !important; transform: translateY(-1px); }
.see-more.disabled, .coming-soon .disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* General CTA buttons */
.article-buttons, .buttons { display: flex; flex-wrap: wrap; gap: 11px; margin: 22px 0; }
.article-buttons a, .buttons a, .article-button {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px;
  border-radius: 10px; background: var(--jh-blue); color: #fff !important;
  font-weight: 700; text-decoration: none; box-shadow: 0 5px 14px rgba(23,70,162,.15);
}
.article-buttons a:hover, .buttons a:hover, .article-button:hover { background: var(--jh-blue-dark); }

/* Mobile */
@media (max-width: 760px) {
  .blog-article, .chamar-regiment-article, .article-content, .dalit-content, main article { font-size: 16px; line-height: 1.78; }
  .internal-links, .related-articles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .table-of-contents ul, .cr-table-of-contents ul { grid-template-columns: 1fr; gap: 7px; }
  .blog { gap: 14px; padding: 14px; }
  .blog > img { flex-basis: 160px; width: 160px; max-width: 38%; max-height: 180px; }
  .blog .blog-content h3 { font-size: 19px; }
}
@media (max-width: 540px) {
  .blog-article h1, .chamar-regiment-article h1, .article-content h1, .dalit-content h1, main article h1 { font-size: 30px; }
  .blog-article h2, .chamar-regiment-article h2, .article-content h2, .dalit-content h2, main article h2 { margin-top: 34px; font-size: 23px; }
  .blog-article .article-hero, .chamar-regiment-article .article-hero, .article-content .article-hero,
  .dalit-content .article-hero, main article .article-hero, .chamar-regiment-article .cr-article-hero { padding: 24px 19px; border-radius: 17px; }
  .internal-links, .related-articles { grid-template-columns: 1fr; }
  .faq-section, .faq-container { padding: 4px 15px 15px; }
  .cr-sources, .sources-section, .article-sources { padding: 17px; }
  .author-box, .article-author { align-items: flex-start; gap: 12px; padding: 15px; }
  .author-img, .article-author img { width: 60px; height: 60px; flex-basis: 60px; }
  .blog { display: block; }
  .blog > img { width: 100%; max-width: 100%; max-height: none; margin: 0 0 15px; }
  .blog .blog-content h3 { font-size: 19px; }
  .blog-article th, .chamar-regiment-article th, .article-content th, .dalit-content th, main article th,
  .blog-article td, .chamar-regiment-article td, .article-content td, .dalit-content td, main article td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog, .internal-card, .related-article-card, .see-more, a.see-more { transition: none; }
  .blog:hover, .internal-card:hover, .related-article-card:hover, .see-more:hover, a.see-more:hover { transform: none; }
}


/* ==========================================
   JatavHistory - Modern FAQ Accordion
   Add this block at the END of blog-new.css
========================================== */

.faq-section {
    margin: 35px 0;
    padding: 22px;
    background: #f7faff;
    border: 1px solid #dce5f2;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(15, 40, 90, 0.05);
}

.faq-section > h2 {
    margin-top: 0;
    margin-bottom: 22px;
}

.faq-section .faq-item {
    margin: 12px 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce5f2;
    border-radius: 12px;
    transition: border-color .25s ease,
                box-shadow .25s ease;
}

.faq-section .faq-item:hover {
    border-color: #8db3ee;
}

.faq-section .faq-item[open] {
    border-color: #2f70e8;
    box-shadow: 0 5px 18px rgba(23, 70, 162, .09);
}

.faq-section .faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    color: #0c285f;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.faq-section .faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-section .faq-item summary::after {
    content: "+";
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #eaf1ff;
    color: #1746a2;
    font-size: 21px;
    font-weight: 500;
    transition: transform .25s ease,
                background .25s ease;
}

.faq-section .faq-item[open] summary {
    color: #1746a2;
    background: #f4f8ff;
}

.faq-section .faq-item[open] summary::after {
    content: "−";
    background: #1746a2;
    color: #fff;
}

.faq-section .faq-answer {
    padding: 16px 20px 18px;
    border-top: 1px solid #e8eef8;
    animation: faqReveal .25s ease;
}

.faq-section .faq-answer p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

@keyframes faqReveal {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 540px) {
    .faq-section {
        padding: 13px;
        border-radius: 14px;
    }

    .faq-section .faq-item summary {
        padding: 15px;
        font-size: 15px;
    }

    .faq-section .faq-answer {
        padding: 14px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-section .faq-item,
    .faq-section .faq-item summary::after {
        transition: none;
    }

    .faq-section .faq-answer {
        animation: none;
    }
}


/* Jatav History Article Infographic */
.article-infographic {
    margin: 28px auto;
    max-width: 100%;
    text-align: center;
}

.article-infographic img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #dce6f2;
    box-shadow: 0 5px 18px rgba(0, 45, 100, 0.10);
}

.article-infographic figcaption {
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .article-infographic {
        margin: 20px auto;
    }

    .article-infographic img {
        border-radius: 8px;
    }
}
