/*
Theme Name: Ali Theme
Author: نام شما
Description: قالب اختصاصی وردپرس
Version: 1.0
*/

body, body *{font-family:Lalezar,Ravi,Yekan,Tahoma,DejaVu Sans,helvetica,arial,freesans,sans-serif}



.ali-card-wrap {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-top: 20px;
    max-width: 1200px;
}
.ali-card-wrap fieldset {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 24px 20px 20px;
    margin: 0;
}
.ali-card-wrap legend {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
    padding: 0 14px;
    margin-right: 10px;
}
.ali-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ali-items-grid li {
    margin: 0;
}
.ali-item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fbfbfc;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    padding: 16px 10px;
    transition: all 0.25s ease-in-out;
    height: 100%;
    box-sizing: border-box;
}
.ali-item-box:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: #2271b1;
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.12);
}
.ali-item-box img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}
.ali-item-box:hover img {
    transform: scale(1.04);
}
.ali-item-box b {
    font-size: 13px;
    color: #2c3338;
    text-align: center;
    font-weight: 600;
    line-height: 1.5;
}
.ali-item-box:hover b {
    color: #2271b1;
}