/* Ad overlay styling */
  .ad-overlay, .ad1-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Ad container */
  .ad-container, .ad1-container {
    position: relative;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
  }
  
  @keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* Close button */
  .ad-close-btn, .ad1-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .ad-close-btn:hover, .ad1-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
  }
  
  /* Ad link */
  .ad-link, .ad1-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  /* Ad image */
  .ad-image, .ad1-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
  }
  
  /* Ad content */
  .ad-content {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
  }

  .ad1-content {
    padding: 20px;
    background: #0295ff;
    color: white;
    text-align: center;
  }
  
  .ad-title, .ad1-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .ad-description, .ad1-description {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    .ad-container, .ad1-container {
      width: 95%;
    }
    
    .ad-image, .ad1-image {
      max-height: 250px;
    }
    
    .ad-content, .ad1-content {
      padding: 15px;
    }
    
    .ad-title, .ad1-title {
      font-size: 20px;
    }
    
    .ad-description, .ad1-description {
      font-size: 14px;
    }
  }
  
  @media (max-width: 480px) {
    .ad-container, .ad1-container {
      width: 98%;
    }
    
    .ad-image, .ad1-image {
      max-height: 200px;
    }
    
    .ad-close-btn, .ad1-close-btn {
      top: 10px;
      right: 10px;
      width: 30px;
      height: 30px;
      font-size: 20px;
    }
  }