:root{
    --green:#008c61;
    --green-dark:#006b4a;
    --green-darker:#00543a;
    --green-light:#eaf8f2;
    --green-soft:#f2fbf7;

    --orange:#f15b2a;
    --orange-dark:#d94a1c;
    --orange-light:#fff0ea;

    --blue:#2b70b8;
    --blue-light:#edf5ff;

    --text:#152420;
    --text-soft:#3d4a44;
    --muted:#71807a;
    --light:#98a49e;

    --border:#e6ece9;
    --border-soft:#eef2f0;
    --bg:#f4f7f6;
    --white:#fff;

    --shadow-sm:0 1px 2px rgba(19,44,34,.05);
    --shadow:0 4px 16px rgba(19,44,34,.06);
    --shadow-hover:0 14px 34px rgba(19,44,34,.12);

    --radius:8px;
    --radius-lg:14px;
    --radius-xl:18px;

    --font-display:'Manrope',sans-serif;
    --font-body:'Inter',sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0;}

html{-webkit-font-smoothing:antialiased;}

body{
    font-family:var(--font-body);
    color:var(--text);
    background:var(--bg);
    font-size:15px;
    line-height:1.5;
}

button,input,select{font-family:inherit;}
button{cursor:pointer;border:none;background:none;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}

::selection{background:var(--green-light);color:var(--green-darker);}

:focus-visible{
    outline:2px solid var(--green);
    outline-offset:2px;
    border-radius:4px;
}
/* =========================================================
   MAIN CONTENT
========================================================= */

.page{
    max-width:1280px;
    margin:auto;
    padding:26px 32px 40px;
    margin-top: 10px;
}

.content-grid{
    display:grid;
    grid-template-columns:262px minmax(0,1fr) 268px;
    gap:22px;
    align-items:start;
}


/* =========================================================
   RESULTS
========================================================= */

.results-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}
.results-count{color:var(--muted);font-size:13px;}
.results-count strong{color:var(--text);font-weight:700;}

.sort-box{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--muted);
    font-size:13px;
}
.sort-box select{
    border:1px solid var(--border);
    background:#fff;
    border-radius:var(--radius);
    padding:8px 12px;
    color:var(--text-soft);
    font-size:13px;
    font-weight:600;
}

/* =========================================================
   TENDER CARD
========================================================= */

.tender-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    margin-bottom:14px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 168px;
    transition:.18s ease;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}
.tender-card:hover{
    border-color:#cfe4da;
    box-shadow:var(--shadow-hover);
    transform:translateY(-2px);
}

.tender-main{padding:20px 20px 18px;}

.card-top{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:10px;
    flex-wrap:wrap;
}

.badge{
    padding:5px 10px;
    border-radius:6px;
    font-size:11.5px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    gap:5px;
}
.badge.open{background:var(--green-light);color:var(--green-darker);}
.badge.open:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green);}
.badge.limited{background:#fff4df;color:#a86308;}
.badge.limited:before{content:"";width:6px;height:6px;border-radius:50%;background:#e2a13b;}
.badge.category{
    background:var(--bg);
    border:1px solid var(--border);
    color:var(--muted);
    font-weight:600;
}

.tender-title{
    display:block;
    color:var(--text);
    font-family:var(--font-display);
    font-size:14.5px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:11px;
    transition:.12s ease;
}
.tender-title:hover{color:var(--green-dark);}

.agency{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--text-soft);
    font-size:13px;
    font-weight:500;
    margin-bottom:13px;
}
.agency-icon{
    width:22px;height:22px;
    border-radius:6px;
    background:var(--green-light);
    display:flex;align-items:center;justify-content:center;
    color:var(--green-darker);
    font-size:10.5px;
    font-weight:800;
    flex:0 0 22px;
}

.card-meta{
    display:flex;
    align-items:center;
    gap:9px;
    color:var(--muted);
    font-size:12.5px;
    flex-wrap:wrap;
}
.card-meta strong{color:var(--text-soft);font-weight:600;}
.meta-sep{color:var(--border);}

.tender-side{
    border-left:1px solid var(--border-soft);
    background:var(--green-soft);
    padding:18px 16px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:12px;
}

.deadline-label,.value-label{
    color:var(--light);
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.05em;
    font-weight:700;
}
.deadline{
    color:var(--orange-dark);
    font-size:13px;
    font-weight:700;
    margin-top:5px;
}
.deadline-days{
    display:inline-block;
    margin-top:4px;
    background:var(--orange-light);
    color:var(--orange-dark);
    font-size:10.5px;
    font-weight:700;
    padding:2px 7px;
    border-radius:5px;
}
.value{
    color:var(--text);
    font-size:13px;
    font-weight:700;
    margin-top:5px;
}

.view-btn{
    height:36px;
    width:100%;
    border-radius:7px;
    background:var(--green);
    color:#fff;
    font-size:12.5px;
    font-weight:700;
    transition:.15s ease;
}
.view-btn:hover{background:var(--green-dark);}

/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.right-column{
    display:flex;
    flex-direction:column;
    gap:16px;
    position:sticky;
    top:16px;
}

.side-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}

.side-card-header{
    padding:13px 15px;
    border-bottom:1px solid var(--border-soft);
    font-family:var(--font-display);
    font-size:13px;
    font-weight:800;
    color:var(--text);
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.side-card-header span{
    font-size:10.5px;
    color:var(--green);
    font-weight:700;
    background:var(--green-light);
    padding:3px 8px;
    border-radius:20px;
}

.side-card-body{padding:15px;}

.alert-illustration{
    height:88px;
    border-radius:10px;
    background:
        radial-gradient(circle at 30% 30%,rgba(0,140,97,.20),transparent 60%),
        linear-gradient(135deg,#ecfaf5,#f6fbf9);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:13px;
    position:relative;
    overflow:hidden;
}
.mail-box{
    width:58px;height:40px;
    border-radius:8px;
    background:#fff;
    box-shadow:0 6px 16px rgba(0,90,60,.14);
    position:relative;
}
.mail-box:after{
    content:"";
    position:absolute;
    left:9px;right:9px;top:9px;
    height:15px;
    border-left:2px solid #39a77f;
    border-bottom:2px solid #39a77f;
    transform:rotate(-45deg);
}
.alert-dot{
    position:absolute;
    right:calc(50% - 36px);
    top:19px;
    width:14px;height:14px;
    background:var(--orange);
    border-radius:50%;
    border:2px solid white;
}

.side-text{
    color:var(--muted);
    font-size:12.5px;
    line-height:1.55;
    margin-bottom:13px;
}

.create-alert{
    width:100%;
    height:38px;
    border:0;
    border-radius:7px;
    background:var(--green);
    color:white;
    font-size:12.5px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    cursor:pointer;
    transition:.15s ease;
}
.create-alert:hover{background:var(--green-dark);}

/* statistics */

.stat-row{
    display:flex;
    align-items:center;
    gap:11px;
    padding:11px 0;
    border-bottom:1px solid var(--border-soft);
}
.stat-row:first-child{padding-top:0;}
.stat-row:last-child{border-bottom:0;padding-bottom:0;}

.stat-icon{
    width:34px;height:34px;
    border-radius:8px;
    background:#c6eada;
    display:flex;align-items:center;justify-content:center;
    color:var(--green-darker);
    font-size:14px;
    font-weight:800;
    flex:0 0 34px;
}
.stat-info{flex:1;}
.stat-number{
    font-family:var(--font-display);
    font-size:15px;
    font-weight:800;
    color:var(--text);
}
.stat-label{font-size:11.5px;color:var(--muted);margin-top:1px;}

/* help */

.help-card{
    background:linear-gradient(150deg,#eefaf5,#e6f6ef);
    border:1px solid #d7eee3;
    border-radius:var(--radius-lg);
    padding:17px;
    position:relative;
    overflow:hidden;
}
.help-card:before{
    content:"";
    position:absolute;
    right:-30px;top:-30px;
    width:110px;height:110px;
    border-radius:50%;
    background:rgba(0,140,97,.08);
}
.help-card h3{
    font-family:var(--font-display);
    font-size:14.5px;
    font-weight:800;
    line-height:1.35;
    margin-bottom:6px;
    position:relative;
}
.help-card p{
    color:var(--text-soft);
    font-size:12.5px;
    line-height:1.5;
    margin-bottom:13px;
    position:relative;
}
.contact-btn{
    background:var(--green-darker);
    color:white;
    padding:9px 15px;
    border-radius:7px;
    font-size:12.5px;
    font-weight:700;
    position:relative;
    transition:.15s ease;
}
.contact-btn:hover{background:#003d2b;}

/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 24px 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 11px;

    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 7px;

    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;

    box-sizing: border-box;
    transition: all 0.18s ease;
}

.page-btn:hover:not(.active):not(.disabled) {
    color: #078f48;
    border-color: #078f48;
    background: #f0fdf4;
}

.page-btn.active {
    color: #fff;
    background: #078f48;
    border-color: #078f48;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(7, 143, 72, 0.18);
}

.page-btn.disabled {
    color: #cbd5e1;
    background: #fafafa;
    border-color: #edf0f2;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 38px;

    color: #64748b;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    user-select: none;
}

/* =========================================================
   POPULAR SEARCHES
========================================================= */

.popular{max-width:1280px;margin:auto;padding:0 32px 32px;}
.popular-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:14px 18px;
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}
.popular-title{color:var(--text-soft);font-size:12.5px;font-weight:700;white-space:nowrap;}
.popular-tags{display:flex;gap:8px;flex-wrap:wrap;}
.popular-tag{
    padding:7px 13px;
    border-radius:7px;
    background:var(--bg);
    border:1px solid var(--border);
    color:var(--text-soft);
    font-size:12px;
    font-weight:500;
    transition:.12s ease;
}
.popular-tag:hover{border-color:#c7d8d0;background:var(--green-soft);color:var(--green-darker);}
.no-results{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:50px 25px;
    text-align:center;
    box-shadow:var(--shadow-sm);
}

.no-results strong{
    display:block;
    font-family:var(--font-display);
    font-size:17px;
    font-weight:800;
    color:var(--text);
    margin-bottom:6px;
}

.no-results span{
    display:block;
    color:var(--muted);
    font-size:13px;
}

.page-btn.disabled{
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
.listing-context-links {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: 0 1px 5px rgba(0,0,0,.08);
    overflow: hidden;
}

.listing-context-title {
    padding: 14px 16px;
    background: #37c386;
    color: #fff;
    font-weight: 600;
}

.listing-context-list {
    max-height: 240px;
    overflow-y: auto;
}

.listing-context-list a {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    color: #222;
    text-decoration: none;
    font-size: 13px;
}

.listing-context-list a:hover {
    color: #37c386;
}

.listing-context-list a span {
    color: #37c386;
    margin-right: 6px;
}




/* Filter Slider  */
/* =========================================================
   LISTING ACCORDION
========================================================= */

.listing-accordion{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 3px 14px rgba(0,0,0,.08);
    margin-bottom:18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

.listing-accordion-head{
    width:100%;
    height:78px;
    padding:0 0 0 34px;

    /* border:0; */
    background:#fff;

    display:flex;
    align-items:center;
    justify-content:space-between;

    color:#171717;
    font-size:20px;
    font-weight:400;

    text-align:left;
    cursor:pointer;
}

.listing-accordion-icon{
    width:77px;
    height:70px;

    background:#1f7655;
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:32px;
    font-weight:300;

    flex-shrink:0;
}

.listing-accordion-body{
    display:none;
    border-top:1px solid #eee;
}


/* =========================================================
   CONTEXT LINKS
========================================================= */

.listing-context-list{
    padding:10px 18px 14px;
}

.listing-context-list a{
    display:block;
    padding:9px 5px;

    color:var(--text);
    text-decoration:none;

    font-size:13px;

    border-bottom:1px solid var(--border-soft);
}

.listing-context-list a:last-child{
    border-bottom:0;
}

.listing-context-list a span{
    color:var(--green);
    margin-right:7px;
}

.listing-context-list a:hover{
    color:var(--green);
}


/* =========================================================
   FILTER ACCORDION
========================================================= */


.filter-accordion .listing-accordion-body{
    padding:0;
}


.filter-accordion .filters{
    background: #fff;
    border: 1px solid var(--border);
    /* border-radius: var(--radius-lg); */
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    scrollbar-width: thin;
    scrollbar-color: #cbd8d3 transparent;
}

.left-sidebar{
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

/* =========================================================
   LISTING PAGE - RESPONSIVE ONLY
   Keep this file after listing.css
========================================================= */


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px){

    .page{
        padding:22px 20px 35px;
    }

    .content-grid{
        grid-template-columns:240px minmax(0,1fr);
        gap:18px;
    }

    /* Right sidebar moves below results */
    .right-column{
        grid-column:1 / -1;
        position:static;
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:16px;
    }

    .left-sidebar{
        position:static;      /* sticky hata do, overlap yahin se ho raha tha */
        align-self:start;
    }

    .tender-card{
        grid-template-columns:minmax(0,1fr) 145px;
    }

    .tender-main{
        padding:18px;
    }

    .tender-side{
        padding:16px 13px;
    }

    .popular{
        padding:0 20px 28px;
    }
    .right-column{
        grid-column:1 / -1;
        grid-row:2;           /* hamesha agli row me */
        position:static;
    }

    .filter-accordion .filters{
        position:static;      /* nested sticky bhi band */
        max-height:70vh;      /* lamba filter apne andar scroll hoga */
        overflow-y:auto;
    }
}
/* display: flex; */ 
        /* flex-direction: column; */
        /* gap: 14px;


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 900px){

    .page{
        padding:20px 16px 30px;
    }
.content-grid{
        display:flex;
        flex-direction:column;
        gap:14px;
    }


    /* Left filter becomes normal block */
    .left-sidebar{
        position:static;
        display:block;
        width:100%;
        max-width:100%;
    }

    /* Context links + filter */
    .left-sidebar > *{
        margin-bottom:16px;
    }

    .right-column{
        grid-column:auto;
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .help-card{
        grid-column:1 / -1;
    }

    .listing-accordion{
        margin-bottom:16px;
    }

    .listing-accordion-head{
        height:64px;
        padding-left:22px;
        font-size:18px;
    }

    .listing-accordion-icon{
        width:62px;
        height:64px;
        font-size:28px;
    }

    .filter-accordion .filters{
        position:static;
        max-height:none;
        overflow:visible;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px){

    .page{
        width:100%;
        padding:16px 12px 25px;
        margin-top:0;
    }

    .content-grid{
        display:flex;
        flex-direction:column;
        gap:14px;
    }

    .left-sidebar,
    #tender-list,
    .right-column{
        width:100%;
    }


    /* -----------------------------------------
       CONTEXT LINKS
    ----------------------------------------- */

    .listing-context-links{
        margin-bottom:12px;
    }

    .listing-context-title{
        padding:12px 14px;
        font-size:14px;
    }

    .listing-context-list{
        max-height:200px;
        padding:6px 12px 10px;
    }

    .listing-context-list a{
        padding:9px 3px;
        font-size:12px;
    }


    /* -----------------------------------------
       FILTER ACCORDION
    ----------------------------------------- */

    .listing-accordion{
        border-radius:10px;
        margin-bottom:12px;
    }

    .listing-accordion-head{
        height:58px;
        padding-left:16px;
        font-size:17px;
    }

    .listing-accordion-icon{
        width:55px;
        height:58px;
        font-size:26px;
    }

    .filter-accordion .filters{
        border-left:0;
        border-right:0;
        border-bottom:0;
        border-radius:0;
    }


    /* -----------------------------------------
       RESULTS HEADER
    ----------------------------------------- */

    .results-header{
        flex-wrap:wrap;
        gap:10px;
        margin-bottom:12px;
    }

    .results-count{
        font-size:12px;
    }

    .sort-box{
        width:100%;
        justify-content:space-between;
    }

    .sort-box select{
        flex:1;
        max-width:180px;
        padding:8px 10px;
    }


    /* -----------------------------------------
       TENDER CARD
    ----------------------------------------- */

    .tender-card{
        display:block;
        border-radius:11px;
        margin-bottom:12px;
    }

    .tender-main{
        padding:15px;
    }

    .card-top{
        gap:5px;
        margin-bottom:8px;
    }

    .badge{
        padding:4px 8px;
        font-size:10.5px;
    }

    .tender-title{
        font-size:14px;
        line-height:1.45;
        margin-bottom:10px;
    }

    .agency{
        font-size:12px;
        margin-bottom:10px;
    }

    .agency-icon{
        width:20px;
        height:20px;
        flex-basis:20px;
        font-size:9px;
    }

    .card-meta{
        font-size:11.5px;
        gap:6px;
    }

    .tender-side{
        border-left:0;
        border-top:1px solid var(--border-soft);
        padding:13px 15px;
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:12px;
        align-items:center;
    }

    .deadline-label,
    .value-label{
        font-size:9px;
    }

    .deadline{
        font-size:12px;
    }

    .value{
        font-size:12px;
    }

    .view-btn{
        grid-column:1 / -1;
        height:38px;
    }


    /* -----------------------------------------
       RIGHT SIDEBAR
    ----------------------------------------- */

    .right-column{
        display:flex;
        flex-direction:column;
        gap:12px;
    }

    .side-card-body{
        padding:13px;
    }

    .side-card-header{
        padding:12px 13px;
        font-size:12.5px;
    }

    .alert-illustration{
        height:75px;
    }

    .side-text{
        font-size:12px;
    }

    .stat-row{
        padding:10px 0;
    }

    .stat-icon{
        width:32px;
        height:32px;
        flex-basis:32px;
    }

    .help-card{
        padding:15px;
    }


    /* -----------------------------------------
       PAGINATION
    ----------------------------------------- */

    .pagination{
        gap:5px;
        margin:20px 0;
        flex-wrap:wrap;
    }

    .page-btn{
        min-width:34px;
        height:34px;
        padding:0 8px;
        font-size:13px;
    }

    .pagination-dots{
        height:34px;
        min-width:14px;
    }


    /* -----------------------------------------
       POPULAR SEARCHES
    ----------------------------------------- */

    .popular{
        width:100%;
        padding:0 12px 22px;
    }

    .popular-box{
        padding:13px;
        gap:10px;
    }

    .popular-title{
        width:100%;
        font-size:12px;
    }

    .popular-tags{
        gap:6px;
    }

    .popular-tag{
        padding:6px 10px;
        font-size:11px;
    }


    /* -----------------------------------------
       NO RESULTS
    ----------------------------------------- */

    .no-results{
        padding:40px 18px;
    }

    .no-results strong{
        font-size:16px;
    }

    .no-results span{
        font-size:12px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px){

    .page{
        padding-left:10px;
        padding-right:10px;
    }

    .listing-accordion-head{
        height:54px;
        padding-left:14px;
        font-size:16px;
    }

    .listing-accordion-icon{
        width:50px;
        height:54px;
        font-size:24px;
    }

    .tender-main{
        padding:13px;
    }

    .tender-title{
        font-size:13.5px;
    }

    .agency{
        align-items:flex-start;
    }

    .tender-side{
        grid-template-columns:1fr;
    }

    .view-btn{
        grid-column:auto;
    }

    .right-column{
        gap:10px;
    }

    .side-card-header{
        font-size:12px;
    }

    .help-card h3{
        font-size:14px;
    }

    .help-card p{
        font-size:11.5px;
    }

    .pagination{
        gap:4px;
    }

    .page-btn{
        min-width:32px;
        height:32px;
        padding:0 7px;
        font-size:12px;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover:none){

    .tender-card:hover{
        transform:none;
        box-shadow:var(--shadow-sm);
    }

    .price-card:hover{
        transform:none;
    }
}
