/* Animated Cards Frontend Styles */

.animated-cards-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #F8F9FA;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.card-item {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 84, 164, 0.15);
}

/* Gradient line animation */
.card-hover-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #0054A4 0%, #00A3E0 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-item:hover .card-hover-line {
    width: 100%;
}

/* Background gradient on hover */
.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 84, 164, 0.02) 0%, rgba(0, 163, 224, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-item:hover::before {
    opacity: 1;
}

/* Card icon */
.card-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    position: relative;
}

.card-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.card-icon-normal {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.card-icon-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.card-item:hover .card-icon-normal {
    opacity: 0;
}

.card-item:hover .card-icon-hover {
    opacity: 1;
}

/* Card title */
.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card-item:hover .card-title {
    color: #0054A4;
}

/* Card description */
.card-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Checklist container */
.card-checks {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-item:hover .card-checks {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.card-check-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.card-check-item:last-child {
    margin-bottom: 0;
}

.card-check-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-check-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hover hint */
.card-hover-hint {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    margin-top: 16px;
    font-style: italic;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.card-item:hover .card-hover-hint {
    opacity: 0;
}

/* Responsive Design */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .card-item {
        padding: 32px 24px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .card-description {
        font-size: 14px;
    }
}

/* Mobile - 1 column */
@media (max-width: 640px) {
    .animated-cards-container {
        padding: 40px 16px;
    }
    
    .cards-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-item {
        padding: 28px 20px;
    }
    
    .card-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .card-description {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .card-check-item {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .card-check-icon {
        width: 16px;
        height: 16px;
    }
}

/* Extra small mobile */
@media (max-width: 380px) {
    .card-item {
        padding: 24px 16px;
    }
    
    .card-title {
        font-size: 17px;
    }
    
    .card-description {
        font-size: 13px;
    }
}
