/* CIW Widget Main Container */
.ciw-widget {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Container */
.ciw-container {
    position: relative;
    overflow: hidden;
    display: block;
}

/* Image Styling */
.ciw-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Overlay */
.ciw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover Effects */
.ciw-widget:hover .ciw-overlay {
    opacity: 1;
}

.ciw-widget:hover .ciw-image img {
    transform: scale(1.05);
}

/* Button Styling */
.ciw-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ciw-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Caption */
.ciw-caption {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Tablet Responsive (max-width: 768px) */
@media (max-width: 768px) {
    .ciw-button {
        padding: 10px 20px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .ciw-caption {
        font-size: 13px;
        margin-top: 8px;
    }
}

/* Mobile Responsive (max-width: 480px) */
@media (max-width: 480px) {
    .ciw-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .ciw-caption {
        font-size: 12px;
        margin-top: 6px;
    }
    
    .ciw-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}