.mec-ccecd83e-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

/* Filter Wrapper */
.mec-ccecd83e-filters-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

/* Filter Dropdown Elements */
.mec-ccecd83e-category-filter select,
.mec-ccecd83e-date-filter select {
    padding: 10px 36px 10px 18px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mec-ccecd83e-category-filter select:hover,
.mec-ccecd83e-date-filter select:hover {
    border-color: #3b82f6;
}

.mec-ccecd83e-category-filter select:focus,
.mec-ccecd83e-date-filter select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Card Layout */
.mec-ccecd83e-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mec-ccecd83e-card {
    display: grid;
    grid-template-columns: 140px 80px 1fr 200px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mec-ccecd83e-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Card without Image */
.mec-ccecd83e-card:not(:has(.mec-ccecd83e-image-block)) {
    grid-template-columns: 80px 1fr 200px;
}

/* Image Block */
.mec-ccecd83e-image-block {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background-color: #f3f4f6;
    overflow: hidden;
}

.mec-ccecd83e-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mec-ccecd83e-card:hover .mec-ccecd83e-image-block img {
    transform: scale(1.05);
}

/* Featured state */
.mec-ccecd83e-card.mec-ccecd83e-is-featured {
    border: 2px solid #f59e0b;
}

.mec-ccecd83e-featured-tag {
    position: absolute; 
    top: 0;
    right: 0;
    background: #f59e0b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-bottom-left-radius: 8px;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Date Block */
.mec-ccecd83e-date-block {
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-right: 1px solid #e5e7eb;
    z-index: 1;
}

.mec-ccecd83e-day {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.mec-ccecd83e-month {
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Content Block */
.mec-ccecd83e-content-block {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mec-ccecd83e-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.mec-ccecd83e-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.mec-ccecd83e-time {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mec-ccecd83e-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 4px 0 8px 0;
    line-height: 1.3;
}

/* Description Styling & Clamp Toggle */
.mec-ccecd83e-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    position: relative;
}

.mec-ccecd83e-description-text {
    display: block;
    max-height: none;
    transition: max-height 0.3s ease-out;
}

/* Clamped state applied only when script confirms text overflows */
.mec-ccecd83e-description-text.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mec-ccecd83e-description-text.expanded {
    display: block;
    -webkit-line-clamp: none;
    overflow: visible;
}

.mec-ccecd83e-read-more-btn {
    display: inline-block;
    margin-top: 4px;
    color: #3b82f6;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.mec-ccecd83e-read-more-btn:hover {
    color: #2563eb;
}

/* Action Block */
.mec-ccecd83e-action-block {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    border-left: 1px dashed #e5e7eb;
    background: rgba(249, 250, 251, 0.5);
}

.mec-ccecd83e-price-tag {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mec-ccecd83e-price-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mec-ccecd83e-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.mec-ccecd83e-btn {
    display: block;
    text-align: center;
    background: #3b82f6;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.mec-ccecd83e-btn:hover {
    background: #2563eb;
}

.mec-ccecd83e-empty {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 12px;
}

/* Pagination Styling */
.mec-ccecd83e-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.mec-ccecd83e-page-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mec-ccecd83e-page-btn:hover {
    background: #f3f4f6;
    border-color: #6b7280;
}

.mec-ccecd83e-page-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Mobile Responsive Styling */
@media (max-width: 768px) {
    .mec-ccecd83e-filters-wrap {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .mec-ccecd83e-category-filter select,
    .mec-ccecd83e-date-filter select {
        width: 100%;
        max-width: calc(50% - 5px);
    }

    .mec-ccecd83e-card {
        grid-template-columns: 100% !important;
    }
    
    .mec-ccecd83e-image-block {
        height: 180px;
        width: 100%;
    }
    
    .mec-ccecd83e-date-block {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mec-ccecd83e-day {
        font-size: 24px;
    }
    
    .mec-ccecd83e-month {
        margin-top: 0;
    }
    
    .mec-ccecd83e-content-block {
        padding: 20px;
    }
    
    .mec-ccecd83e-action-block {
        padding: 20px;
        border-left: none;
        border-top: 1px dashed #e5e7eb;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mec-ccecd83e-btn {
        margin-top: 0;
        width: auto;
    }
}
