/* Clean CSS for Ads Container */
.four-ads-box {
    width: 100%;
    margin: 20px auto;
    display: block;
    text-align: center;
    overflow: hidden;
}

/* Ensure images and iframes inside ads are responsive */
.four-ads-box img,
.four-ads-box iframe {
    max-width: 100%;
    height: auto;
}

/* Fade wrapper for read more */
.four-ads-fade-wrapper {
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 150px, black 100%);
    mask-image: linear-gradient(to top, transparent 0%, black 150px, black 100%);
    transition: all 0.3s ease;
    min-height: 150px;
}
.four-ads-fade-wrapper.four-ads-fade-removed {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

@keyframes fourAdsPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 105, 143, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(58, 105, 143, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(58, 105, 143, 0);
    }
}

.four-ads-animated-btn {
    animation: fourAdsPulse 2s infinite ease-in-out;
}

.four-ads-pagination-wrapper {
    margin: 40px 0;
    text-align: center;
}
.four-ads-next-btn-container {
    margin-bottom: 25px;
}
.four-ads-next-btn {
    background-color: #22c55e;
    background-image: none;
    color: #000000 !important;
    border: 1px solid #000000;
    box-shadow: none;
    padding: 5px 40px;
    font-size: 16px;
    font-weight: 900;
    -webkit-text-stroke: 0.5px #000000;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.four-ads-arrow {
    display: inline-block;
    font-size: 20px;
    font-weight: 900;
    -webkit-text-stroke: 1px #000000;
    position: relative;
    top: -1px;
}
.four-ads-next-btn:hover {
    background-color: #16a34a;
    background-image: none;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.four-ads-next-btn:active {
    transform: translateY(1px);
}
.four-ads-page-numbers {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.four-ads-page-num {
    background: #f8fafc;
    color: #475569 !important;
    border: 2px solid #e2e8f0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.four-ads-page-num:hover {
    background: #e2e8f0;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.four-ads-page-num.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff !important;
    border-color: #dc2626;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

/* Premium Continue Reading Button */
.four-ads-read-more-btn-premium {
    background-color: #f0f4f6 !important;
    color: #3a698f !important;
    border: 2px solid #3a698f !important;
    box-shadow: 0 4px 15px rgba(58, 105, 143, 0.3) !important;
    padding: 12px 40px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    text-decoration: none !important;
}
.four-ads-read-more-btn-premium:hover {
    background-color: #e2e8f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 105, 143, 0.4) !important;
}
.four-ads-read-more-btn-premium:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(58, 105, 143, 0.3) !important;
}
