    /* Ad styling with proper spacing and compliance */
    .sticky-ad {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 10px;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        max-width: 300px;
    }

    .sticky-ad.show {
        opacity: 1;
    }

    .sticky-ad .ad-label {
        font-size: 10px;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 5px;
        text-align: center;
    }

    .sticky-ad .close-ad {
        position: absolute;
        top: 5px;
        right: 8px;
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        color: #999;
        line-height: 1;
    }

    .sticky-ad .close-ad:hover {
        color: #666;
    }

    .sticky-ad a {
        display: block;
        text-decoration: none;
    }

    .sticky-ad a img {
        display: block;
        max-width: 100%;
        height: auto;
        border-radius: 3px;
    }

    .text-ad {
        margin: 20px 0;
        padding: 15px;
        background: #f9f9f9;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        text-align: center;
        position: relative;
    }

    .text-ad::before {
        content: "Annons";
        font-size: 10px;
        color: #666;
        text-transform: uppercase;
        position: absolute;
        top: 5px;
        left: 10px;
    }

    .text-ad a {
        display: block;
        text-decoration: none;
        margin: 0 auto;
    }

    .text-ad a img {
        display: block;
        max-width: 100%;
        height: auto;
        border-radius: 3px;
        margin: 0 auto;
    }

    /* Header title with ad - keeps original layout constraints */
    .title-with-ad {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0 auto;
        max-width: 1000px; /* Same as original .title */
        padding: 15px 30px 5px 30px;
        background-color: var(--primary-light);
    }
    
    .title-with-ad .title-text {
        display: block;
        color: var(--text-primary);
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 32px;
        margin: 0 5px;
        letter-spacing: -0.025em;
    }
    
    .title-with-ad .header-ad {
        min-width: 250px;
        max-width: 350px;
        flex-shrink: 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* General Google Ads styling */
    .google-ads-container {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin: 15px 0;
    }

    /* Special styling for ads in stat cards */
    .stat-card .google-ads-container {
        padding: 5px;
        margin: 5px 0;
        min-width: 250px;
    }

    /* Responsive ad container */
    @media (max-width: 768px) {
        .sticky-ad {
            bottom: 10px;
            right: 10px;
            left: 10px;
            max-width: none;
        }
        
        .text-ad {
            margin: 15px 0;
            padding: 10px;
        }

        .title-with-ad {
            flex-direction: column;
            text-align: center;
        }
        
        .title-with-ad .header-ad {
            max-width: 100%;
            margin-top: 10px;
        }
    }

    @media only screen and (max-width: 600px) {
        .sticky-ad a img {
            max-height: 90px;
        }
        
        .text-ad a img {
            max-height: 200px;
        }
    }
