/* HeatNetwork Widgets - Image Top Cards Layout */

.image-top-cards-container {
    width: 100%;
    background-color: #f5f7fa;
    padding: 60px 20px;
    box-sizing: border-box;
}

.image-top-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Card Styles */
.image-top-cards-container .image-top-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.image-top-cards-container .image-top-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-top-cards-container .card-image {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.image-top-cards-container .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.image-top-cards-container .image-top-card:hover .card-image img {
    transform: scale(1.05);
}

.image-top-cards-container .card-content-section {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 200px;
    justify-content: flex-end;
    align-items: flex-start;
}

.image-top-cards-container .card-logo {
    margin-bottom: 16px;
    max-width: 80%;
    max-height: 60px;
}

.image-top-cards-container .card-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.image-top-cards-container .card-button-wrapper {
    margin-top: 0;
}

.image-top-cards-container .card-description {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 0!important;
}

.image-top-cards-container .card-button {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.image-top-cards-container .card-button:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Individual Card Backgrounds */
.image-top-cards-container .card-1 .card-content-section {
    background-color: #2563eb;
}

.image-top-cards-container .card-2 .card-content-section {
    background-color: #1e3a8a;
}

.image-top-cards-container .card-3 .card-content-section {
    background-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-top-cards-container .image-top-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-top-cards-container .card-content-section {
        padding: 20px;
        min-height: 180px;
    }
    
    .image-top-cards-container .card-logo {
        max-width: 100px;
        max-height: 50px;
    }
    
    .image-top-cards-container .card-description {
        font-size: 14px;
    }
    
    .image-top-cards-container .card-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .image-top-cards-container .card-content-section {
        padding: 16px;
        min-height: 160px;
    }
    
    .image-top-cards-container .card-logo {
        max-width: 80px;
        max-height: 40px;
    }
    
    .image-top-cards-container .card-description {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .image-top-cards-container .card-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Animation */
@keyframes imageTopCardsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-top-cards-container .image-top-card {
    animation: imageTopCardsFadeInUp 0.6s ease-out;
}

.image-top-cards-container .image-top-card:nth-child(2) {
    animation-delay: 0.2s;
}

.image-top-cards-container .image-top-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Focus states for accessibility */
.image-top-cards-container .card-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.image-top-cards-container .image-top-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .image-top-cards-container {
        background-color: #ffffff !important;
        padding: 20px !important;
    }
    
    .image-top-cards-container .image-top-card {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
        break-inside: avoid;
    }
    
    .image-top-cards-container .card-button {
        background-color: #000000 !important;
        color: #ffffff !important;
        text-decoration: underline;
        border: none !important;
    }
    
    .image-top-cards-container .card-image img {
        max-width: 200px !important;
        height: auto !important;
    }
}

/* Elementor Editor Compatibility */
.elementor-editor-active .image-top-cards-container .card-image img {
    opacity: 1 !important;
}

.elementor-editor-active .image-top-cards-container .image-top-card {
    animation: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .image-top-cards-container .image-top-card {
        border: 2px solid #000000;
    }
    
    .image-top-cards-container .card-button {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .image-top-cards-container .image-top-card,
    .image-top-cards-container .card-button,
    .image-top-cards-container .card-image img {
        animation: none;
        transition: none;
    }
    
    .image-top-cards-container .image-top-card:hover {
        transform: none;
    }
    
    .image-top-cards-container .card-button:hover {
        transform: none;
    }
    
    .image-top-cards-container .card-image img:hover {
        transform: none;
    }
} 