/* استایل‌های اختصاصی صفحه نمایش کتاب */
.em-book-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: iranyekan, tahoma, sans-serif;
    direction: rtl;
}

/* ساختار بخش بالایی */
.em-book-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
}

.em-book-content-col {
    flex: 1;
}

.em-book-image-col {
    width: 260px;
    flex-shrink: 0;
}

/* تصویر کتاب و سایه نرم */
.em-book-cover-shadow img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.1);
}

/* عنوان کتاب */
.em-book-title {
    font-size: 26px;
    font-weight: bold;
    color: #2b2b2b;
    margin-top: 20px;
    margin-bottom: 25px;
}

/* طراحی نشان‌ها (Badges) */
.em-book-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.em-badge {
    background-color: #e0e0e0;
    color: #555;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
}
.em-badge strong {
    color: #222;
}

/* دکمه دانلود زرشکی رنگ */
.em-book-download-wrapper {
    margin-bottom: 20px;
}

.em-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #800016; /* رنگ زرشکی تیره مطابق تصویر */
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.em-btn-download:hover {
    background-color: #a0001c;
}

/* هدینگ بخش‌ها به همراه آیکون مربع زرشکی */
.em-book-section {
    margin-top: 45px;
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.em-section-heading {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* متن توضیحات */
.em-book-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

/* شبکه نمایش کتب مرتبط (Grid) */
.em-books-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.em-grid-item {
    width: 160px;
    text-align: center;
}

.em-grid-item a {
    text-decoration: none !important;
    display: block;
}

.em-grid-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.em-grid-item :hover .em-grid-thumb img {
    transform: translateY(-5px);
}

.em-grid-title {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    line-height: 1.5;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .em-book-main-row {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    .em-book-badges {
        justify-content: center;
    }
    .em-book-image-col {
        width: 200px;
    }
    .em-books-grid {
        justify-content: center;
    }
}