/* =========================================================
   میخرم | آگهی‌های خاص — لاکچری
   طرح یکسان: موبایل / تبلت / دسکتاپ (۲×۲ + اسلاید)
   ========================================================= */

.special-ads-section {
    width: 100%;
    margin-top: 40px;
    direction: rtl;
    overflow: hidden;
}

.special-ads-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
}

.special-ads-title h2 {
    margin: 0;
    color: var(--text);
    font-size: 26px;
    font-weight: 900;
}

.special-ads-title span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.special-ads-controls {
    display: none;
}

.special-ads-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 8px;
    margin-top: -8px;
}

/* ============ کانتینر دید ============ */
.special-ads-viewport {
    width: 100%;
    overflow: hidden;
    min-height: 248px;
}

/* ============ گرید ۲×۲ ============ */
.special-ads-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    transition: transform 0.5s ease;
    width: 100%;
    min-height: 250px;
}

/* ============ کارت‌ها ============ */
.special-ad-card {
    width: auto;
    flex-basis: auto;
    height: 120px;
    min-height: 100px;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    background: var(--bg-elevated);
    border: 1px solid var(--gold-dark);
    border-radius: 16px;
    transition: all .3s ease;
}

.special-ad-card:hover {
    border-color: var(--gold);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, .35),
        0 0 22px var(--gold-glow);
}

.special-ad-card .ad-image {
    height: 55px;
    margin-bottom: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background:
        radial-gradient(circle, var(--gold-soft), transparent 70%),
        linear-gradient(135deg, var(--bg-card), var(--bg));
    overflow: hidden;
}

.special-ad-card .ad-placeholder-icon {
    color: var(--gold);
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-ad-card .ad-placeholder-icon img,
.special-ad-card .ad-image svg {
    width: 50px;
    height: 50px;
}

.special-ad-card h3 {
    font-size: 14px;
    margin: 0;
    text-align: center;
    width: 100%;
    padding: 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.5;
    height: 18px;
    color: var(--text);
    font-weight: 800;
}

.special-ad-card .ad-footer {
    display: none;
}

.light-mode .special-ad-card {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.light-mode .special-ad-card .ad-image {
    background:
        radial-gradient(circle, var(--gold-soft), transparent 70%),
        linear-gradient(135deg, #fafaf7, #f0efe8);
}

/* ============ کنترل‌ها و نقطه‌ها ============ */
.special-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 0px;
    direction: ltr;
}

.special-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--gold);
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.special-arrow:hover {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

.special-ads-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

.special-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.special-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.special-dot:hover {
    background: var(--gold-dark);
}

/* ============ دسکتاپ و تبلت: کمی مرتفع‌تر ============ */
@media (min-width: 601px) {
    .special-ad-card {
        height: 160px;
    }

    .special-ad-card .ad-image {
        height: 80px;
    }

    .special-ad-card .ad-placeholder-icon img,
    .special-ad-card .ad-image svg {
        width: 70px;
        height: 70px;
    }
        .special-ads-track {
        grid-template-columns: repeat(4, 1fr);
        min-height: 0; 
    }
    .special-ads-viewport {
        height: 160px;
        min-height: 160px;
    }
    .special-slider-controls {
        margin-top: 8px;   
    }
}