/* Custom Warranty Cards Styles */
.custom-warranty-cards {
    margin: 20px 0;
    padding: 0;
}

/* Link wrapper for clickable cards */
.warranty-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.warranty-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
}

.warranty-card-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 4px;
    border-radius: 12px;
}

.warranty-cards-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.warranty-card {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 120px;
    flex: 1 1 calc(50% - 7.5px);
    min-width: 280px;
    max-width: calc(50% - 7.5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.warranty-card:hover,
.warranty-card-link:hover .warranty-card {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}

.warranty-card-link:hover .warranty-card {
    transform: translateY(0);
}

.warranty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.warranty-card:hover::before {
    opacity: 1;
}

.warranty-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    padding: 8px;
}

.warranty-card-icon svg {
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
}

.warranty-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.warranty-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warranty-card-title i {
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.warranty-card-link:hover .warranty-card-title i {
    opacity: 1;
    transform: translateX(2px);
}

/* Cursor pointer for clickable cards */
.warranty-card-link {
    cursor: pointer;
}

/* Better accessibility for screen readers */
.warranty-card-link[aria-label] {
    position: relative;
}

/* Add visual indication for external links */
.warranty-card-title i.fa-external-link-alt {
    color: #6c757d;
}

.warranty-card-description {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

/* E-restoration card specific styling */
.warranty-card.e-restoration {
    border-color: #FFD700;
}

.warranty-card.e-restoration:hover {
    border-color: #FFA500;
}

.warranty-card.e-restoration .warranty-card-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

/* PrivatBank card specific styling */
.warranty-card.privatbank {
    border-color: #4CAF50;
}

.warranty-card.privatbank:hover {
    border-color: #45a049;
}

.warranty-card.privatbank .warranty-card-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .warranty-cards-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .warranty-card {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        height: 100px;
        padding: 16px;
        gap: 12px;
    }
    
    .warranty-card-icon {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .warranty-card-title {
        font-size: 15px;
    }
    
    .warranty-card-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .warranty-card {
        height: 90px;
        padding: 14px;
        gap: 10px;
    }
    
    .warranty-card-icon {
        width: 36px;
        height: 36px;
        padding: 4px;
    }
    
    .warranty-card-title {
        font-size: 14px;
    }
    
    .warranty-card-description {
        font-size: 12px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.warranty-card {
    animation: fadeInUp 0.6s ease-out;
}

.warranty-card:nth-child(2) {
    animation-delay: 0.1s;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .warranty-card {
        border-width: 3px;
        border-color: #000;
    }
    
    .warranty-card-title {
        color: #000;
    }
    
    .warranty-card-description {
        color: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .warranty-card {
        animation: none;
        transition: none;
    }
    
    .warranty-card:hover {
        transform: none;
    }
}
