﻿/* Main card */
.ad-card {
    width: 100%; /* adjust as needed */
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #fff;
}

/* Banner image (19:9 ratio) */
.ad-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

    .ad-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        /* opacity: 0;*/
        transition: opacity 0.5s ease;
    }

        .ad-image img.loaded {
            opacity: 1;
        }

/* Content layout */
.ad-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    gap: 10px;
}

/* Left section (text only now) */
.ad-left {
    flex: 1;
    overflow: hidden;
}

/* Title (2-line clamp) */
.ad-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Description (2-line clamp) */
.ad-desc {
    font-size: 13px;
    color: #555;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sponsored text */
.ad-sponsored {
    font-size: 12px;
    color: #777;
    margin: 0;
}

    .ad-sponsored a {
        color: #555;
        text-decoration: none;
    }

/* Right section (button + arrow) */
.ad-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ad-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

    .ad-btn:hover {
        background-color: #005fcc;
    }

.ad-arrow {
    font-size: 14px;
    color: #444;
}


.in-feed-promotion-campaign-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* width : height ratio */
    object-fit: cover; /* or 'contain' depending on your need */
}
