.box-before-table { padding: 15px; margin-bottom: 20px; border-radius: 20px; text-align: center; } .inline-related-post { margin: 10px 0; display: flex; align-items: center; gap: 12px; padding: 10px 15px; background-color: #f9f9f9; border-radius: 12px; text-decoration: none; transition: background 0.3s, transform 0.2s; } .inline-related-post:hover { background-color: #f0f0f0; transform: translateY(-2px); } .inline-related-post img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; flex-shrink: 0; } .inline-related-post p { margin: 0; font-size: 0.95rem; color: #333; display: flex; gap: 5px; } @media (max-width: 480px) { .box_pillar { flex: 1 1 100%; } } .inline-related-post p strong { display: block; font-weight: 600; margin-bottom: 2px; } @media (max-width: 480px) { .inline-related-post { flex-direction: row; gap: 10px; } .inline-related-post img { width: 50px; height: 50px; } .inline-related-post p { font-size: 0.9rem; flex-direction: column; gap: 0; } } .wrapper_pillar_post { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; } .box_pillar { flex: 1 1 calc(50% - 10px); background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 10px; display: flex; align-items: center; padding: 12px 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: transform 0.2s ease; } .box_pillar:hover { transform: translateY(-3px); } .box_pillar a { justify-content: space-between; width: 100%; display: flex; align-items: center; gap: 10px; text-decoration: none; } .box_pillar a p { text-align: unset !important; margin: 0; font-weight: 500; font-size: 16px; line-height: 1.4; color: #000000; } .box_pillar_icon svg { width: 20px; height: 20px; fill: var(--theme-color, #000000); display: block; flex-shrink: 0; align-self: center; } @media (max-width: 1024px) { .box_pillar { flex: 1 1 calc(50% - 16px); } } @media (max-width: 768px) { .box_pillar a { flex-direction: column; align-items: center; text-align: center; } .box_pillar_icon { background-color: #f5f5f5; padding: 5px 10px; border-radius: 10px; } .box_pillar_icon::before { content: 'مشاهده'; display: block; font-size: 14px; font-weight: 500; color: var(--theme-color, #000000); } .box_pillar_icon { display: flex; align-items: center; gap: 5px; } }#the-post .box_pillar p { line-height: 2 !important; font-size: 16px !important; }

/*mahalleh*/
.lawyer-location-box {
    background-color: #fffcf1;
    border: 2px solid #eec20a;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    font-family: inherit;
}

.lawyer-location-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lawyer-text {
    flex: 1 1 250px;
}

.lawyer-text h3 {
    color: #eec20a;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.lawyer-text p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

.city-selector-container {
    position: relative;
}

.city-toggle-btn {
    background-color: #eec20a;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.city-dropdown a {
    color: #000 ! IMPORTANT;
}

.arrow-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.rotate {
    transform: rotate(180deg);
}

.city-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
}

.city-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 15px;
}

.city-dropdown a:hover {
    background-color: #fffcf1;
    color: #eec20a;
}

.hidden {
    display: none !important;
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .lawyer-location-content {
        flex-direction: column;
        text-align: center;
    }

    .lawyer-text {
        text-align: center;
    }

    .city-selector-container {
        width: 100%;
    }

    .city-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    #city-dropdown {
        right: auto !important;
        left: 0;
        width: 100%;
    }
    .lawyer-text {
    flex:unset;
}
}