/* Tips for Homeowners Widget Styles */
.tips-homeowners-widget {
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tips-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.tips-intro p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tip-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.tip-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.tip-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tip-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.tip-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.tips-cta {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
}

.tips-cta p {
    margin: 0;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.tips-cta strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tip-card {
        padding: 20px;
    }
    
    .tips-intro {
        margin-bottom: 20px;
    }
    
    .tips-cta {
        padding: 15px;
    }
}

/* Widget sidebar specific styles */
.widget .tips-homeowners-widget {
    padding: 10px 0;
}

.widget .tips-intro {
    margin-bottom: 15px;
}

.widget .tips-intro p {
    font-size: 13px;
    line-height: 1.4;
}

.widget .tips-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.widget .tip-card {
    padding: 12px;
    margin-bottom: 8px;
}

.widget .tip-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    float: left;
    margin-right: 10px;
}

.widget .tip-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.2;
    overflow: hidden;
}

.widget .tip-card p {
    font-size: 11px;
    line-height: 1.3;
    margin: 0;
    clear: both;
}

.widget .tips-cta {
    padding: 10px;
    margin-top: 10px;
}

.widget .tips-cta p {
    font-size: 11px;
    line-height: 1.3;
}

/* Dark theme compatibility */
body.dark-theme .tip-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

body.dark-theme .tip-card h3 {
    color: #f0f0f0;
}

body.dark-theme .tip-card p {
    color: #ccc;
}

body.dark-theme .tips-intro p {
    color: #bbb;
}

body.dark-theme .tips-cta {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    border-color: #444;
}

body.dark-theme .tips-cta p {
    color: #ddd;
}

body.dark-theme .tips-cta strong {
    color: #fff;
}

/* Animation for icons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tip-card:hover .tip-icon {
    animation: pulse 2s infinite;
}