:root {
    --ecc-primary-red: #ea1d2c;
    --ecc-text-black: #000000;
    --ecc-text-gray: #4a4a4a;
    --ecc-card-bg: #ffffff;
}

.ecc-card {
    background-color: var(--ecc-card-bg);
    border-radius: 32px;
    overflow: hidden;
    width: 100%;
    /* Fixed height to accommodate ~7 items, footer stays at bottom */
    height: 780px; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', sans-serif;
}

.ecc-card-header {
    background-color: var(--ecc-primary-red);
    color: white;
    text-align: center;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.ecc-card-image {
    width: 100%;
    height: 240px; 
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.ecc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ecc-card-body {
    padding: 24px 24px 20px 24px; /* Increased back to 20px to prevent clipping by rounded corners */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ecc-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ecc-text-black);
    margin-bottom: 12px;
    line-height: 1.4;
}

.ecc-card-description {
    font-size: 14px;
    color: var(--ecc-text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.ecc-card-list {
    list-style: none;
    margin-bottom: 20px; /* Reduced margin to keep things tight */
    padding: 0;
}

.ecc-card-list li {
    position: relative;
    padding-left: 0; /* Removed padding, using flex gap */
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.ecc-card-list li::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background-color: var(--ecc-primary-red);
    border-radius: 50%;
    margin-top: 5px; /* Align with text top */
}

.ecc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pushes footer to the bottom */
}

.ecc-footer-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ecc-footer-icon-img {
    width: 30px; /* Default fixed size, can be overridden by widget settings */
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.ecc-learn-more {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.ecc-learn-more:hover {
    color: var(--ecc-primary-red);
}

.ecc-learn-more .ecc-arrow {
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ecc-card {
        border-radius: 24px;
    }
    
    .ecc-card-title {
        font-size: 17px;
    }
    
    .ecc-card-body {
        padding: 20px;
    }
}
