/* =========================================================
   SHRISHA SINGLE BLOG POST
   ========================================================= */

.shrisha-single-post {
    margin: 0;
    background: #070b10;
    color: #f5f7fa;
}

.shrisha-single-post *,
.shrisha-single-post *::before,
.shrisha-single-post *::after {
    box-sizing: border-box;
}

.single-article-container {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   ARTICLE HERO
   ========================================================= */

.single-article-hero {
    position: relative;
    overflow: hidden;
    padding: 165px 0 80px;
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(20, 157, 255, 0.10),
            transparent 32%
        ),
        #070b10;
}

.single-article-glow {
    position: absolute;
    top: -180px;
    right: -100px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(20, 157, 255, 0.07);
    filter: blur(100px);
    pointer-events: none;
}

.single-back-link {
    position: relative;
    display: inline-flex;
    margin-bottom: 45px;
    color: #9ca8b5;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 250ms ease;
}

.single-back-link:hover {
    color: #55baff;
}

.single-article-category {
    margin-bottom: 20px;
    color: #149dff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.single-article-hero h1 {
    position: relative;
    max-width: 980px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(46px, 5.3vw, 74px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.single-article-intro {
    position: relative;
    max-width: 760px;
    margin-top: 28px;
    color: #a8b4c0;
    font-size: 19px;
    line-height: 1.7;
}

.single-article-meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    color: #788694;
    font-size: 13px;
}

.single-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f9b900;
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.single-featured-wrap {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.single-featured-image {
    overflow: hidden;
    aspect-ratio: 16 / 8.5;
    border: 1px solid rgba(20, 157, 255, 0.18);
    border-radius: 24px;
    background: #0b1119;
}

.single-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.single-content-section {
    padding: 85px 0 100px;
}

.single-content-layout {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
}

.single-article-content {
    color: #b3bec9;
    font-size: 17px;
    line-height: 1.85;
}

.single-article-content > *:first-child {
    margin-top: 0;
}

.single-article-content p {
    margin: 0 0 26px;
}

.single-article-content h2 {
    margin: 65px 0 22px;
    color: #ffffff;
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.single-article-content h3 {
    margin: 45px 0 18px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.single-article-content h4 {
    margin: 35px 0 16px;
    color: #ffffff;
    font-size: 21px;
}

.single-article-content strong {
    color: #ffffff;
    font-weight: 700;
}

.single-article-content a {
    color: #55baff;
    text-decoration: underline;
    text-decoration-color: rgba(85, 186, 255, 0.4);
    text-underline-offset: 4px;
}

.single-article-content a:hover {
    color: #f9b900;
}

.single-article-content ul,
.single-article-content ol {
    margin: 10px 0 30px;
    padding-left: 26px;
}

.single-article-content li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.single-article-content li::marker {
    color: #149dff;
}

.single-article-content blockquote {
    margin: 42px 0;
    padding: 25px 28px;
    border-left: 3px solid #149dff;
    border-radius: 0 14px 14px 0;
    background: rgba(20, 157, 255, 0.07);
    color: #d9e1e8;
    font-size: 19px;
    line-height: 1.7;
}

.single-article-content blockquote p:last-child {
    margin-bottom: 0;
}


/* Gutenberg images */

.single-article-content figure {
    margin: 42px 0;
}

.single-article-content figure img,
.single-article-content > img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.single-article-content figcaption {
    margin-top: 10px;
    color: #788694;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}


/* Gutenberg separator */

.single-article-content hr {
    margin: 55px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}


/* =========================================================
   TABLES
   ========================================================= */

.single-article-content table {
    width: 100%;
    margin: 35px 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid rgba(20, 157, 255, 0.15);
    border-radius: 12px;
}

.single-article-content th,
.single-article-content td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.single-article-content th {
    background: rgba(20, 157, 255, 0.09);
    color: #ffffff;
}

.single-article-content td {
    color: #aeb9c4;
}


/* =========================================================
   ARTICLE CTA
   ========================================================= */

.single-article-cta {
    padding: 0 0 120px;
}

.single-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 55px 60px;
    overflow: hidden;
    border: 1px solid rgba(20, 157, 255, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(20, 157, 255, 0.13),
            transparent 32%
        ),
        rgba(14, 22, 32, 0.78);
}

.single-cta-copy {
    max-width: 650px;
}

.single-cta-copy > span {
    color: #149dff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.single-cta-copy h2 {
    margin: 14px 0 16px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.single-cta-copy h2 strong {
    background: linear-gradient(
        90deg,
        #149dff,
        #55baff,
        #f9b900
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.single-cta-copy p {
    max-width: 590px;
    margin: 0;
    color: #9ca8b5;
    font-size: 15px;
    line-height: 1.7;
}

.single-cta-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 22px;
    border-radius: 10px;
    background: #0877c9;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(8, 119, 201, 0.20);
    transition:
        transform 250ms ease,
        background 250ms ease;
}

.single-cta-button span {
    color: #ffd23f;
    transition: transform 250ms ease;
}

.single-cta-button:hover {
    transform: translateY(-2px);
    background: #149dff;
    color: #ffffff;
}

.single-cta-button:hover span {
    transform: translateX(4px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .single-article-hero {
        padding: 145px 0 70px;
    }

    .single-cta-box {
        align-items: flex-start;
        flex-direction: column;
        gap: 32px;
        padding: 45px 40px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .single-article-container,
    .single-content-layout,
    .single-featured-wrap {
        width: min(100% - 32px, 1100px);
    }

    .single-article-hero {
        padding: 70px 0 55px;
    }

    .single-back-link {
        margin-bottom: 35px;
    }

    .single-article-category {
        margin-bottom: 16px;
        font-size: 10px;
    }

    .single-article-hero h1 {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.05;
    }

    .single-article-intro {
        margin-top: 22px;
        font-size: 16px;
    }

    .single-article-meta {
        margin-top: 25px;
    }

    .single-featured-image {
        aspect-ratio: 16 / 9;
        border-radius: 16px;
    }

    .single-content-section {
        padding: 60px 0 75px;
    }

    .single-article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .single-article-content h2 {
        margin-top: 50px;
        font-size: 30px;
    }

    .single-article-content h3 {
        margin-top: 38px;
        font-size: 23px;
    }

    .single-article-content table {
        display: block;
        overflow-x: auto;
    }

    .single-article-cta {
        padding-bottom: 85px;
    }

    .single-cta-box {
        padding: 35px 25px;
    }

    .single-cta-button {
        width: 100%;
    }

}

/* =========================================================
   SINGLE POST DARK BACKGROUND FIX
   ========================================================= */

body.shrisha-single-post,
body.shrisha-single-post #page,
body.shrisha-single-post #content,
body.shrisha-single-post #primary,
body.shrisha-single-post #main,
body.shrisha-single-post #shrisha-site,
body.shrisha-single-post .site-content,
body.shrisha-single-post .single-article {
    background: #070b10 !important;
}


/* Article content */

body.shrisha-single-post .single-content-section {
    background: #070b10 !important;
}


/* CTA section */

body.shrisha-single-post .single-article-cta {
    background: #070b10 !important;
}

/* =========================================================
   POST VIEW COUNTER
   ========================================================= */

.single-post-view-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-post-view-icon {
    color: #149dff;
    font-size: 15px;
    line-height: 1;
}

.shrisha-post-views {
    color: #788694;
}

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.single-article-content .wp-block-rank-math-toc-block {
    margin: 45px 0 55px;
    padding: 32px 34px;
    border: 1px solid rgba(20, 157, 255, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(20, 157, 255, 0.10),
            transparent 35%
        ),
        #0b1119;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* TOC heading */

.single-article-content .wp-block-rank-math-toc-block h2 {
    margin: 0 0 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Main TOC list — 2 columns */

.single-article-content .wp-block-rank-math-toc-block > nav > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 38px;
    row-gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* TOC list items */

.single-article-content .wp-block-rank-math-toc-block li {
    margin: 0;
    padding: 0;
    break-inside: avoid;
}

/* TOC links */

.single-article-content .wp-block-rank-math-toc-block a {
    display: inline-block;
    color: #b9c8d6;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    text-decoration: none;
    transition:
        color 200ms ease,
        transform 200ms ease;
}

.single-article-content .wp-block-rank-math-toc-block a:hover {
    color: #55baff;
    transform: translateX(3px);
}

/* Nested headings */

.single-article-content .wp-block-rank-math-toc-block ul ul {
    margin: 10px 0 0;
    padding-left: 18px;
    list-style: none;
}

.single-article-content .wp-block-rank-math-toc-block ul ul li {
    position: relative;
    margin: 7px 0;
    padding-left: 14px;
}

.single-article-content .wp-block-rank-math-toc-block ul ul li::before {
    content: "";
    position: absolute;
    top: 0.75em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f9b900;
}

/* Mobile */

@media (max-width: 680px) {

    .single-article-content .wp-block-rank-math-toc-block {
        margin: 35px 0 45px;
        padding: 25px 22px;
        border-radius: 15px;
    }

    .single-article-content .wp-block-rank-math-toc-block h2 {
        font-size: 22px;
    }

    .single-article-content .wp-block-rank-math-toc-block > nav > ul {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .single-article-content .wp-block-rank-math-toc-block a {
        font-size: 14px;
    }
}

/* =========================================================
   ARTICLE LANGUAGE SWITCHER
   ========================================================= */

.single-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    /* More separation from Back to Blog */
    margin: 8px 0 32px 28px;

    padding: 9px 14px;
    border: 1px solid #f9b900;
    border-radius: 9px;

    /* Shrisha gold */
    background: #f9b900;

    box-shadow: 0 8px 24px rgba(249, 185, 0, 0.16);
}

.single-language-switcher a {
    color: rgba(7, 11, 16, 0.62);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        color 200ms ease,
        opacity 200ms ease;
}

.single-language-switcher a:hover {
    color: #070b10;
}

.single-language-switcher a.is-active {
    color: #070b10;
    font-weight: 800;
}

.single-language-switcher .language-divider {
    color: rgba(7, 11, 16, 0.28);
    font-size: 13px;
}


/* Mobile */

@media (max-width: 680px) {

    .single-language-switcher {
        margin: 0 0 26px 0;
        padding: 9px 13px;
    }

}

/* =========================================================
   HINDI ARTICLE H1 TYPOGRAPHY
   ========================================================= */

html[lang="hi-IN"] .single-article-hero h1,
html[lang="hi"] .single-article-hero h1 {
    line-height: 1.18;
}

@media (max-width: 680px) {

    html[lang="hi-IN"] .single-article-hero h1,
    html[lang="hi"] .single-article-hero h1 {
        line-height: 1.20;
    }

}

/* Hindi article H2 spacing */

html[lang="hi-IN"] .single-article-content h2,
html[lang="hi"] .single-article-content h2 {
    line-height: 1.35;
}