/**
 * Top Companies Widget Styles
 */

.top-companies-widget-container {
    position: relative;
    display: block;
    min-height: 200px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}


.top-companies-widget-container.clickable-widget {
    cursor: pointer;
}

.top-companies-widget-container.clickable-widget:hover {
    text-decoration: none;
    color: inherit;
}

.widget-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.widget-background-image::after {
}

.widget-content-overlay {
    position: relative;
    z-index: 3;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
}

.widget-title {
    color: #ffffff;
    font-size: 2em;
    font-weight: normal;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.widget-content {
    color: #ffffff;
    font-size: 0.95em;
    line-height: 1.4;
    margin: 0;
}

/* Fallback styling for widgets without background images */
.top-companies-widget-container:not(.has-background-image) {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    min-height: auto;
}

.top-companies-widget-container:not(.has-background-image) .widget-content-overlay {
    min-height: auto;
    padding: 15px;
}

.top-companies-widget-container:not(.has-background-image) .widget-title {
    color: #333333;
    margin-bottom: 8px;
}

.top-companies-widget-container:not(.has-background-image) .widget-content {
    color: #666666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .widget-content-overlay {
        padding: 15px;
        min-height: 150px;
    }

    .widget-title {
        font-size: 1.3em;
    }

    .widget-content {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .widget-content-overlay {
        padding: 12px;
        min-height: 120px;
    }

    .widget-title {
        font-size: 1.2em;
    }

    .widget-content {
        font-size: 0.85em;
    }
}

/**
 * MPU Widget Styles
 * Uses existing theme styles from advert-mpu-1.php
 */

/* The MPU widget now uses the same structure as advert-mpu-1.php */
/* All styling is handled by the existing theme CSS */
