/* sideads.css */

/* Clean, mobile-friendly UI matching the website theme */
.sideads {
    position: sticky;
    top: 130px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.75rem;
    background: rgba(227, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 101, 98, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    z-index: 5;
    transition: all 0.3s ease;
    width: fit-content;
}

.ad-topscroll,
.ad-sidescroll {
    display: flex;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 101, 98, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-topscroll:hover,
.ad-sidescroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 101, 98, 0.15);
}

.ad-topscroll iframe,
.ad-sidescroll iframe {
    border-radius: 8px;
    display: block;
}

.adsflex {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
}

/* Screen size below 950px */
@media (max-width: 950px) {
    .ad-topscroll {
        display: none;
    }

    .adsflex {
        flex-direction: column;
        align-items: center;
    }
}

/* Screen size below 700px */
@media (max-width: 770px) {
    .blog-container {
        flex-wrap: wrap-reverse;
    }

    .sideads {
        /* In a flex container with wrap-reverse (like blog-container on mobile),
           setting order to -1 forces it to the "bottom" line visually */
        order: -1;
        position: static;
        margin: auto;
        align-items: center;
        box-shadow: none;
        border: none;
    }

    .adsflex {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .ad-sidescroll {
        width: 100%;
        max-width: 320px;
    }
}
