.almas-ads-wrapper { display: flex; flex-wrap: wrap; gap: 15px; margin: 0; justify-content: center; align-items: center; width: 100%; clear: both; min-height: 90px; }

.almas-promo-box, .almas-ad-banner-container { 
    position: relative; 
    border-radius: var(--almas-radius-element, 12px); 
    overflow: hidden; 
    width: 100%;
    max-width: 100%; 
    flex: 1 1 calc(50% - 15px); 
    min-width: 300px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    display: block;
    z-index: 1; 
    contain: paint layout;
    transform: translateZ(0);
}

.almas-promo-box:nth-child(odd):last-child, 
.almas-ad-banner-container:nth-child(odd):last-child {
    flex: 0 0 70%;
    max-width: 70%;
}

@media (hover: hover){
.almas-promo-box:hover, .almas-ad-banner-container:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
    z-index: 2; 
}
}

.almas-promo-box.almas-banner-standard, .almas-ad-banner-container.almas-banner-standard { 
    aspect-ratio: 4 / 1;
    min-height: 90px;
    height: auto; 
}

.almas-ad-link { 
    display: block; 
    width: 100%; 
    height: 100%; 
    text-decoration: none; 
    position: relative; 
}

.almas-ad-link picture { 
    display: block; 
    width: 100%; 
    height: 100%; 
}

.almas-ad-img, .almas-ad-link img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    display: block; 
    border: none; 
    margin: 0; 
    padding: 0; 
}

.almas-promo-text, .almas-ad-text { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
    font-weight: bold; 
    color: #1e293b; 
    text-align: center; 
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 1; 
    padding: 10px;
    box-sizing: border-box;
}

.almas-ad-badge { 
    position: absolute; 
    bottom: 8px; 
    right: 8px; 
    background: rgba(0,0,0,0.6); 
    color: #fff; 
    font-size: 11px; 
    padding: 3px 8px; 
    border-radius: var(--almas-radius-badge, 6px); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
    pointer-events: none; 
    z-index: 2; 
    transform: translateZ(0);
}

.almas-ad-elementor-preview { 
    width: 100%; 
    margin: 15px auto; 
    border: 2px dashed #cbd5e1; 
    background: #f1f5f9; 
    color: #64748b; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: var(--almas-radius-element, 12px); 
    font-size: 13px; 
    font-weight: bold; 
}

.almas-ad-elementor-preview.almas-banner-standard { 
    aspect-ratio: 4 / 1;
    min-height: 90px;
}

.almas-promoted-ad-item .almas-custom-post-thumbnail,
.almas-promoted-ad-item .almas-post-thumbnail {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.almas-promoted-ad-item .almas-custom-post-thumbnail img,
.almas-promoted-ad-item .almas-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.almas-dynamic-ad-placeholder {
    width: 100%;
    min-height: 90px;
    aspect-ratio: 4 / 1;
}

@media (max-width: 768px) { 
    .almas-promo-box, .almas-ad-banner-container,
    .almas-promo-box:nth-child(odd):last-child, 
    .almas-ad-banner-container:nth-child(odd):last-child { 
        flex: 1 1 100%; 
        max-width: 100%;
        min-width: 100%; 
    } 
    .almas-promo-box.almas-banner-standard, .almas-ad-banner-container.almas-banner-standard, .almas-ad-elementor-preview.almas-banner-standard { 
        aspect-ratio: 4 / 1; 
        height: auto; 
    }
    .almas-ad-badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0,0,0,0.85);
    }
}

@media (max-width: 1024px) {
    .almas-ad-badge {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

@media (hover: hover) {
    .almas-promo-box:hover, .almas-ad-banner-container:hover {
        will-change: transform;
    }
}

body.dark-mode .almas-promo-box,
body.dark-mode .almas-ad-banner-container {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) {
body.dark-mode .almas-promo-box:hover,
body.dark-mode .almas-ad-banner-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}
}

body.dark-mode .almas-promo-text,
body.dark-mode .almas-ad-text {
    color: #f1f5f9;
}

body.dark-mode .almas-ad-elementor-preview {
    border-color: #334155;
    background: #0f172a;
    color: #94a3b8;
}