.ad-modal {
    opacity: 0;
    visibility: hidden;
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ad-modal.show {
    opacity: 1;
    visibility: visible;
}

.ad-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    max-width: 500px;
}

.ad-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
}

.ad-caption {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
}

.ad-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Learn More Button */
.ad-modal:hover .ad-button {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

.ad-modal .ad-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.ad-modal .ad-button i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.ad-modal .ad-button:hover i {
    transform: translateX(5px);
}