/* ===============================================
   PREMIUM ADVERTISEMENT BANNER 1 - CSS
   =============================================== */
.premium-ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: white;
}
.premium-ad-banner {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}
.premium-ad-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
/* Video Advertisement */
.premium-ad-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: none;
}
.premium-ad-video:hover {
    transform: scale(1.05);
}
/* Image Advertisement */
.premium-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: none;
}
.premium-ad-image:hover {
    transform: scale(1.05);
}
/* Fallback Advertisement */
.premium-ad-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 30%, #f59e0b 70%, #fbbf24 100%);
    color: white;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.premium-ad-fallback::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: movePattern 20s linear infinite;
}
@keyframes movePattern {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.premium-ad-fallback-content {
    position: relative;
    z-index: 2;
}
.premium-ad-fallback h2 {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-family: 'Noto Sans Malayalam', Arial, sans-serif;
}
.premium-ad-fallback p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
    font-family: 'Noto Sans Malayalam', Arial, sans-serif;
}
.premium-ad-fallback-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 30px;
    border: 2px solid white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Noto Sans Malayalam', Arial, sans-serif;
}
.premium-ad-fallback-btn:hover {
    background: white;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}
/* Ad Label */
.premium-ad-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    font-family: 'Noto Sans Malayalam', Arial, sans-serif;
}
/* Ad Controls */
/* Ad Controls */
.premium-ad-controls {
    position: absolute;
    bottom: 15px;
    right: 15px; /* Changed from left to right */
    display: flex;
    gap: 10px;
    z-index: 10;
}
.premium-ad-control-btn {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.premium-ad-control-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}
.premium-ad-control-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
/* Ad Info Overlay */
.premium-ad-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 5;
}
.premium-ad-banner:hover .premium-ad-info {
    transform: translateY(0);
}
.premium-ad-info h3 {
    font-size: 20px;
    font-family: Arial, sans-serif;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 8px;
    font-family: 'Noto Sans Malayalam', Arial, sans-serif;
}
.premium-ad-info p {
    /* --- Add these properties --- */
    font-family:  Arial, sans-serif; /* Example Malayalam font */
    font-size: 15px;      /* Adjust size as needed */
    line-height: 1.6;     /* Improves readability */
    white-space: pre-line;/* This makes the text break into two lines */

    /* --- Existing properties --- */
    opacity: 0.9;

    margin-bottom: 15px;
}
.premium-ad-info-btn {
    background: #f59e0b;
    color: white;
    padding: 6px 16px;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Malayalam', Arial, sans-serif;
}
.premium-ad-info-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}
/* Loading State */
.premium-ad-loading {
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f3f4f6;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
}
.premium-ad-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ===============================================
   MOBILE CSS FIXES
   =============================================== */

/* Mobile Responsive */
@media (max-width: 768px) {
    .premium-ad-container {
        /* Fix alignment by removing extra margin on small screens */
        margin-left: auto;
        margin-right: auto;
        width: 95%; /* Use percentage for better fitting */
    }

    /* Hide the hover info overlay on mobile devices */
    .premium-ad-info {
        display: none;
    }

    .premium-ad-banner {
        height: 200px;
        border-radius: 8px;
    }
    .premium-ad-fallback h2 {
        font-size: 24px;
    }
    .premium-ad-fallback p {
        font-size: 14px;
    }
    .premium-ad-controls {
        bottom: 10px;
        left: 10px;
    }

    .premium-ad-label {
        padding: 4px 10px; /* Reduced padding */
        font-size: 11px; /* Reduced font size */
        top: 10px;
        right: 10px;
    }

    /* Make the video control buttons smaller */
    .premium-ad-control-btn {
        width: 32px; /* Reduced width */
        height: 32px; /* Reduced height */
    }

    .premium-ad-control-btn svg {
        width: 16px; /* Scale down the icon inside */
        height: 16px;
    }
}


@media (max-width: 480px) {
    .premium-ad-container {
        margin: 10px auto; /* Center the container */
        width: calc(100% - 20px); /* Ensure padding on very small screens */
    }
    .premium-ad-banner {
        height: 150px;
    }
    .premium-ad-fallback {
        padding: 20px;
    }
    .premium-ad-fallback h2 {
        font-size: 20px;
    }
    .premium-ad-fallback p {
        font-size: 12px;
    }
    .premium-ad-fallback-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    .premium-ad-label {
        padding: 4px 10px; /* Reduced padding */
        font-size: 11px; /* Reduced font size */
        top: 10px;
        right: 10px;
    }

    /* Make the video control buttons smaller */
    .premium-ad-control-btn {
        width: 32px; /* Reduced width */
        height: 32px; /* Reduced height */
    }

    .premium-ad-control-btn svg {
        width: 16px; /* Scale down the icon inside */
        height: 16px;
    }
}