/* -----------------------------------
   HIDE POST NAVIGATION (KADENCE)
----------------------------------- */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation,
.kadence-post-navigation,
.kadence-comments-navigation {
    display: none;
    margin: 0;
}

/* -----------------------------------
   HIDE AUTHOR BOX (KADENCE)
----------------------------------- */
.kadence-author-box,
.entry-author {
    display: none;
}

/* -----------------------------------
   FOOTER MUST ALWAYS DISPLAY
----------------------------------- */
#colophon,
.site-footer {
    display: block !important;
}

/* -----------------------------------
   HIDE FOOTER LINKS (OPTIONAL)
----------------------------------- */
.site-footer a {
    display: none;
    color: #fff;
}

/* -----------------------------------
   AD CONTAINER BASE STYLING
----------------------------------- */
.ad-container,
.widget_advertisement,
.kadence-ad {
    display: block;
    visibility: visible;
    opacity: 1;
    min-height: 100px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
    clear: both;
}

/* -----------------------------------
   SINGLE POST AD SPACING
----------------------------------- */
.single-post .ad-container,
.single-post .kadence-ad {
    margin: 60px 0;
}

/* -----------------------------------
   SIDEBAR AD SPACING (KADENCE)
----------------------------------- */
#secondary .widget_advertisement {
    margin: 0 0 25px 0;
}

/* -----------------------------------
   RESPONSIVE AD IMAGES
----------------------------------- */
.ad-container img,
.widget_advertisement img,
.kadence-ad img {
    display: block;
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
}

/* -----------------------------------
   LIGHTWEIGHT AD PLACEHOLDER
----------------------------------- */
.ad-container::before {
    content: "";
    display: block;
    height: 100px;
    background: #f3f3f3;
}

/* -----------------------------------
   DISABLE STICKY SIDEBAR (KADENCE)
----------------------------------- */
#secondary,
#secondary .inner-column-1,
.kadence-sidebar {
    position: static !important;
    top: auto !important;
    transform: none !important;
}

/* -----------------------------------
   SIDEBAR AD LOADING BEHAVIOR
----------------------------------- */

/* Placeholder shown while ads NOT loaded */
#secondary[data-slot-rendered-sidebarbtf="false"]::before {
    content: "Loading ads...";
    display: block;
    height: 150px;
    background: #f3f3f3;
    color: #888;
    text-align: center;
    line-height: 150px;
    font-style: italic;
    font-size: 14px;
    user-select: none;
}

/* Hide ads before loading */
#secondary[data-slot-rendered-sidebarbtf="false"] .widget_advertisement,
#secondary[data-slot-rendered-sidebarbtf="false"] .ad-container {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: opacity 0.4s ease-out;
}

/* Show ads after loading */
#secondary[data-slot-rendered-sidebarbtf="true"] .widget_advertisement,
#secondary[data-slot-rendered-sidebarbtf="true"] .ad-container {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease-in;
}

/* -----------------------------------
   SIDEBAR AD SPACING & STRUCTURE
----------------------------------- */
#secondary .widget_advertisement,
#secondary .ad-container {
    margin-bottom: 25px;
    width: 100%;
    min-height: 100px;
    text-align: center;
    position: relative;
    z-index: 10;
}