﻿/* =========================================================
   Express Rupya - Blog listing (Blogs.aspx)
   Sabhi classes "erl-" se shuru, isliye blog.css se conflict nahi.
   Brand color badalna ho to sirf --erl-accent badlo.
   ========================================================= */
:root {
    --erl-accent: #0088ca;
    --erl-accent-dark: #1241a8;
    --erl-ink: #0f172a;
    --erl-body: #475569;
    --erl-muted: #64748b;
    --erl-line: #e2e8f0;
    --erl-bg: #f6f8fb;
    --erl-radius: 16px;
}

.erl-main {
    background: var(--erl-bg);
    padding: 40px 0 88px;
}

.erl-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- toolbar (search + sort + categories) ---------- */
.erl-toolbar {
    background: #fff;
    border: 1px solid var(--erl-line);
    border-radius: var(--erl-radius);
    padding: 16px;
    margin-bottom: 22px;
    box-shadow: 0 12px 32px -22px rgba(15, 23, 42, .35);
}

.erl-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.erl-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 240px;
}

    .erl-search svg {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        pointer-events: none;
    }

    .erl-search input[type="search"] {
        width: 100%;
        height: 50px;
        padding: 0 112px 0 46px;
        border: 1px solid var(--erl-line);
        border-radius: 12px;
        background: #f8fafc;
        font-size: 15px;
        color: var(--erl-ink);
        outline: none;
        transition: border-color .15s, box-shadow .15s, background .15s;
        -webkit-appearance: none;
        appearance: none;
    }

        .erl-search input[type="search"]::-webkit-search-cancel-button {
            display: none;
        }

        .erl-search input[type="search"]:focus {
            background: #fff;
            border-color: var(--erl-accent);
            box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
        }

    .erl-search button {
        position: absolute;
        right: 6px;
        top: 6px;
        bottom: 6px;
        padding: 0 20px;
        border: 0;
        border-radius: 9px;
        background: var(--erl-accent);
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background .15s;
    }

        .erl-search button:hover {
            background: var(--erl-accent-dark);
        }

.erl-clear {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}

    .erl-clear:hover {
        background: #cbd5e1;
        color: #0f172a;
    }

.erl-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: var(--erl-muted);
    white-space: nowrap;
}

    .erl-sort select {
        height: 50px;
        padding: 0 36px 0 14px;
        border: 1px solid var(--erl-line);
        border-radius: 12px;
        background-color: #f8fafc;
        font-size: 14px;
        color: var(--erl-ink);
        cursor: pointer;
        outline: none;
    }

        .erl-sort select:focus {
            border-color: var(--erl-accent);
            box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
        }

.erl-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 2px 2px;
    margin-top: 16px;
    border-top: 1px solid var(--erl-line);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .erl-chips::-webkit-scrollbar {
        display: none;
    }

.erl-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 14px;
    border: 1px solid var(--erl-line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all .15s;
}

    .erl-chip em {
        font-style: normal;
        font-size: 12px;
        font-weight: 600;
        padding: 1px 8px;
        border-radius: 999px;
        background: #f1f5f9;
        color: var(--erl-muted);
    }

    .erl-chip:hover {
        border-color: var(--erl-accent);
        color: var(--erl-accent);
    }

    .erl-chip.active {
        background: var(--erl-accent);
        border-color: var(--erl-accent);
        color: #fff;
    }

        .erl-chip.active em {
            background: rgba(255, 255, 255, .22);
            color: #fff;
        }

    .erl-chip.is-empty {
        opacity: .5;
    }

/* ---------- summary line ---------- */
.erl-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 2px 22px;
    font-size: 14px;
    color: var(--erl-muted);
}

    .erl-summary strong {
        color: var(--erl-ink);
        font-weight: 600;
    }

.erl-reset {
    color: var(--erl-accent);
    font-weight: 600;
    text-decoration: none;
}

    .erl-reset:hover {
        text-decoration: underline;
    }

/* ---------- hero (featured / latest) ---------- */
.erl-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #fff;
    border: 1px solid var(--erl-line);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .35);
    animation: erl-up .5s both;
}

.erl-hero-img {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    background: #e2e8f0;
}

    .erl-hero-img img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

.erl-hero:hover .erl-hero-img img {
    transform: scale(1.04);
}

.erl-hero-body {
    padding: 40px 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.erl-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.erl-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

    .erl-pill.latest {
        background: #dbeafe;
        color: #1e40af;
    }

.erl-cat {
    font-size: 13px;
    font-weight: 600;
    color: var(--erl-accent);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.erl-hero-body h2 {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.25;
    letter-spacing: -.01em;
}

    .erl-hero-body h2 a {
        color: var(--erl-ink);
        text-decoration: none;
    }

        .erl-hero-body h2 a:hover {
            color: var(--erl-accent);
        }

.erl-hero-body p {
    margin: 0;
    color: var(--erl-body);
    font-size: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- grid cards ---------- */
.erl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.erl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--erl-line);
    border-radius: var(--erl-radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
    animation: erl-up .5s both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

    .erl-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 40px -24px rgba(15, 23, 42, .45);
        border-color: #cbd5e1;
    }

.erl-card-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

    .erl-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s ease;
    }

.erl-card:hover .erl-card-img img {
    transform: scale(1.06);
}

.erl-ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .9);
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--erl-accent) 0%, #0b1f4d 100%);
}

.erl-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    max-width: calc(100% - 28px);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--erl-ink);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .25);
}

.erl-star {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fbbf24;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .35);
}

.erl-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
    flex: 1;
}

.erl-date {
    font-size: 13px;
    color: var(--erl-muted);
}

.erl-card-body h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.4;
}

    .erl-card-body h3 a {
        color: var(--erl-ink);
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .erl-card-body h3 a:hover {
            color: var(--erl-accent);
        }

.erl-card-body p {
    margin: 0;
    color: var(--erl-body);
    font-size: 15px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.erl-more {
    margin-top: auto;
    padding-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--erl-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .erl-more span {
        transition: transform .2s;
    }

    .erl-more:hover {
        color: var(--erl-accent-dark);
    }

        .erl-more:hover span {
            transform: translateX(4px);
        }

.erl-hero-body .erl-more {
    margin-top: 6px;
}

/* ---------- pager ---------- */
.erl-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 46px;
}

    .erl-pager a, .erl-pager .cur, .erl-pager .dots {
        min-width: 44px;
        height: 44px;
        padding: 0 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }

    .erl-pager a {
        background: #fff;
        border: 1px solid var(--erl-line);
        color: #334155;
        transition: all .15s;
    }

        .erl-pager a:hover {
            border-color: var(--erl-accent);
            color: var(--erl-accent);
        }

    .erl-pager .cur {
        background: var(--erl-accent);
        color: #fff;
        border: 1px solid var(--erl-accent);
    }

    .erl-pager .dots {
        color: #94a3b8;
    }

/* ---------- empty state ---------- */
.erl-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 70px 20px;
}

    .erl-empty svg {
        color: #94a3b8;
        margin-bottom: 14px;
    }

    .erl-empty h2 {
        margin: 0 0 8px;
        font-size: 24px;
        color: var(--erl-ink);
    }

    .erl-empty p {
        margin: 0 0 22px;
        color: var(--erl-muted);
    }

.erl-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 10px;
    background: var(--erl-accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

    .erl-btn:hover {
        background: var(--erl-accent-dark);
        color: #fff;
    }

/* ---------- motion ---------- */
@keyframes erl-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .erl-hero, .erl-card {
        animation: none;
    }

    .erl-card, .erl-card-img img, .erl-hero-img img {
        transition: none;
    }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .erl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .erl-hero {
        grid-template-columns: 1fr;
    }

    .erl-hero-img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .erl-hero-body {
        padding: 26px 24px 28px;
    }
}

@media (max-width: 575px) {
    .erl-main {
        padding: 28px 0 64px;
    }

    .erl-grid {
        grid-template-columns: 1fr;
    }

    .erl-sort {
        width: 100%;
    }

        .erl-sort select {
            flex: 1;
        }

    .erl-search input[type="search"] {
        padding-right: 100px;
    }

    .erl-summary {
        font-size: 13px;
    }
}
