.plugin-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* چهار ستون در دسکتاپ */
    gap: 20px;
    padding: 20px;
}

.plugin-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px; /* حاشیه کارت با انحنا */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* کارت‌ها اندازه یکسان */
    height: 100%; /* اطمینان از یکسان بودن ارتفاع */
}

.plugin-card:hover {
    transform: translateY(-10px); /* انیمیشن روی کارت */
}

.plugin-image {
    width: fit-content; /* عرض تصویر برابر با 70% */
    height: 100px !important;
    object-fit: cover !important; /* تصاویر متناسب با فضای کارت */
    display: block; /* اطمینان از نمایش درست تصویر */
    margin: 0 auto; /* مرکز‌چین کردن تصویر */
}

.plugin-title {
    font-size: 1.2em;
    margin: 15px 0 10px;
    color: #333;
}

.plugin-description {
    font-size: 1em;
    color: #555;
    text-align: right; /* راست چین */
    margin-bottom: 15px;
    max-height: 5em; /* محدود کردن ارتفاع توضیحات */
    overflow: hidden;
    text-overflow: ellipsis; /* اضافه کردن سه نقطه */
    line-height: 1.2em;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* فقط 5 خط نمایش داده شود */
    -webkit-box-orient: vertical;
}

.plugin-button {
    display: inline-block;
    width: fit-content !important;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 20px !important;
    background-color: #0032FA;
    font-size: 16px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px;
    margin-top: 10px;
}


/* برای تبلت‌ها: دو ستون در هر ردیف */
@media (max-width: 768px) {
    .plugin-container {
        grid-template-columns: repeat(2, 1fr); /* دو ستون */
    }
}

/* برای موبایل‌ها: یک ستون در هر ردیف */
@media (max-width: 480px) {
    .plugin-container {
        grid-template-columns: 1fr; /* یک ستون */
    }
}
