/* بافت نقطه‌ای لوکس برای خروج از سفیدی مطلق */
.hero-bg-texture {
    background-color: #faf9f6;
    background-image: radial-gradient(rgba(212, 175, 55, 0.12) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: center;
}

/* انیمیشن شناور بودن عکس */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* انیمیشن پالس برای هاله نور */
@keyframes pulse-glow {
    0% { opacity: 0.5; transform: scale(1) translate(-50%, -50%); }
    50% { opacity: 0.8; transform: scale(1.1) translate(-50%, -50%); }
    100% { opacity: 0.5; transform: scale(1) translate(-50%, -50%); }
}
.animate-glow {
    animation: pulse-glow 8s infinite alternate;
    transform-origin: top left;
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1) !important;
    border-bottom: 3px solid #d4af37;
}

.category-icon-wrapper {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    color: #d4af37;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon-wrapper {
    background: #d4af37;
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

/* استایل کارت محصول */
.book-card {
    width: 260px; /* عرض ثابت برای اسلایدر */
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.book-card:hover {
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

/* تصویر کتاب */
.book-image-wrapper {
    height: 280px;
    background-color: #faf9f6;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.book-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}
.book-card:hover .book-image-wrapper img {
    transform: scale(1.05);
}

/* بج تخفیف طلایی */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #d4af37, #b5952f);
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* دکمه‌های اسلایدر */
.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.slider-btn:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
}

/* دکمه‌های اکشن کارت (خرید/امانت) */
.btn-book-action {
    border-radius: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-buy {
    background-color: #fff;
    border: 1px solid #d4af37;
    color: #d4af37;
}
.btn-buy:hover {
    background-color: #d4af37;
    color: #fff;
}
.btn-rent {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    color: #6c757d;
}
.btn-rent:hover {
    background-color: #e2e8f0;
    color: #333;
}


.feature-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.05);
}

/* استایل آیکون‌ها */
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #fdfcf7; /* تناژ بسیار روشن طلایی/کرم */
    color: #d4af37;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 1.25rem;
}

.feature-card:hover .feature-icon-wrapper {
    background-color: #d4af37;
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 15px rgba(212, 175, 55, 0.2);
}

/* خط جداکننده کوچک زیر عنوان */
.feature-divider {
    width: 30px;
    height: 2px;
    background-color: #e2e8f0;
    margin: 0.75rem auto;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-divider {
    width: 50px;
    background-color: #d4af37;
}

.step-item {
    position: relative;
    z-index: 1;
    cursor: default;
}

.step-icon-box {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background-color: #d4af37;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.step-item:hover .step-icon-box {
    background-color: #d4af37;
    color: #ffffff;
    border-style: solid;
    border-color: #d4af37;
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.25);
    transform: translateY(-5px) scale(1.05);
}

.step-item:hover .step-number {
    background-color: #212529; /* تغییر رنگ شماره به تیره در هاور برای کنتراست لوکس */
}

/* خط اتصال بین مراحل در دسکتاپ (RTL Support) */
.steps-connector-line {
    position: absolute;
    top: 40px; /* دقیقاً وسط آیکون‌های 80 پیکسلی */
    right: 16.66%; /* شروع از وسط ستون اول */
    width: 66.66%; /* امتداد تا وسط ستون سوم */
    border-top: 2px dashed #e2e8f0;
    z-index: 0;
}

.cta-wrapper {
    background: #ffffff;
    border: 1px solid #f2eedf; /* حاشیه کرم/طلایی بسیار ملایم */
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    margin-bottom: -60px; /* برای شناور شدن روی فوتر */
    z-index: 10;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

/* افکت نوری پس‌زمینه برای حس لوکس بودن */
.cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 2.5rem;
    color: #d4af37; /* طلایی لوکس */
    background: #fdfcf7; /* کرم روشن */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 1px solid #f2eedf;
    transition: transform 0.3s ease;
}

.cta-wrapper:hover .cta-icon {
    transform: scale(1.05) rotate(-5deg);
}

.btn-gold {
    background-color: #d4af37;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #c5a030;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.25);
}

.btn-outline-luxury {
    background-color: transparent;
    color: #4a4a4a;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-luxury:hover {
    background-color: #fcfbf8;
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-3px);
}

.blog-section {
    background-color: #ffffff; /* تمایز با پس‌زمینه کرم بخش‌های دیگر */
    padding: 5rem 0;
}

.article-card {
    background: #ffffff;
    border: 1px solid #f2eedf;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.08);
    border-color: #d4af37;
}

.article-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img-wrapper img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #d4af37;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 2;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-bottom: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta i {
    font-size: 1.1rem;
    color: #d4af37;
}

.article-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    text-decoration: none;
    /* محدود کردن عنوان به ۲ خط */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-title:hover {
    color: #d4af37;
}

.article-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    /* محدود کردن متن خلاصه به ۳ خط */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    margin-top: auto; /* چسباندن دکمه به پایین کارت */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-read-more i {
    transition: transform 0.3s ease;
}

.article-read-more:hover {
    color: #d4af37;
}

.article-read-more:hover i {
    transform: translateX(-5px); /* حرکت فلش به سمت چپ در زمان هاور */
}
