/* =========================================
   WIDGET: Comparison Card (Prefix: .met-comp-)
   ========================================= */

/* Main Container */
.met-comp-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.met-comp-wrapper * {
    box-sizing: border-box;
}

.met-comp-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

/* Grid Layout */
.met-comp-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 40px;
}

/* Card Base */
.met-comp-card {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

/* Before (Red) Variant */
.met-card--before {
    background: linear-gradient(145deg, #fff5f5 0%, #ffffff 100%);
    border-left: 5px solid #fc8181;
}

/* After (Green) Variant */
.met-card--after {
    background: linear-gradient(145deg, #f0fff4 0%, #ffffff 100%);
    border-left: 5px solid #48bb78;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(72,187,120,0.15);
}

/* Badges */
.met-comp-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    align-self: flex-start;
    color: #fff;
}

.met-badge--before { background-color: #fc8181; }
.met-badge--after  { background-color: #48bb78; }

/* Lists (Strict Reset) */
ul.met-comp-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

li.met-comp-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #4a5568;
    font-size: 16px;
}

li.met-comp-item:last-child {
    margin-bottom: 0;
}

/* Icons - The Fix */
.met-comp-icon {
    width: 24px;
    height: 24px;
    min-width: 24px; /* Prevents squishing */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    margin-top: 1px; /* Visual alignment */
}

/* Elementor's Icon Render Output */
.met-comp-icon i,
.met-comp-icon svg {
    width: 14px;
    height: 14px;
    font-size: 14px; /* For FontAwesome */
    display: block;
    fill: currentColor;
}

/* Icon Colors */
.met-item--before .met-comp-icon { background: #fed7d7; color: #e53e3e; }
.met-item--after  .met-comp-icon { background: #c6f6d5; color: #2f855a; }

/* Arrow */
.met-comp-arrow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.met-arrow {
    width: 50px;
    height: 50px;
    background-color: #3182ce;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: met-pulse 2s infinite;
}

@keyframes met-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(49,130,206,0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(49,130,206,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(49,130,206,0); }
}

/* Result Box */
.met-comp-result {
    margin-top: 0;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    background-image: linear-gradient(to right, #fc8181, #48bb78, #3182ce);
    background-size: 100% 4px;
    background-repeat: no-repeat;
    background-position: top left;
}

.met-result-title {
    font-weight: 800;
    text-transform: uppercase;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.met-result-text {
    color: #2b6cb0;
    font-weight: 600;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .met-comp-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .met-card--after {
        transform: scale(1); /* Reset scale */
    }
    
    .met-arrow {
        transform: rotate(90deg);
    }
    
    /* Mobile pulse needs to handle the rotation */
    @keyframes met-pulse {
        0% { transform: scale(0.95) rotate(90deg); box-shadow: 0 0 0 0 rgba(49,130,206,0.7); }
        70% { transform: scale(1) rotate(90deg); box-shadow: 0 0 0 10px rgba(49,130,206,0); }
        100% { transform: scale(0.95) rotate(90deg); box-shadow: 0 0 0 0 rgba(49,130,206,0); }
    }
}

/* =========================================
   WIDGET: Feature Grid (Prefix: .met-feature-)
   ========================================= */

/* Grid Container */
.met-feature-grid {
    display: grid;
    /* Grid columns are handled by Elementor responsive controls */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    width: 100%;
}

/* Individual Card */
.met-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0; /* Tailwind Gray-200 */
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center everything */
    text-align: center;
    transition: all 0.3s ease;
    height: 100%; /* Ensures equal height in grid */
}

/* Hover Effect: Subtle Lift + Border Color Change */
.met-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

/* Icon Container */
.met-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #3182ce; /* Default Blue */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #3182ce;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Icon Sizing */
.met-feature-icon i {
    font-size: 24px;
}
.met-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Card Hover -> Icon Interaction (Optional Polish) */
.met-feature-card:hover .met-feature-icon {
    background-color: #ebf8ff; /* Very faint blue tint on hover */
    border-color: #3182ce;
}

/* Typography Defaults */
.met-feature-title {
    margin: 0 0 12px 0;
    color: #1a202c; /* Tailwind Gray-900 */
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    line-height: 1.4;
}

.met-feature-desc {
    margin: 0;
    color: #4a5568; /* Tailwind Gray-700 */
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Handling */
@media (max-width: 1024px) {
    .met-feature-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 cols on tablet if not set by Elementor */
    }
}

@media (max-width: 768px) {
    .met-feature-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 20px;
    }
}