/**
 * Elementor Cards Widget Styles
 * Mobile-first responsive design
 */

/* Widget Container */
.ecw-widget-container {
    width: 100%;
    max-width: 100%;
}

/* Header Section */
.ecw-header {
    margin-bottom: 40px;
}

.ecw-main-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #333333;
}

.ecw-main-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #666666;
    letter-spacing: 0.5px;
}

/* Cards Container - Mobile First */
.ecw-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

/* Tablet - 2 columns */
@media (min-width: 768px) {
    .ecw-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 3 columns */
@media (min-width: 1024px) {
    .ecw-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual Card */
.ecw-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 0;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Card Icon */
.ecw-card-icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ecw-card-icon i {
    font-size: 48px;
    color: #333333;
    line-height: 1;
}

.ecw-card-icon svg {
    width: 48px;
    height: 48px;
    fill: #333333;
}

/* Card Title */
.ecw-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #333333;
}

/* Card Description */
.ecw-card-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: #666666;
}

/* Card Button */
.ecw-card-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.ecw-card-button:hover {
    background-color: #555555;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Typography */
@media (max-width: 767px) {
    .ecw-main-title {
        font-size: 24px;
    }
    
    .ecw-main-description {
        font-size: 13px;
    }
    
    .ecw-card {
        padding: 30px 20px;
    }
    
    .ecw-card-title {
        font-size: 18px;
    }
    
    .ecw-card-description {
        font-size: 13px;
    }
    
    .ecw-card-icon i {
        font-size: 40px;
    }
    
    .ecw-card-icon svg {
        width: 40px;
        height: 40px;
    }
}

/* Ensure proper spacing in Elementor editor */
.elementor-widget-cards_widget {
    width: 100%;
}

/* Fix for Elementor container */
.elementor-widget-cards_widget .elementor-widget-container {
    width: 100%;
}
