/* === In-Feed AD Card (non-fixed) === */
.ad-feed-card {
    position: relative;
    display: block;
    margin: 1rem 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
    overflow: hidden;
}
.ad-feed-card .ad-display-wrapper { position: relative; display: block; width: 100%; }
.ad-feed-card .rotating-ad-image { display: block; width: 100%; height: auto; }
.ad-feed-card .ad-feed-actions { display: flex; justify-content: center; padding: .75rem; }
.ad-feed-card .ad-feed-cta-button {
    display: inline-block; padding: .5rem 1rem; border-radius: 999px;
    text-decoration: none; font-weight: 600; background: var(--ad-btn-bg, #111);
    color: #fff; line-height: 1; transition: opacity .2s ease-in-out;
}
.ad-feed-card .ad-feed-cta-button:hover { opacity: .85; }
.ad-feed-card .ad-badge{
    position: absolute;
    top: .5rem;
    inset-inline-end: .5rem;

    font-size: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;

    background: linear-gradient(180deg, #f6f6f6 0%, #d9d9d9 100%);
    color: #222;
    border: 1px solid #ccc;


    /* 👇 التوهج الأبيض */
    box-shadow:
      0 0 0 3px rgba(255,255,255,0),
      0 0 20px rgba(255,255,255,5),
      0 0 28px rgba(255,255,255,.15);
}

@media (min-width: 768px) { .ad-feed-card { margin: 1rem .5rem; } }
@media (prefers-reduced-motion: reduce) {
    .ad-feed-card, .ad-feed-card .ad-feed-cta-button { transition: none !important; }
}

/* === WhatsApp inquiry button inside in-feed ads === */
.ad-feed-card .ad-feed-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .65rem .75rem .85rem;
}

.ad-feed-card .ad-feed-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 42px;
    padding: .65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    white-space: pre-line;
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    transition: opacity .2s ease-in-out, transform .2s ease-in-out;
}

.ad-feed-card .ad-feed-whatsapp-button:hover,
.ad-feed-card .ad-feed-whatsapp-button:focus {
    color: #fff;
    opacity: .92;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .ad-feed-card .ad-feed-whatsapp-button {
        font-size: 13px;
        min-height: 40px;
        padding: .6rem .8rem;
    }
}
