/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* 
  CSS تزریقی مستقیم در صفحه برای تست و اطمینان از اعمال شدن 
  کلاس هدف: sabet
*/

.sabet .product-image-link {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* استفاده از نسبت ابعاد برای مربعی شدن */
    aspect-ratio: 3/4 !important; 
    
    /* اگر ارتفاع ثابت میخواهید، خط بالا را کامنت و خط زیر را فعال کنید */
    /* height: 280px !important; */
}

.sabet .product-image-link img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* باکس‌دار کردن لینک‌های دسته‌بندی در حالت ناوبری */
.wd-nav-product-cat .category-nav-link {
    display: flex !important;
    justify-content: center !important; /* متن را وسط‌چین می‌کند */
    min-width: 130px !important;        /* عرض ثابت برای همه باکس‌ها (می‌توانی کم و زیاد کنی) */
    text-align: center !important;
    background-color: #f6f6f6 !important;
    padding: 10px 15px !important;      /* کمی پدینگ را برای هماهنگی با عرض جدید تنظیم کردم */
    margin: 5px !important;
    border-radius: 8px !important;
    border: 1px solid #eeeeee !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

/* استایل متن داخل باکس */
.wd-nav-product-cat .nav-link-text {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* حذف خط زیر متن و افکت‌های اضافی وودمارت */
.wd-nav-product-cat .category-nav-link:after,
.wd-nav-product-cat .nav-link-text:after {
    display: none !important;
}

/* تغییر رنگ در حالت هاور */
.wd-nav-product-cat .category-nav-link:hover {
    background-color: #f0f0f0 !important;
    border-color: #dddddd !important;
    transform: translateY(-2px);
}

/* ردیف کردن آیتم‌ها کنار هم */
.wd-nav-product-cat {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

/* ۱. استایل کلی کارت محصول */
.wd-product.product-grid-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px !important; /* لبه های گرد کارت */
    overflow: hidden;
    padding: 10px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ۲. بخش تصویر محصول */
.wd-product .product-element-top {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f9f9f9; /* پس زمینه روشن برای تصویر مثل عکس */
}

/* ۳. حذف خطوط و حاشیه های اضافی وودمارت در هاور */
.wd-product.wd-hover-base:hover .product-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* ۴. استایل عنوان محصول */
.wd-product .wd-entities-title {
    font-size: 14px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    text-align: center;
    height: 40px; /* تراز شدن عنوان ها */
    overflow: hidden;
}

/* ۵. مخفی کردن بخش های اضافی مثل دسته بندی یا ستاره ها (اگر لازم نیست) */
.wd-product .wd-product-cats, 
.wd-product .star-rating {
    display: none !important;
}

/* ۶. بخش قیمت و دکمه سبد خرید (تراز شده در پایین) */
.wd-product .product-rating-price {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse; /* قیمت سمت راست، دکمه سمت چپ */
}

/* ۷. استایل قیمت */
.wd-product .price {
    color: #333 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

/* ۸. دکمه افزودن به سبد خرید به شکل دایره کوچک در گوشه */
.wd-product .wd-add-btn {
    position: static !important;
}

.wd-product .wd-add-btn a {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.wd-product .wd-add-btn a:before {
    font-size: 16px !important;
}

/* ۹. حذف المان های اضافی که در تصویر نیست (مثل مقایسه و علاقه مندی روی تصویر) */
.wd-product .wd-buttons-description, 
.wd-product .quick-view, 
.wd-product .wd-wishlist-btn {
    display: none !important;
}

/* ۱. تنظیم کل کارت نویسنده */
.wd-post-inner.article-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    background: transparent !important; /* حذف پس‌زمینه کلی */
}

/* ۲. اجبار به دایره‌ای بودن و یکسان‌سازی اندازه همه عکس‌ها */
.wd-post-thumb.entry-header {
    width: 160px !important; /* اندازه دایره را بزرگتر کردم */
    height: 160px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 15px auto !important;
    flex-shrink: 0 !important; /* جلوگیری از کوچک شدن عکس */
    border: 2px solid #eee !important;
}

.wd-post-img.post-img-wrapp, 
.wd-post-img.post-img-wrapp img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* این خط عکس را بدون تغییر شکل در دایره پر می‌کند */
    border-radius: 50% !important;
}

/* ۳. حذف کادرهای سفید دور متن و مرتب‌سازی نام */
.wd-post-content.article-body-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.wd-post-title.post-title {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.wd-post-title.post-title a {
    font-size: 17px !important;
    font-weight: bold !important;
    color: #333 !important;
    display: block !important;
    margin-top: 10px !important;
}

/* ۴. مخفی کردن موارد اضافه */
.wd-post-link, .wd-fill {
    display: none !important;
}

/* محدود کردن استایل فقط به همین ویجت خاص */
.elementor-element-abbc582 .wd-post-inner {
    border: 1px solid #e3e3e3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    background: #fff;
}

/* اصلاح شکل عکس (مستطیلی شدن) */
.elementor-element-abbc582 .wd-post-img {
    border-radius: 12px 12px 0 0 !important;
    height: 180px !important; /* ارتفاع ثابت برای یکسان شدن کارت‌ها */
    overflow: hidden;
}

.elementor-element-abbc582 .wd-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* استایل‌دهی به تاریخ (باکس سفید روی عکس) */
.elementor-element-abbc582 .wd-post-date {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #ffffff !important;
    color: #222 !important;
    padding: 5px 8px !important;
    border-radius: 6px !important;
    width: 45px;
    height: 55px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    z-index: 10;
}

.elementor-element-abbc582 .post-date-day {
    display: block;
    font-size: 16px;
    font-weight: bold;
}

.elementor-element-abbc582 .post-date-month {
    display: block;
    font-size: 12px;
    margin-top: -5px;
}

/* اصلاح متن و فاصله */
.elementor-element-abbc582 .article-body-container {
    padding: 15px !important;
}

.elementor-element-abbc582 .wd-post-title {
    font-size: 16px !important;
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}

.elementor-element-abbc582 .wd-post-excerpt {
    font-size: 13px !important;
    color: #666 !important;
    margin-bottom: 10px !important;
}

/* رنگ لینک ادامه مطلب */
.elementor-element-abbc582 .wd-post-read-more a {
    color: #d11b1b !important; /* رنگ قرمز مشابه طرح */
    font-weight: 600;
}

/* حذف حالت دایره‌ای و تبدیل به مستطیل  از اینجا به پایین برای اخبار وبلاگ است ........................................................................ */
/* --- اصلاح کلی کارت: فشرده‌سازی حداکثری --- */
#news-blog-section .wd-post-inner {
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* --- عکس --- */
#news-blog-section .wd-post-img {
    height: 160px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#news-blog-section .wd-post-img img {
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* --- بخش متن: پدینگ کم --- */
#news-blog-section .wd-post-content, 
#news-blog-section .post-content-container {
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* --- اصلاح نهایی تاریخ: حذف کادر و پس‌زمینه (قوی‌تر) --- */
#news-blog-section .wd-post-date,
#news-blog-section .wd-post-date.wd-style-with-bg, /* هدف قرار دادن کلاسِ قالب */
#news-blog-section .post-date {
    position: static !important;
    background: transparent !important; /* حذف پس‌زمینه */
    border: none !important; /* حذف کادر */
    box-shadow: none !important; /* حذف سایه */
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin-bottom: 2px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 5px !important;
    color: #aaa !important;
    font-size: 11px !important;
    min-width: unset !important; /* جلوگیری از ایجاد کادر مربعی */
}

/* اطمینان از اینکه اسپان‌های تاریخ هم کادر ندارند */
#news-blog-section .wd-post-date span {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #aaa !important;
}

/* --- عنوان --- */
#news-blog-section .wd-post-title,
#news-blog-section .entry-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 2px !important;
    min-height: 40px !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}


/* --- اصلاح نهایی و قطعی توضیحات: ۲ خط و تمام! --- */
#news-blog-section .wd-post-excerpt,
#news-blog-section .entry-summary {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 5px !important;
    
    /* این سه خط، متن را مجبور به ۲ خط می‌کند */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    
    /* این دو خط، اجازه نمی‌دهد متن از محدوده خارج شود */
    overflow: hidden !important;
    max-height: 36px !important; /* ارتفاع دقیق ۲ خط (۱.۵ * ۱۲ * ۲ = ۳۶) */
    
    /* افزودن سه نقطه */
    text-overflow: ellipsis !important;
}

/*
 * یکسان سازی ارتفاع تصاویر محصولات در ویجت المنتور****************************
 * با استفاده از ارتفاع ثابت و کلاس sabet
*/

/*
 * کد نهایی و قدرتمند برای یکسان سازی ارتفاع تصاویر
 * با استفاده از کلاس sabet و اولویت اجرایی بالا
*/
.sabet .product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4 !important; /* نسبت ابعاد با بالاترین اولویت */
}

.sabet .product-image-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* نحوه نمایش تصویر با بالاترین اولویت */
}

/*
 * یکسان سازی ارتفاع تصاویر محصولات در ویجت المنتور****************************
 * با استفاده از ارتفاع ثابت و کلاس sabet
*/



/* ا---------------------------------------ستایل اختصاصی برای گزارش تصویری  */

/* ا---------------------------------------ستایل اختصاصی برای گزارش تصویری  */

/* =========================================================
   شورت‌کد: [render_majmoe_children_slider]
   نمایشمجموعه ها مشکی
========================================================= */
.custom-majmoe-container {
    background-color: #303133; /* تغییر رنگ پس‌زمینه */
    padding: 20px;
    border-radius: 8px;
    font-family: inherit;
    color: #fff;
    overflow: hidden;
}
.majmoe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.majmoe-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.majmoe-title .red-line {
    width: 4px;
    height: 20px;
    background-color: #e50000;
    border-radius: 2px;
}
.majmoe-title h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}
.majmoe-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.view-all {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.view-all:hover { color: #fff; }
.majmoe-nav {
    display: flex;
    gap: 8px;
}
.nav-btn {
    background-color: transparent;
    border: 1px solid #666;
    color: #aaa;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    transition: all 0.2s;
    padding: 0 !important;
}

.nav-btn:hover { background-color: #555; color: #fff; border-color: #888; }

.majmoe-slider-wrapper {
    overflow: hidden;
}
.majmoe-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: calc(25% - 15px);
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.majmoe-grid::-webkit-scrollbar { display: none; }

.majmoe-card {
    background-image: url('/wp-content/uploads/2026/07/card.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    padding: 15px 20px 15px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s;
    height: 90px;
    position: relative;
}
.majmoe-card:hover {
    transform: translateY(-2px);
}
.card-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    height: 100%;
}
.card-title {
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.4;
    font-weight: bold !important;
}
.card-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #555;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .majmoe-grid { grid-auto-columns: calc(33.33% - 13px); }
}
@media (max-width: 768px) {
    .majmoe-grid { grid-auto-columns: calc(50% - 10px); }
}
@media (max-width: 480px) {
    .majmoe-grid { grid-auto-columns: calc(85% - 10px); }
}

/* =========================================================
   شورت‌کد: [best_sellers_rotator]
   نمایش پرفروش‌ترین کتاب‌ها با باکس معرفی و لیست کنار آن
========================================================= */
.rg-books-rotator {
    display: flex;
    direction: rtl;
    gap: 20px;
    font-family: inherit;
    align-items: stretch;
    width: 100%;
    background: #fff;
    padding: 15px;
    box-sizing: border-box;
}

.rg-separator {
    width: 1px;
    background: #3b589e;
    opacity: 0.2;
    align-self: stretch;
}

.rg-left-col {
    flex: 0 0 58%;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.rg-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.rg-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #242424;
    margin: 0;
    padding-right: 12px;
    position: relative;
}

.rg-section-title:before {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background-color: #3b589e;
    border-radius: 2px;
}

.rg-intro-label {
    font-size: 15px;
    color: #3b589e;
    font-weight: bold;
    margin-bottom: 10px;
}

.rg-detail-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-grow: 1;
}

.rg-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.rg-book-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    line-height: 1.8;
}

.rg-book-desc {
    font-size: 13.5px;
    line-height: 2;
    color: #555;
    text-align: justify;
    margin: 0 0 15px 0;
}

.rg-read-more {
    display: inline-block;
    align-self: flex-start;
    
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.2s ease;
}

.rg-read-more:hover {
    background: #2f467d;
    color: #fff;
}

.rg-image-side {
    flex: 0 0 180px;
    max-width: 180px;
}

.rg-large-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rg-right-col {
    flex: 0 0 38%;
    background-color: #f6f6f6;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.rg-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rg-item {
    display: flex;
    gap: 15px;
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rg-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rg-item.is-active {
    opacity: 1;
}

.rg-item:not(.is-active) {
    opacity: 0.75;
}

.rg-item:hover {
    opacity: 1;
}

.rg-thumb {
    width: 75px;
    height: 105px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.rg-item-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right;
    justify-content: space-between;
    min-width: 0;
}

.rg-name {
    font-weight: 800;
    font-size: 15px;
    color: #222;
    margin-bottom: 2px;
    line-height: 1.8;
}

.rg-writer,
.rg-translator {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
    display: block;
    line-height: 1.8;
}

.rg-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 10px;
}

.rg-price {
    font-size: 13px;
    color: #222;
    font-weight: bold;
}

.rg-add-to-cart-btn {
    color: #222;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.rg-add-to-cart-btn:hover {
    color: #3b589e;
}

.rg-progress-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 2.5px;
    background: rgba(0,0,0,0.05);
}

.rg-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #3b589e;
}

@media (max-width: 991px) {
    .rg-books-rotator {
        flex-direction: column;
    }

    .rg-separator {
        display: none;
    }

    .rg-left-col,
    .rg-right-col {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rg-detail-wrapper {
        flex-direction: column-reverse;
        align-items: center;
    }

    .rg-image-side {
        max-width: 130px;
        flex: 0 0 130px;
    }

    .rg-left-col {
        padding: 10px;
    }

    .rg-right-col {
        padding: 10px;
    }
}

/* =========================================================
   Shortcode: [literary_articles_row]
   نمایش ردیف مقالات ادبی به‌صورت دو ستونه
========================================================= */
.rg-literary-row{
    display:flex;
    gap:16px;
    width:100%;
    direction:rtl;
    align-items:stretch;
    box-sizing:border-box;
}

.rg-literary-col{
    box-sizing:border-box;
}

.rg-literary-left{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.rg-literary-right{
    flex:1;
    min-width:0;
}

.rg-literary-card-small{
    display:flex;
    align-items:center;
    gap:14px;
    background:#f8f8f8;
    border-radius:10px;
    padding:14px;
    min-height:125px;
    box-sizing:border-box;
    overflow:hidden;
    position:relative;
}

.rg-small-thumb-wrap{
    flex:0 0 92px;
    width:92px;
    height:92px;
    border-radius:50%;
    overflow:hidden;
    flex-shrink:0;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.rg-small-thumb{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.rg-small-content{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:right;
}

.rg-small-title{
    margin:0 0 6px 0;
    font-size:17px;
    line-height:1.8;
    font-weight:800;
    color:#222;
}

.rg-small-title a{
    color:inherit;
    text-decoration:none;
}

.rg-small-excerpt{
    margin:0 0 10px 0;
    font-size:13px;
    line-height:2;
    color:#666;
}

.rg-read-more{
    display:inline-flex;
    align-items:center;
    gap:6px;
    width:max-content;
    color:#18a0f5;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

.rg-arrow-icon{
    width:14px;
    height:14px;
    flex:0 0 14px;
}

.rg-featured-card{
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*    min-height:350px;*/
}

.rg-featured-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
    z-index:1;
}

.rg-featured-badge{
    position:absolute;
    top:14px;
    right:14px;
    z-index:2;
    background:#fff;
    color:#111;
    border-radius:4px;
    padding:8px 12px;
    font-size:13px;
    font-weight:700;
    box-shadow:0 3px 10px rgba(0,0,0,.12);
    max-width:80%;
}

.rg-featured-badge a{
    color:inherit;
    text-decoration:none;
}

.rg-featured-bottom{
    position:relative;
    z-index:2;
    margin-top:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:16px 18px;
    background:rgba(0,0,0,.35);
}

.rg-featured-title{
    flex:1;
    min-width:0;
    text-align:right;
}

.rg-featured-title a{
    color:#fff;
    text-decoration:none;
    font-size:18px;
    font-weight:800;
    line-height:1.8;
}

.rg-featured-read-more{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#46b7ff;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    flex-shrink:0;
}

@media (max-width: 991px){
    .rg-literary-row{
        flex-direction:column;
    }

    .rg-featured-card{
        min-height:320px;
    }
}

@media (max-width: 640px){
    .rg-literary-card-small{
        flex-direction:column;
        align-items:flex-start;
        text-align:right;
    }

    .rg-small-thumb-wrap{
        width:78px;
        height:78px;
        flex-basis:78px;
    }

    .rg-featured-bottom{
        flex-direction:column;
        align-items:flex-start;
    }

    .rg-featured-title{
        width:100%;
    }
}
