.beauty-glossary-wrapper {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px 40px;
    text-align: center;
}

.beauty-glossary-wrapper #search_field {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: block;
    border-radius: 999px;
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    outline: none;
}

.glossary-card-wrapper {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glossary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(0,0,0,0.06); /* بوردر ظریف */

    direction: rtl;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glossary-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.10);
    border-color: rgba(0,0,0,0.10); /* کمی پررنگ‌تر در هاور */
}


.glossary-card-header {
    display: flex;
    justify-content: space-between;
    direction: rtl;
    margin-bottom: 12px;
}

.glossary-title-fa {
    font-size: 18px;
    font-weight: 700;
}

.glossary-title-en {
    font-size: 16px;
    font-weight: 500;
    direction: ltr;
    white-space: nowrap;
}

.glossary-content {
    font-size: 14px;
    line-height: 2;
    text-align: justify;
}


/* فقط موبایل: همیشه فارسی بالا، انگلیسی زیرش، راست‌چین */
@media (max-width: 768px) {

    .glossary-card-header {
        flex-direction: column !important;   /* مهم: روی row-reverse غلبه کند */
        align-items: flex-end;
        gap: 4px;
        width: 100%;
    }

    .glossary-title-fa,
    .glossary-title-en {
        width: 100%;
        display: block;
        text-align: right;
        white-space: normal;
        margin-right: 0;
    }
}