:root {
    --gh-violet-deep: #1E0A3C;
    --gh-violet-mid: #2a0f4e;
    --gh-violet-soft: #7C3AED;
    --gh-lavender: #C4A8F5;
    --gh-white: #FAF7FF;
    --gh-deep-dark: #0D0520;
    --gh-purple-royal: #3B1578;
    --gh-plum: #5B1A6E;
    --gh-gold: #F59E0B;
    --gh-teal: #14B8A6;
    --gh-rose: #F43F5E;
}

.ginger-hero {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 560px;
    overflow: hidden;
    background: #0D0520;
}

/* ── اسلایدشوی پس‌زمینه (تصویری) ── */
.ginger-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ginger-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 6s ease;
}
.ginger-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* ── اسلایدشوی رنگی (مخصوص دسکتاپ) ── */
.ginger-hero-color-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
}
.ginger-hero-color-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1), transform 8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ginger-hero-color-slide.is-active {
    opacity: 1;
    z-index: 1;
    animation: heroSlideBreath 8s ease-in-out infinite;
}
@keyframes heroSlideBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.ginger-hero-color-slide:nth-child(1) {
    background: linear-gradient(135deg, #1E0A3C 0%, #7C3AED 30%, #F59E0B 100%);
}
.ginger-hero-color-slide:nth-child(2) {
    background: linear-gradient(135deg, #14B8A6 0%, #2a0f4e 40%, #C4A8F5 100%);
}
.ginger-hero-color-slide:nth-child(3) {
    background: linear-gradient(135deg, #0D0520 0%, #F43F5E 30%, #7C3AED 70%, #F59E0B 100%);
}
.ginger-hero-color-slide:nth-child(4) {
    background: linear-gradient(135deg, #5B1A6E 0%, #1E0A3C 35%, #14B8A6 100%);
}
.ginger-hero-color-slide:nth-child(5) {
    background: linear-gradient(135deg, #F43F5E 0%, #3B1578 45%, #F59E0B 100%);
}

/* ── افکت shimmer / نور متحرک روی اسلاید فعال ── */
.ginger-hero-color-slides::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.04) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 55%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: heroShimmer 5s ease-in-out infinite;
}
@keyframes heroShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── گوی‌های شناور تزئینی (دسکتاپ) ── */
.ginger-hero-orbs {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .ginger-hero-orbs {
        display: block;
    }
}
.ginger-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.ginger-hero-orb:nth-child(1) {
    width: 400px; height: 400px;
    background: var(--gh-gold);
    top: -10%; left: -5%;
    animation-name: orbFloat1;
    animation-duration: 18s;
}
.ginger-hero-orb:nth-child(2) {
    width: 350px; height: 350px;
    background: var(--gh-teal);
    bottom: -15%; right: -8%;
    animation-name: orbFloat2;
    animation-duration: 22s;
}
.ginger-hero-orb:nth-child(3) {
    width: 280px; height: 280px;
    background: var(--gh-rose);
    top: 40%; left: 50%;
    animation-name: orbFloat3;
    animation-duration: 20s;
    opacity: 0.25;
}
.ginger-hero-orb:nth-child(4) {
    width: 320px; height: 320px;
    background: var(--gh-violet-soft);
    top: 20%; right: 15%;
    animation-name: orbFloat2;
    animation-duration: 25s;
    opacity: 0.3;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, 40px) scale(1.1); }
    50% { transform: translate(120px, -20px) scale(0.9); }
    75% { transform: translate(40px, -60px) scale(1.05); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, -30px) scale(1.15); }
    50% { transform: translate(-100px, 40px) scale(0.85); }
    75% { transform: translate(-30px, 50px) scale(1.08); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(70px, -50px) scale(1.2); }
    66% { transform: translate(-70px, 50px) scale(0.8); }
}

/* ── گرادیان تیرگی برای خوانایی متن + رنگ‌مایه بنفش برند ── */
.ginger-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(11,4,26,0.96) 0%, rgba(14,5,34,0.72) 28%, rgba(20,8,45,0.22) 55%, rgba(30,10,50,0.15) 100%),
        linear-gradient(180deg, rgba(30,10,60,0.35) 0%, rgba(13,5,32,0) 30%);
}

/* ── نمایش/مخفی‌سازی بر اساس نوع دستگاه ── */
@media (min-width: 1024px) {
    .ginger-hero-slides {
        display: none;
    }
    .ginger-hero-color-slides {
        display: block;
    }
    .ginger-hero-orbs {
        display: block;
    }
}

/* ── نوار بالا ── */
.ginger-hero-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px 0;
}
.ginger-hero-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ginger-hero-logo img { width: 30px; height: 30px; }
.ginger-hero-logo span {
    color: var(--gh-white);
    font-weight: 700;
    font-size: 15px;
}
.ginger-hero-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    color: var(--gh-white);
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 50px;
}

/* ── محتوای پایین (سبک جینجر) ── */
.ginger-hero-content {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0 24px 34px;
    text-align: center;
}
.ginger-hero-mark {
    width: 46px; height: 46px;
    margin: 0 auto 10px;
    filter: drop-shadow(0 4px 14px rgba(124,58,237,0.55));
}
.ginger-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--gh-white);
    margin: 0;
    line-height: 1.25;
}

.ginger-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    background: var(--gh-white);
    color: var(--gh-violet-deep);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(124,58,237,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ginger-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(124,58,237,0.5);
    color: var(--gh-violet-deep);
}
.ginger-hero-cta i { font-size: 17px; color: var(--gh-violet-soft); }

.ginger-hero-terms {
    max-width: 380px;
    margin: 14px auto 0;
    font-size: 11px;
    line-height: 1.9;
    color: rgba(250,247,255,0.65);
}
.ginger-hero-terms a {
    color: var(--gh-lavender);
    text-decoration: underline;
}

/* ── نقاط اسلایدشو (اختیاری، صرفاً تزئینی) ── */
.ginger-hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 6px;
}
.ginger-hero-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: all 0.3s;
}
.ginger-hero-dot.is-active {
    width: 16px;
    border-radius: 3px;
    background: var(--gh-lavender);
}

@media (min-width: 768px) {
    .ginger-hero-title { font-size: 38px; }
    .ginger-hero-content { padding-bottom: 54px; }
}
@media (min-width: 1024px) {
    .ginger-hero-title { font-size: 52px; }
    .ginger-hero-content { padding-bottom: 70px; }
    .ginger-hero-cta {
        max-width: 440px;
        padding: 18px 28px;
        font-size: 17px;
    }
    .ginger-hero-top {
        padding: 30px 40px 0;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* گرید مجوزها (اینماد / زرین‌پال / ساماندهی)                      */
/* ═══════════════════════════════════════════════════════════════ */
.trust-badges-section {
    background: var(--gh-violet-deep, #1E0A3C);
    padding: 26px 0;
}
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}
.trust-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}
.trust-badge-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.09);
}
.trust-badge-card img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.trust-badge-card span {
    font-size: 11px;
    color: rgba(250,247,255,0.75);
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

#zarinpal img { width: 100%; height: auto; object-fit:cover; }

/* ═══════════════════════════════════════════════════════════════ */
/* CSS مشترک کروسل‌های وبلاگ                                     */
/* ═══════════════════════════════════════════════════════════════ */
.blog-carousel-section {
    position: relative;
    overflow: hidden;
    padding: 28px 0;
}
.blog-carousel-section--featured {
    background: linear-gradient(180deg, var(--gh-violet-deep, #1E0A3C) 0%, var(--gh-violet-mid, #2a0f4e) 100%);
}
.blog-carousel-section--latest {
    background: linear-gradient(180deg, var(--gh-violet-mid, #2a0f4e) 0%, var(--gh-deep-dark, #0D0520) 100%);
}
.blog-carousel-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 168, 245, 0.2), transparent);
}
.blog-carousel-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 16px;
}
.blog-carousel-section .section-header h3 {
    color: var(--gh-white, #FAF7FF);
    font-weight: 800;
    font-size: 19px;
    margin: 0;
}
.blog-carousel-section .section-header .view-all {
    color: var(--gh-gold, #F59E0B);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}
.blog-carousel-section .section-header .view-all:hover {
    opacity: 0.8;
}
.blog-carousel-section .native-carousel {
    padding: 0 16px;
}
.blog-carousel-section .nc-item {
    min-width: var(--carousel-item-width, 250px);
    max-width: var(--carousel-item-width, 250px);
    height: var(--carousel-item-height, 330px);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-carousel-section .nc-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.3);
    border-color: rgba(196, 168, 245, 0.25);
}
.blog-carousel-section .nc-item-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.blog-carousel-section .nc-item-img-placeholder {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gh-violet-mid, #2a0f4e), var(--gh-purple-royal, #3B1578));
    flex-shrink: 0;
}
.blog-carousel-section .nc-item-body {
    padding: 12px 13px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-carousel-section .nc-item-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.22);
    color: var(--gh-lavender, #C4A8F5);
    margin-bottom: 8px;
    width: fit-content;
}
.blog-carousel-section .nc-item-title {
    color: var(--gh-white, #FAF7FF);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-carousel-section .nc-item-excerpt {
    color: rgba(250, 247, 255, 0.55);
    font-size: 11px;
    line-height: 1.65;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-carousel-section .nc-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.blog-carousel-section .nc-item-date {
    color: rgba(250, 247, 255, 0.4);
    font-size: 10px;
}
.blog-carousel-section .nc-item-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 50px;
    font-weight: 700;
}
.blog-carousel-section .nc-item-badge.featured {
    background: rgba(245, 158, 11, 0.18);
    color: var(--gh-gold, #F59E0B);
}
.blog-carousel-section .nc-item-badge.new {
    background: rgba(20, 184, 166, 0.18);
    color: var(--gh-teal, #14B8A6);
}

@media (min-width: 1024px) {
    .blog-carousel-section .section-header h3 {
        font-size: 24px;
    }
    .blog-carousel-section .nc-item {
        --carousel-item-width: 270px;
        --carousel-item-height: 350px;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* باکس بنر تبلیغاتی تلاقی                                       */
/* ═══════════════════════════════════════════════════════════════ */
.promo-banner-section {
    background: linear-gradient(180deg, var(--gh-violet-mid, #2a0f4e) 0%, var(--gh-violet-deep, #1E0A3C) 100%);
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}
.promo-banner-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.25), transparent);
}
.promo-banner {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(245, 158, 11, 0.1) 50%, rgba(124, 58, 237, 0.15) 100%);
    border: 1px solid rgba(196, 168, 245, 0.18);
    border-radius: 20px;
    padding: 24px 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.promo-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.promo-banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    order: 2;
}
.promo-banner-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    order: 1;
    position: relative;
}
.promo-banner-visual .promo-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gh-violet-soft, #7C3AED), var(--gh-gold, #F59E0B));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}
.promo-banner-visual .promo-logo-circle img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.promo-banner-text .promo-title {
    color: var(--gh-white, #FAF7FF);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 10px;
}
.promo-banner-text .promo-desc {
    color: rgba(250, 247, 255, 0.72);
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 14px;
    max-width: 420px;
}
.promo-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.promo-stars-row .stars {
    color: var(--gh-gold, #F59E0B);
    font-size: 18px;
    letter-spacing: 2px;
}
.promo-stars-row .stars-label {
    color: var(--gh-lavender, #C4A8F5);
    font-size: 12px;
    font-weight: 700;
}
.promo-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.promo-stats-row .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(250, 247, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
}
.promo-stats-row .stat-item i {
    color: var(--gh-gold, #F59E0B);
    font-size: 16px;
}
.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gh-gold, #F59E0B) 0%, #FBBF24 100%);
    color: var(--gh-violet-deep, #1E0A3C);
    font-weight: 800;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(245, 158, 11, 0.5);
    color: var(--gh-violet-deep, #1E0A3C);
}
.promo-btn i {
    font-size: 18px;
}

@media (min-width: 768px) {
    .promo-banner {
        flex-direction: row;
        padding: 30px 28px;
        gap: 28px;
    }
    .promo-banner-text {
        align-items: flex-start;
        text-align: right;
        order: 1;
        flex: 1;
    }
    .promo-banner-visual {
        order: 2;
    }
    .promo-banner-visual .promo-logo-circle {
        width: 100px;
        height: 100px;
    }
    .promo-banner-visual .promo-logo-circle img {
        width: 50px;
        height: 50px;
    }
    .promo-banner-text .promo-title {
        font-size: 22px;
    }
    .promo-banner-text .promo-desc {
        font-size: 14px;
    }
    .promo-stats-row {
        justify-content: flex-start;
    }
}
