.brand-grid{
width:100%;
max-width:100%;
box-sizing:border-box;
}
.brand-card{
width:100%;
max-width:100%;
}
.brand-card img{
max-width:100%;
height:auto;
display:block;
}
.brand-grid{

display:grid !important;
grid-template-columns:repeat(7,1fr) !important;
gap:10px;

}

/* Mobile */

@media (max-width: 767px){

.brand-grid{
grid-template-columns: repeat(2, 1fr) !important;
gap:12px;
}

}

/* Tablet */

@media (min-width:768px) and (max-width:1024px){

.brand-grid{
grid-template-columns: repeat(4, 1fr) !important;
gap:16px;
}

}
.brand-card{

height:130px;

border:1px solid #ddd;
border-radius:8px;

display:flex !important;
flex-direction:column;
align-items:center;
justify-content:center;

background:#fff;

text-decoration:none;
color:#111;

position:relative;

}

/*.brand-card img{*/

/*width:60px;*/
/*height:60px;*/
/*object-fit:contain;*/
/*margin-bottom:8px;*/

/*}*/

.brand-card h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

.brand-count {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 25px;
    height: 22px;
   
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #f9af3c;
}
.brand-count:hover {
    color: #fff;
}

.brand-more-btn-wrap{
text-align:center;
margin-top:30px;
}

.brand-more-btn{

padding:10px 25px;
border:1px solid #ddd;
border-radius:30px;
background:#fff;
cursor:pointer;

}

/*popup css*/

.brand-popup{

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,0.6);

display:none;

align-items:center;
justify-content:center;

z-index:99999;

padding:40px;

}

.brand-popup-inner {
    background: #fff;
    padding: 30px !important;
    border-radius: 12px;
    /*max-width: 1100px;*/
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.brand-close{

position:absolute;
top:20px;
right:30px;

font-size:28px;
cursor:pointer;

}

/*hover animation css*/
a.brand-card:hover{
    color: #fff;
}
.brand-card{
position: relative;
transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand-card:hover{
box-shadow: 0 15px 35px rgba(0,0,0,0.12);
border-color: #e6e6e6;
transform: translateY(-6px);
    margin-top: 6px;
}

/* logo animation */
.brand-card img{
transition: transform 0.35s ease;
}

.brand-card:hover img{
transform: scale(1.08);
}

/* badge animation */
.brand-count{
transition: transform 0.3s ease;
}

.brand-card:hover .brand-count{
transform: scale(1.15);
}


.blog-grid-wrap{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
}

.blog-card{
background:#fff;
border-radius:12px;
overflow:hidden;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
transition:.35s;
}

.blog-card:hover{
transform:translateY(-8px);
box-shadow:0 20px 35px rgba(0,0,0,0.12);
}

.blog-thumb img{
width:100%;
height:200px;
object-fit:cover;
display:block;
}

.blog-content{
padding:18px;
}

.blog-date{
font-size:13px;
color:#777;
margin-bottom:10px;
}

.blog-title{
font-size:18px;
font-weight:600;
margin-bottom:8px;
}

.blog-title a{
text-decoration:none;
color:#222;
}

.blog-read{
font-size:14px;
font-weight:600;
color:#fe8900;
text-decoration:none;
}

.blog-read:hover{
text-decoration:underline;
}

/* pagination */

.blog-pagination{
margin-top:40px;
text-align:center;
}

.blog-pagination a,
.blog-pagination span{
display:inline-block;
padding:10px 16px;
margin:4px;
border-radius:30px;
background:#fe8900;
color:#fff;
text-decoration:none;
font-size:14px;
}

.blog-pagination a:hover{
background:#222;
}

.blog-pagination .current{
background:#222;
}


/* POPUP CONTAINER */
.msb-popup {
    max-width: 320px;
    width: 90%;
    margin: auto;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    position: relative;
}

/* GRID (2 column mobile perfect) */
.msb-popup .brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* CARD */
.msb-popup .brand-item {
    background: #fff;
    border-radius: 14px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    position: relative;
    transition: 0.3s;
}

.msb-popup .brand-item:hover {
    transform: translateY(-3px);
}

/* LOGO */
.msb-popup .brand-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 5px;
}

/* NAME */
.msb-popup .brand-item span {
    font-size: 13px;
    font-weight: 500;
    display: block;
}

/* COUNT BADGE */
.msb-popup .brand-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff6a00;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
}

/* CLOSE BUTTON 🔥 */
.msb-popup .close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff6a00;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* MOBILE FIX */
@media (max-width: 480px) {
    .msb-popup {
        padding: 15px;
    }

    .msb-popup .brand-item {
        padding: 12px 8px;
    }

    .msb-popup .brand-item img {
        width: 40px;
        height: 40px;
    }
}