/* Revive Ad Styles — extracted from WP inline styles */

/* Above-article ads (Zone 1) — horizontal 2-up layout */
.revive-ads-wrapper {
    display: flex;
    gap: 20px;
    font-weight: 700 !important;
}
.revive-ads-wrapper a {
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
    font-size: 16px !important;
    color: #cf2e2e !important;
    word-wrap: break-word !important;
    max-width: 300px;
}
.revive-ad-card {
    width: 300px;
    font-size: 16px;
    font-weight: bold;
    font-family: "Open Sans", sans-serif;
}
.revive-ad-card img {
    width: 100%;
    height: auto;
    border: none;
}
.revive-ad-like {
    color: #007bff;
    font-size: 24px;
    margin-top: 4px;
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 5px;
}
.revive-ad-like i {
    color: #007bff;
}
#like-count-1,
#like-count-2 {
    font-size: 18px;
    color: #ff0000;
    font-weight: 700;
}

/* Mid-article inline ads (Zone 2) */
.custom-inline-ads .custom-ad-item {
    display: flex;
    margin-bottom: 12px;
    gap: 10px;
    margin-top: 24px;
    align-items: center;
}
.custom-inline-ads .custom-ad-item img {
    width: 250px;
    height: auto;
    object-fit: cover;
    border: 0;
}
.custom-inline-ads .custom-ad-item a {
    color: #cf2e2e !important;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.3em;
    margin-bottom: 15px;
}
.custom-fire-count {
    font-size: 18px;
    font-weight: bold;
    color: #e50914;
    display: flex;
    margin-top: 38px;
    margin-left: -333px;
}
.custom-fire-icon {
    margin-right: 6px;
    font-size: 22px;
}

/* Footer "Most Popular" grid (Zone 5) — 3 column grid */
.revive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px 0;
}
.revive-grid > div {
    background: #fff;
    padding: 5px;
    box-sizing: border-box;
    text-align: left;
}
.revive-grid img {
    width: 100%;
    height: auto;
    display: block;
}
.revive-grid p {
    font-size: 14px;
    margin: 0;
}
.revive-ad-zone * {
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    color: #cf2e2e !important;
    line-height: 1.5;
}

/* Shared: HR divider + section headers */
.ad-divider-hr {
    border-width: 3px !important;
    border-color: #D20001 !important;
}
.revivefooter-ads-hr {
    border-width: 3px !important;
    border-color: #d20001 !important;
    max-width: 100%;
}
.ac_header_title {
    text-align: left;
    font-weight: 700 !important;
    margin: 5px 0 10px;
    color: #000;
    font: 400 16px / 1.428em Arial, Helvetica, sans-serif;
}

/* Footer text ads (Zone 13) */
.revivemain a:before {
    content: "\00BB ";
    color: #555;
    padding-right: 2px;
}
.revivemain a {
    color: #9c0115 !important;
    font: 400 16px / 1.428em Arial, Helvetica, sans-serif;
    text-align: left;
}
.revivemain {
    display: grid;
    text-align: left !important;
}

/* Sidebar top image (Zone 8) */
.revive-full-img-ad {
    display: block;
    max-width: 100%;
}
.revive-full-img-ad img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* Sidebar inline ads (Zone 9) */
.revive-inline-ads {
    max-width: 100%;
}
.revive-inline-ads .ad-item {
    display: grid !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
    gap: 10px !important;
}
.revive-inline-ads .ad-item img {
    max-width: 80px;
    height: auto;
    object-fit: cover;
    border: 0;
}
.revive-inline-ads .ad-item a {
    color: #d20001 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    line-height: 1.3em !important;
    font-family: Arial, sans-serif !important;
}
.side-single {
    display: flex;
    gap: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .revive-ads-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .revive-ad-card {
        width: 45% !important;
    }
}
@media (max-width: 768px) {
    .revive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .revive-ad-item {
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .revive-ad-item img {
        max-width: 100%;
        width: 80px;
        height: auto !important;
    }
    .revive-ad-item a {
        max-width: 100% !important;
        word-break: break-word !important;
        display: block;
    }
}
@media (max-width: 480px) {
    .revive-grid {
        grid-template-columns: 1fr;
    }
    .revive-ads-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .revive-ad-card {
        width: 100% !important;
        max-width: 95% !important;
    }
    .revive-ads-wrapper a {
        font-size: 14px !important;
    }
    #like-count-1,
    #like-count-2 {
        font-size: 16px !important;
    }
    .custom-inline-ads .custom-ad-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .custom-inline-ads .custom-ad-item img {
        width: 100%;
    }
    .custom-fire-count {
        margin-left: 0;
        margin-top: 15px;
    }
    .custom-fire-icon {
        font-size: 20px;
    }
    .custom-fire-number {
        font-size: 16px;
    }
    .revive-inline-ads .ad-item {
        align-items: flex-start;
    }
    .revive-inline-ads .ad-item img {
        max-width: 100%;
        width: 80px;
        height: auto;
    }
}


/* === Revive widget text normalization (added by _fix-revive-widget-styling.py) === */
.revivemain, .revivemain *,
.revive-grid, .revive-grid *,
[id^="text-ads-sidebar"], [id^="text-ads-sidebar"] *,
[id^="footer-textads-revive"], [id^="footer-textads-revive"] *,
.revivemain *:not(img):not(svg) {
    font-weight: normal !important;
    color: inherit !important;
}
.revivemain a, .revivemain a *,
.revive-grid a, .revive-grid a *,
[id^="text-ads-sidebar"] a, [id^="text-ads-sidebar"] a *,
[id^="footer-textads-revive"] a, [id^="footer-textads-revive"] a * {
    color: #9c0115 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}
.revivemain a:hover, .revive-grid a:hover {
    text-decoration: underline !important;
}

/* === Uniform Most-Popular widget spacing + collapse double red dividers === */
/* If two .revivefooter-ads-hr stack adjacent (or with whitespace between),
   hide the second one — there should only be ONE divider before the
   widget header, not two. */
hr.revivefooter-ads-hr + hr.revivefooter-ads-hr,
hr.revivefooter-ads-hr ~ hr.revivefooter-ads-hr {
    display: none !important;
}
/* Article wrapper bottom border + footer HR creates a double red line.
   Remove the wrapper bottom border on the article body. */
.entry-article, .articles {
    border-bottom: 0 !important;
}
/* Tighten vertical gap between consecutive Most-Popular widget wrappers. */
.code-block + .code-block,
.wp-block-dragblock-wrapper + .wp-block-dragblock-wrapper {
    margin-top: 0 !important;
}
.code-block {
    margin: 4px 0 !important;
}
/* Drop unfilled-slot padding so empty Revive slots don't leave gaps. */
.revive-grid > div:empty,
[id^="footer-textads-revive"] > div:empty,
[id^="text-ads-sidebar"] > div:empty {
    display: none !important;
}

