/*
|--------------------------------------------------------------------------
| Marathi Status Core
| App Styles
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after{
    box-sizing:border-box;
}

.ms-homepage{
    max-width:1280px;
    margin:0 auto;
    padding:24px 16px 50px;
}

/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.ms-section{
    margin-bottom:40px;
}

.ms-section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:18px;
    font-size:26px;
    font-weight:700;
    line-height:1.3;
}

.ms-section-title a{
    text-decoration:none;
    font-size:14px;
}

/*
|--------------------------------------------------------------------------
| Category Chips
|--------------------------------------------------------------------------
*/

.ms-chip-wrapper{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:25px;
}

.ms-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    border-radius:999px;
    background:#f5f5f5;
    color:#222;
    text-decoration:none;
    transition:.25s;
}

.ms-chip:hover{
    background:#0d6efd;
    color:#fff;
}

/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.ms-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:22px;
}

/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.ms-card{
    background:#fff;
    border:1px solid #ececec;
    border-radius:14px;
    overflow:hidden;
    transition:.3s;
    height:100%;
    display:flex;
    flex-direction:column;
}

.ms-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

/*
|--------------------------------------------------------------------------
| Image
|--------------------------------------------------------------------------
*/

.ms-card-image{
    overflow:hidden;
}

.ms-card-image img{
    width:100%;
    display:block;
    aspect-ratio:1/1;
    object-fit:cover;
    transition:.35s;
}

.ms-card:hover img{
    transform:scale(1.05);
}

/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/

.ms-card-body{
    padding:16px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.ms-card-category{
    font-size:12px;
    color:#777;
    margin-bottom:8px;
}

.ms-card-title{
    font-size:18px;
    line-height:1.45;
    margin:0 0 12px;
    font-weight:600;
}

.ms-card-title a{
    color:#222;
    text-decoration:none;
}

.ms-card-title a:hover{
    color:#0d6efd;
}

.ms-card-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    color:#666;
    margin-top:auto;
    margin-bottom:15px;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.ms-card-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.ms-card-actions a,
.ms-card-actions button,
.ms-card-actions .button{
    flex:1;
    border:none;
    border-radius:8px;
    padding:10px;
    cursor:pointer;
    text-decoration:none;
    text-align:center;
    background:#0d6efd;
    color:#fff;
    transition:.25s;
    font-size:14px;
}

.ms-card-actions a:hover,
.ms-card-actions button:hover,
.ms-card-actions .button:hover{
    background:#0b5ed7;
}

/*
|--------------------------------------------------------------------------
| Single Page
|--------------------------------------------------------------------------
*/

.ms-single{
    max-width:900px;
    margin:40px auto;
}

.ms-single img{
    max-width:100%;
    height:auto;
    border-radius:12px;
}

.ms-single-content{
    line-height:1.8;
    margin-top:20px;
}

/*
|--------------------------------------------------------------------------
| Empty
|--------------------------------------------------------------------------
*/

.ms-empty{
    padding:60px 20px;
    text-align:center;
    color:#777;
}

/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.ms-loading{
    text-align:center;
    padding:30px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media(max-width:992px){

    .ms-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:768px){

    .ms-homepage{
        padding:18px 12px 35px;
    }

    .ms-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .ms-section-title{
        font-size:22px;
    }

    .ms-card-title{
        font-size:16px;
    }

}

@media(max-width:480px){

    .ms-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .ms-card-actions{
        flex-direction:column;
    }

    .ms-chip{
        font-size:13px;
        padding:8px 14px;
    }

}