/* =========================================================
   JATAVHISTORY.COM
   CASTE CERTIFICATE - COMMON ARTICLE CSS
   Used by all  Caste Certificate Articles
   ========================================================= */


/* =========================
   GLOBAL ARTICLE WRAPPER
   ========================= */

.sc-certificate-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 18px 60px;
    color: #202124;
    box-sizing: border-box;
}

.sc-certificate-page *,
.sc-certificate-page *::before,
.sc-certificate-page *::after {
    box-sizing: border-box;
}


/* =========================
   BREADCRUMB
   ========================= */

.sc-certificate-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 5px 0 22px;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.sc-certificate-page .breadcrumb a {
    color: #1261a0;
    text-decoration: none;
    font-weight: 500;
}

.sc-certificate-page .breadcrumb a:hover {
    text-decoration: underline;
}

.sc-certificate-page .breadcrumb span {
    color: #777;
}


/* =========================
   MAIN H1
   ========================= */

.sc-certificate-page > h1 {
    position: relative;
    margin: 0 0 25px;
    padding-left: 18px;
    font-size: 40px;
    line-height: 1.22;
    font-weight: 750;
    letter-spacing: -0.5px;
    color: #123b5d;
}

.sc-certificate-page > h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: calc(100% - 10px);
    border-radius: 8px;
    background: linear-gradient(
        to bottom,
        #0b72b9,
        #0f766e
    );
}


/* =========================
   ARTICLE BODY
   ========================= */

.sc-certificate-page .article-body {
    width: 100%;
    font-size: 17px;
    line-height: 1.85;
    color: #30343b;
}

.sc-certificate-page .article-body p {
    margin: 0 0 18px;
}

.sc-certificate-page .article-body strong {
    color: #1f3f58;
}

.sc-certificate-page .article-body a {
    color: #075985;
}

.sc-certificate-page .article-body a:hover {
    color: #0b72b9;
}


/* =========================
   INTRO BOX
   ========================= */

.sc-certificate-page .article-intro {
    position: relative;
    margin: 0 0 28px;
    padding: 23px 25px 23px 27px;

    background: linear-gradient(
        135deg,
        #f1f8fc,
        #f8fbfd
    );

    border: 1px solid #dbeaf2;
    border-left: 5px solid #0b72b9;
    border-radius: 14px;

    font-size: 18px;
    line-height: 1.8;
    color: #293b48;

    box-shadow: 0 5px 20px rgba(15, 60, 90, 0.05);
}


/* =========================
   H2
   ========================= */

.sc-certificate-page .article-body h2 {
    position: relative;

    margin: 46px 0 17px;
    padding-bottom: 10px;

    font-size: 29px;
    line-height: 1.35;
    font-weight: 700;

    color: #123b5d;

    border-bottom: 1px solid #e5edf2;
}

.sc-certificate-page .article-body h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;

    width: 55px;
    height: 3px;

    background: #0b72b9;
    border-radius: 10px;
}


/* =========================
   H3
   ========================= */

.sc-certificate-page .article-body h3 {
    margin: 25px 0 10px;

    font-size: 21px;
    line-height: 1.4;

    color: #194d70;
}


/* =========================
   HIGHLIGHT BOX
   ========================= */

.sc-certificate-page .article-highlight {
    position: relative;

    margin: 27px 0;
    padding: 18px 20px 18px 22px;

    background: #eef8ff;
    border: 1px solid #d7ebf8;
    border-left: 5px solid #0b72b9;

    border-radius: 12px;

    color: #29485b;
}

.sc-certificate-page .article-highlight strong {
    color: #075985;
}


/* =========================
   WARNING BOX
   ========================= */

.sc-certificate-page .article-warning {
    position: relative;

    margin: 28px 0;
    padding: 19px 21px;

    background: #fff8ef;
    border: 1px solid #f6dfc4;
    border-left: 5px solid #e77917;

    border-radius: 12px;

    color: #5c4630;
}

.sc-certificate-page .article-warning strong {
    color: #a84f00;
}


/* =========================
   KEY POINTS
   ========================= */

.sc-certificate-page .key-points {
    margin: 28px 0;
    padding: 22px 24px;

    background: #f8fafc;

    border: 1px solid #e3e9ee;
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.035);
}

.sc-certificate-page .key-points h3 {
    margin-top: 0;
    color: #123b5d;
}

.sc-certificate-page .key-points ul {
    margin-bottom: 0;
}


/* =========================
   LISTS
   ========================= */

.sc-certificate-page .article-body ul,
.sc-certificate-page .article-body ol {
    margin: 15px 0 25px;
    padding-left: 28px;
}

.sc-certificate-page .article-body li {
    margin: 9px 0;
    padding-left: 3px;
}

.sc-certificate-page .article-body li::marker {
    color: #0b72b9;
    font-weight: 700;
}


/* =========================
   APPLICATION STEPS
   ========================= */

.sc-certificate-page .step-list {
    counter-reset: certificate-step;

    margin: 25px 0 30px !important;
    padding: 0 !important;

    list-style: none !important;
}

.sc-certificate-page .step-list li {
    position: relative;

    counter-increment: certificate-step;

    margin: 15px 0;
    padding: 18px 20px 18px 68px;

    background: #ffffff;

    border: 1px solid #e3eaf0;
    border-left: 4px solid #0b72b9;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(16, 52, 75, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sc-certificate-page .step-list li:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(16, 52, 75, 0.08);
}

.sc-certificate-page .step-list li::before {
    content: counter(certificate-step);

    position: absolute;
    left: 17px;
    top: 18px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0b72b9;
    color: #ffffff;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 700;
}

.sc-certificate-page .step-list li strong {
    color: #123b5d;
}


/* =========================
   ARTICLE IMAGES
   ========================= */

.sc-certificate-page .article-image {
    width: 100%;
    margin: 30px 0 32px;
    text-align: center;
}

.sc-certificate-page .article-image img {
    display: block;

    width: 100%;
    max-width: 1200px;
    height: auto;

    margin: 0 auto;

    border-radius: 15px;

    border: 1px solid #e2e8ed;

    background: #f7fafc;

    box-shadow:
        0 8px 28px rgba(16, 50, 70, 0.08);
}

.sc-certificate-page .article-image figcaption {
    margin-top: 9px;

    font-size: 13px;
    line-height: 1.5;

    color: #737b83;
}


/* =========================
   FAQ SECTION
   ========================= */

/* =========================
   FAQ ACCORDION
   ========================= */

.sc-certificate-page .faq-item {
    position: relative;
    margin: 13px 0;

    background: #ffffff;
    border: 1px solid #dfe7ed;
    border-radius: 13px;

    overflow: hidden;

    box-shadow: 0 3px 13px rgba(15, 45, 65, 0.035);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

/* Hover */
.sc-certificate-page .faq-item:hover {
    border-color: #b7d5e6;
    box-shadow: 0 7px 20px rgba(15, 45, 65, 0.07);
}


/* =========================
   FAQ QUESTION
   ========================= */

.sc-certificate-page .faq-item h3 {
    position: relative;

    margin: 0;
    padding: 19px 58px 19px 20px;

    font-size: 17px;
    line-height: 1.5;

    color: #173f5c;
    font-weight: 650;

    cursor: pointer;

    user-select: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* Question hover */
.sc-certificate-page .faq-item h3:hover {
    background: #f8fbfd;
}


/* =========================
   PLUS / MINUS BUTTON
   ========================= */

.sc-certificate-page .faq-item h3::after {
    content: "+";

    position: absolute;
    right: 18px;
    top: 50%;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border-radius: 50%;

    background: #edf7fc;
    color: #0b72b9;

    font-size: 21px;
    line-height: 1;
    font-weight: 400;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}


/* =========================
   ANSWER - CLOSED BY DEFAULT
   ========================= */

.sc-certificate-page .faq-item p {
    display: none;

    margin: 0;
    padding: 0 20px 20px;

    font-size: 15.5px;
    line-height: 1.75;

    color: #5b6269;

    border-top: 1px solid transparent;
}


/* =========================
   ACTIVE / OPEN FAQ
   ========================= */

.sc-certificate-page .faq-item.active {
    border-color: #b9d6e6;

    box-shadow: 0 7px 22px rgba(15, 45, 65, 0.075);
}


/* Open answer */
.sc-certificate-page .faq-item.active p {
    display: block;
}


/* Minus sign when open */
.sc-certificate-page .faq-item.active h3::after {
    content: "−";

    background: #0b72b9;
    color: #ffffff;

    transform: translateY(-50%) rotate(180deg);
}


/* Open question */
.sc-certificate-page .faq-item.active h3 {
    color: #075985;
    background: #f8fbfd;
}





/* =========================
   RELATED ARTICLES
   ========================= */

.sc-certificate-page .related-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;

    margin: 22px 0 30px;
}

.sc-certificate-page .related-card {
    position: relative;

    display: block;

    min-height: 110px;

    padding: 20px 21px;

    background: #ffffff;

    border: 1px solid #e2e8ed;
    border-radius: 13px;

    text-decoration: none !important;

    box-shadow:
        0 4px 15px rgba(15, 45, 65, 0.04);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sc-certificate-page .related-card::after {
    content: "→";

    position: absolute;

    right: 17px;
    bottom: 16px;

    color: #0b72b9;

    font-size: 18px;
}

.sc-certificate-page .related-card:hover {
    transform: translateY(-3px);

    border-color: #a9cede;

    box-shadow:
        0 9px 25px rgba(15, 45, 65, 0.09);
}

.sc-certificate-page .related-card strong {
    display: block;

    margin-bottom: 7px;

    padding-right: 25px;

    color: #075985;

    font-size: 17px;
    line-height: 1.4;
}

.sc-certificate-page .related-card span {
    display: block;

    padding-right: 20px;

    color: #68737c;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================
   SOURCE BOX
   ========================= */

.sc-certificate-page .source-box {
    margin-top: 35px;
    padding: 22px 23px;

    background: #f8fafc;

    border: 1px solid #e2e8ed;
    border-radius: 14px;
}

.sc-certificate-page .source-box h2 {
    margin-top: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.sc-certificate-page .source-box h2::after {
    display: none;
}

.sc-certificate-page .source-box ul {
    margin-bottom: 12px;
}

.sc-certificate-page .source-box a {
    color: #075985;
    font-weight: 500;
}

.sc-certificate-page .small-note {
    margin-bottom: 0 !important;

    color: #707980;

    font-size: 14px;
    line-height: 1.65;
}


/* =========================
   AUTHOR BOX
   ========================= */

.sc-certificate-page .author-box {
    display: flex;
    align-items: center;

    gap: 17px;

    margin-top: 35px;
    padding: 20px;

    background: #f8fafc;

    border: 1px solid #e3e9ee;
    border-radius: 14px;
}

.sc-certificate-page .author-box img {
    flex: 0 0 72px;

    width: 72px;
    height: 72px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #ffffff;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}

.sc-certificate-page .author-box h4 {
    margin: 0 0 5px;

    color: #123b5d;

    font-size: 17px;
}

.sc-certificate-page .author-box p {
    margin: 0;

    color: #66717a;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================
   TABLE SUPPORT
   Future articles
   ========================= */

.sc-certificate-page .article-table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;

    overflow: hidden;

    border-radius: 10px;

    font-size: 15px;
}

.sc-certificate-page .article-table th,
.sc-certificate-page .article-table td {
    padding: 13px 15px;

    border: 1px solid #e1e7eb;

    text-align: left;
}

.sc-certificate-page .article-table th {
    background: #edf7fc;

    color: #123b5d;

    font-weight: 700;
}

.sc-certificate-page .article-table tr:nth-child(even) td {
    background: #fafcfd;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .sc-certificate-page {
        padding: 14px 12px 45px;
    }

    .sc-certificate-page .breadcrumb {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .sc-certificate-page > h1 {
        padding-left: 14px;

        font-size: 29px;
        line-height: 1.3;

        letter-spacing: -0.2px;
    }

    .sc-certificate-page > h1::before {
        width: 4px;
    }

    .sc-certificate-page .article-body {
        font-size: 16px;
        line-height: 1.78;
    }

    .sc-certificate-page .article-intro {
        padding: 18px 18px;

        font-size: 16px;
        line-height: 1.75;
    }

    .sc-certificate-page .article-body h2 {
        margin-top: 36px;

        font-size: 24px;
        line-height: 1.38;
    }

    .sc-certificate-page .article-body h3 {
        font-size: 19px;
    }

    .sc-certificate-page .article-image {
        margin: 25px 0 28px;
    }

    .sc-certificate-page .article-image img {
        border-radius: 11px;
    }

    .sc-certificate-page .step-list li {
        padding: 16px 15px 16px 57px;
    }

    .sc-certificate-page .step-list li::before {
        left: 13px;
        top: 16px;

        width: 31px;
        height: 31px;
    }

    .sc-certificate-page .related-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .sc-certificate-page .related-card {
        min-height: auto;
        padding: 17px;
    }


    .sc-certificate-page .author-box {
        align-items: flex-start;

        padding: 17px;
    }

    .sc-certificate-page .author-box img {
        flex-basis: 58px;

        width: 58px;
        height: 58px;
    }

    .sc-certificate-page .article-table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 420px) {

    .sc-certificate-page > h1 {
        font-size: 26px;
    }

    .sc-certificate-page .article-body h2 {
        font-size: 22px;
    }

    .sc-certificate-page .article-intro {
        font-size: 15.5px;
    }

    .sc-certificate-page .key-points,
    .sc-certificate-page .article-highlight,
    .sc-certificate-page .article-warning,
    .sc-certificate-page .source-box {
        padding: 16px;
    }

}


/* =========================
   FAQ MOBILE
   ========================= */

@media (max-width: 768px) {

    .sc-certificate-page .faq-item h3 {
        padding: 16px 52px 16px 16px;
        font-size: 16px;
        line-height: 1.5;
    }

    .sc-certificate-page .faq-item h3::after {
        right: 15px;

        width: 27px;
        height: 27px;

        font-size: 20px;
    }

    .sc-certificate-page .faq-item p {
        padding: 0 16px 17px;

        font-size: 15px;
        line-height: 1.7;
    }
}



/* Caste Certificate PDF card — styles are scoped to this component */
.certificate-pdf-card {
  box-sizing: border-box; width: 100%; max-width: 520px; margin: 28px auto;
  padding: 24px; border: 1px solid #e1e5eb; border-radius: 20px;
  background: #fff; color: #202938; box-shadow: 0 2px 4px rgba(20,31,48,.08);
  font-family: inherit;
}
.certificate-pdf-card *, .certificate-pdf-card *::before, .certificate-pdf-card *::after { box-sizing: border-box; }
.certificate-pdf-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.certificate-pdf-eyebrow { color:#343b47; font-size:11px; font-weight:800; letter-spacing:1.05px; line-height:1.4; }
.certificate-pdf-badge { flex:0 0 auto; padding:5px 9px; border:1px solid #a8e5d0; border-radius:5px; background:#eafaf4; color:#167a5a; font-size:10px; font-weight:800; letter-spacing:.35px; }
.certificate-pdf-panel { padding:20px 18px 18px; border:1px solid #e0e5ed; border-radius:17px; background:#f8fafc; text-align:center; }
.certificate-pdf-icon-wrap { display:flex; width:120px; min-height:96px; margin:0 auto 16px; padding:14px 10px 12px; flex-direction:column; align-items:center; justify-content:center; gap:5px; border:1px solid #e0e4eb; border-radius:15px; background:#fff; box-shadow:0 1px 2px rgba(20,31,48,.04); color:#5140f5; }
.certificate-pdf-icon { display:block; width:42px; height:42px; }
.certificate-pdf-icon-wrap span { color:#657083; font-size:9px; font-weight:800; letter-spacing:.2px; }
.certificate-pdf-card h2 { margin:0 0 6px; color:#252c38; font-size:15px; font-weight:750; line-height:1.45; }
.certificate-pdf-description { max-width:310px; margin:0 auto 24px; color:#687386; font-size:11px; line-height:1.6; }
.certificate-pdf-actions { display:grid; gap:8px; }
.certificate-pdf-button { display:flex; min-height:42px; align-items:center; justify-content:center; gap:8px; padding:11px 14px; border:1px solid transparent; border-radius:13px; font-family:inherit; font-size:12px; font-weight:750; line-height:1.35; text-align:center; text-decoration:none !important; transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.certificate-pdf-button svg { width:15px; height:15px; flex:0 0 15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.certificate-pdf-button-primary { background:#5038f5; color:#fff !important; box-shadow:0 2px 3px rgba(80,56,245,.16); }
.certificate-pdf-button-primary:hover { background:#432be9; color:#fff !important; transform:translateY(-1px); box-shadow:0 4px 10px rgba(80,56,245,.2); }
.certificate-pdf-button-secondary { border-color:#e0e5ed; background:#f0f3f8; color:#354052 !important; }
.certificate-pdf-button-secondary:hover { background:#e7ecf4; color:#202938 !important; transform:translateY(-1px); }
.certificate-pdf-button:focus-visible { outline:3px solid rgba(80,56,245,.28); outline-offset:3px; }
@media (max-width:480px) {
  .certificate-pdf-card { padding:15px; border-radius:16px; }
  .certificate-pdf-panel { padding:17px 12px 13px; }
  .certificate-pdf-eyebrow { font-size:9px; letter-spacing:.7px; }
  .certificate-pdf-badge { padding:4px 6px; font-size:9px; }
  .certificate-pdf-card h2 { font-size:14px; }
  .certificate-pdf-button { font-size:11px; }
}





