/* ============================================
   Card Grid Widget - Base Styles
   ============================================ */

.unlockafe-card-grid-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.unlockafe-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.unlockafe-card-item {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.unlockafe-card-item:hover .unlockafe-card-images .thumb {
    box-shadow: 0 0 80px rgba(25, 24, 67, 0.15);
    transform: scale(0.7);
}

.unlockafe-card-item:hover .unlockafe-card-images .thumb:nth-of-type(1) {
    margin: 40px 0 0 40px;
    top: 0;
    left: 0;
}

.unlockafe-card-images {
    position: relative;
    display: flex;
    margin-bottom: 15px;
    background-color: #f2f2f2da;
    padding: 8px 8px 0 0;
    border-radius: 5px;
    box-sizing: border-box;
    min-height: 250px;
}

.unlockafe-card-images .thumb {
    width: calc(100% - 40px);
    transition: all 0.3s ease-in-out 0.1s;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.unlockafe-card-images .thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.unlockafe-card-images .thumb:nth-of-type(1) {
    margin-left: 40px;
    margin-bottom: 40px;
    transform-origin: bottom right;
    position: relative;
    z-index: 1;
}

.unlockafe-card-images .thumb:nth-of-type(2) {
    position: absolute;
    top: 20px;
    right: 20px;
    transform-origin: top center;
    z-index: 2;
    width: calc(100% - 40px);
}

.unlockafe-card-images .thumb:nth-of-type(3) {
    position: absolute;
    bottom: 0;
    left: 0;
    transform-origin: center left;
    z-index: 3;
    width: calc(100% - 40px);
}

.unlockafe-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.unlockafe-card-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333333;
    line-height: 1.4;
}

.unlockafe-card-description {
    font-size: 16px;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.unlockafe-card-button-wrapper {
    margin-top: auto;
    display: block;
}

.unlockafe-card-button {
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: #c06ef3;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 3px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.unlockafe-card-button:hover {
    color: #a855e8;
}

.unlockafe-card-button i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.unlockafe-card-button:hover i {
    transform: translateX(3px);
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1024px) {
    .unlockafe-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .unlockafe-card-grid {
        grid-template-columns: 1fr;
    }
    
    .unlockafe-card-images {
        min-height: 200px;
    }
    
    .unlockafe-card-images .thumb {
        width: calc(100% - 20px);
    }
    
    .unlockafe-card-images .thumb:nth-of-type(1) {
        margin-left: 20px;
        margin-bottom: 20px;
    }
    
    .unlockafe-card-images .thumb:nth-of-type(2) {
        top: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }
    
    .unlockafe-card-images .thumb:nth-of-type(3) {
        width: calc(100% - 20px);
    }
}
