/**
Theme Name: Astra-Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/
.custom-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-recent-posts li {

	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start; /* برای تراز شدن بالا با متن چند خطه */
    gap: 10px;
    margin-bottom: 12px;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 4px;
    min-height: 70px; /* ارتفاع حداقل */
    height: auto;     /* حذف ارتفاع ثابت */
    overflow: hidden;
    transition: transform 0.3s, background-color 0.3s;
}

.custom-recent-posts li img.custom-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
    transition: transform 0.3s;
}

.custom-recent-posts li a.custom-title {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;  /* فاصله خطوط */
    flex: 1;
    overflow: visible;      /* تغییر از hidden */
    text-overflow: clip;    /* حذف ... */
    white-space: normal;    /* اجازه به چند خط شدن */
}

.custom-recent-posts li:hover {
    transform: translateX(5px);
    background-color: #fff0e0;
}

.custom-recent-posts li:hover img.custom-thumb {
    transform: scale(1.05);
}

/* Modern Post Footer Box - Minimal & Clean */
.custom-social-box {
    border: 1px solid #d09a40;       /* رنگ سازمانی */
    background: #f9f9f9;             /* سفید برای هماهنگی با سایت */
    padding: 20px;                    /* پدینگ یکنواخت */
    margin: 10px 0;
    display: flex;
    align-items: center;              /* وسط عمودی */
    justify-content: center;          /* وسط افقی */
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
    color: #333333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.custom-social-box p {
    margin: 0;
}

.custom-social-box .custom-social-link {
    color: #d09a40;                   /* رنگ لینک سازمانی */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-social-box .custom-social-link:hover,
.custom-social-box .custom-social-link:focus,
.custom-social-box .custom-social-link:active {
    color: #b0792d;                   /* کمی تیره‌تر هنگام هاور */
    text-decoration: underline;
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .custom-social-box {
        padding: 16px 20px;
        font-size: 15px;
    }
}
.custom-social-box p {
    margin-bottom: 0 !important;
}
/* ===== Related Posts Charkhan ===== */
.charkhan-related-posts {
    list-style: none;
    margin: 30px 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.charkhan-related-posts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #f9f9f9;
	    justify-content: center;   /* وسط‌چین عمودی */
    align-items: center;       /* وسط‌چین افقی */

    height: 90%;
    border-radius: 12px;
    padding: 6px;
	    border: 1px #d09a40 solid;
    min-height: 70px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s, background-color 0.3s;
}

.charkhan-related-posts li:hover {
    transform: translateX(5px);
    background-color: #fff0e0;
}

.charkhan-related-posts li img.custom-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
    transition: transform 0.3s;
	margin: 0;
}

.charkhan-related-posts li:hover img.custom-thumb {
    transform: scale(1.05);
}

.charkhan-related-posts li a.custom-title {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    flex: 1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}
.charkhan-related-wrapper {
    margin: 30px 0;
}

.charkhan-related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color:: #d09a40;;
}
/* موبایل: ۱ ستون */
@media (max-width: 768px) {
    .charkhan-related-posts {
        grid-template-columns: 1fr;
    }
}