﻿/* ===== Express Rupya Blog (listing + detail) ===== */
.er-blog, .er-band {
    --er-dark: var(--dark-gray,#232323);
    --er-accent: var(--base-color,#1f8a5b);
    --er-text: #3c4350;
    --er-muted: #6b7280;
    --er-bg: #f6f7f9;
    --er-border: #e6e9ee;
}

.er-blog {
    background: var(--er-bg);
    color: var(--er-text);
    line-height: 1.65;
    padding: 32px 0 56px
}

    .er-blog *, .er-blog *::before, .er-blog *::after {
        box-sizing: border-box
    }

    .er-blog img {
        max-width: 100%;
        height: auto;
        display: block
    }

    .er-blog a {
        text-decoration: none
    }

    .er-blog h1, .er-blog h2, .er-blog h3, .er-band .er-title {
        font-family: var(--alt-font,inherit)
    }

    .er-blog a:focus-visible, .er-blog button:focus-visible {
        outline: 2px solid var(--er-accent);
        outline-offset: 2px
    }

.er-wrap {
    /*max-width: 1200px;*/
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px
}

.er-narrow {
    max-width: 830px
}
/* ---- Title band (compact & high-contrast) ---- */
.er-band {
    position: relative;
    min-height: 0 !important;
    padding: 118px 0 42px !important;
    background-size: cover;
    background-position: center 25% !important;
    background-repeat: no-repeat;
    overflow: hidden;
}

    .er-band .small-screen {
        height: auto !important;
        min-height: 0 !important;
    }

.er-band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 28, 22, 0.88) 0%, rgba(22, 44, 35, 0.80) 100%);
    pointer-events: none;
}

.er-band .container {
    position: relative;
    z-index: 2;
}

.er-band-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #19e089;
}

.er-band-heading {
    margin: 0 auto;
    font-family: var(--alt-font, inherit);
    font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
    line-height: 1.22 !important;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.er-band .er-band-sub {
    margin: 10px auto 0;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
    line-height: 1.55;
}

.er-band .er-title {
    margin: 0 auto;
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    line-height: 1.28;
}

.er-band .er-meta {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .er-band {
        padding: 96px 0 34px !important;
    }
}

@media (max-width: 767px) {
    .er-band {
        padding: 84px 0 28px !important;
    }

        .er-band .er-band-sub {
            font-size: 0.92rem;
        }
}

/* ---- Category chips ---- */
.er-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 18px;
    white-space: nowrap;
    scrollbar-width: none
}

    .er-cats::-webkit-scrollbar {
        display: none
    }

.er-chip {
    flex: 0 0 auto;
    padding: 7px 16px;
    border: 1px solid var(--er-border);
    border-radius: 999px;
    background: #fff;
    color: var(--er-text);
    font-size: .9rem
}

    .er-chip.active {
        background: var(--er-dark);
        border-color: var(--er-dark);
        color: #fff !important
    }

/* ---- Grid + cards ---- */
.er-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 4px 0 24px
}

@media(min-width:640px) {
    .er-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(min-width:992px) {
    .er-grid {
        grid-template-columns: repeat(3,1fr)
    }
}

.er-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06)
}

.er-card-img {
    display: block;
    aspect-ratio: 16/10;
    background: #e9edf2;
    overflow: hidden
}

    .er-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.er-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px
}

.er-tag {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--er-accent)
}

.er-card h2 {
    margin: 8px 0 8px;
    font-size: 1.12rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0
}

    .er-card h2 a {
        color: var(--er-dark)
    }

        .er-card h2 a:hover {
            color: var(--er-accent)
        }

.er-card p {
    margin: 0 0 14px;
    color: var(--er-muted);
    font-size: .95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.er-card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: var(--er-muted)
}

    .er-card-foot a {
        color: var(--er-accent);
        font-weight: 600
    }

@media(prefers-reduced-motion:no-preference) {
    .er-card {
        transition: transform .2s ease,box-shadow .2s ease
    }

        .er-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 24px rgba(0,0,0,.10)
        }
}

/* ---- Pagination ---- */
.er-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 8px
}

    .er-pager a, .er-pager span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--er-border);
        border-radius: 8px;
        background: #fff;
        color: var(--er-text);
        font-size: .92rem
    }

    .er-pager .cur {
        background: var(--er-dark);
        border-color: var(--er-dark);
        color: #fff
    }

    .er-pager .dots {
        border: 0;
        background: transparent
    }

.er-empty {
    padding: 40px 15px;
    text-align: center;
    color: var(--er-muted)
}

    .er-empty h2 {
        color: var(--er-dark)
    }

/* ---- Detail ---- */
.er-hero-img {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    background: #e9edf2;
    margin-bottom: 24px
}

.er-content {
    background: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    font-size: 1.04rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 12px rgba(0,0,0,.05)
}

@media(min-width:768px) {
    .er-content {
        padding: 34px 38px
    }
}

.er-content h2, .er-content h3, .er-content h4 {
    color: var(--er-dark);
    line-height: 1.3;
    margin: 1.6em 0 .6em
}

.er-content > :first-child {
    margin-top: 0
}

.er-content p {
    margin: 0 0 1.1em
}

.er-content ul, .er-content ol {
    margin: 0 0 1.1em;
    padding-left: 1.4em
}

.er-content a {
    color: var(--er-accent);
    text-decoration: underline
}

.er-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin: 1em 0
}

.er-content iframe, .er-content video {
    max-width: 100%
}

.er-content blockquote {
    margin: 1.2em 0;
    padding: 8px 18px;
    border-left: 4px solid var(--er-accent);
    background: #fafbfc;
    color: #374151
}

.er-table {
    overflow-x: auto;
    margin: 1em 0
}

.er-content table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px
}

.er-content th, .er-content td {
    border: 1px solid var(--er-border);
    padding: 8px 10px;
    text-align: left
}

/* ---- Share ---- */
.er-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 22px 0
}

    .er-share strong {
        font-size: .92rem;
        margin-right: 4px;
        color: var(--er-dark)
    }

    .er-share a, .er-share button {
        padding: 8px 14px;
        border: 1px solid var(--er-border);
        border-radius: 8px;
        background: #fff;
        font: inherit;
        font-size: .88rem;
        cursor: pointer;
        color: var(--er-text)
    }

/* ---- CTA ---- */
.er-cta {
    background: var(--er-dark);
    color: #fff;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center
}

    .er-cta h3 {
        margin: 0 0 8px;
        font-size: 1.25rem;
        line-height: 1.4;
        color: #fff
    }

    .er-cta p {
        margin: 0 0 18px;
        color: rgba(255,255,255,.8)
    }

.er-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 8px;
    background: var(--er-accent);
    color: #fff !important;
    font-weight: 700
}

.er-related h2 {
    margin: 40px 0 16px;
    font-size: 1.35rem;
    color: var(--er-dark)
}



/* ---- Detail: 2-column layout + sidebar ---- */
.er-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px
}

@media(min-width:992px) {
    .er-layout {
        grid-template-columns: minmax(0,1fr) 340px;
        gap: 32px
    }
}

.er-main-col {
    min-width: 0
}

.er-side {
    display: grid;
    gap: 20px;
    align-content: start
}

.er-widget {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05)
}

    .er-widget h3 {
        margin: 0 0 14px;
        padding-bottom: 10px;
        font-size: 1.05rem;
        color: var(--er-dark);
        border-bottom: 2px solid var(--er-accent);
        display: inline-block
    }

/* Categories */
.er-sidecats {
    list-style: none;
    margin: 0;
    padding: 0
}

    .er-sidecats li {
        margin: 0;
        border-bottom: 1px solid var(--er-border)
    }

        .er-sidecats li:last-child {
            border-bottom: 0
        }

    .er-sidecats a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        color: var(--er-text);
        font-size: .95rem
    }

        .er-sidecats a:hover, .er-sidecats a.on {
            color: var(--er-accent);
            font-weight: 600
        }

    .er-sidecats span {
        min-width: 28px;
        padding: 2px 8px;
        border-radius: 999px;
        background: var(--er-bg);
        font-size: .78rem;
        text-align: center;
        color: var(--er-muted)
    }

/* Latest articles */
.er-recent {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--er-border)
}

    .er-recent:last-child {
        border-bottom: 0;
        padding-bottom: 0
    }

    .er-recent img {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 8px;
        background: #e9edf2
    }

.er-recent-t {
    display: block;
    font-size: .92rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--er-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.er-recent:hover .er-recent-t {
    color: var(--er-accent)
}

.er-recent time {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    color: var(--er-muted)
}

/* Contact card */
.er-widget-dark {
    background: var(--er-dark);
    color: #fff
}

    .er-widget-dark h3 {
        color: #fff
    }

    .er-widget-dark p {
        margin: 0 0 10px;
        color: rgba(255,255,255,.8);
        font-size: .93rem
    }

    .er-widget-dark a {
        display: block;
        color: #fff;
        font-weight: 600;
        padding: 3px 0;
        overflow-wrap: anywhere
    }

        .er-widget-dark a:hover {
            text-decoration: underline
        }

@media(min-width:992px) {
    .er-widget-sticky {
        position: sticky;
        top: 100px
    }
    /* header height ke hisaab se top adjust karna */
}

/* ---- Breadcrumb & Category Pill inside dark header ---- */
.er-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.er-crumb-dark {
    justify-content: center;
    padding: 0 0 12px;
    color: rgba(255, 255, 255, 0.82) !important;
}

    .er-crumb-dark a,
    .er-crumb-dark a:visited {
        color: #ffffff !important;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .er-crumb-dark a:hover {
            color: #19e089 !important;
            text-decoration: underline;
        }

    .er-crumb-dark span {
        color: rgba(255, 255, 255, 0.55) !important;
    }

/* Category badge (works whether litCategory renders <span> or <a>) */
.er-pill {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.er-band .er-pill,
.er-band a.er-pill,
.er-band .er-pill a {
    background: rgba(25, 224, 137, 0.16) !important;
    border: 1px solid rgba(25, 224, 137, 0.45) !important;
    color: #19e089 !important;
    text-decoration: none !important;
}

    .er-band a.er-pill:hover,
    .er-band .er-pill a:hover {
        background: #19e089 !important;
        color: #121921 !important;
    }

.er-band .er-meta,
.er-band .er-meta span {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.9rem;
}
