/* =========================================================
   BLOG STYLES (style.css ke baad load hoti hai)
   ========================================================= */

.blog-page {
    background: var(--bg-color);
}

.blog-page header {
    background: var(--bg-color);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ---------- Hero ---------- */

.blog-hero {
    padding: 150px 7% 50px;
    text-align: center;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 188, 0, .12), transparent 45%),
        radial-gradient(circle at 15% 90%, rgba(18, 247, 255, .08), transparent 40%),
        var(--bg-color);
}

.blog-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem 1rem;
    border: 1px solid rgba(255, 188, 0, .5);
    border-radius: 999px;
    color: var(--hover-color);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.blog-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.blog-hero h1 em {
    font-style: normal;
    color: var(--hover-color);
}

.blog-hero p {
    max-width: 640px;
    margin: 0 auto 2rem;
    color: #cfcfcf;
    font-size: 1.05rem;
    line-height: 1.75;
}

.blog-search {
    position: relative;
    display: block;
    max-width: 520px;
    margin: 0 auto;
}

.blog-search i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--hover-color);
    pointer-events: none;
}

.blog-search input {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3.2rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50px;
    background: var(--second-bg-color);
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    transition: border-color .3s, box-shadow .3s;
}

.blog-search input::placeholder {
    color: #8a8a8a;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--hover-color);
    box-shadow: 0 0 0 4px rgba(255, 188, 0, .15);
}

/* ---------- Filters ---------- */

.blog-list {
    padding: 20px 7% 90px;
}

.blog-toolbar {
    max-width: 1300px;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.blog-filter {
    padding: .55rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;
    background: var(--second-bg-color);
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: .3s;
}

.blog-filter:hover {
    border-color: var(--hover-color);
    color: var(--hover-color);
}

.blog-filter.active {
    background: var(--hover-color);
    border-color: var(--hover-color);
    color: var(--bg-color);
    box-shadow: var(--non-box-shadow);
}

.blog-count {
    color: #9a9a9a;
    font-size: .9rem;
}

/* ---------- Cards grid ---------- */

.blog-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--second-bg-color);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), border-color .4s, box-shadow .4s;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--hover-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35), var(--non-box-shadow);
}

.blog-card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1b1f23;
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.05);
}

/* image na ho to design wala cover */
.blog-cover-art {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 188, 0, .35), transparent 45%),
        radial-gradient(circle at 10% 100%, rgba(18, 247, 255, .25), transparent 50%),
        linear-gradient(135deg, #3a0d34 0%, #250821 60%, #1a0517 100%);
    overflow: hidden;
}

.blog-cover-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
}

.blog-cover-art i {
    position: relative;
    font-size: 4.2rem;
    color: var(--hover-color);
    filter: drop-shadow(0 0 18px rgba(255, 188, 0, .45));
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.blog-card:hover .blog-cover-art i {
    transform: scale(1.1) rotate(-6deg);
}

.blog-cover-word {
    position: absolute;
    left: 1.1rem;
    bottom: .9rem;
    color: rgba(255, 255, 255, .55);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.3rem 1.4rem 1.4rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .8rem;
}

.blog-chip {
    padding: .22rem .75rem;
    border-radius: 50px;
    background: rgba(255, 188, 0, .12);
    border: 1px solid rgba(255, 188, 0, .4);
    color: var(--hover-color);
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.blog-card-date,
.blog-card-time {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #a8a8a8;
    font-size: .8rem;
}

.blog-card-date i,
.blog-card-time i {
    font-size: 1rem;
}

.blog-card h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: .55rem;
}

.blog-card h3 a {
    color: var(--text-color);
    transition: color .3s;
}

.blog-card h3 a:hover {
    color: var(--hover-color);
}

.blog-card p {
    flex: 1;
    color: #bdbdbd;
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.blog-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--hover-color);
    font-size: .9rem;
    font-weight: 600;
}

.blog-card-link i {
    font-size: 1.2rem;
    transition: transform .3s;
}

.blog-card:hover .blog-card-link i {
    transform: translateX(5px);
}

/* naya post: bara card, image left aur text right */
.blog-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.blog-card--featured .blog-card-cover {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 340px;
}

.blog-card--featured .blog-card-body {
    padding: 2.2rem;
    justify-content: center;
}

.blog-card--featured h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.blog-card--featured p {
    flex: 0 1 auto;
    font-size: 1rem;
}

.blog-card--featured .blog-cover-art i {
    font-size: 6rem;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: #bdbdbd;
}

.blog-empty i {
    font-size: 3rem;
    color: var(--hover-color);
}

.blog-empty h3 {
    color: var(--text-color);
    margin: .6rem 0 .3rem;
}

@media (max-width: 1000px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .blog-card--featured {
        flex-direction: column;
    }
    .blog-card--featured .blog-card-cover {
        flex: none;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .blog-card--featured .blog-card-body {
        padding: 1.3rem 1.4rem 1.4rem;
    }
}

@media (max-width: 650px) {
    .blog-hero {
        padding: 120px 6% 36px;
    }
    .blog-list {
        padding: 10px 6% 70px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   SINGLE POST PAGE
   ========================================================= */

.post-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
}

.post-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--hover-color), #12f7ff);
    box-shadow: 0 0 10px rgba(18, 247, 255, .6);
}

.post-hero {
    padding: 140px 7% 40px;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 188, 0, .1), transparent 45%),
        var(--bg-color);
}

.post-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.post-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: #9a9a9a;
    margin-bottom: 1.4rem;
}

.post-crumbs a {
    color: #bdbdbd;
    transition: color .3s;
}

.post-crumbs a:hover {
    color: var(--hover-color);
}

.post-crumbs i {
    font-size: 1rem;
}

.post-hero h1 {
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.2;
    color: var(--text-color);
    margin: .9rem 0 1.1rem;
}

.post-lead {
    color: #cfcfcf;
    font-size: 1.12rem;
    line-height: 1.75;
    margin-bottom: 1.6rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.post-author {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.post-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hover-color);
}

.post-author strong {
    display: block;
    color: var(--text-color);
    font-size: .95rem;
}

.post-author small {
    color: #a8a8a8;
    font-size: .8rem;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #a8a8a8;
    font-size: .88rem;
}

.post-meta-item i {
    color: var(--hover-color);
    font-size: 1.1rem;
}

.post-cover {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 7%;
}

.post-cover img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* article + table of contents */
.post-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 7% 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 3rem;
    align-items: start;
}

.post-toc {
    position: sticky;
    top: 100px;
    padding: 1.3rem 1.3rem 1.1rem;
    background: var(--second-bg-color);
    border: 1px solid rgba(255, 255, 255, .07);
    border-top: 3px solid var(--hover-color);
    border-radius: 12px;
}

.post-toc h2 {
    font-size: .8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hover-color);
    margin-bottom: .8rem;
}

.post-toc ol {
    counter-reset: toc;
}

.post-toc li {
    counter-increment: toc;
    margin-bottom: .55rem;
}

.post-toc a {
    display: flex;
    gap: .5rem;
    color: #bdbdbd;
    font-size: .85rem;
    line-height: 1.45;
    transition: color .3s;
}

.post-toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--hover-color);
    font-weight: 600;
    font-size: .75rem;
    padding-top: .12rem;
}

.post-toc a:hover {
    color: var(--hover-color);
}

/* article typography */
.post-content {
    min-width: 0;
    color: #dcdcdc;
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-content > * + * {
    margin-top: 1.2rem;
}

.post-content h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    line-height: 1.3;
    color: var(--text-color);
    margin-top: 2.8rem;
    padding-top: .4rem;
    scroll-margin-top: 100px;
}

.post-content h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--hover-color);
    margin-top: 2rem;
    scroll-margin-top: 100px;
}

.post-content p {
    color: #dcdcdc;
}

.post-content a {
    color: var(--hover-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content strong {
    color: #fff;
}

.post-content ul,
.post-content ol {
    padding-left: 1.4rem;
}

.post-content ul li {
    list-style: disc;
    margin-bottom: .45rem;
}

.post-content ol li {
    list-style: decimal;
    margin-bottom: .45rem;
}

.post-content li::marker {
    color: var(--hover-color);
}

.post-content span {
    color: inherit;
}

.post-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .88em;
    padding: .15rem .4rem;
    border-radius: 5px;
    background: rgba(255, 188, 0, .1);
    color: #ffd666;
}

.post-content pre {
    position: relative;
    padding: 1.2rem 1.3rem;
    background: #15181c;
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid var(--hover-color);
    border-radius: 10px;
    overflow-x: auto;
    line-height: 1.6;
}

.post-content pre code {
    padding: 0;
    background: none;
    color: #e6e6e6;
    font-size: .88rem;
}

.post-content blockquote,
.post-callout {
    padding: 1.1rem 1.3rem;
    background: rgba(18, 247, 255, .06);
    border: 1px solid rgba(18, 247, 255, .25);
    border-radius: 10px;
    color: #dcdcdc;
}

.post-callout strong {
    color: #12f7ff;
}

.post-content img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.post-content figure figcaption {
    margin-top: .5rem;
    font-size: .85rem;
    color: #9a9a9a;
    text-align: center;
}

.post-table {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 560px;
}

.post-content th,
.post-content td {
    padding: .8rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    vertical-align: top;
}

.post-content th {
    background: var(--second-bg-color);
    color: var(--hover-color);
    font-weight: 600;
}

.post-content tr:last-child td {
    border-bottom: none;
}

/* FAQ */
.post-faq details {
    background: var(--second-bg-color);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    padding: 0 1.2rem;
    margin-top: .8rem;
}

.post-faq summary {
    cursor: pointer;
    padding: 1rem 0;
    color: var(--text-color);
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

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

.post-faq summary::after {
    content: "+";
    color: var(--hover-color);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .3s;
}

.post-faq details[open] summary::after {
    transform: rotate(45deg);
}

.post-faq details p {
    padding-bottom: 1rem;
    margin: 0;
}

/* share + CTA + author */
.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.post-share > strong {
    color: var(--text-color);
    margin-right: .4rem;
    font-size: .95rem;
}

.post-share a,
.post-share button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .95rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;
    background: var(--second-bg-color);
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    font-size: .85rem;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

.post-share a span,
.post-share button span {
    color: inherit;
}

.post-share a:hover,
.post-share button:hover,
.post-share button.copied {
    border-color: var(--hover-color);
    color: var(--hover-color);
}

.post-share i {
    font-size: 1.1rem;
}

.post-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    border: 1px solid var(--hover-color);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 188, 0, .14), transparent 50%),
        var(--second-bg-color);
    box-shadow: 0 0 1.5rem rgba(18, 247, 255, .12);
}

.post-cta h2 {
    margin-top: 0;
    padding-top: 0;
    font-size: 1.5rem;
}

.post-cta p {
    margin: .6rem 0 1.3rem;
}

.post-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.post-content .post-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .8rem 1.6rem;
    border: 2px solid var(--hover-color);
    border-radius: 50px;
    background: var(--hover-color);
    color: var(--bg-color);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: var(--non-box-shadow);
    transition: .3s;
}

.post-content .post-btn:hover {
    background: transparent;
    color: var(--hover-color);
}

.post-content .post-btn--ghost {
    background: transparent;
    color: var(--hover-color);
    box-shadow: none;
}

.post-content .post-btn--ghost:hover {
    background: var(--hover-color);
    color: var(--bg-color);
}

.post-bio {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--second-bg-color);
    border-radius: 14px;
}

.post-bio img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hover-color);
    margin: 0;
}

.post-bio h3 {
    margin: 0 0 .3rem;
    font-size: 1.1rem;
}

.post-bio p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.7;
    color: #bdbdbd;
}

/* related posts */
.post-related {
    padding: 70px 7% 90px;
    background: var(--second-bg-color);
}

.post-related > h2 {
    text-align: center;
    color: var(--hover-color);
    font-size: var(--normal-font);
    margin-bottom: 2rem;
}

.post-related .blog-card {
    background: var(--bg-color);
}

.post-related-all {
    text-align: center;
    margin-top: 2.2rem;
}

.post-related-all a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .8rem 1.7rem;
    border: 2px solid var(--hover-color);
    border-radius: 50px;
    color: var(--hover-color);
    font-weight: 600;
    transition: .3s;
}

.post-related-all a:hover {
    background: var(--hover-color);
    color: var(--bg-color);
}

@media (max-width: 960px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .post-toc {
        position: static;
        order: -1;
    }
}

@media (max-width: 650px) {
    .post-hero {
        padding: 115px 6% 30px;
    }
    .post-layout {
        padding: 24px 6% 50px;
    }
    .post-content {
        font-size: 1rem;
    }
    .post-cta {
        padding: 1.5rem;
    }
    .post-bio {
        flex-direction: column;
    }
    .post-related {
        padding: 50px 6% 70px;
    }
}

/* logo hamesha sahi size mein rahe */
.blog-page .logo img,
.blog-page .footer-logo img {
    height: auto;
}

/*---Blog card: heading 2 line, description 3 line----------*/

.blog-card h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.blog-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/*---Article images: sahi size, pichki nahi----------*/

.post-content figure {
    margin: 2rem 0;
}

.post-content figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.post-content figure figcaption {
    margin-top: .7rem;
    font-size: .85rem;
    color: #9a9a9a;
    text-align: center;
}

/*---Author bio photo: hamesha chhoti gol photo----------*/

.post-content .post-bio img {
    width: 72px;
    height: 72px;
    max-width: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hover-color);
    box-shadow: none;
    margin: 0;
}