.ad-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background-color: #006064; /* Teal-green background from image */
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 9999;
    font-family: sans-serif;
}

.ad-image-box img {
    width: 100%;
    border-radius: 8px 8px 0 0;
    display: block;
}

.ad-link {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    padding: 10px 0;
    letter-spacing: 0.5px;
}

.ad-link:hover {
    text-decoration: underline;
}

.close-ad {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}
.video-ad-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px; /* Slightly wider for video */
    background-color: #006064; /* Teal background */
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 9999;
    overflow: hidden;
}

.video-box video {
    width: 100%;
    border-radius: 8px; /* Rounded corners for the video itself */
    display: block;
}

.ad-link {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 12px 0 4px 0;
    font-family: 'Arial', sans-serif;
}

.close-ad {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    line-height: 24px;
}
