/* Features */

/* Reset and universal featured text styling */
[class*="-featured"] span,
.featured-box span,
.bfeatured-468x60 span {
    color: #ffffff;  /* Ensure text is white */
    font-size: 25px !important;
    font-weight: bold;
    text-align: center;
    opacity: 1;
    display: none;  /* Text hidden by default */

}

/* Default styling for all featured boxes */
[class*="-featured"],
.featured-box,
.bfeatured-468x60,
/* .bb-wrapper,*/
.lb-wrapper,
.medium-rectangle,
.square,
.half-page,
.custom,
.mobile-featured-container {
    background-color: #f9f9f9;
    display: block;
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* Add this line */
}

/* Apply border radius to all ad units directly */
.bfeatured-468x60,
.medium-rectangle,
.square,
.half-page,
.custom,
.lb-wrapper,
.bb-wrapper {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Also apply to any images inside these elements */
.bfeatured-468x60 img,
.medium-rectangle img,
.square img,
.half-page img,
.custom img,
.lb-wrapper img,
.bb-wrapper img {
    border-radius: 8px !important;
}







/* Spacer for sidebar  */
.spacer-box {
    width: 20px;
    height: 20px;
    display: block;
    background: transparent; /* Optional for visual clarity */
}

/* Medium-rectangles and bfeatureds */
.bfeatured-468x60,
.content-grid .medium-rectangle {
    margin: 0 auto;
    background-color: #f9f9f9;  /* Ensure consistent background */
    justify-content: center;
    align-items: center;
    display: block;  /* Ensure it's visible */
}

.content-grid .medium-rectangle {
    width: 300px;
    height: 250px;
    display: block;  /* Ensure it's visible */
}

.bfeatured-468x60 {
    width: 468px;
    height: 60px;
    display: block;  /* Ensure it's visible */
}

/* Top Featured Container */
.top-featured-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: transparent;
    margin-bottom: 2rem;
    display: block;  /* Ensure it's visible */
}

.bb-wrapper {
    width: 970px;
    height: 250px;
    display: none; !important /* Ensure it's visible/non visible */
    background-color: #f9f9f9;  /* Add a background color */
}

.lb-wrapper {
    width: 970px;
    height: 90px;
    margin-top: 20px;
    display: block;  /* Ensure it's visible */
    background-color: #f9f9f9;  /* Add a background color */
}

/* Mobile Featured Container */
.mobile-featured-container {
    width: 100%;
    margin: 1.25rem 0;
    justify-content: center;
    display: block;  /* Ensure it's visible */
}

/* featured Container and Boxes */
.featured-container {
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    display: block;  /* Ensure it's visible */
}

.half-page {
    width: 300px;
    height: 600px;
    border-radius: 8px !important;
    display: block;  /* Ensure it's visible */
}

.medium-rectangle {
    width: 300px;
    height: 250px;
    border-radius: 8px !important;
    display: block;  /* Ensure it's visible */
}

.square {
    width: 250px;
    height: 250px;
    border-radius: 8px !important;
    display: block;  /* Ensure it's visible */
}

.custom {
    width: 205px;
    height: 304px;
    display: block;  /* Ensure it's visible */
}







/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0;
    }

    .mobile-featured-container {
        width: 100%;
        padding: 0 1rem;
        display: block;  /* Ensure it's visible */
    }

    .featured-container {
        width: 100%;
        padding: 0 1rem;
        display: block;  /* Ensure it's visible */
    }

    .bb-wrapper {
        width: 100%;
        max-width: 970px;
        margin: 0 auto;
        display: none; !important  /* Ensure it's visible */
    }

    .bb-wrapper {
        height: auto;
        min-height: 150px;
        display: none; !important  /* Ensure it's visible */
    }

    .lb-wrapper {
        width: 100%;
        max-width: 970px;
        margin: 0 auto;
        display: block;  /* Ensure it's visible */
    }


    .lb-wrapper {
        height: auto;
        min-height: 90px;
        margin-top: 20px;
        display: block;  /* Ensure it's visible */
    }

    .bb-featured {
        position: relative;
        width: 100%;
        min-height: inherit;
        padding: 1rem;
        display: none; !important  /* Ensure it's visible */
    }

    .bb-featured span {
        font-size: 40px;
        display: none; !important  /* Text hidden by default */
    }


    .lb-featured {
        position: relative;
        width: 100%;
        min-height: inherit;
        padding: 1rem;
        display: block;  /* Ensure it's visible */
    }

    .lb-featured span {
        font-size: 40px;
        display: none; !important  /* Text hidden by default */
    }

    .bfeatured-468x60 {
    width: 100%;
    max-width: 320px;
    height: auto;
    overflow: hidden;
    }

    .bfeatured-468x60 a {
    display: block;
    width: 100%;
    }

    .bfeatured-468x60 img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    }
}

@media (min-width: 769px) {
    .bb-wrapper {
        min-width: 970px;
        display: none; !important  /* Ensure it's visible */
    }
}


@media (min-width: 769px) {
    .lb-wrapper {
        min-width: 970px;
        display: block;  /* Ensure it's visible */
    }
}