/* General styles for all ad containers */
.ads-manager-wrapper {
    text-align: center;
    margin: 5px 0 10px;
}

.ads-manager-ad {
    display: inline-block;
    position: relative;
    width: 100%;
    max-width: 970px;
    height: 90px;
}

.ads-manager-ad::after {
    content: 'Advertisement';
    display: block;
    text-align: left;
    font-size: 12px;
    color: #9B9B9B;
    margin: 10px 10px 10px 0;
}
.ads-manager-inline-ad {
    float: right;
    margin: 20px 0 10px 10px;
    width: 300px;
    height: 250px;
    display: inline-block;
}
.ads-manager-inline-ad::after  {
    content: 'Advertisement';
    display: block;
    text-align: left;
    font-size: 12px;
    color: #9B9B9B;
    margin: 10px 10px 10px 0;
}

.custom-ad {
    display: inline-block;
    margin: 0 15px;
    vertical-align: middle;
    max-width: 300px;
}

.custom-ad img{
    width: 100%;
    height: auto;
}

.ads-manager-ad a, .ads-manager-inline-ad a{
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    overflow: hidden; /* Hide overflow */
}

.ads-manager-ad img, .ads-manager-inline-ad img  {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* Styles for Homepage ads */
.ads-manager-ad.premium_banner,
.ads-manager-ad.premium_banner_other,
.ads-manager-ad.leaderboard_meeting_reports,
.ads-manager-ad.leaderboard_latest_news {
    width: 970px;
    height: 90px;
}

@media (max-width: 768px) {
    .ads-manager-ad.premium_banner,
    .ads-manager-ad.premium_banner_other,
    .ads-manager-ad.leaderboard_meeting_reports,
    .ads-manager-ad.leaderboard_latest_news {
        width: 300px;
        height: 250px;
    }
}

/* Styles for Other Pages ads */
.ads-manager-ad.top_level,
.ads-manager-ad.sticky_1,
.ads-manager-ad.sticky_2,
.ads-manager-ad.mid_page_unit {
    width: 300px;
    height: 250px;
}

@media (max-width: 768px) {
    .ads-manager-ad.top_level,
    .ads-manager-ad.sticky_1,
    .ads-manager-ad.sticky_2,
    .ads-manager-ad.mid_page_unit {
        width: 300px;
        height: 250px;
    }
}