/* =========================
   BASE WRAPPER
========================= */
.advs-wrapper{
    width:100%;
    padding:20px;
    font-family: Arial, sans-serif;
    box-sizing:border-box;
   
}

/* =========================
   FILTER BAR
========================= */
.advs-filters{
    position:sticky;
    top:0;
    z-index:999;

    display:flex;
    flex-wrap:wrap;
    gap:10px;

    padding:12px;
    background:rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);

    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);

    margin-bottom:15px;
}

.advs-filters select,
.advs-filters input{
    padding:10px 12px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
    outline:none;
    transition:0.2s;
}

.advs-filters select:focus,
.advs-filters input:focus{
    border-color:#0073aa;
    box-shadow:0 0 0 2px rgba(0,115,170,0.15);
}

.advs-filters input{
    flex:1;
    min-width:180px;
}

/* =========================
   GRID (MASONRY STYLE)
========================= */
.advs-grid{
    column-count:4;
    column-gap:15px;
}

@media (max-width:1200px){
    .advs-grid{ column-count:3; }
}
@media (max-width:768px){
    .advs-grid{ column-count:2; }
}
@media (max-width:480px){
    .advs-grid{ column-count:1; }
}

/* =========================
   CARD
========================= */
.advs-card{
    break-inside:avoid;
    margin-bottom:15px;

    background:#fff;
    border-radius:12px;
    overflow:hidden;

    box-shadow:0 2px 8px rgba(0,0,0,0.06);

    cursor:pointer;
    transition:0.25s;

    animation:fadeIn 0.4s ease-in-out;
}

.advs-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,0.12);
}

/* IMAGE */
.advs-thumb{
    width:100%;
    height:200px;
    overflow:hidden;
    background:#f5f5f5;
}

.advs-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* INFO */
.advs-info{
background:#EFEABB;   /* change this color */
    padding:10px 12px;
}

.advs-title{

font-size:14px;
    font-weight:600;
    color:#222;
    margin-bottom:5px;
    line-height:1.4;
}

.advs-date{
    font-size:12px;
    color:#777;
}

/* =========================
   LOADER
========================= */
.advs-loader{
    text-align:center;
    padding:20px;
    font-size:14px;
    color:#555;
}

/* =========================
   NO RESULTS
========================= */
#advs-no-results{
    text-align:center;
    padding:40px;
    font-size:16px;
    color:#777;
}

/* =========================
   POPUP (FIXED WORKING)
========================= */
.advs-popup{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.96);
    z-index:999999;

    display:none;

    align-items:center;
    justify-content:center;

    padding:20px;

    overflow:auto;   /* ✅ allow scroll ONLY if needed */
}

.advs-popup.active{
    display:flex;
}


/* POPUP IMAGE */
#advs-popup-img{
    display:block;
    margin:auto;

    box-shadow:0 0 30px rgba(0,0,0,.6);
    border-radius:8px;
}
/* CLOSE BUTTON */
.advs-close{
    position:fixed;
    top:15px;
    right:15px;

    width:44px;
    height:44px;

    line-height:44px;
    text-align:center;

    background:#d60000;
    color:#fff;

    font-size:22px;
    font-weight:bold;

    border-radius:8px;

    cursor:pointer;
    user-select:none;

    z-index:1000000;

    transition:0.2s;
}

.advs-close:hover{
    background:#a50000;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.advs-pagination{
    text-align:center;
    margin:25px 0;
}

.advs-page{
    display:inline-block;
    padding:8px 12px;
    margin:3px;

    background:#fff;
    border:1px solid #ddd;
    border-radius:6px;

    text-decoration:none;
    color:#333;
}

.advs-page:hover{
    background:#0073aa;
    color:#fff;
}

.advs-page.active{
    background:#0073aa;
    color:#fff;
    border-color:#0073aa;
}

/* =========================
   MOBILE
========================= */
@media (max-width:768px){
    .advs-filters{
        flex-direction:column;
    }

    .advs-filters input{
        width:100%;
    }
}