@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.cpi-box {
    background: #907c4d;
    padding: 35px;
    border-radius: 20px;
    color: #ffffff;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Vazir', sans-serif;
    position: relative;
    overflow: hidden;
    border: 2px solid #b8a078;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.cpi-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cpi-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cpi-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.cpi-item span {
    display: flex;
    align-items: center;
}

.cpi-item strong {
    margin-right: 8px;
}

.cpi-btn {
    margin: 25px 0;
}

.cpi-btn a {
    display: inline-block;
    padding: 16px 32px;
    background: #b8a078;
    color: #ffffff;
    border-radius: 14px;
    font-family: 'Vazir', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 2px solid #ffffff;
    position: relative;
    overflow: hidden;
}

.cpi-btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.cpi-btn a:hover::before {
    left: 100%;
}

.cpi-btn a:hover {
    background: #7a683f;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.cpi-description {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
}

.cpi-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.cpi-box:hover::before {
    opacity: 1;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .cpi-box {
        padding: 25px;
        margin: 20px 15px;
        max-width: 100%;
    }
    
    .cpi-item {
        font-size: 16px;
        padding: 10px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .cpi-btn a {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .cpi-description {
        font-size: 14px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cpi-box {
        padding: 20px;
        margin: 15px 10px;
    }
    
    .cpi-item {
        font-size: 14px;
        margin: 15px 0;
    }
    
    .cpi-btn a {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cpi-description {
        font-size: 13px;
    }
}